list, oset, xlist, xoset: fix extern inline issue with C99
[gnulib.git] / ChangeLog
1 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
2
3         list, oset, xlist, xoset: fix extern inline issue with C99
4         This was introduced by my recent changes for 'inline'.
5         Problem reported for gettext by Daiki Ueno in
6         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00000.html>.
7         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
8         (gl_list_nx_create, gl_list_size, gl_list_node_value)
9         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
10         (gl_list_previous_node, gl_list_get_at)
11         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
12         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
13         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
14         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
15         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
16         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
17         (gl_list_iterator_free, gl_sortedlist_search)
18         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
19         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
20         (gl_sortedlist_remove):
21         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
22         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
23         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
24         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
25         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
26         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
27         (gl_list_add_at, gl_sortedlist_add):
28         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
29         Wrap these extern decls inside "#if 0", because they are implemented
30         as inline functions, and extern inline is not what's wanted here.
31         It would simplify these .h files to remove the extern decls entirely,
32         although a downside would be less-clear separation between
33         specification and implementation.
34
35 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
36
37         sys_stat: no 'static inline'
38         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
39         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
40
41         extern-inline: no 'static inline'
42         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
43         Do not require AC_C_INLINE.
44         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
45         'static inline', for older compilers.
46
47         snippet/warn-on-use: no 'static inline'
48         * build-aux/snippet/warn-on-use.h:
49         Remove unnecessary 'inline' in comment.
50
51         rbtree-list, rbtreehash-list: no 'static inline'
52         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
53         * lib/gl_anytree_list2.h (node_at):
54         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
55         (gl_oset_first, add_nodes_to_buckets):
56         Now static, not static inline.
57
58         regex: no 'static inline'
59         * lib/regex_internal.c (calc_state_hash):
60         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
61         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
62         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
63         Now static, not static inline.
64         (inline) [__GNUC__ < 3 && _LIBC]:
65         Remove macro; no longer needed.
66
67         xvasprintf: no 'static inline'
68         * lib/xvasprintf.c (xstrcat):
69         Now static, not static inline.
70         * m4/xvasprintf.m4 (gl_XVASPRINTF):
71         Do not require AC_C_INLINE.
72
73         parse-datetime, parse-duration: no 'static inline'
74         * lib/parse-datetime.y (to_uchar):
75         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
76         (scale_n_add):
77         Now static, not static inline.
78         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
79         * modules/parse-duration (configure.ac):
80         Do not require AC_C_INLINE.
81
82         getaddrinfo: no 'static inline'
83         * lib/getaddrinfo.c (validate_family):
84         Now static, not static inline.
85         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
86         Do not require AC_C_INLINE.
87
88         ftruncate, fts, lstat, openat, raise: no 'static inline'
89         * lib/ftruncate.c (chsize_nothrow):
90         * lib/fts.c (opendirat, diropen):
91         * lib/lstat.c (orig_lstat):
92         * lib/openat.c (orig_openat):
93         * lib/raise.c (raise_nothrow):
94         Now static, not static inline.
95         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
96         * m4/fts.m4 (gl_FUNC_FTS_CORE):
97         * m4/lstat.m4 (gl_PREREQ_LSTAT):
98         * m4/openat.m4 (gl_PREREQ_OPENAT):
99         * m4/raise.m4 (gl_PREREQ_RAISE):
100         Do not require AC_C_INLINE.
101
102         fflush, stat: no 'static inline'
103         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
104         (clear_ungetc_buffer, disable_seek_optimization)
105         (restore_seek_optimization, update_fpos_cache):
106         * lib/stat.c (orig_stat):
107         Now static, not static inline.
108         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
109         (update_fpos_cache):
110         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
111         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
112         * m4/stat.m4 (gl_PREREQ_STAT):
113         Do not require AC_C_INLINE.
114
115         error, filevercmp: no 'static inline'
116         * lib/error.c (is_open, flush_stdout):
117         * lib/filevercmp.c (order):
118         Now static, not static inline.
119         * m4/error.m4 (gl_PREREQ_ERROR):
120         * modules/filevercmp (configure.ac):
121         Do not require AC_C_INLINE.
122
123         dup, execute, fatal-signal, etc.: no 'static inline'
124         * lib/dup.c (dup_nothrow):
125         * lib/execute.c (nonintr_close, nonintr_open):
126         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
127         * lib/fopen.c (orig_fopen):
128         * lib/freadseek.c (freadptrinc):
129         * lib/freopen.c (orig_freopen):
130         * lib/fstat.c (orig_fstat, fstat_nothrow):
131         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
132         (get_rusage_as_via_iterator):
133         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
134         * lib/getdtablesize.c (_setmaxstdio_nothrow):
135         * lib/isatty.c (_isatty_nothrow):
136         * lib/open.c (orig_open):
137         * lib/read.c (read_nothrow):
138         * lib/sigprocmask.c (signal_nothrow):
139         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
140         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
141         * lib/wait-process.c (unregister_slave_subprocess):
142         * lib/write.c (write_nothrow):
143         Now static, not static inline.
144         * lib/spawn-pipe.c (nonintr_open): Define only if
145         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
146         * m4/dup.m4 (gl_PREREQ_DUP):
147         * m4/execute.m4 (gl_EXECUTE):
148         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
149         * m4/fopen.m4 (gl_PREREQ_FOPEN):
150         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
151         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
152         * m4/fstat.m4 (gl_PREREQ_FSTAT):
153         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
154         * m4/isatty.m4 (gl_PREREQ_ISATTY):
155         * m4/open.m4 (gl_PREREQ_OPEN):
156         * m4/read.m4 (gl_PREREQ_READ):
157         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
158         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
159         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
160         * m4/wait-process.m4 (gl_WAIT_PROCESS):
161         * m4/write.m4 (gl_PREREQ_WRITE):
162         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
163         Do not require AC_C_INLINE.
164
165         c-strtod, memcoll, readutmp: no 'static inline'
166         * lib/c-strtod.c (c_locale):
167         * lib/memcoll.c (strcoll_loop):
168         * lib/readutmp.c (desirable_utmp_entry):
169         Now static, not static inline.
170         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
171         * m4/memcoll.m4 (gl_MEMCOLL):
172         * m4/readutmp.m4 (gl_READUTMP):
173         Do not require AC_C_INLINE.
174
175         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
176         * lib/arctwo.c (to_uchar):
177         * lib/md4.c (set_uint32):
178         * lib/md5.c (set_uint32):
179         * lib/sha1.c (set_uint32):
180         * lib/sha256.c (set_uint32):
181         * lib/sha512.c (set_uint64):
182         Now static, not static inline.  This is a bit simpler, and doesn't
183         affect performance with GCC and default optimization.
184         * m4/arctwo.m4 (gl_ARCTWO):
185         * m4/md4.m4 (gl_MD4):
186         * m4/md5.m4 (gl_MD5):
187         * m4/sha1.m4 (gl_SHA1):
188         * m4/sha256.m4 (gl_SHA256):
189         * m4/sha512.m4 (gl_SHA512):
190         Do not require AC_C_INLINE.
191
192         cond, lock, thread: better 'inline'
193         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
194         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
195         New macros.  Use them instead of static inline, for header functions.
196         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
197         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
198         * lib/glthread/lock.c (gl_waitqueue_init)
199         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
200         * lib/glthread/thread.c (get_current_thread_handle):
201         Change 'static inline' to 'inline'.
202         * lib/glthread/cond.h, lib/glthread/thread.h:
203         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
204         * m4/cond.m4 (gl_COND):
205         * m4/lock.m4 (gl_PREREQ_LOCK):
206         * m4/thread.m4 (gl_THREAD):
207         Do not require AC_C_INLINE.
208         * modules/cond, modules/thread (Depends-on): Add extern-inline.
209
210         chdir-long, cycle-check, savewd: better 'inline'
211         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
212         (find_non_slash):
213         * lib/cycle-check.c (is_zero_or_power_of_two):
214         * lib/savewd.c (savewd_delegating):
215         Change 'static inline' to 'inline'.
216         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
217         Replace all remaining uses of 'static inline' with it.
218         * lib/savewd.h:
219         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
220         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
221         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
222         * m4/savewd.m4 (gl_SAVEWD):
223         Do not require AC_C_INLINE.
224         * modules/savewd (Depends-on): Add extern-inline.
225
226         base32, base64: no need for 'inline'
227         * lib/base32.c (to_uchar, get_8, decode_8):
228         * lib/base64.c (to_uchar, get_4, decode_4):
229         Change 'static inline' to 'inline'.
230         * m4/base32.m4 (gl_PREREQ_BASE32):
231         * m4/base64.m4 (gl_PREREQ_BASE64):
232         Do not require AC_C_INLINE.
233
234         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
235         * lib/gl_array_oset.c (gl_array_nx_add_at):
236         (gl_array_remove_at):
237         * lib/gl_linkedhash_list.c (hash_resize_after_add)
238         (add_to_bucket, remove_from_bucket):
239         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
240         Change 'static inline' to 'static', as it's simpler to omit
241         'inline' unless there's a significant performance advantage.
242
243         list, oset, xlist, xoset, xsublist: simplify via extern inline
244         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
245         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
246         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
247         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
248         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
249         New macro.  Replace all uses of 'static inline' with it.
250         [HAVE_INLINE]: Implement functions as *_INLINE functions,
251         instead of as macros FOO that are defined to static inline
252         functions FOO_inline.
253         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
254         * lib/gl_xsublist.c:
255         Reimplement from scratch, by defining the corresponding *_INLINE
256         macro and including the corresponding .h file.  This is simpler.
257         * modules/list, modules/oset, modules/xlist, modules/xoset:
258         (Files): Remove m4/gl_list.m4.
259         (configure.ac): Remove gl_LIST.
260         * m4/gl_list.m4: Remove.
261         * modules/list, modules/oset, modules/xlist, modules/xoset:
262         * modules/xsublist:
263         (Depends-on): Depend on extern-inline, not inline.
264
265         xalloc: better 'inline'
266         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
267         New macro.  Replace all uses of 'static inline' with it.
268         (static_inline): Remove.
269         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
270         Let 'extern inline' do the work automatically, instead of doing
271         it by hand.
272         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
273         Remove.  All uses removed.
274         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
275
276         gethrxtime: better 'inline'
277         * lib/xtime.c: New file.
278         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
279         * lib/xtime.h (XTIME_INCLUDE):
280         New macros.  Replace all uses of 'static inline' with them.
281         * lib/gethrxtime.c (gethrxtime): Define only if
282         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
283         this source file is now always compiled, because of the extern inline.
284         * lib/gethrxtime.h, lib/xtime.h:
285         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
286         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
287         if gethrtime works, as they're not needed in that case.
288         (gl_XTIME): Do not require AC_C_INLINE.
289         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
290         compiled now.  Move the check into gl_GETHRXTIME.
291         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
292         (Depends-on): Add extern-inline.
293         (configure.ac): gethrxtime is always compiled now.
294         (lib_SOURCES): Add gethrxtime.c.
295
296         wctype-h: better 'inline'
297         * lib/wctype-h.c: New file.
298         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
299         New macro.  Replace all uses of 'static inline' with it.
300         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
301         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
302         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
303         (Depends-on): Add extern-inline.
304
305         unistd: better 'inline'
306         * lib/unistd.c: New file.
307         * lib/unistd.in.h (_GL_UNISTD_INLINE):
308         New macro.  Replace all uses of 'static inline' with it.
309         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
310         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
311         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
312         (Depends-on): Add extern-inline.
313
314         sys_socket: better 'inline'
315         * lib/sys_socket.c: New file.
316         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
317         New macro.  Replace all uses of 'static inline' with it.
318         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
319         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
320         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
321         (Depends-on): Add extern-inline.
322
323         stdio: better 'inline'
324         * lib/stdio.c: New file.
325         * lib/stdio.in.h (_GL_STDIO_INLINE):
326         New macro.  Replace all uses of 'static inline' with it.
327         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
328         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
329         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
330         (Depends-on): Add extern-inline.
331
332         sigaction: better 'inline'
333         * lib/sig-handler.c: New file.
334         * lib/sig-handler.h (SIG_HANDLER_INLINE):
335         New macro.  Replace all uses of 'static inline' with it.
336         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
337         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
338         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
339         (Depends-on): Add extern-inline.
340
341         selinux-h: better 'inline'
342         * lib/se-context.c, lib/se-selinux.c: New files.
343         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
344         * lib/se-context.in.h (SE_CONTEXT_INLINE):
345         New macro.  Replace all uses of 'static inline' with it.
346         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
347         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
348         New macro.  Replace all uses of 'static inline' with it.
349         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
350         * modules/selinux-h (Files, lib_SOURCES):
351         Add lib/se-context.c, lib/se-selinux.c.
352         (Depends-on): Add extern-inline.
353         (configure.ac): Do not require AC_C_INLINE.
354
355         pthread: better 'inline'
356         * lib/pthread.c: New file.
357         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
358         New macro.  Replace all uses of 'static inline' with it.
359         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
360         * m4/pthread.m4 (gl_PTHREAD_CHECK):
361         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
362         * modules/pthread (Files): Add lib/pthread.c.
363         (Depends-on): Add extern-inline.
364
365         math: better 'inline'
366         * lib/math.c: New file.
367         * lib/math.in.h (_GL_MATH_INLINE):
368         New macro.  Replace all uses of 'static inline' with it.
369         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
370         * m4/math_h.m4 (gl_MATH_H):
371         Do not require AC_C_INLINE.
372         * modules/math (Files, lib_SOURCES):
373         Add lib/math.c.
374         (Depends-on): Add extern-inline.
375
376         count-one-bits: better 'inline'
377         * lib/count-one-bits.c: New file.
378         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
379         New macro.  Replace all uses of 'static inline' with it.
380         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
381         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
382         Do not require AC_C_INLINE.
383         * modules/count-one-bits (Files, lib_SOURCES):
384         Add lib/count-one-bits.c.
385         (Depends-on): Add extern-inline.
386
387         count-leading-zeros: better 'inline'
388         * lib/count-leading-zeros.c: New file.
389         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
390         New macro.  Replace all uses of 'static inline' with it.
391         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
392         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
393         Do not require AC_C_INLINE.
394         * modules/count-leading-zeros (Files, lib_SOURCES):
395         Add lib/count-leading-zeros.c.
396         (Depends-on): Add extern-inline.
397
398         bitrotate: better 'inline'
399         * lib/bitrotate.c: New file.
400         * lib/bitrotate.h (BITROTATE_INLINE):
401         New macros.
402         Replace all uses of 'static inline' with them.
403         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
404         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
405         (Depends-on): Add extern-inline.
406         (configure.ac): Do not require AC_C_INLINE.
407
408 2012-11-20  Theophile Ranquet <ranquet@lrde.epita.fr>
409
410         maint.mk: avoid gratuitous failure
411         Reported by Stefano Lattarini in
412         <http://lists.gnu.org/archive/html/bug-bison/2012-11/msg00022.html>
413         * top/maint.mk (public-submodule-commit): Quote more safely.
414
415 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
416
417         canonicalize, canonicalize-lgpl: support MS-Windows file names
418         See <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00074.html>
419         for test cases, which it'd be nice to add at some point.
420         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
421         * lib/canonicalize.c (canonicalize_filename_mode):
422         * lib/canonicalize-lgpl.c (__realpath):
423         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
424         slash is at the beginning of the file name.  Use ISSLASH, instead
425         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
426         the first character with '/'.  Test for
427         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
428         with a drive letter.
429         * lib/canonicalize.c (SLASHES): New macro.
430         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
431
432 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
433
434         fts: introduce FTS_VERBATIM
435         * lib/fts_.h (FTS_VERBATIM): New bit flag.
436         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
437         * lib/fts.c (fts_open): Honor it.
438
439 2012-11-09  Pádraig Brady  <P@draigBrady.com>
440
441         getlogin-tests: allow errno == ENXIO
442         * tests/test-getlogin.c (main): Skip tests if getlogin fails
443         with errno == ENXIO (No controlling tty).
444         getlogin_r-tests: Likewise. Also allow errno == ENOENT
445         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
446         with errno == ENOENT.  This was reported to happen in various
447         situations on GNU/Linux.
448
449 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
450
451         getlogin-tests: allow errno == ENOENT
452         * tests/test-getlogin.c (main): Skip tests if getlogin fails
453         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
454         when running a test in an Emacs shell buffer.
455
456 2012-11-08  Jim Meyering  <jim@meyering.net>
457
458         tests/nap.h: avoid warning about unused variable
459         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
460
461         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
462         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
463         white space before each of the special-cased file names, to avoid
464         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
465         in http://bugs.gnu.org/12830.
466
467 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
468
469         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
470         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
471         fails with errno == EBADF when fd is opened with O_PATH.
472         Reported by Jim Meyering in
473         <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00026.html>.
474         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
475         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
476
477 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
478
479         test-utimens: speed up by taking shorter naps
480         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
481         New functions.
482         (nap): Use them, to do a better job of guessing the delay.
483         On Fedora 17 with ext4 atop md atop hard disks, this made
484         test-utimens run 10x faster, because the test napped for
485         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
486         <http://bugs.gnu.org/12820#11>.
487
488 2012-11-07  Jim Meyering  <jim@meyering.net>
489
490         mountlist.c: fix a compilation failure
491         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
492         I introduced while transforming commit v0.0-7683-g613bcb6
493
494 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
495
496         errno: port to LynxOS 178 2.2.2
497         Problem reported by Joel Brobecker in
498         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00088.html>.
499         * doc/posix-headers/errno.texi (errno.h): Document this.
500         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
501         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
502         Supply a string for EILSEQ.
503         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
504
505 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
506
507         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
508         Linux kernel 2.6.39 introduced O_PATH (see
509         <http://lwn.net/Articles/433854/>) and this is a better fallback
510         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
511         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
512         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
513         * lib/fcntl.in.h (O_ACCMODE):
514         * tests/test-fcntl-h.c (main):
515         Do not reject O_ACCMODE merely because it has more than the
516         minimal number of bits, as POSIX allows extensions here.
517
518 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
519
520         mountlist: do not classify a bind-mounted dir entry as "dummy"
521         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
522         the "none"-testing clause.
523         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
524         exception for bind-mounted directories.
525
526 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
527
528         quote: provide a means to escape strings with nul characters
529         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
530         (quote, quote_n): Rename formal arguments for consistency with
531         quotearg.
532
533 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
534
535         test-raise: don't assume 199 is an invalid signal
536         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
537
538         sh-quote-tests: port to Solaris 9
539         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
540         Problem reported by Dagobert Michelsen in
541         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00114.html>.
542
543 2012-10-28  Jim Meyering  <jim@meyering.net>
544
545         maint.mk: rename a new configurable variable
546         * top/maint.mk (_gl_translatable_string_re): Rename from
547         translation-markers: _gl_ prefix to insulate from user Makefile code,
548         and the _re suffix to inform that it's a regular expression.
549
550 2012-10-26  Eric Blake  <eblake@redhat.com>
551
552         maint.mk: let packages tweak sc_po_check pattern
553         * top/maint.mk (sc_po_check): Add translation-markers, to allow
554         finding files with other translation markers.
555
556 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
557
558         euidaccess: speed up 'configure' on GNU hosts
559         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
560         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
561         it's needed only in this case.  Use AC_CHECK_DECLS, not
562         AC_CHECK_DECLS_ONCE.
563         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
564         or AC_REQUIRE for AC_FUNC_GETGROUPS.
565
566         * lib/regexec.c (re_search_internal): Fix grammar in comment.
567
568 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
569
570         fchmodat, fchownat, fstatat: port to non-inlining compilers
571         Problem reported for FreeBSD 9 by Jim Meyering in
572         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00070.html>.
573         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
574         New files, which define FCHMODAT_INLINE etc.
575         * lib/fchmodat.c (FCHMODAT_INLINE):
576         * lib/fchownat.c (FCHOWNAT_INLINE):
577         * lib/fstatat.c (FSTATAT_INLINE):
578         Remove, as chmodat.c etc. now do this.
579         * modules/fchmodat (Files): Add lib/chmodat.c.
580         * modules/fchownat (Files): Add lib/chownat.c.
581         * modules/fstatat (Files): Add lib/statat.c.
582
583 2012-10-15  Jim Meyering  <jim@meyering.net>
584
585         fchmodat.c, fchownat.c: compile-impeding typos
586         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
587         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
588         Introduced in commit v0.0-7636-gd202279.
589
590 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
591
592         fcntl-h: support GNU flags like O_IGNORE_CTTY
593         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
594         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
595         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
596         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
597         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
598         Define to 0 if not already defined.
599         * tests/test-fcntl-h.c: Test these new flags.
600
601 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
602
603         faccessat, etc.: support AT_FDCWD-only use
604         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
605         this function only if its first argument is AT_FDCWD.
606         Emacs wants faccessat for AT_EACCESS but not for any first-arg
607         values other than AT_FDCWD, so it doesn't want all the openat
608         machinery with fchdir etc.
609         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
610         * modules/fstatat, modules/mkdirat, modules/openat (Files):
611         * modules/unlinkat (Files):
612         Remove lib/openat-priv.h, as at-internal supplies this file.
613         Removing this file here allows us to support programs like Emacs
614         that avoid at-internal.
615
616         faccessat: speed up 'configure' on mainstream hosts
617         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
618         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
619         since it's only on unusual platforms that we need to check for
620         'access', and it's better not to slow 'configure' down on all
621         platforms.
622
623         faccessat: port to Solaris 10
624         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
625         Needed on Solaris 10, which doesn't have AT_EACCESS,
626         so we need the Gnulib fcntl.h, which defines it.
627
628 2012-10-14  Pádraig Brady  <P@draigBrady.com>
629         canonicalize: fix C89 compilation
630         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
631         declarations so C89 is supported.  Also remove the comment
632         referencing memorty allocation as the suggested feature could
633         not be implemented as suggested.
634         Reported by Michael Goffioul.
635
636 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
637
638         group-member: omit unnecessary dependencies
639         This is for Emacs, which has its own allocator and where we
640         don't want to use xalloc.
641         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
642         since we no longer use xmalloc.  Do not include stdbool.h, since
643         the changes below happen to remove the only use of bool.
644         (GROUPBUF_SIZE): New constant.
645         (struct group_info): Remove n_groups member.  Add groupbuf member.
646         This lets us get the groups without using malloc, usually.
647         (free_group_info, get_group_info): Adjust to this.
648         (get_group_info): Return the number of groups found, or -1 on error.
649         Use plain malloc not xmalloc, and treat its failure as if there
650         are no groups, as the user already loses in case of error.
651         (group_member): Simplify, based on changes to get_group_info.
652         * modules/group-member (Depends-on): Remove dependencies on
653         xalloc and stdbool.  Add dependency on xalloc-oversized.
654
655 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
656
657         gethrxtime: port to C++
658         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
659
660 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
661
662         ptsname: fix macro-name typo
663         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
664
665 2012-10-03  Simon Josefsson  <simon@josefsson.org>
666
667         inttostr: Relax license.
668         * modules/inttostr (License): Change from LGPL to LGPLv2+.
669
670 2012-10-03  Eric Blake  <eblake@redhat.com>
671
672         ptsname_r: support ptys returned by FreeBSD posix_openpt
673         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
674         lives in /dev/pts/.
675
676 2012-10-02  Eric Blake  <eblake@redhat.com>
677
678         pselect: reject invalid file descriptors
679         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
680         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
681         * modules/pselect (Depends-on): Add dup2.
682         * doc/posix-functions/pselect.texi (pselect): Document this.
683
684         select: reject invalid file descriptors
685         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
686         * lib/select.c (rpl_select) [!win32]: Work around it.
687         * modules/select (Depends-on): Add dup2.
688         * doc/posix-functions/select.texi (select): Document this.
689
690         select: enhance test
691         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
692         New functions.
693         (test_function): Enhance test.
694         (do_select_bad_fd): Avoid any stale errno values.
695
696         ptsname: reject invalid file descriptors
697         http://www.austingroupbugs.net/view.php?id=503
698         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
699         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
700         * modules/stdlib (Makefile.am): Replace witness.
701         * lib/stdlib.in.h (ptsname): Allow for replacement.
702         * modules/ptsname (configure.ac): Trigger replacement.
703         * doc/posix-functions/ptsname.texi (ptsname): Document this.
704
705 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
706
707         hash-pjw-bare: new module
708         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
709         * lib/hash-pjw-bare.h: Likewise.
710         * modules/hash-pjw-bare: New file.
711         * MODULES.html.sh (Misc): Add it.
712
713 2012-10-02  Eric Blake  <eblake@redhat.com>
714
715         manywarnings: cater to more gcc infelicities
716         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
717         -Wuninitialized without -O.
718
719 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
720
721         select, poll tests: Make setsockopt invocation effective.
722         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
723         the bind() call.
724         * tests/test-select.h (open_server_socket): Likewise.
725
726 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
727
728         sockets, sys_stat: restore AC_C_INLINE
729         This undoes the 2012-09-22 patch.
730         * m4/sockets.m4 (gl_SOCKETS):
731         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
732         Restore AC_C_INLINE, since MSVC requires __inline or _inline
733         and does not support plain 'inline'.  Reported by Bruno Haible in
734         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00183.html>.
735
736 2012-09-30  Bruno Haible  <bruno@clisp.org>
737
738         localeconv tests: Avoid test failure on OpenIndiana.
739         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
740         skip the 'grouping' and 'mon_grouping' tests.
741         Reported by Jim Meyering.
742
743 2012-09-30  Bruno Haible  <bruno@clisp.org>
744
745         havelib: Follow libtool developments.
746         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
747         Suggested by Simon Josefsson.
748
749 2012-09-29  Jim Meyering  <meyering@redhat.com>
750
751         fstatat.c: fix a compile-impeding typo
752         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
753         Introduced in commit v0.0-7636-gd202279.
754         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
755
756 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
757
758         extern-inline: provide a -Wundef safe config.h
759         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
760         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
761         to produce a -Wundef warning free config.h.
762
763 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
764
765         hash-pjw: relax license to LGPLv2+
766         * modules/hash-pjw (License): Relax, with consent of author.
767
768 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
769
770         maint.mk: fix strict vs. lazy variable issues with RELEASE
771         * top/maint.mk (_equal): New function.
772         (member_check): Strip the result to avoid spurious spaces.
773         (url_dir_list): Do not use ifeq, which is strict, as it will
774         require RELEASE_TYPE to be defined.
775         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
776         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
777         (announcement_Cc_alpha,announcement_mail_headers_alpha)
778         (announcement_Cc_beta,announcement_mail_headers_beta)
779         (announcement_Cc_stable,announcement_mail_headers_stable): these.
780         (release): Do not depend on $(release-type), as it forces its
781         evaluation.  Bounce to it.
782
783 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
784
785         maint.mk: formatting changes
786         * top/maint.mk: Indent bodies of if's.
787
788 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
789
790         maint.mk: factor the validation of RELEASE_TYPE
791         With help from Jim Meyering.
792         http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00132.html
793         * top/maint.mk (_empty, _sp): Move their definition earlier.
794         (member-check, release-type): New.
795         Use the latter instead of $(RELEASE_TYPE).
796         Remove now useless local checks.
797
798 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
799
800         maint.mk: provide "make upload" to ease uploading
801         See
802         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00028.html>.
803         Do not depend simply on the current $(VERSION), as there may have been
804         new commits since the tarball generation.  Rather, rely on $(RELEASE),
805         as "make release-commit" already does.
806
807         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
808         "make TYPE".
809
810         * top/maint.mk (upload_command, upload, release): New.
811         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
812         (VERSION): first word of $(RELEASE) is always right.
813         (emit_upload_commands): Adjust.
814         * top/README-release: Update.
815
816 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
817
818         maint.mk: silent rules
819         With help from Stefano Lattarini.
820         * top/maint.mk (writable-files): Use $(AM_V_GEN).
821         (announcement): Use $(AM_V_at).
822
823 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
824
825         localename: port gl_locale_name_thread_unsafe to FreeBSD
826         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
827         and use the simpler FreeBSD implementation on Mac OS X as well.
828         Original idea suggested by Ed Maste in
829         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00094.html>.
830
831 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
832
833         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
834         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
835         * lib/mbuiter.c, lib/xsize.c: New files.
836         * lib/binary-io.h (BINARY_IO_INLINE):
837         * lib/eealloc.h (EEALLOC_INLINE):
838         * lib/mbfile.h (MBFILE_INLINE):
839         * lib/mbiter.h (MBITER_INLINE):
840         * lib/mbuiter.h (MBUITER_INLINE):
841         * lib/xsize.h (XSIZE_INLINE):
842         New macros.
843         Replace all uses of 'static inline' with them.
844         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
845         * m4/eealloc.m4 (gl_EEALLOC):
846         * m4/mbfile.m4 (gl_MBFILE):
847         * m4/mbiter.m4 (gl_MBITER):
848         * m4/xsize.m4 (gl_XSIZE):
849         Do not require AC_C_INLINE.
850         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
851         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
852         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
853         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
854         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
855         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
856         * modules/binary-io, modules/eealloc, modules/mbfile:
857         * modules/mbiter, modules/mbuiter:
858         (Depends-on): Add extern-inline.
859
860         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
861         * lib/pipe-filter-aux.c: New file.
862         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
863         Replace all uses of 'static inline' with it.
864         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
865         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
866         (filter_retcode): No real need for inline here.
867         * modules/pipe-filter-gi, modules/pipe-filter-ii:
868         (Files): Add lib/pipe-filter-aux.c.
869         (Depends-on): Add extern-inline.
870         (configure.ac): Do not require AC_C_INLINE.
871         (lib_SOURCES): Add pipe-filter-aux.c.
872
873         fdutimensat: omit unnecessary AC_C_INLINE
874         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
875
876         fchmodat, fchownat, fstatat: use extern-inline
877         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
878         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
879         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
880         New macros.
881         * lib/openat.h:
882         Replace all uses of 'static inline' with them.
883         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
884         * modules/fchmodat, modules/fchownat, modules/fstatat:
885         * modules/openat-h:
886         (Depends-on):
887         Add extern-inline.
888         (configure.ac): Remove AC_C_INLINE.
889
890         acl, mbchar, priv-set: use extern-inline
891         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
892         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
893         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
894         New macros.
895         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
896         Replace all uses of 'static inline' with it.
897         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
898         * m4/acl.m4 (gl_FUNC_ACL):
899         * m4/mbchar.m4 (gl_MBCHAR):
900         * m4/priv-set.m4 (gl_PRIV_SET):
901         Remove AC_C_INLINE, since 'inline' is no longer used directly.
902         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
903         Add extern-inline.
904
905         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
906         * m4/sockets.m4 (gl_SOCKETS):
907         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
908         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
909         environments where it's already guaranteed to work, so we needn't
910         check for it at 'configure'-time.
911
912         tls-tests: omit unnecessary 'inline'
913         * tests/test-tls.c (perhaps_yield): No longer inline.
914         Simplicity and portability trump efficiency in test cases.
915
916         utimens-tests: avoid unnecessary 'inline'
917         * modules/fdutimensat-tests (configure.ac):
918         * modules/futimens-tests (configure.ac):
919         * modules/utimens-tests (configure.ac):
920         * modules/utimensat-tests (configure.ac):
921         Remove AC_C_INLINE.
922         * tests/test-utimens-common.h (ctime_compare):
923         No longer inline.  Simplicity and portability trump efficiency here.
924
925         misc: don't limit commentary to inline functions
926         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
927         * lib/xalloc-oversized.h, lib/xsize.h:
928         Contrast macros to functions in general, not just to inline functions,
929         when the commentary does not apply only to inline functions.
930
931 2012-09-20  Jim Meyering  <meyering@redhat.com>
932
933         non-recursive-gnulib-prefix-hack: new module
934         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
935         the file that originated in Bison.
936         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
937         largely copied from a snippet that resided in bison's configure.ac.
938         * modules/non-recursive-gnulib-prefix-hack: New file.
939         * MODULES.html.sh (Support for maintaining and releasing projects):
940         Add it.
941
942 2012-09-18  Jim Meyering  <meyering@redhat.com>
943
944         maint.mk: generalize _gl_tight_scope for non-recursive make
945         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
946         that *.h would describe additional .h files in the directory
947         specified by $(_gl_TS_dir).  I.e., add this...
948         (_gl_TS_other_headers): New variable.
949
950         maint.mk: exempt trailing blanks found in "binary" files
951         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
952         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
953         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
954
955 2012-09-17  Jim Meyering  <meyering@redhat.com>
956
957         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
958         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
959         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
960         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
961
962 2012-09-17  Jim Meyering  <meyering@redhat.com>
963
964         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
965         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
966         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
967         It is not in the same category as "exit (0)" or "exit (1)", and
968         besides, I know of no symbolic name for that 77.  Reported by
969         Richard W.M. Jones in
970         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
971
972 2012-09-17  Jim Meyering  <meyering@redhat.com>
973
974         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
975         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
976         all uses of #define, not just those that start in column 1.
977         Richard W.M. Jones reported a false positive in
978         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
979
980 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
981
982         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
983         * lib/localcharset.c (locale_charset) [DARWIN7]:
984         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
985         as these two values are incompatible.  Problem reported by Max Horn.
986         For more discussion, please see
987         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00061.html>.
988
989         doc: document sticky-EOF issue
990         * doc/posix-functions/fgetc.texi (fgetc):
991         * doc/posix-functions/fgets.texi (fgets):
992         * doc/posix-functions/fread.texi (fread):
993         * doc/posix-functions/fscanf.texi (fscanf):
994         * doc/posix-functions/getc.texi (getc):
995         * doc/posix-functions/getchar.texi (getchar):
996         * doc/posix-functions/scanf.texi (scanf):
997         Mention that glibc and default Solaris do not conform to
998         C99 and POSIX-2001 or later, with respect to how getchar
999         etc. behave when feof reports nonzero.
1000
1001 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
1002
1003         poll: fix poll(0, NULL, msec)
1004         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
1005         but nfd is 0.  In that case poll should behave like select.
1006
1007 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
1008             Paolo Bonzini <bonzini@gnu.org>
1009
1010         poll: fix for systems that can't recv() on a non-socket
1011         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
1012         is readable.  In this case POLLHUP will not be supported.
1013         * doc/posix-functions/poll.texi: Document this.
1014
1015 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
1016
1017         poll/select: document portability problems not fixed by Gnulib.
1018         * doc/posix-functions/poll.texi: poll does not work well on
1019         pipes under Windows.  It has the same limitations as select on
1020         BeOS.
1021         * doc/posix-functions/select.texi: select does not work well
1022         on pipes under Windows.
1023
1024 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
1025
1026         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
1027         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
1028         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
1029         <http://lists.gnu.org/archive/html/bug-tar/2012-07/msg00018.html>.
1030
1031 2012-09-06  Eric Blake  <eblake@redhat.com>
1032
1033         net_if: give more details about the bug being fixed
1034         * doc/posix-headers/net_if.texi: Add clarification.
1035
1036 2012-09-05  Eric Blake  <eblake@redhat.com>
1037
1038         net_if: new module
1039         * modules/net_if: New module, borrowing ideas from netinet_in.
1040         * m4/net_if_h.m4: New file.
1041         * lib/net_if.in.h: Likewise.
1042         * doc/posix-headers/net_if.texi (net/if.h): Document it.
1043         * MODULES.html.sh (lacking POSIX:2008): Likewise.
1044         * tests/test-net_if.c: Make function checks conditional.
1045         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
1046
1047 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
1048
1049         readutmp: fix non-portable UT_PID use
1050         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
1051         Use `UT_PID (u) > 0' as absolute condition.
1052
1053 2012-09-04  Jim Meyering  <meyering@redhat.com>
1054
1055         fts: reduce two or more trailing spaces to just one, usually
1056         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
1057         or more slashes, trim all but the final one.  But if a name consists
1058         solely of two slashes, don't modify it.  If it consists solely of
1059         three or more slashes, strip all but one.
1060
1061         This is part of the solution to a minor problem with rm:
1062         it would print a bogus ELOOP diagnostic when failing to remove
1063         the slash-decorated name of a symlink-to-directory:
1064
1065             $ mkdir d && ln -s d s && env rm -r s/
1066             rm: cannot remove 's': Too many levels of symbolic links
1067
1068         With the change below and a trivial don't-trim-trailing-slashes
1069         adjustment to remove.c, it does this:
1070
1071             $ env rm -r s/
1072             rm: cannot remove 's/': Not a directory
1073
1074         Improved by: Eric Blake
1075
1076         fts: when there is no risk of overlap, use memcpy, not memmove
1077         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
1078
1079 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
1080
1081         stdbool: be more compatible with mixed C/C++ compiles
1082         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
1083         Define to bool, true, false, respectively, as GCC's builtin
1084         stdbool.h does.  Problem reported by Michael Goffioul in
1085         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00143.html>.
1086
1087 2012-08-28  Jim Meyering  <meyering@redhat.com>
1088
1089         revert last change: it was not needed
1090         * tests/test-vc-list-files-git.sh: There's already a test for
1091         a working git, just below.
1092
1093 2012-08-28  Jim Meyering  <meyering@redhat.com>
1094
1095         tests: test-vc-list-files-git.sh: skip if git is not available
1096         * tests/test-vc-list-files-git.sh: Skip this test when git is
1097         not available.
1098
1099 2012-08-26  Bruno Haible  <bruno@clisp.org>
1100
1101         gnulib-tool: Remove no-op option --no-changelog.
1102         * gnulib-tool (func_usage): Don't mention --no-changelog.
1103         (do_changelog): Remove variable.
1104         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
1105
1106 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
1107
1108         doc: remove fdl-1.2.texi
1109         It is no longer used or maintained, and its use of @acronym
1110         is problematic.  See the thread containing
1111         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00134.html>.
1112         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
1113         * doc/old-licenses/fdl-1.2.texi: Remove.
1114
1115         execinfo: port to FreeBSD
1116         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
1117         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
1118         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00113.html>.
1119         * modules/execinfo (Link): Add $(LIB_EXECINFO).
1120
1121 2012-08-23  Jim Meyering  <meyering@redhat.com>
1122
1123         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
1124         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
1125         to placate gcc's -Wold-style-declaration.
1126
1127 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
1128
1129         doc: do not use @acronym
1130         * doc/inet_ntoa.texi (inet_ntoa):
1131         * doc/parse-datetime.texi (Seconds since the Epoch)
1132         (Specifying time zone rules):
1133         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
1134         Don't use @acronym.  Problem reported by John Darlington in
1135         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00124.html>.
1136
1137 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
1138
1139         stdnoreturn: port to newer GCCs
1140         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
1141         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
1142         Problem reported by Jim Meyering in
1143         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00121.html>.
1144         Also, rename the 'test' function to a void a clash with the
1145         already-supplied 'main' function; this fixes a bug that incorrectly
1146         rejected GCC 4.7.1's <stdnoreturn.h>.
1147         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
1148         Document GCC problem.
1149
1150 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
1151
1152         pipe-filter: fix comment typo
1153         * lib/pipe-filter.h: Mention correct function.
1154
1155 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
1156
1157         execinfo: new module
1158         This is for Emacs.  Currently, it provides a no-effect stub
1159         on all platforms where it does not already work.
1160         It already works on glibc-based systems, and on Solaris 11.
1161         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
1162         New files.
1163         * doc/glibc-headers/execinfo.texi (execinfo.h):
1164         * MODULES.html.sh (Misc): Document it.
1165
1166 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
1167
1168         extern-inline: support old GCC 'inline'
1169         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
1170         if available.  This applies to GCC versions 2.7 through 4.2, or
1171         when newer GCC is using -fgnu89-inline.  The goal is to address
1172         some of the performance issues mentioned by Bruno Haible in
1173         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00097.html>.
1174
1175 2012-08-20  Eric Blake  <eblake@redhat.com>
1176
1177         maint.mk: avoid redundant file name in message
1178         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
1179         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
1180         (sc_makefile_path_separator_check): Remove bogus $(ME).
1181
1182 2012-08-20  Mike Frysinger <vapier@gentoo.org>
1183
1184         timer-time: fix link order when static linking on glibc
1185         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
1186         _after_ -lrt so that it's significant.
1187
1188 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
1189
1190         timespec: omit unnecessary AC_C_INLINE
1191         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
1192
1193         stat-time: omit unnecessary AC_C_INLINE
1194         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
1195         Do not require AC_C_INLINE.
1196
1197         ignore-value: omit unnecessary AC_C_INLINE
1198         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
1199
1200         sys_select: avoid 'static inline'
1201         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
1202
1203         mktime: avoid 'static inline'
1204         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
1205         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
1206
1207 2012-08-19  Bruno Haible  <bruno@clisp.org>
1208
1209         gnulib-tool: Improve coding style.
1210         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
1211         func_emit_lib_Makefile_am.
1212         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
1213
1214 2012-08-19  Bruno Haible  <bruno@clisp.org>
1215
1216         gnulib-tool: Fix indentation.
1217         * gnulib-tool (func_import): Fix indentation.
1218
1219 2012-08-19  Bruno Haible  <bruno@clisp.org>
1220
1221         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
1222         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
1223         on the list of removed files.
1224
1225 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
1226
1227         test-parse-datetime: avoid glibc leap-second glitch
1228         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
1229         with the 2012 rules.  Problem reported by Bruce Dubbs in
1230         <http://bugs.gnu.org/12206>.
1231
1232 2012-08-14  Bruno Haible  <bruno@clisp.org>
1233
1234         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
1235         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
1236         from argument.
1237         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
1238
1239 2012-08-14  Eric Blake  <eblake@redhat.com>
1240
1241         ldexp: relax license
1242         * modules/ldexp (License): Trivial relax, since the module only
1243         provides a permissively licensed m4 file.
1244
1245 2012-08-13  Bruno Haible  <bruno@clisp.org>
1246
1247         gnulib-tool: Fix persistence of --witness-c-macro option.
1248         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
1249         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
1250
1251 2012-08-11  Eric Blake  <eblake@redhat.com>
1252
1253         count-leading-zeros: use a lookup table on non-gcc compilers
1254         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
1255         alternate implementation, suggested by Jim Meyering.
1256
1257 2012-08-10  Eric Blake  <eblake@redhat.com>
1258
1259         count-leading-zeros: new module
1260         * modules/count-leading-zeros: New module.
1261         * m4/count-leading-zeros.m4: New file.
1262         * lib/count-leading-zeros.h: Likewise.
1263         * modules/count-leading-zeros-tests: New test.
1264         * tests/test-count-leading-zeros.c: New file.
1265         * MODULES.html.sh (Integer arithmetic functions): Document it.
1266
1267 2012-08-07  Simon Josefsson  <simon@josefsson.org>
1268             Jim Meyering  <meyering@redhat.com>
1269
1270         maintainer-makefile: Fix syntax error with dash.
1271         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
1272         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
1273
1274 2012-08-05  Jim Meyering  <meyering@redhat.com>
1275
1276         extern-inline: also ignore -Wmissing-declarations
1277         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
1278         required with gcc-4.8.0-to-be.
1279
1280         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
1281         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
1282         for /error ?([^,]*)/.  This avoids false-positives for strings like
1283         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
1284
1285 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
1286
1287         gnumakefile: better interaction with Automake-NG
1288         * modules/gnumakefile [Makefile.am]: The makefiles generated by
1289         Automake-NG always contain a definition of VPATH, even in non-VPATH
1290         builds (its value being simply '.' in that case).  So, in the
1291         'clean-GNUmakefile' rule, to determine whether running under a
1292         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
1293         '$(VPATH)' expands to the empty string.
1294
1295 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
1296
1297         base64: Use extern C scope in header file, for C++.
1298         * lib/base64.h: Add C++ namespace protection.
1299
1300 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
1301
1302         stat-time, timespec, u64: support naive out-of-dir builds
1303         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
1304         Use '#include "foo.h"', not '#include <foo.h>', when including
1305         one's own interface.  This works better when configuring with
1306         out-of-directory builds, since packages need not add an
1307         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
1308
1309 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
1310
1311         utimens: use extern-inline
1312         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
1313         * lib/utimens.h: Add copyright notice, since this is now large enough
1314         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1315         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
1316         * modules/utimens (Depends-on): Add extern-inline.
1317
1318         u64: use extern-inline
1319         * lib/u64.c: New file.
1320         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1321         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
1322         * modules/u64 (Files): Add lib/u64.c.
1323         (Depends-on): Add extern-inline.
1324         (configure.ac): No need to require AC_C_INLINE, since extern-inline
1325         does that now.
1326         (lib_SOURCES): Add u64.c.
1327
1328         timespec: use extern-inline
1329         * lib/timespec.c: New file.
1330         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1331         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
1332         * modules/timespec (Files): Add lib/timespec.c.
1333         (Depends-on): Add extern-inline.
1334         (lib_SOURCES): Add timespec.c.
1335
1336         stat-time: use extern-inline
1337         * lib/stat-time.c: New file.
1338         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1339         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
1340         * modules/stat-time (Files): Add lib/stat-time.c.
1341         (Depends-on): Add extern-inline.
1342         (lib_SOURCES): Add stat-time.c.
1343
1344         extern-inline: new module
1345         * modules/extern-inline, m4/extern-inline.m4: New files.
1346         This is for better support of 'extern inline' a la ISO C99,
1347         with a portable alternative on compilers that do not support
1348         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
1349         of the Emacs executable, when compiled with debugging disabled,
1350         which is a typical way that Emacs is built while developing.
1351
1352 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
1353
1354         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
1355         * build-aux/do-release-commit-and-tag: Move variable definitions
1356         together.
1357         ($branch): Instead of defaulting to "master", default to the current
1358         branch (as gnu-web-doc-update does).
1359         (help): Display the current values of the option arguments.
1360         * top/maint.mk (release-commit): New.
1361         * top/README-release: Simplify the corresponding step.
1362
1363 2012-07-30  Eric Blake  <eblake@redhat.com>
1364
1365         passfd: fix comment on recvfd
1366         * lib/passfd.c (recvfd): Fix comment.
1367         Reported by Jann Horn <jannhorn@googlemail.com>.
1368
1369 2012-07-30  Jim Meyering  <meyering@redhat.com>
1370
1371         maint.mk: avoid a sub-shell
1372         * top/maint.mk (release-prep): Remove unneeded sub-shell.
1373
1374 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
1375
1376         maint.mk: use silent-rules support from Automake
1377         * top/maint.mk (news-check, vc-diff-check, announcement)
1378         (no-submodule-changes, alpha beta stable, release-prep)
1379         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
1380
1381 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
1382
1383         maint.mk: provide a web-manual-update target
1384         * top/maint.mk: here.
1385         * top/README-release: Use it to simplify the web manual update step.
1386
1387 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
1388
1389         README-release: shorten the circuit to post a news
1390         * top/README-release: Point directly to the news submission form.
1391
1392 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
1393
1394         gnu-web-doc-update: fix --help
1395         * build-aux/gnu-web-doc-update: The information "top level" was written
1396         twice.
1397
1398 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
1399
1400         maint.mk: absolute VPATH issue
1401         * top/maint.mk (release-prep): Help Git find .git/.
1402         From Jim Meyering.
1403
1404 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
1405
1406         gitlog-to-changelog: fix previous change
1407         * build-aux/gitlog-to-changelog: Fix condition.
1408         Add missing ";".
1409
1410 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
1411
1412         gitlog-to-changelog: don't expect .git to be in $srcdir
1413         Reported by Bruno Haible.
1414         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00265.html>
1415         * build-aux/gitlog-to-changelog (&git_dir_option): New.
1416         Use it.
1417
1418 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
1419
1420         maint.mk: absolute VPATH build fix
1421         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
1422         $(srcdir) is not a parent of $(builddir).
1423
1424 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
1425
1426         clean-temp: Fix memory leak.
1427         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
1428         'files' members of tmpdir.
1429
1430 2012-07-27  Jim Meyering  <meyering@redhat.com>
1431
1432         maint.mk: new rule: refresh-gnulib-patches
1433         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
1434         Use this rule to refresh them.
1435         * top/maint.mk (refresh-gnulib-patches): New rule.
1436
1437 2012-07-24  Bruno Haible  <bruno@clisp.org>
1438
1439         gnulib-tool: Fix handling of inctests variable.
1440         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
1441         Reported by Nick Bowler <nbowler@elliptictech.com>.
1442
1443 2012-07-22  Bruno Haible  <bruno@clisp.org>
1444
1445         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
1446         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
1447         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
1448         Remove exemption for getpass.h.
1449         Suggested by Eric Blake.
1450
1451 2012-07-20  Eric Blake  <eblake@redhat.com>
1452
1453         verify: document conflict with -Wnested-externs
1454         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
1455
1456         maint.mk: forbid exit(-1)
1457         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
1458
1459 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
1460
1461         fsusage: port back to Solaris
1462         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
1463         error (fsd not declared) on Solaris 10.  Reported privately by
1464         Andrew Borodin.
1465
1466 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
1467
1468         gnu-web-doc-update: fix error messages
1469         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
1470
1471         gnu-web-doc-update: check the requirements.
1472         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
1473         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
1474         * build-aux/bootstrap (find_tool): Comment change.
1475
1476 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
1477
1478         maint.mk: minor simplication.
1479         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
1480         for default values.
1481
1482 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
1483
1484         gitlog-to-changelog: VPATH build issues
1485         If builddir is not a subdirectory of srcdir, running git from it will
1486         fail.
1487         * build-aux/gitlog-to-changelog (--srcdir): New option.
1488
1489 2012-07-15  Bruno Haible  <bruno@clisp.org>
1490
1491         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
1492         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
1493         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
1494         Remove exemption for fpending.h.
1495         Suggested by Eric Blake.
1496
1497 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
1498
1499         pthread_sigmask: fix bug on FreeBSD 9
1500         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
1501         Include string.h.
1502         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
1503         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
1504         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
1505         but pthread_sigmask (1729, NULL, NULL) returns zero.
1506         See <http://bugs.gnu.org/11884>.
1507         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
1508         by inspecting whether the main call changed the old mask.
1509
1510 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
1511
1512         README-release: make it more legible
1513         * top/README-release: Improve typography slightly.
1514
1515 2012-07-15  Jim Meyering  <meyering@redhat.com>
1516
1517         maint: require that each sc_... command start with "@"
1518         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
1519         "make sc_maint" helps us avoid this nit.
1520
1521 2012-07-15  Jim Meyering  <meyering@redhat.com>
1522
1523         maint.mk: add leading "@" to quiet new "make syntax-check" rule
1524         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
1525
1526 2012-07-13  Eric Blake  <eblake@redhat.com>
1527
1528         maint.mk: new syntax check for HAVE_DECL checks
1529         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
1530         * cfg.mk
1531         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
1532         Exempt some false positives.
1533         Based on a report by Karel Zak.
1534
1535         argp: make HAVE_DECL usage consistent
1536         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
1537         macros, not whether they are defined.
1538         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
1539         convention with other declaration checks.
1540         Reported by Karel Zak, with suggestions from Paul Eggert.
1541
1542         stat-time: relax license to LGPLv2+
1543         * modules/stat-time (License): Relax, with consent of all authors.
1544
1545         strndup: fix m4 usage error
1546         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
1547         defined, to either 0 or 1.
1548         Reported by Karel Zak.
1549
1550 2012-07-11  Jim Meyering  <meyering@redhat.com>
1551
1552         maint: enable the sc_avoid_if_before_free syntax-check rule
1553         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
1554         (if_before_free_offenders_): Define.
1555         (if_before_free_basename_re_): Define.
1556         Exempt current files with useless if-before-free.
1557
1558 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
1559
1560         gettext: do not assume '#define ... defined ...' behavior
1561         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
1562         Do not use '#define FOO ... defined BAR ...', as the C standard says
1563         it's not portable to expect that this works after macro expansion.
1564         Problem reported for gzip by Steven M. Schweda in
1565         <http://lists.gnu.org/archive/html/bug-gzip/2012-07/msg00000.html>.
1566
1567 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
1568
1569         getloadavg: clean out old Emacs and Autoconf cruft
1570         See Glenn Morris in <http://bugs.gnu.org/11905>.
1571         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
1572         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
1573         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
1574         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
1575
1576 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
1577
1578         bootstrap: let warn be like tests/init.sh's warn_
1579         Reported by Jim Meyering.
1580         * build-aux/bootstrap (warn): Remove, replaced by...
1581         (warnf_, warn_): these.
1582         Adjust callers.
1583         Shorten messages that no longer fit in 80 columns.
1584
1585 2012-07-09  Bruno Haible  <bruno@clisp.org>
1586
1587         getopt: Simplify after Emacs changed.
1588         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
1589         (gl_GETOPT_IFELSE): Remove macro.
1590
1591 2012-07-09  Jim Meyering  <meyering@redhat.com>
1592
1593         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
1594         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
1595
1596         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
1597         Bugs in both of those conspired to make the
1598         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
1599         _sc_search_regexp's handling of non-empty $in_files would filter
1600         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
1601         choice of in_files value meant there would be no match in most
1602         projects, due to the presence of two or more Makefile.in files.
1603         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
1604         Fix a bug in how a non-empty $$in_files was processed:
1605         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
1606         in spite of the name, it's a regexp, not a list of file names.
1607
1608 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
1609
1610         getloadavg, getopt: fix commentary re configure.in
1611         Autoconf is deprecating the name 'configure.in', so change it to
1612         to the new name 'configure.ac' in a couple of places.
1613         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
1614         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
1615         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
1616         Emacs has renamed it to configure.ac, and it no longer refers
1617         to these macros anyway.
1618
1619         timespec: mark functions with const attributes
1620         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
1621         Mark with _GL_ATTRIBUTE_CONST.
1622
1623 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
1624
1625         canonicalize[-lgpl]: handle "guessing" values when cross-building
1626         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
1627         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
1628         matches "*yes" instead of just "yes".  Regression introduced in commit
1629         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
1630
1631 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
1632             Bruno Haible  <bruno@clisp.org>
1633
1634         canonicalize: make the right guess when cross-compiling to GNU
1635         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
1636         determine whether cross-compiling to glibc systems, so as to
1637         include GNU/Hurd.
1638
1639 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
1640
1641         timespec-sub: avoid duplicate include
1642         * lib/timespec-sub.c: Do not include <config.h> twice.
1643         Reported by Juanma Barranquero.
1644
1645 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
1646
1647         bootstrap: use a more consistent error reporting scheme
1648         * build-aux/bootstrap (warn, die): New.
1649         Use them.
1650
1651 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
1652
1653         sys_time: allow too-wide tv_sec
1654         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
1655         timeval even if tv_sec is wider than time_t.  This allows
1656         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
1657         as without this patch gnulib replaces struct timeval
1658         and OpenBSD futimes therefore has a type mismatch.
1659         * doc/posix-headers/sys_time.texi: Mention this.
1660
1661         pthread: check for both pthread_create and pthread_join
1662         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
1663         alter the check so that it tests for both pthread_create and
1664         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
1665         Suggested by Bruno Haible and Richard Yao in
1666         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00048.html>.
1667
1668         parse-datetime: doc tuneup
1669         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
1670         spacing issues.
1671
1672 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
1673
1674         do-release-commit-and-tag: fix the previous commit
1675         * build-aux/do-release-commit-and-tag: Actually the test was right,
1676         but the comment and the error message were misleading.
1677         Fix comment, and improve error message.
1678         Perform check first, so that NEWS is not modified uselessly.
1679
1680         do-release-commit-and-tag: fix typo
1681         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
1682         _not_ start with a stub.
1683
1684 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
1685
1686         pthread: check for pthread_create, not pthread_join
1687         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
1688         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
1689         pthread_join in libc.  I hope this removes the need for all the
1690         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
1691         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00042.html>.
1692
1693 2012-07-04  Jim Meyering  <meyering@redhat.com>
1694
1695         parse-datetime: fix failure to diagnose invalid input
1696         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
1697         rather than diagnosing the invalid input.  Now it reports this:
1698         date: invalid date '\260'
1699         * lib/parse-datetime.y (to_uchar): Define.
1700         (yylex): Don't sign-extend "other" bytes.
1701         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
1702         Thanks to Bruno Haible for the patch to this file.
1703         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
1704         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
1705
1706 2012-07-03  Jim Meyering  <meyering@redhat.com>
1707
1708         bootstrap: do not require now-removed build-aux/missing
1709         Now that build-aux/missing is, er, missing, bootstrap would
1710         silently fail.
1711         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
1712         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
1713         no longer part of gnulib.
1714         Diagnose the failure.
1715
1716 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
1717
1718         alloca: add support for HP NonStop TNS/E native
1719         * lib/alloca.in.h (alloca): Support the new host.
1720         From a suggestion by Joachim Schmitz in
1721         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00355.html>.
1722
1723 2012-07-02  Pádraig Brady  <P@draigBrady.com>
1724
1725         fsusage: remove code not needed on non GNU/Linux systems.
1726
1727         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
1728         Don't include headers no longer needed in this case.
1729         * lib/fsusage.c [STAT_STATVFS &&
1730         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
1731         STAT_STATFS2_FRSIZE to exclude code not used in this case.
1732
1733 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
1734
1735         fsusage: include files needed for glibc 2.6 fallback
1736         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
1737         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
1738         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
1739         Problem reported by Ludovic Courtès in
1740         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00005.html>.
1741
1742         fsusage: avoid needless check on GNU/Linux
1743         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
1744         on GNU/Linux systems, since it can't possibly work.
1745
1746 2012-07-01  Bruno Haible  <bruno@clisp.org>
1747
1748         log: Fix an autoconf >= 2.64 warning.
1749         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
1750         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
1751
1752 2012-06-28  Bruno Haible  <bruno@clisp.org>
1753
1754         log10f: Fix possible configuration problem.
1755         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
1756         $LOGF_LIBM.
1757         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
1758
1759 2012-06-28  Bruno Haible  <bruno@clisp.org>
1760
1761         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
1762         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
1763         not gl_cv_func_unlink_works.
1764         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
1765
1766 2012-06-27  Eric Blake  <eblake@redhat.com>
1767
1768         config: drop scripts that automake says are not independent
1769         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
1770         * build-aux/elisp-comp: Delete.
1771         * build-aux/missing: Likewise.
1772         * build-aux/ylwrap: Likewise.
1773         * modules/elisp-comp: Likewise.
1774         * MODULES.html.sh: Drop mention of elisp-comp.
1775         * NEWS: Mention this.
1776
1777 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
1778
1779         root-uid: new module
1780         This is for portability to Tandem's NonStop Kernel.
1781         * lib/root-uid.h, modules/root-uid: New files.
1782         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
1783         * lib/write-any-file.c, tests/test-sethostname2.c:
1784         Include "root-uid.h".
1785         * lib/euidaccess.c (euidaccess):
1786         * lib/pt_chown.c (main):
1787         * lib/unlinkdir.c (cannot_unlink_dir):
1788         * lib/write-any-file.c (can_write_any_file):
1789         * m4/mknod.m4 (gl_FUNC_MKNOD):
1790         * tests/test-sethostname2.c (geteuid, main):
1791         Don't assume ROOT_UID == 0.
1792         * modules/euidaccess (Depends-on):
1793         * modules/pt_chown (Depends-on):
1794         * modules/sethostname-tests (Depends-on):
1795         * modules/unlinkdir (Depends-on):
1796         * modules/write-any-file (Depends-on):
1797         Add root-uid.
1798
1799         regex: use locale-independent comparison for codeset name
1800         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
1801         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
1802         for codeset name.
1803         * lib/regex_internal.h: Do not include <strings.h>, since we
1804         no longer use strcasecmp.
1805         * modules/regex (Depends-on): Remove strcase.
1806
1807 2012-06-23  Bruno Haible  <bruno@clisp.org>
1808
1809         getopt-posix: No longer guarantee that option processing is resettable.
1810         * doc/posix-functions/getopt.texi: Drop description of problem with
1811         internal state. Fix info about mingw and msvc9.
1812         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
1813         option processing by getopt(). Run three test programs instead of one.
1814         Simplify cross-compilation guess.
1815         * NEWS: Mention the change.
1816         Reported by Rich Felker <dalias@aerifal.cx>.
1817
1818 2012-06-26  Bruno Haible  <bruno@clisp.org>
1819
1820         argp, regex: Ensure strcasecmp gets declared.
1821         * lib/argp-help.c: Include <strings.h>.
1822         * lib/regex_internal.h: Likewise.
1823         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
1824
1825 2012-06-24  Bruno Haible  <bruno@clisp.org>
1826
1827         ptsname_r: Make it consistent with ptsname on AIX.
1828         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
1829         implementation as for OSF/1.
1830         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
1831         a pty master.
1832
1833         ptsname_r: Make it consistent with ptsname on OSF/1.
1834         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
1835         OSF/1.
1836
1837 2012-06-24  Bruno Haible  <bruno@clisp.org>
1838
1839         ttyname_r: Fix result on OSF/1, Solaris.
1840         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
1841
1842 2012-06-24  Bruno Haible  <bruno@clisp.org>
1843
1844         ptsname_r: Add support for Solaris.
1845         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
1846         Solaris.
1847
1848         ptsname_r: Fix test failure on native Windows.
1849         * modules/ptsname_r (Depends-on): Add isatty.
1850
1851         ptsname_r: Fix test failures on IRIX, Solaris.
1852         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
1853         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
1854         accordingly.
1855         * lib/ptsname_r.c: Include <fcntl.h>.
1856         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
1857         set errno if fd is invalid.
1858         * tests/test-isatty.c (main): Update comments.
1859
1860 2012-06-24  Bruno Haible  <bruno@clisp.org>
1861
1862         ptsname test: Extend test.
1863         * tests/test-ptsname.c: Include <errno.h>.
1864         (main): Test behaviour with invalid file descriptor.
1865
1866 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
1867
1868         time: fix obsolete comment
1869         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
1870         reference to HAVE_STRUCT_TIMESPEC in comment.
1871
1872 2012-06-23  Bruno Haible  <bruno@clisp.org>
1873
1874         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
1875         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
1876         does not handle abbreviated long options with equivalent
1877         disambiguations, set gl_replace_getopt to yes.
1878         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
1879
1880 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
1881
1882         time_r: fix typo that always overrode localtime_r decl
1883         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
1884         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
1885         not in a standard include.
1886
1887 2012-06-22  Bruno Haible  <bruno@clisp.org>
1888
1889         Write "Mac OS X" instead of "MacOS X".
1890         * README: Write "Mac OS X" instead of "MacOS X".
1891         * build-aux/bootstrap: Likewise.
1892         * build-aux/install-reloc: Likewise.
1893         * lib/acl-internal.h: Likewise.
1894         * lib/acl_entries.c: Likewise.
1895         * lib/argp-ba.c: Likewise.
1896         * lib/argp-pv.c: Likewise.
1897         * lib/config.charset: Likewise.
1898         * lib/copy-acl.c: Likewise.
1899         * lib/csharpexec.c: Likewise.
1900         * lib/euidaccess.c: Likewise.
1901         * lib/fbufmode.c: Likewise.
1902         * lib/fflush.c: Likewise.
1903         * lib/file-has-acl.c: Likewise.
1904         * lib/filemode.h: Likewise.
1905         * lib/fpurge.c: Likewise.
1906         * lib/freadable.c: Likewise.
1907         * lib/freadahead.c: Likewise.
1908         * lib/freading.c: Likewise.
1909         * lib/freadptr.c: Likewise.
1910         * lib/freadseek.c: Likewise.
1911         * lib/fseeko.c: Likewise.
1912         * lib/fseterr.c: Likewise.
1913         * lib/fsusage.c: Likewise.
1914         * lib/fwritable.c: Likewise.
1915         * lib/fwriting.c: Likewise.
1916         * lib/get-rusage-as.c: Likewise.
1917         * lib/get-rusage-data.c: Likewise.
1918         * lib/getdomainname.c: Likewise.
1919         * lib/idpriv-drop.c: Likewise.
1920         * lib/idpriv-droptemp.c: Likewise.
1921         * lib/localcharset.c: Likewise.
1922         * lib/locale.in.h: Likewise.
1923         * lib/localename.c: Likewise.
1924         * lib/mbsrtowcs-state.c: Likewise.
1925         * lib/nproc.c: Likewise.
1926         * lib/passfd.c: Likewise.
1927         * lib/posix_openpt.c: Likewise.
1928         * lib/printf-parse.c: Likewise.
1929         * lib/progreloc.c: Likewise.
1930         * lib/safe-read.h: Likewise.
1931         * lib/safe-write.h: Likewise.
1932         * lib/sched.in.h: Likewise.
1933         * lib/set-mode-acl.c: Likewise.
1934         * lib/signal.in.h: Likewise.
1935         * lib/stdint.in.h: Likewise.
1936         * lib/stdio-impl.h: Likewise.
1937         * lib/stdlib.in.h: Likewise.
1938         * lib/strtod.c: Likewise.
1939         * lib/sys_select.in.h: Likewise.
1940         * lib/tcgetsid.c: Likewise.
1941         * lib/unistd.in.h: Likewise.
1942         * lib/unlockpt.c: Likewise.
1943         * lib/vasnprintf.c: Likewise.
1944         * lib/vma-iter.c: Likewise.
1945         * lib/wcsrtombs-state.c: Likewise.
1946         * m4/acl.m4: Likewise.
1947         * m4/acosl.m4: Likewise.
1948         * m4/asinl.m4: Likewise.
1949         * m4/atanl.m4: Likewise.
1950         * m4/c-stack.m4: Likewise.
1951         * m4/cosl.m4: Likewise.
1952         * m4/expl.m4: Likewise.
1953         * m4/extensions.m4: Likewise.
1954         * m4/fdatasync.m4: Likewise.
1955         * m4/fmal.m4: Likewise.
1956         * m4/frexp.m4: Likewise.
1957         * m4/frexpf.m4: Likewise.
1958         * m4/frexpl.m4: Likewise.
1959         * m4/fsusage.m4: Likewise.
1960         * m4/getdomainname.m4: Likewise.
1961         * m4/getloadavg.m4: Likewise.
1962         * m4/getopt.m4: Likewise.
1963         * m4/gettext.m4: Likewise.
1964         * m4/gnulib-common.m4: Likewise.
1965         * m4/intdiv0.m4: Likewise.
1966         * m4/intlmacosx.m4: Likewise.
1967         * m4/largefile.m4: Likewise.
1968         * m4/ldexpl.m4: Likewise.
1969         * m4/link-follow.m4: Likewise.
1970         * m4/locale-ar.m4: Likewise.
1971         * m4/locale-fr.m4: Likewise.
1972         * m4/locale-ja.m4: Likewise.
1973         * m4/locale-tr.m4: Likewise.
1974         * m4/locale-zh.m4: Likewise.
1975         * m4/locale_h.m4: Likewise.
1976         * m4/lock.m4: Likewise.
1977         * m4/logl.m4: Likewise.
1978         * m4/mathfunc.m4: Likewise.
1979         * m4/minus-zero.m4: Likewise.
1980         * m4/mktime.m4: Likewise.
1981         * m4/mmap-anon.m4: Likewise.
1982         * m4/multiarch.m4: Likewise.
1983         * m4/nanosleep.m4: Likewise.
1984         * m4/nocrash.m4: Likewise.
1985         * m4/poll.m4: Likewise.
1986         * m4/printf-frexpl.m4: Likewise.
1987         * m4/printf.m4: Likewise.
1988         * m4/signbit.m4: Likewise.
1989         * m4/sinl.m4: Likewise.
1990         * m4/sqrtl.m4: Likewise.
1991         * m4/strerror_r.m4: Likewise.
1992         * m4/tanl.m4: Likewise.
1993         * m4/threadlib.m4: Likewise.
1994         * m4/ttyname_r.m4: Likewise.
1995         * m4/unlink.m4: Likewise.
1996         * m4/visibility.m4: Likewise.
1997         * m4/wcwidth.m4: Likewise.
1998         * tests/minus-zero.h: Likewise.
1999         * tests/test-alloca-opt.c: Likewise.
2000         * tests/test-copy-acl.sh: Likewise.
2001         * tests/test-copy-file.sh: Likewise.
2002         * tests/test-fdatasync.c: Likewise.
2003         * tests/test-file-has-acl.sh: Likewise.
2004         * tests/test-flock.c: Likewise.
2005         * tests/test-fsync.c: Likewise.
2006         * tests/test-localename.c: Likewise.
2007         * tests/test-malloca.c: Likewise.
2008         * tests/test-nonblocking-pipe.h: Likewise.
2009         * tests/test-nonblocking-socket.h: Likewise.
2010         * tests/test-openpty.c: Likewise.
2011         * tests/test-posix_openpt.c: Likewise.
2012         * tests/test-ptsname.c: Likewise.
2013         * tests/test-ptsname_r.c: Likewise.
2014         * tests/test-sameacls.c: Likewise.
2015         * tests/test-select.h: Likewise.
2016         * tests/test-set-mode-acl.sh: Likewise.
2017         * tests/test-snprintf-posix.h: Likewise.
2018         * tests/test-sprintf-posix.h: Likewise.
2019         * tests/test-strtod.c: Likewise.
2020         * tests/test-time.c: Likewise.
2021         * tests/test-vasnprintf-posix.c: Likewise.
2022         * tests/test-vasprintf-posix.c: Likewise.
2023         * doc/acl-resources.txt: Likewise.
2024         * doc/**/*.texi: Likewise.
2025         Reported by Max Horn <max@quendi.de>.
2026
2027 2012-06-22  Bruno Haible  <bruno@clisp.org>
2028
2029         grantpt: Relax requirement regarding invalid file descriptors.
2030         * lib/grantpt.c: Don't include <fcntl.h>.
2031         (grantpt): Don't verify the validity of the file descriptor.
2032         * modules/grantpt (Depends-on): Remove fcntl-h.
2033         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
2034         file descriptors.
2035         * doc/posix-functions/grantpt.texi: Document more platforms on which
2036         grantpt succeeds for invalid file descriptors.
2037         Reported by Rich Felker <dalias@aerifal.cx>.
2038
2039 2012-06-22  Bruno Haible  <bruno@clisp.org>
2040
2041         fbufmode test: Don't test unportable behaviour.
2042         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
2043         (main): Invoke it three times.
2044         Reported by Szabolcs Nagy <nsz@port70.net>
2045         and Rich Felker <dalias@aerifal.cx>.
2046
2047 2012-06-21  Bruno Haible  <bruno@clisp.org>
2048
2049         gnulib-tool: Refactor inctests variable.
2050         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
2051         (func_modules_transitive_closure,
2052         func_modules_transitive_closure_separately,
2053         func_import, func_create_testdir): Update.
2054
2055         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
2056         * gnulib-tool: Accept option --without-tests.
2057         (func_usage): Document --without-tests option. Rearrange.
2058         (inctests): Normalize according to the mode.
2059         * NEWS: Mention the change.
2060         Suggested by Simon Josefsson.
2061
2062 2012-06-21  Bruce Korb  <bkorb@gnu.org>
2063
2064         parse-duration test: Avoid spurious output.
2065         * tests/test-parse-duration.sh: Reindent with leading tabs.
2066
2067 2012-06-21  Jim Meyering  <meyering@redhat.com>
2068
2069         maint: disable the strncpy prohibition
2070         * cfg.mk: Do not prohibit strncpy here.
2071
2072 2012-06-21  Bruno Haible  <bruno@clisp.org>
2073
2074         nonblocking: Avoid compilation error on mingw64.
2075         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
2076         fscanf.
2077         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
2078         * modules/vfscanf (configure.ac): Likewise.
2079         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
2080         definition only if stdio.h has prepared it.
2081         Reported by Daniel P. Berrange <berrange@redhat.com>.
2082
2083 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
2084
2085         gnulib-tool: Use readlink if it is available.
2086         * gnulib-tool (func_readlink): Choose function more appropriately.
2087
2088 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
2089
2090         posixtm-tests: port to buggy compiler
2091         Problem reported by Simon Josefsson in
2092         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00246.html>.
2093         * modules/posixtm-tests (Depends-on): Add stdint.
2094         * tests/test-posixtm.c (struct posixtm_test.t_expected):
2095         Now of type int_least64_t, not int64_t, both because that's
2096         what INT64_C returns and because int_least64_t works even
2097         on 72-bit hosts.
2098         (T): Use INT64_C on constants outside the traditional int range,
2099         to work around compiler bug noted by Simon.
2100
2101         mktime: fix integer overflow in 'configure'-time test
2102         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
2103         after integer overflow.  Problem reported by Rich Felker in
2104         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00257.html>.
2105         Also, don't look for further instances of a bug if we've already
2106         found one instance; this helps 'configure' run faster.
2107
2108 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
2109
2110         tmpfile, clean-temp: Fix invocation of GetVersionEx.
2111         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
2112         GetVersionEx correctly.
2113         * lib/clean-temp.c (supports_delete_on_close): Likewise.
2114
2115 2012-06-20  Bruno Haible  <bruno@clisp.org>
2116
2117         fdopen: Allow implementations that don't reject invalid fd arguments.
2118         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
2119         succeeds.
2120         Reported by Rich Felker <dalias@aerifal.cx>.
2121
2122 2012-06-20  Simon Josefsson  <simon@josefsson.org>
2123
2124         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
2125         bring in LIBINTL.
2126
2127 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
2128
2129         init.sh: do not rely on autoupated PWD
2130         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
2131         <http://lists.gnu.org/archive/html/bug-gzip/2012-06/msg00008.html>.
2132         Although Nelson's bug was not necessarily fixed by this patch,
2133         it seems wise to make the change for safety.
2134         * tests/init.sh (path_prepend_): Do not rely on PWD updating
2135         automagically after 'cd'; this is not reliable on older shells.
2136         (setup_): Fail if we cannot cd to temporary directory.
2137
2138 2012-06-19  Bruno Haible  <bruno@clisp.org>
2139
2140         stat, fstat: Avoid warnings on mingw64.
2141         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
2142         redefining.
2143         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
2144         Reported by Daniel P. Berrange <berrange@redhat.com>.
2145
2146 2012-06-19  Bruno Haible  <bruno@clisp.org>
2147
2148         stdioext: Add support for musl libc.
2149
2150         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
2151         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
2152
2153         * m4/fseterr.m4: New file.
2154         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
2155         function exists.
2156         * modules/fseterr (Files): Add m4/fseterr.m4.
2157         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
2158         __fseterr does not exist.
2159         (Makefile.am): Remove fseterr.c from lib_SOURCES.
2160
2161         * lib/freadable.h: Update comment.
2162
2163         * lib/fwritable.h: Update comment.
2164
2165         * lib/freading.h: Update comment.
2166
2167         * lib/fwriting.h: Update comment.
2168
2169         * m4/freadahead.m4: New file.
2170         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
2171         that function exists.
2172         * modules/freadahead (Files): Add m4/freadahead.m4.
2173         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
2174         __freadahead does not exist.
2175         (Makefile.am): Remove freadahead.c from lib_SOURCES.
2176
2177         * m4/freadptr.m4: New file.
2178         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
2179         function exists.
2180         * modules/freadptr (Files): Add m4/freadptr.m4.
2181         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
2182         __freadptr does not exist.
2183         (Makefile.am): Remove freadptr.c from lib_SOURCES.
2184
2185         * m4/freadseek.m4: New file.
2186         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
2187         exists.
2188         * modules/freadseek (Files): Add m4/freadseek.m4.
2189         (configure.ac): Invoke gl_FUNC_FREADSEEK.
2190
2191         * lib/fpurge.c (fpurge): Update comment.
2192
2193         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
2194
2195 2012-06-19  Bruno Haible  <bruno@clisp.org>
2196
2197         *printf-posix: Put more info into config.log.
2198         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
2199         exit code into config.log.
2200
2201 2012-06-19  Bruno Haible  <bruno@clisp.org>
2202
2203         getopt-gnu: Fix exit code overflow in autoconf test.
2204         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
2205         to keep them below < 128.
2206
2207 2012-06-17  Jim Meyering  <meyering@redhat.com>
2208
2209         maint.mk: fix typo in code to derive GPG key at release time
2210         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
2211
2212 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
2213
2214         regex: avoid warning when pointers are not long
2215         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
2216         and uintptr_t, not long, for portability to hosts where pointers and
2217         long have different sizes.  Issue noted by Daniel P. Berrange in
2218         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00122.html>
2219         and fix suggested by Bruno Haible in
2220         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00128.html>.
2221
2222 2012-06-17  Bruno Haible  <bruno@clisp.org>
2223
2224         dummy: Relicense into the public domain.
2225         * modules/dummy (License): Set to "public domain".
2226         Suggested by Reuben Thomas.
2227
2228 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
2229
2230         announce-gen: VPATH issues
2231         * build-aux/announce-gen (--srcdir): New option, used to trim the
2232         $srcdir part of the path from $builddir to NEWS.
2233         * top/maint.mk (announcement): Adjust.
2234
2235 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
2236
2237         gnu-web-doc-update: VPATH builds
2238         * build-aux/gnu-web-doc-update (--builddir): New option.
2239         Revamp the handling of options.
2240         Prefer $(...) to `...`.
2241         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
2242         the template, and it is GNU mktemp specific.
2243         Prefer set -e to long series of &&.
2244         Restore the initial git branch, not "master".
2245         Properly initialize submodules (don't rely only on bootstrap).
2246         Do not reconfigure blindly, use config.status.
2247         * top/README-release: Update instructions for gnu-web-doc-update.
2248
2249 2012-06-11  Jim Meyering  <meyering@redhat.com>
2250
2251         maint.mk: revert most of the previous change re "all these"
2252         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
2253         For rationale, see the discussion at
2254         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
2255
2256 2012-06-10  Karl Berry  <karl@gnu.org>
2257
2258         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
2259
2260         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
2261
2262 2012-06-10  Bruce Korb  <bkorb@gnu.org>
2263
2264         parse-duration: Relicense under LGPLv2+.
2265         * modules/parse-duration (License): Change to LGPLv2+.
2266
2267 2012-06-10  Jim Meyering  <meyering@redhat.com>
2268
2269         maint.mk: prohibit common grammar error: "all these"
2270         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
2271         the list of prohibited word sequences.  It should be "all of these".
2272         * lib/tempname.c (__gen_tempname): Fix one of them.
2273
2274 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
2275
2276         do-release-commit-and-tag: support VPATH builds
2277         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
2278         (noteworthy): Defined earlier to factor its value.
2279         (noteworthy_stub): New.
2280         Use it to factor.
2281         (help_version): Split into...
2282         (help, version): these.
2283         Adjust the option processing part.
2284         Support "--option=value" in addition to "--option value".
2285         (builddir): New.
2286         (--builddir): New option.
2287         * top/README-release: Document this.
2288         Reword slightly so that the reader cannot understand that he
2289         has to do these steps before calling do-release-commit-and-tag.
2290
2291 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
2292
2293         readme-release: also require announce-gen and maintainer-makefile
2294         * modules/readme-release (Depends-on): here.
2295         * modules/announce-gen, modules/do-release-commit-and-tag,
2296         modules/gnu-web-doc-update, modules/maintainer-makefile
2297         (Description): Point to readme-release.
2298
2299 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
2300
2301         maint.mk: fix VPATH issues.
2302         * top/maint.mk (news-check): GNU Make understand $< very well.
2303         (release-prep): NEWS is in $(srcdir).
2304
2305 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
2306
2307         readme-release: require the promoted modules.
2308         * modules/readme-release (Depends-on): Add
2309         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
2310         in this text.
2311
2312 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
2313             Bruno Haible  <bruno@clisp.org>
2314
2315         error, strerror-override: Support mingw64 from Fedora 17.
2316         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
2317         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
2318         EINPROGRESS.
2319         * lib/strerror-override.h (strerror_override): Test it.
2320         * lib/strerror-override.c (strerror_override): Likewise.
2321         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
2322
2323 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
2324             Bruno Haible  <bruno@clisp.org>
2325
2326         error, strerror-override: Support mingw64 from Fedora 17.
2327         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
2328         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
2329         * lib/strerror-override.h (strerror_override): Test it.
2330         * lib/strerror-override.c (strerror_override): Likewise.
2331
2332 2012-06-03  Bruno Haible  <bruno@clisp.org>
2333
2334         error, strerror-override: Support new errno values from POSIX:2008.
2335         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
2336         ENOTRECOVERABLE.
2337         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
2338         platforms.
2339         * lib/strerror-override.c (strerror_override): Conditionalize the
2340         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
2341         * lib/strerror-override.h (strerror_override): Declare also if
2342         GNULIB_defined_EOWNERDEAD is defined.
2343         * tests/test-errno.c (e130, e131): New variables.
2344         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
2345         ENOTRECOVERABLE.
2346         Reported by Paolo Bonzini.
2347
2348 2012-05-31  Jim Meyering  <meyering@redhat.com>
2349
2350         savewd: add missing dependency on sys_wait module
2351         * modules/savewd (Depends-on): Add sys_wait, needed at least
2352         for MSVC.  Report and suggested change by Michael Goffioul.
2353
2354 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
2355
2356         system-quote-tests: port to CentOS 5
2357         Problem reported by Tom G. Christensen in
2358         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00255.html>.
2359         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
2360
2361 2012-05-29  Jim Meyering  <meyering@redhat.com>
2362
2363         maint: fix typos in comments and ChangeLog
2364         Culprits identified and fixed mostly automatically using these commands:
2365         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
2366         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
2367         using http://github.com/lyda/misspell-check
2368         * ChangeLog: Fix typos.
2369         * doc/solaris-versions: Likewise.
2370         * lib/regexec.c (re_search_stub): Likewise.
2371         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
2372
2373 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
2374
2375         manywarnings: remove duplicate -Wmultichar entry
2376         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
2377         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
2378         so keep the entry marked as documented.
2379
2380 2012-05-27  Karl Berry  <karl@gnu.org>
2381
2382         * config/srclist.txt (mktime.c): remove last libc sync,
2383         perhaps just temporarily.
2384
2385 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
2386
2387         regex: don't assume uint64_t or uint32_t
2388         * lib/regcomp.c (init_word_char): Don't assume that the types
2389         uint64_t and uint32_t exist.  The C standard doesn't guarantee
2390         them, and on some 32-bit compilers there is no uint64_t.
2391         Problem reported by Gianluigi Tiesi in
2392         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html>.
2393
2394 2012-05-25  Jim Meyering  <meyering@redhat.com>
2395
2396         maint.mk: add strncpy-prohibiting syntax-check rule
2397         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
2398
2399 2012-05-24  Jim Meyering  <meyering@redhat.com>
2400
2401         maint.mk: compute $(gpg_key_ID) more portably
2402         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
2403         That use of sed is not portable to some fringe systems.
2404         Reported by Paul Eggert in
2405         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
2406
2407 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
2408
2409         mktime: sync from glibc
2410         * config/srclist.txt: Uncomment mktime.c.
2411         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
2412         First, indent with tabs, since glibc uses tabs and doesn't want to
2413         change and we'd rather be identical to glibc.  Also, two small
2414         coding changes:
2415         (isdst_differ): Use &&, not &, as && is the usual style.
2416         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
2417         for clarity.
2418
2419 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
2420
2421         announce-gen: du -h is more portable than du --human
2422         * build-aux/announce-gen (sizes): Invoke du with -h instead
2423         of --human.  Accept leading white space in its output.
2424
2425 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
2426
2427         announce-gen: Improve diagnostics.
2428         * build-aux/announce-gen: When parsing command line options,
2429         prefer "announce-gen: option --release-type requires an argument"
2430         to "Option release-type requires an argument".
2431
2432 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
2433
2434         maint.mk: gpg_key_ID: use sed more portably
2435         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
2436         the closing brace.
2437         (refresh-po): Fuse two sed invocations into one.
2438
2439 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
2440
2441         gitlog-to-changelog: support the log message format used in Bison.
2442         * build-aux/gitlog-to-changelog: Support --strip-tab and
2443         --strip-cherry-picked.
2444
2445 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
2446
2447         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
2448         the rest of the current time slice to another thread in the current
2449         process. So if the thread that feeds the file decscriptor we're
2450         polling is not in the current process, we get busy-waiting.
2451         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
2452         Patch from Theodore Leblond.
2453         * lib/select.c: Split polling out of the loop that sets the output
2454         fd_sets.  Check for zero result and loop if the wait timeout is
2455         infinite.
2456
2457 2012-05-21  Simon Josefsson  <simon@josefsson.org>
2458
2459         select: Fix build error on IRIX 6.5.
2460         * lib/select.c: Include stddef.h for NULL.
2461
2462 2012-05-21  Simon Josefsson  <simon@josefsson.org>
2463
2464         gc: fix libgcrypt detection on older machines.
2465         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
2466         copyright years because the file has been distributed every year
2467         since it was created.
2468
2469 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
2470
2471         crypto: fix bug in large buffer handling
2472         Problem reported by Serge Belyshev for glibc in
2473         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
2474         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
2475         * lib/md4.c (md4_process_block):
2476         * lib/md5.c (md5_process_block):
2477         * lib/sha1.c (sha1_process_block):
2478         * lib/sha256.c (sha256_process_block):
2479         Don't assume the buffer length is less than 2**32.
2480         * lib/sha512.c (sha512_process_block): Likewise.
2481         Here, the bug is present only in the rare case where the host does
2482         not support uint64_t or where size_t is wider than 64 bits.
2483         Use u64size to work around the problems.
2484         * lib/u64.h (u64size): New macro.
2485
2486 2012-05-15  Pádraig Brady  <P@draigBrady.com>
2487
2488         fsusage: fix block size returned on older Linux 2.6
2489
2490         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
2491         which is available since Linux 2.6.
2492         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
2493         when the member is available so it can be used as a fallback.
2494         * doc/posix-functions/statvfs.texi: Mention the hang issue
2495         on Linux < 2.6.36.
2496
2497 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
2498
2499         bootstrap: suppress stderr chatter
2500         * build-aux/bootstrap (insert_sorted_if_absent, main program):
2501         Omit unnecessary chatter to stderr.  The main program chatter
2502         was there only inadvertantly.
2503
2504         bootstrap: .gitignore files created by autopoint, libtool
2505         I ran into this problem when bootstrapping the latest diffutils.
2506         After './bootstrap', 'git status' reported lots of untracked files
2507         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
2508         autopoint and do not need to be version-controlled.
2509         * build-aux/bootstrap: Put into .gitignore the files that
2510         autopoint and libtool create, by keeping track of files that exist
2511         after but not before these programs are run.
2512         (version_controlled_file): Move up.  2nd arg is now full file
2513         name, not base name; this is more convenient.  Put CVS at the end,
2514         as it's now somewhat deprecated.
2515
2516 2012-05-14  Jim Meyering  <meyering@redhat.com>
2517
2518         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
2519         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
2520         definition.  Reported by Bruno Haible.
2521
2522 2012-05-13  Bruno Haible  <bruno@clisp.org>
2523             Paul Eggert  <eggert@cs.ucla.edu>
2524
2525         binary-io: Define set_binary_mode function.
2526         * lib/binary-io.h (set_binary_mode): New function.
2527         (SET_BINARY): Define in terms of set_binary_mode.
2528         * modules/binary-io (configure.ac): Require AC_C_INLINE.
2529         * tests/test-binary-io.c (main): Accept an argument, and test either
2530         set_binary_mode or SET_BINARY depending on the argument.
2531         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
2532         argument. Clean up also t-bin-out0.tmp.
2533
2534 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
2535
2536         bootstrap: take advantage of POSIX shell features
2537
2538         The 'bootstrap' script offered by Gnulib script already uses POSIX
2539         shell features (like $((...)) arithmetic expansions) that are not
2540         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
2541         means that bootstrap must already be run using a proper POSIX shell,
2542         which will thus provide more features, like ${var#pattern} parameter
2543         expansion or inversion of a command exit status with '!'.  We can
2544         thus use these features to improve the clarity and the performances
2545         of the bootstrap script.
2546
2547         Suggested by Eric Blake.
2548
2549         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
2550         of sed/expr plus command substitutions, to save some forks.  While
2551         we are at it, prefer the POSIX $(...) form of command substitution,
2552         rather than the legacy form `...` (since the former is visually
2553         clearer and interacts better with quoting), and prefer the idiom:
2554           "if ! CMD; then ACTION ..."
2555         over the idiom:
2556           "if CMD; then :; else ACTION ..."
2557         which was required by legacy Bourne shells not supporting '!'.
2558
2559 2012-05-12  Bruno Haible  <bruno@clisp.org>
2560
2561         system-quote: Add more comments.
2562         * lib/system-quote.h: Add more comments about wilcards and limitations.
2563         Suggested by Eli Zaretskii <eliz@gnu.org>.
2564
2565         sh-quote, system-quote: Add comments about wildcards.
2566         * lib/sh-quote.h: Clarify what happens with wildcard characters.
2567         * lib/system-quote.h: Likewise.
2568         Reported by Eli Zaretskii <eliz@gnu.org>.
2569
2570 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
2571
2572         fsusage: check for GNU/Linux statvfs problem dynamically
2573         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
2574         Define STAT_STATFS2_BSIZE too, since in this case the code now
2575         checks dynamically whether statvfs is reliable, falling back on
2576         Linux-style statfs otherwise.
2577         (statvfs_works): New function, for dynamically testing statvfs.
2578         (get_fs_usage) [STAT_STATVFS]: Use it.
2579         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
2580         statvfs on GNU/Linux hosts, since it's now done dynamically.
2581
2582 2012-05-10  Bruno Haible  <bruno@clisp.org>
2583
2584         system-quote, execute, spawn-pipe: Escape '?' on Windows.
2585         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
2586         '?' character.
2587         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
2588         * tests/test-system-quote-main.c (check_all): Check also strings like
2589         "??????????".
2590         Reported by Eli Zaretskii <eliz@gnu.org>.
2591
2592 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
2593
2594         _Noreturn: port config.h to gcc -Wundef
2595         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
2596         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
2597         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
2598
2599 2012-05-10  Bruno Haible  <bruno@clisp.org>
2600
2601         system-quote: Refactor.
2602         * lib/system-quote.h (system_quote_copy): Fix comment.
2603         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
2604         New functions, extracted from system_quote_copy.
2605         (system_quote_length, system_quote_copy): Use these functions.
2606         Reported by Paul Eggert.
2607
2608 2012-05-08  Bruno Haible  <bruno@clisp.org>
2609
2610         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
2611         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
2612
2613 2012-05-08  Bruno Haible  <bruno@clisp.org>
2614
2615         Tests for module 'system-quote'.
2616         * modules/system-quote-tests: New file.
2617         * tests/test-system-quote.sh: New file.
2618         * tests/test-system-quote-main.c: New file.
2619         * tests/test-system-quote-child.c: New file.
2620
2621         New module 'system-quote'.
2622         * lib/system-quote.h: New file.
2623         * lib/system-quote.c: New file.
2624         * modules/system-quote: New file.
2625
2626 2012-05-08  Bruno Haible  <bruno@clisp.org>
2627
2628         sh-quote: Make C++ safe and allow multiple inclusion.
2629         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
2630         declarations in extern "C".
2631
2632 2012-05-08  Bruno Haible  <bruno@clisp.org>
2633
2634         sh-quote tests: Make tests stricter.
2635         * tests/test-sh-quote.c (check_one): Check the return value of
2636         shell_quote_copy.
2637         (main): Check a string with a CR character. Check a string that
2638         contains UCHAR_MAX.
2639
2640 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
2641
2642         warnings.m4: provide a means to specify the program to compile.
2643         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
2644         (gl_WARN_ADD): here.
2645         Use gl_AS_VAR_APPEND.
2646         Support an argument to specify the program to compile.
2647         (gl_WARN_ADD): Accept an argument to specify the program to compile.
2648         AC_SUBST the WARN_CFLAGS when they are used.
2649         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
2650         leave this to gl_WARN_ADD.
2651
2652 2012-05-08  Eric Blake  <eblake@redhat.com>
2653
2654         doc: recommendations on gettext version
2655         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
2656         choice between versions.
2657         * DEPENDENCIES (gettext): Cover both approaches.
2658
2659 2012-05-08  Jim Meyering  <meyering@redhat.com>
2660
2661         init.sh: explain why EXEEXT support uses aliases rather than functions
2662         * tests/init.sh: Add a comment.
2663
2664         init.sh: don't let bash aliases interfere with tests
2665         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
2666         is bash.  This avoids problems for those who alias standard commands to
2667         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
2668         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
2669
2670 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
2671
2672         stdint: be more consistent with glibc, SunOS libc
2673         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
2674         (gl_int_fast16_t, gl_uint_fast16_t)
2675         (gl_int_fast32_t, gl_uint_fast32_t)
2676         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
2677         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
2678         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
2679         Be consistent with glibc by default, and with SunOS 5.10 and later
2680         if __sun is defined.  This lessens the likelihood of clashes if
2681         code compiled for older hosts is combined with code compiled for
2682         newer ones.  Problem reported by Niels Möller in
2683         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
2684
2685 2012-05-07  Eric Blake  <eblake@redhat.com>
2686
2687         isatty: relax license to LGPLv2+
2688         * modules/isatty (License): Relax license.
2689
2690 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
2691
2692         stat-size: comment fix
2693         * lib/stat-size.h: Remove obsolete comment about indenting.
2694
2695 2012-05-06  Bruno Haible  <bruno@clisp.org>
2696
2697         Tests for module 'sh-quote'.
2698         * modules/sh-quote-tests: New file.
2699         * tests/test-sh-quote.c: New file.
2700
2701 2012-05-06  Bruno Haible  <bruno@clisp.org>
2702
2703         sh-quote: Improve shell_quote_argv's signature.
2704         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
2705         * lib/sh-quote.c (shell_quote_argv): Likewise.
2706
2707 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
2708
2709         stdint: document issues with int_fast8_t etc.
2710         * doc/posix-headers/stdint.texi (stdint.h): Say that other
2711         stdint.h substitutes may define these types differently.  See
2712         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
2713
2714 2012-05-05  Bruno Haible  <bruno@clisp.org>
2715
2716         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
2717         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
2718         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
2719         or 'guessing no (mishandles large arguments)'.
2720
2721 2012-05-05  Bruno Haible  <bruno@clisp.org>
2722
2723         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
2724         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
2725         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
2726         set gl_cv_func_link_follows_symlink to "guessing no".
2727
2728 2012-05-05  Bruno Haible  <bruno@clisp.org>
2729
2730         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
2731         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
2732         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
2733         "guessing no".
2734         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
2735
2736 2012-05-05  Bruno Haible  <bruno@clisp.org>
2737
2738         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
2739         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
2740         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
2741         set gl_cv_struct_dirent_d_ino to "guessing yes".
2742
2743 2012-05-05  Bruno Haible  <bruno@clisp.org>
2744
2745         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
2746         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
2747         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
2748         "guessing yes".
2749
2750 2012-05-05  Bruno Haible  <bruno@clisp.org>
2751
2752         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
2753         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
2754         compiling to a glibc system, set gl_cv_func_signbit and
2755         gl_cv_func_signbit_gcc to "guessing yes".
2756
2757 2012-05-05  Bruno Haible  <bruno@clisp.org>
2758
2759         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
2760         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
2761         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
2762         to "guessing yes".
2763         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
2764         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
2765
2766 2012-05-05  Bruno Haible  <bruno@clisp.org>
2767
2768         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
2769         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
2770         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
2771         gl_cv_func_realpath_works to "guessing yes".
2772
2773 2012-05-05  Bruno Haible  <bruno@clisp.org>
2774
2775         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
2776         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
2777         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
2778
2779 2012-05-04  Bruno Haible  <bruno@clisp.org>
2780
2781         Tweak last commit.
2782         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
2783         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
2784
2785 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
2786
2787         unistd_h: make it easier to avoid sys_types_h
2788         This is useful for Emacs, which has its own method of porting to
2789         Windows, and which therefore does not need the sys_types_h module.
2790         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
2791         code moved here from gl_SYS_TYPES_H.
2792         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
2793         using the code directly.
2794         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
2795         gl_SYS_TYPES_H.
2796         * modules/sys_types (Files):
2797         * modules/unistd (Files): Add m4/off_t.m4.
2798
2799 2012-05-03  Bruno Haible  <bruno@clisp.org>
2800
2801         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
2802         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
2803         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
2804         "guessing yes" or "guessing no".
2805         (gl_FUNC_LSTAT): Update.
2806         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
2807         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
2808         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
2809
2810 2012-05-03  Bruno Haible  <bruno@clisp.org>
2811
2812         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
2813         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
2814         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
2815         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
2816         cross-compiling, choose the first alternative on glibc systems.
2817         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
2818
2819 2012-05-03  Bruno Haible  <bruno@clisp.org>
2820
2821         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
2822         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
2823         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
2824
2825 2012-05-03  Bruno Haible  <bruno@clisp.org>
2826
2827         chown: Avoid "guessing no" when cross-compiling to glibc systems.
2828         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
2829
2830 2012-05-03  Bruno Haible  <bruno@clisp.org>
2831
2832         Avoid "guessing no" guesses when cross-compiling to glibc systems.
2833         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
2834         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
2835         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
2836         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
2837         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
2838         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
2839         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
2840         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
2841         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
2842         compiling to glibc systems, set gl_cv_func_chown_slash_works,
2843         gl_cv_func_chown_ctime_works to "guessing yes".
2844         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
2845         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
2846         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
2847         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
2848         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
2849         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
2850         compiling to glibc systems, set gl_cv_func_open_directory_works to
2851         "guessing yes".
2852         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
2853         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
2854         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
2855         "guessing yes".
2856         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
2857         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
2858         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
2859         compiling to glibc systems, set gl_cv_func_floorf_ieee to
2860         "guessing yes".
2861         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
2862         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
2863         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
2864         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
2865         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
2866         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
2867         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
2868         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
2869         "guessing yes".
2870         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
2871         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
2872         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
2873         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
2874         "guessing yes".
2875         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
2876         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
2877         "guessing yes".
2878         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
2879         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
2880         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
2881         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
2882         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
2883         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
2884         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
2885         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
2886         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
2887         compiling to glibc systems, set gl_cv_func_log10f_ieee to
2888         "guessing yes".
2889         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
2890         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
2891         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
2892         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
2893         "guessing yes".
2894         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
2895         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
2896         "guessing yes".
2897         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
2898         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
2899         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
2900         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
2901         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
2902         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
2903         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
2904         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
2905         compiling to glibc systems, set gl_cv_func_mkfifo_works to
2906         "guessing yes".
2907         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
2908         compiling to glibc systems, set gl_cv_func_mknod_works to
2909         "guessing yes".
2910         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
2911         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
2912         "guessing yes".
2913         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
2914         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
2915         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
2916         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
2917         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
2918         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
2919         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
2920         compiling to glibc systems, set gl_cv_func_svid_putenv to
2921         "guessing yes".
2922         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
2923         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
2924         "guessing yes".
2925         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
2926         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
2927         "guessing yes".
2928         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
2929         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
2930         to "guessing yes".
2931         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
2932         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
2933         to "guessing yes".
2934         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
2935         compiling to glibc systems, set gl_cv_func_rmdir_works to
2936         "guessing yes".
2937         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
2938         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
2939         gl_cv_func_unlink_parent_fails to "guessing yes".
2940         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
2941         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
2942         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
2943         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
2944         gl_cv_func_rename_dest_works to "guessing yes".
2945         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
2946         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
2947         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
2948         compiling to glibc systems, set gl_cv_func_roundf_ieee to
2949         "guessing yes".
2950         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
2951         compiling to glibc systems, set gl_cv_func_roundl_ieee to
2952         "guessing yes".
2953         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
2954         compiling to glibc systems, set gl_cv_func_setenv_works to
2955         "guessing yes".
2956         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
2957         compiling to glibc systems, set gl_cv_func_unsetenv_works to
2958         "guessing yes".
2959         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
2960         compiling to glibc systems, set gl_cv_func_sleep_works to
2961         "guessing yes".
2962         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
2963         compiling to glibc systems, set gl_cv_func_stat_file_slash to
2964         "guessing yes".
2965         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
2966         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
2967         "guessing yes".
2968         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
2969         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
2970         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
2971         compiling to glibc systems, set gl_cv_func_truncf_ieee to
2972         "guessing yes".
2973         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
2974         compiling to glibc systems, set gl_cv_func_truncl_ieee to
2975         "guessing yes".
2976         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
2977         compiling to glibc systems, set gl_cv_func_usleep_works to
2978         "guessing yes".
2979         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
2980         compiling to glibc systems, set gl_cv_func_futimesat_works to
2981         "guessing yes".
2982
2983 2012-05-03  Bruno Haible  <bruno@clisp.org>
2984
2985         Say "guessing yes" or "guessing no" when cross-compiling.
2986         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
2987         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
2988         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
2989         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
2990         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
2991         am_cv_func_working_getline to "guessing yes" or "guessing no".
2992         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
2993         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
2994         (gl_FUNC_MEMMEM): When cross-compiling, set
2995         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
2996         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
2997         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
2998         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
2999         set gl_cv_func_strcasestr_works_always to "guessing yes" or
3000         "guessing no".
3001         (gl_FUNC_STRCASESTR): When cross-compiling, set
3002         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
3003         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
3004         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
3005         (gl_FUNC_STRSTR): When cross-compiling, set
3006         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
3007         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
3008         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
3009         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
3010         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
3011
3012 2012-05-01  Bruno Haible  <bruno@clisp.org>
3013
3014         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
3015         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
3016         * build-aux/reloc-ldflags: Likewise.
3017         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
3018
3019 2012-05-01  Bruno Haible  <bruno@clisp.org>
3020
3021         gnulib-tool: Remove transitional code.
3022         * gnulib-tool: Don't warn about --import with 0 arguments any more.
3023         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3024
3025 2012-05-01  Bruno Haible  <bruno@clisp.org>
3026
3027         getcwd: Fix misindentation.
3028         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
3029
3030 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
3031
3032         exclude: process exclude and include directives in order
3033         This restores the pre-2009 behavior, and is part of a fix of a
3034         grep bug reported by Quentin Arce in
3035         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
3036         * lib/exclude.c (struct exclude): Remove 'tail' member.
3037         (new_exclude_segment): Prepend the new segment instead of appending.
3038         Return void, since that's now more convenient.
3039         (file_pattern_matches): Renamed from excluded_file_pattern_p.
3040         (file_name_matches): Renamed from excluded_file_name_p.
3041         (file_pattern_matches, file_name_matches):
3042         Return true if the pattern matches, not if it excludes.
3043         All callers changed.
3044         (excluded_file_name): Process the list in reverse order;
3045         since the list is now reversed this restores the pre-2009 behavior.
3046         (add_exclude): Adjust to new reversed-order list.  Use local var
3047         rather than macro, for clarity.
3048         * tests/test-exclude7.sh: Adjust to corrected behavior.
3049
3050         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
3051         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
3052         it's not possible here.  Handle the case of \ at end of pattern
3053         without dumping core.
3054         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
3055
3056         _Noreturn: future-proof non-GNU and non-MSVC compilers
3057         * build-aux/snippet/_Noreturn.h (_Noreturn):
3058         * m4/gnulib-common.m4 (gl_COMMON_BODY):
3059         Do not define _Noreturn if __STDC_VERSION__ indicates this is
3060         C11 or later.  This is more likely to work with random future C
3061         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
3062         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
3063
3064         exclude: handle wildcards with FNM_EXTMATCH
3065         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
3066         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
3067         comment that "has wildcards" really means "has or may have
3068         wildcards".  Simplify by avoiding the need to call strcspn.
3069
3070 2012-04-29  Bruno Haible  <bruno@clisp.org>
3071
3072         gnulib-tool: Fix list of authors.
3073         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
3074
3075 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
3076
3077         bootstrap: support Automake-NG in $buildreq
3078         * bootstrap (check_versions): Handle automake and aclocal from
3079         Automake-NG specially.  They can be specified as respectively
3080         the "automake-ng" and "aclocal-ng" requirements.
3081
3082 2012-04-25  Eric Blake  <eblake@redhat.com>
3083
3084         bootstrap: only force latest Makefile.in.in for gettext module
3085         * build-aux/bootstrap (with_gettext): Only install latest
3086         Makefile.in.in for projects requesting bleeding edge gettext.
3087
3088 2012-04-22  Bruno Haible  <bruno@clisp.org>
3089
3090         doc: Mention reason for replacement on glibc/Linux systems.
3091         * doc/posix-functions/dprintf.texi: Mention the problem with special
3092         'long double' values.
3093         * doc/posix-functions/fprintf.texi: Likewise.
3094         * doc/posix-functions/printf.texi: Likewise.
3095         * doc/posix-functions/snprintf.texi: Likewise.
3096         * doc/posix-functions/sprintf.texi: Likewise.
3097         * doc/posix-functions/vdprintf.texi: Likewise.
3098         * doc/posix-functions/vfprintf.texi: Likewise.
3099         * doc/posix-functions/vprintf.texi: Likewise.
3100         * doc/posix-functions/vsnprintf.texi: Likewise.
3101         * doc/posix-functions/vsprintf.texi: Likewise.
3102         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
3103         platforms with F_DUPFD_CLOEXEC problems.
3104         * doc/posix-functions/glob.texi: Mention which platforms are affected
3105         by the problem with symbolic links.
3106         * doc/posix-functions/linkat.texi: Mention the problem with
3107         AT_SYMLINK_FOLLOW on Linux.
3108
3109 2012-04-22  Bruno Haible  <bruno@clisp.org>
3110
3111         pwrite: Don't replace on all platforms.
3112         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
3113
3114 2012-04-22  Bruno Haible  <bruno@clisp.org>
3115
3116         rint* tests: Avoid gcc warnings.
3117         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
3118         * tests/test-rintf.c (INFINITY, NAN): Likewise.
3119         * tests/test-rintl.c (INFINITY, NAN): Likewise.
3120
3121 2012-04-21  Bruno Haible  <bruno@clisp.org>
3122
3123         users.txt: Update.
3124         * users.txt: Add freedink, wdiff. Update URLs for projects that have
3125         switched from CVS to git, bzr, or svn.
3126
3127 2012-04-21  Bruno Haible  <bruno@clisp.org>
3128
3129         Large File Support for native Windows platforms.
3130
3131         * m4/largefile.m4 (gl_LARGEFILE): New macro.
3132         * modules/largefile (configure.ac): Require gl_LARGEFILE.
3133
3134         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
3135         type.
3136         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
3137         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
3138         * doc/posix-headers/sys_types.texi: Mention the effect of the
3139         'largefile' module.
3140
3141         * lib/fcntl.in.h: Add comments about off_t.
3142         * modules/fcntl-h (Depends-on): Add sys_types.
3143
3144         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
3145         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
3146         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
3147         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
3148         * modules/unistd (Depends-on): Add sys_types.
3149         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
3150
3151         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
3152         instead of lseek.
3153         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
3154         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
3155         * modules/lseek (Depends-on): Add sys_types.
3156
3157         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
3158         msvc-nothrow.h.
3159         (SetFileSize): New function.
3160         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
3161         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
3162         if Large File Support is requested.
3163         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
3164         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
3165
3166         * lib/stdio.in.h: Add comments about off_t.
3167         * modules/stdio (Depends-on): Add sys_types.
3168
3169         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
3170         instead of ftello.
3171         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
3172         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
3173         (gl_PREREQ_FTELLO): New macro.
3174         * modules/ftello (Depends-on): Add sys_types.
3175         (configure.ac): Incoke gl_PREREQ_FTELLO.
3176
3177         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
3178         instead of fseeko.
3179         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
3180         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
3181         (gl_PREREQ_FSEEKO): New macro.
3182         * modules/fseeko (Depends-on): Add sys_types.
3183         (configure.ac): Invoke gl_PREREQ_FSEEKO.
3184
3185         * lib/sys_stat.in.h: Add comments about off_t.
3186         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
3187         64-bit integer for st_size in 'struct stat'.
3188         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
3189         Define _GL_WINDOWS_64_BIT_ST_SIZE.
3190         * modules/sys_stat (Depends-on): Add sys_types.
3191         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
3192
3193         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
3194         instead of stat or _stat.
3195
3196         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
3197         'struct _stati64' instead of fstat and 'struct stat'.
3198         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
3199         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
3200
3201         Reported by Ray Satiro <raysatiro@yahoo.com>.
3202
3203 2012-04-19  Eric Blake  <eblake@redhat.com>
3204
3205         bootstrap: accommodate older libtool
3206         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
3207         Reported by Daniel P. Berrange.
3208
3209 2012-04-19  Jim Meyering  <meyering@redhat.com>
3210
3211         announce-gen: avoid failure due to lack of Digest::SHA1
3212         Even with the preferred Digest::SHA available, this script
3213         would fail when the backup module, Digest::SHA1, was not installed.
3214         * build-aux/announce-gen: Quote the conditional use of "use".
3215         Reported by Reuben Thomas in:
3216         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
3217
3218         bootstrap: don't let a user's CDPATH setting affect this script
3219         When CDPATH is set, cd will sometimes generate output.
3220         When "cd" is run in a subshell whose output matters, that
3221         surprising-to-some output can cause malfunction.
3222         Unsetting CDPATH turns off this shell "feature."
3223         * build-aux/bootstrap (CDPATH): Unset.
3224         Reported by Reuben Thomas in:
3225         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
3226         and inspired by his patch here:
3227         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
3228
3229 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
3230         and Jim Meyering  <meyering@redhat.com>
3231
3232         maint.mk: catch "see @xref{}" and similar
3233         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
3234         prohibit "See also @xref{", "Also see @pxref{", and similar.
3235
3236 2012-04-16  Jim Meyering  <meyering@redhat.com>
3237
3238         bootstrap: really use gnulib's po/Makefile.in.in
3239         * build-aux/bootstrap: Correct the source file name in previous change.
3240         Reported by Akim Demaille.
3241
3242         configmake: correct minor inconsistency in Makefile rule
3243         * modules/configmake (Makefile.am): All other rules like this one
3244         run the final "mv -f ..." in the same backslash-continued command
3245         as the one that does everything else.  This one put the mv -f ...
3246         command on a separate, non-backslash-continued line.
3247         Make it like the others.
3248
3249         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
3250         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
3251         the one from gettext.  Reported by Akim Demaille.
3252
3253 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
3254
3255         Fix recursion of install-* into po directories.
3256         Bison's install-pdf bug reported by Hans Aberg at
3257         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
3258         * build-aux/po/Makefile.in.in (install-dvi, install-html)
3259         (install-info, install-pdf, install-ps): New targets.
3260
3261 2012-04-16  Jim Meyering  <meyering@redhat.com>
3262
3263         maint: avoid spurious "make sc_maint" failure
3264         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
3265         exempt all *.class file names, for lib/javaversion.class.
3266
3267 2012-04-15  Bruno Haible  <bruno@clisp.org>
3268
3269         lseek: Make configure test independent of environment.
3270         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
3271         Windows, we know that lseek() on pipes is broken; skip the runtime
3272         test.
3273
3274 2012-04-14  Bruno Haible  <bruno@clisp.org>
3275
3276         stat: Bypass buggy override in mingw64.
3277         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
3278         * lib/stat.c (stat) [mingw64]: Define to _stat.
3279         * doc/posix-functions/stat.texi: Mention mingw64 bug.
3280
3281 2012-04-14  Bruno Haible  <bruno@clisp.org>
3282
3283         pathmax: Fix compilation error on MSVC 9.
3284         * modules/pathmax (Depends-on): Add unistd.
3285
3286 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
3287
3288         README: document pointer comparison assumption
3289         * README (Portability guidelines): Document assumption about
3290         pointer comparisons, in response to a recent bug-gnulib comment by
3291         Jeffrey Kegler.
3292
3293 2012-04-12  Bruno Haible  <bruno@clisp.org>
3294
3295         Tests for module 'getrusage'.
3296         * modules/getrusage-tests: New file.
3297         * tests/test-getrusage.c: New file.
3298
3299         New module 'getrusage'.
3300         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
3301         warn-on-use.h.
3302         (getrusage): New declaration.
3303         * lib/getrusage.c: New file.
3304         * m4/getrusage.m4: New file.
3305         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
3306         is declared.
3307         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
3308         HAVE_GETRUSAGE.
3309         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
3310         snippet/c++defs, snippet/warn-on-use.
3311         (Makefile.am): Update generation of sys/resource.h. Substitute
3312         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
3313         * modules/getrusage: New file.
3314         * doc/posix-functions/getrusage.texi: Mention the new module.
3315
3316 2012-04-12  Bruno Haible  <bruno@clisp.org>
3317
3318         Tests for module 'sys_resource'.
3319         * modules/sys_resource-tests: New file.
3320         * tests/test-sys_resource.c: New file.
3321
3322         New module 'sys_resource'.
3323         * lib/sys_resource.in.h: New file.
3324         * m4/sys_resource_h.m4: New file.
3325         * modules/sys_resource: New file.
3326         * doc/posix-headers/sys_resource.texi: Mention the new module.
3327
3328 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
3329
3330         ioctl: Fix compilation error on mingw.
3331         * lib/ioctl.c: Include <windows.h>.
3332         Also reported by Ray Satiro <raysatiro@yahoo.com>.
3333
3334 2012-04-04  Jim Meyering  <meyering@redhat.com>
3335
3336         regex: correct #pragma guard expression
3337         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
3338         not 4.3.  Correct its cpp guard expression.
3339
3340 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
3341
3342         regex: remove unnecessary type punning
3343         Problem reported by Vladimir Serbinenko in
3344         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
3345         * lib/regex.h (struct re_pattern_buffer): Change the type of
3346         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
3347         Fix comment to match code.
3348         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
3349         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
3350         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
3351         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
3352         (set_regs):
3353         Omit no-longer-necessary casts.
3354
3355 2012-04-03  Bruno Haible  <bruno@clisp.org>
3356
3357         Tests for module 'ilogbl'.
3358         * modules/ilogbl-tests: New file.
3359         * tests/test-ilogbl.c: New file.
3360
3361         New module 'ilogbl'.
3362         * lib/math.in.h (ilogbl): New declaration.
3363         * lib/ilogbl.c: New file.
3364         * m4/ilogbl.m4: New file.
3365         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
3366         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
3367         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
3368         Split sed invocation, to avoid the limit of 100 substitutions of
3369         HP-UX 'sed'.
3370         * modules/ilogbl: New file.
3371         * tests/test-math-c++.cc: Check the declaration of ilogbl.
3372         * doc/posix-functions/ilogbl.texi: Mention the new module.
3373
3374 2012-04-03  Bruno Haible  <bruno@clisp.org>
3375
3376         Tests for module 'ilogbf'.
3377         * modules/ilogbf-tests: New file.
3378         * tests/test-ilogbf.c: New file.
3379
3380         New module 'ilogbf'.
3381         * lib/math.in.h (ilogbf): New declaration.
3382         * lib/ilogbf.c: New file.
3383         * m4/ilogbf.m4: New file.
3384         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
3385         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
3386         REPLACE_ILOGBF.
3387         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
3388         REPLACE_ILOGBF.
3389         * modules/ilogbf: New file.
3390         * tests/test-math-c++.cc: Check the declaration of ilogbf.
3391         * doc/posix-functions/ilogbf.texi: Mention the new module.
3392
3393 2012-04-03  Bruno Haible  <bruno@clisp.org>
3394
3395         Tests for module 'ilogb'.
3396         * modules/ilogb-tests: New file.
3397         * tests/test-ilogb.c: New file.
3398         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
3399         tests/test-logb-ieee.h.
3400
3401         New module 'ilogb'.
3402         * lib/math.in.h (ilogb): New declaration.
3403         * lib/ilogb.c: New file.
3404         * m4/ilogb.m4: New file.
3405         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
3406         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
3407         REPLACE_ILOGB.
3408         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
3409         REPLACE_ILOGB.
3410         * modules/ilogb: New file.
3411         * tests/test-math-c++.cc: Check the declaration of ilogb.
3412         * doc/posix-functions/ilogb.texi: Mention the new module.
3413
3414 2012-04-03  Bruno Haible  <bruno@clisp.org>
3415
3416         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
3417         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
3418         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
3419         (main): Check their values.
3420         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
3421         problem.
3422
3423 2012-04-03  Bruno Haible  <bruno@clisp.org>
3424
3425         Tests for module 'logbl-ieee'.
3426         * modules/logbl-ieee-tests: New file.
3427         * tests/test-logbl-ieee.c: New file.
3428
3429         New module 'logbl-ieee'.
3430         * modules/logbl-ieee: New file.
3431
3432         Tests for module 'logb-ieee'.
3433         * modules/logb-ieee-tests: New file.
3434         * tests/test-logb-ieee.c: New file.
3435
3436         New module 'logb-ieee'.
3437         * modules/logb-ieee: New file.
3438
3439         Tests for module 'logbf-ieee'.
3440         * modules/logbf-ieee-tests: New file.
3441         * tests/test-logbf-ieee.c: New file.
3442         * tests/test-logb-ieee.h: New file.
3443
3444         New module 'logbf-ieee'.
3445         * modules/logbf-ieee: New file.
3446
3447 2012-04-03  Bruno Haible  <bruno@clisp.org>
3448
3449         Tests for module 'logbl'.
3450         * modules/logbl-tests: New file.
3451         * tests/test-logbl.c: New file.
3452
3453         New module 'logbl'.
3454         * lib/math.in.h (logbl): New declaration.
3455         * lib/logbl.c: New file.
3456         * m4/logbl.m4: New file.
3457         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
3458         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
3459         REPLACE_LOGBL.
3460         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
3461         REPLACE_LOGBL.
3462         * modules/logbl: New file.
3463         * tests/test-math-c++.cc: Check the declaration of logbl.
3464         * doc/posix-functions/logbl.texi: Mention the new module.
3465
3466 2012-04-02  Bruno Haible  <bruno@clisp.org>
3467
3468         Tests for module 'logbf'.
3469         * modules/logbf-tests: New file.
3470         * tests/test-logbf.c: New file.
3471
3472         New module 'logbf'.
3473         * lib/math.in.h (logbf): New declaration.
3474         * lib/logbf.c: New file.
3475         * m4/logbf.m4: New file.
3476         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
3477         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
3478         REPLACE_LOGBF.
3479         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
3480         REPLACE_LOGBF.
3481         * modules/logbf: New file.
3482         * tests/test-math-c++.cc: Check the declaration of logbf.
3483         * doc/posix-functions/logbf.texi: Mention the new module.
3484
3485 2012-04-02  Bruno Haible  <bruno@clisp.org>
3486
3487         logb tests: More tests.
3488         * tests/test-logb.h: New file, based on tests/test-logb.c and
3489         tests/test-frexp.h.
3490         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
3491         (main): Just invoke test_function.
3492         * modules/logb-tests (Files): Add tests/test-logb.h,
3493         tests/minus-zero.h, tests/randomd.c.
3494         (Makefile.am): Add randomd.c to test_logb_SOURCES.
3495
3496         logb: Provide replacement and workarounds.
3497         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
3498         is 1.
3499         * lib/logb.c: New file.
3500         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
3501         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
3502         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
3503         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
3504         * modules/logb (Files): Add lib/logb.c.
3505         (Depends-on): Add isfinite, frexp, isnand.
3506         (configure.ac): Compile the replacement code logb.c if needed.
3507         * tests/test-math-c++.cc: Check the declaration of logb.
3508         * doc/posix-functions/logb.texi: Mention the replacement and the bug
3509         with subnormal numbers.
3510
3511 2012-04-02  Bruno Haible  <bruno@clisp.org>
3512
3513         log10* tests: Speed up.
3514         * tests/test-log10.h (test_function): Reduce amount of random numbers
3515         to test.
3516
3517 2012-04-01  Bruno Haible  <bruno@clisp.org>
3518
3519         logf-ieee: Fix test whether logf works.
3520         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
3521
3522 2012-04-01  Bruno Haible  <bruno@clisp.org>
3523
3524         log10l: Work around log10l-ieee test failure on IRIX 6.5.
3525         * lib/log10l.c: Include <float.h>
3526         (log10l): On IRIX, normalize the +Infinity value.
3527         * modules/log10l (Depends-on): Add 'float'.
3528         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
3529         +Infinity.
3530
3531         log10f-ieee: Work around test failure on NetBSD 5.1.
3532         * m4/log10f-ieee.m4: New file.
3533         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
3534         test whether log10f works with a negative argument. Replace it if not.
3535         * lib/log10f.c (log10f): For negative arguments, return NaN.
3536         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
3537         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
3538         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
3539
3540         log10f-ieee: Work around test failure on Solaris 9.
3541         * modules/log10f-ieee (Depends-on): Add log10-ieee.
3542         (configure.ac): Require gl_FUNC_LOG10F.
3543
3544         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
3545         * m4/log10-ieee.m4: New file.
3546         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
3547         whether log10 works with a negative argument. Replace it if not.
3548         * lib/log10.c (log10): For negative arguments, return NaN.
3549         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
3550         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
3551         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
3552
3553         Tests for module 'log10l-ieee'.
3554         * modules/log10l-ieee-tests: New file.
3555         * tests/test-log10l-ieee.c: New file.
3556
3557         New module 'log10l-ieee'.
3558         * modules/log10l-ieee: New file.
3559
3560         Tests for module 'log10-ieee'.
3561         * modules/log10-ieee-tests: New file.
3562         * tests/test-log10-ieee.c: New file.
3563
3564         New module 'log10-ieee'.
3565         * modules/log10-ieee: New file.
3566
3567         Tests for module 'log10f-ieee'.
3568         * modules/log10f-ieee-tests: New file.
3569         * tests/test-log10f-ieee.c: New file.
3570         * tests/test-log10-ieee.h: New file.
3571
3572         New module 'log10f-ieee'.
3573         * modules/log10f-ieee: New file.
3574
3575 2012-04-01  Bruno Haible  <bruno@clisp.org>
3576
3577         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
3578         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
3579         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
3580         workaround.
3581         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
3582         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
3583         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
3584         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
3585         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
3586         (Depends-on): Update conditions.
3587         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
3588         IRIX 6.5, OSF/1 5.1 problems.
3589
3590 2012-04-01  Bruno Haible  <bruno@clisp.org>
3591
3592         log10f: Work around OSF/1 5.1 bug.
3593         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
3594         * lib/log10f.c (log10f): If logf exists, use it and provide just the
3595         workaround.
3596         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
3597         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
3598         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
3599         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
3600         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
3601         (Depends-on): Update conditions.
3602         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
3603
3604 2012-04-01  Bruno Haible  <bruno@clisp.org>
3605
3606         log10: Work around OSF/1 5.1 bug.
3607         * lib/math.in.h (log10): New declaration.
3608         * lib/log10.c: New file.
3609         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
3610         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
3611         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
3612         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
3613         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
3614         * modules/log10 (Files): Add lib/log10.c.
3615         (Depends-on): Add math.
3616         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
3617         * tests/test-math-c++.cc: Check the declaration of log10.
3618         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
3619
3620 2012-03-31  Bruno Haible  <bruno@clisp.org>
3621
3622         log10l tests: More tests.
3623         * modules/log10l-tests (Files): Add tests/test-log10l.h,
3624         tests/minus-zero.h, tests/randoml.c.
3625         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
3626         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
3627         (main): Invoke test_function.
3628
3629         log10f tests: More tests.
3630         * modules/log10f-tests (Files): Add tests/test-log10.h,
3631         tests/minus-zero.h, tests/randomf.c.
3632         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
3633         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
3634         (main): Invoke test_function.
3635
3636         log10 tests: More tests.
3637         * tests/test-log10.h: New file.
3638         * modules/log10-tests (Files): Add tests/test-log10.h,
3639         tests/minus-zero.h, tests/randomd.c.
3640         (Makefile.am): Add randomd.c to test_log10_SOURCES.
3641         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
3642         (main): Invoke test_function.
3643
3644 2012-03-31  Simon Josefsson  <simon@josefsson.org>
3645
3646         fflush: Fix syntax error.
3647         * lib/fflush.c: Include unused-parameter.h, needed for
3648         _GL_UNUSED_PARAMETER.
3649         * modules/fflush (Depends-on): Add snippet/unused-parameter.
3650
3651 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
3652
3653         regex: pacify GCC when compiling GRUB
3654         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
3655         a diagnostic.  Reported by Vladimir Serbinenko in
3656         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
3657
3658 2012-03-29  Eric Blake  <eblake@redhat.com>
3659
3660         stdio: don't assume gets any more
3661         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
3662         support.
3663         * modules/stdio (Makefile.am): Likewise.
3664         * lib/stdio-read.c (gets): Likewise.
3665         * tests/test-stdio-c++.cc: Likewise.
3666         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
3667         * lib/stdio.in.h (gets): Make warning occur in more places.
3668         * doc/posix-functions/gets.texi (gets): Update documentation.
3669         Reported by Christer Solskogen.
3670
3671         maint.mk: fix syntax checks without exclusions
3672         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
3673         Reported by Daniel P. Berrange.
3674
3675         strerror_r: avoid compiler warning
3676         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
3677         level.
3678
3679         fflush: avoid compiler warning
3680         * lib/fflush.c (update_fpos_cache): Mark variables that are
3681         potentially unused.
3682
3683 2012-03-25  Bruno Haible  <bruno@clisp.org>
3684
3685         Tests for module 'localeconv'.
3686         * modules/localeconv-tests: New file.
3687         * tests/test-localeconv.c: New file.
3688
3689         New module 'localeconv'.
3690         * lib/locale.in.h (localeconv): New declaration.
3691         * lib/localeconv.c: New file.
3692         * m4/localeconv.m4: New file.
3693         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
3694         REPLACE_LOCALECONV.
3695         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
3696         REPLACE_LOCALECONV.
3697         * modules/localeconv: New file.
3698         * modules/nl_langinfo (Depends-on): Add localeconv.
3699         * modules/human (Depends-on): Likewise.
3700         * doc/posix-functions/localeconv.texi: Mention the new module.
3701
3702 2012-03-25  Bruno Haible  <bruno@clisp.org>
3703
3704         locale: Provide a complete 'struct lconv'.
3705         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
3706         'struct lconv' does not contain int_p_cs_precedes.
3707         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
3708         * doc/posix-headers/locale.texi: Update.
3709
3710         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
3711         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
3712         * doc/posix-headers/locale.texi: Update.
3713
3714         locale: Provide a working 'struct lconv'.
3715         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
3716         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
3717         'struct lconv' does not even contain decimal_point.
3718         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
3719         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
3720         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
3721         * doc/posix-headers/locale.texi: Mention the problems with
3722         'struct lconv'.
3723         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
3724
3725 2012-03-24  Bruno Haible  <bruno@clisp.org>
3726
3727         Enable common subexpression optimization in GCC.
3728         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
3729         macros.
3730         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
3731         GCC attribute 'const'.
3732         (uc_locale_language): Declare with GCC attribute 'pure'.
3733         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
3734         with GCC attribute 'const'.
3735         * lib/unictype.in.h (uc_is_general_category_withtable,
3736         uc_combining_class, uc_combining_class_name,
3737         uc_combining_class_long_name, uc_bidi_class_name,
3738         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
3739         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
3740         uc_decimal_value, uc_digit_value, uc_numeric_value,
3741         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
3742         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
3743         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
3744         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
3745         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
3746         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
3747         Declare with GCC attribute 'const'.
3748         (uc_general_category_name, uc_general_category_long_name,
3749         uc_general_category_byname, uc_general_category,
3750         uc_is_general_category, uc_combining_class_byname,
3751         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
3752         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
3753         Declare with GCC attribute 'pure'.
3754         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
3755         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
3756         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
3757         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
3758         with GCC attribute 'pure'.
3759         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
3760         'const'.
3761         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
3762         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
3763         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
3764         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
3765         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
3766         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
3767         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
3768         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
3769         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
3770         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
3771         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
3772         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
3773         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
3774         GCC attribute 'pure'.
3775         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
3776         'const'.
3777         * lib/uniwidth.in.h (uc_width): Simplify declaration.
3778         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
3779         u32_strwidth): Declare with GCC attribute 'pure'.
3780
3781         Enable common subexpression optimization in GCC.
3782         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
3783         (alphasort): Declare with GCC attribute 'pure'.
3784         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
3785         (atoll): Declare with GCC attribute 'pure'.
3786         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
3787         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
3788         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
3789         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
3790         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
3791         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
3792         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
3793
3794 2012-03-24  Bruno Haible  <bruno@clisp.org>
3795
3796         gnulib-tool: Avoid unintended error output from 'cmp'.
3797         * gnulib-tool (func_add_file, func_update_file, func_import): Use
3798         "cmp -s", not "cmp > /dev/null".
3799
3800 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
3801
3802         gnulib-tool: fix imprecise comments w.r.t. an automake bug
3803
3804         It's not just Automake versions < 1.9b that creates an empty
3805         pkgdatadir at installation time if pkgdata_DATA is specified
3806         to empty; modern automake versions do this as well, at least
3807         until automake 1.11.4 (not yet released at the moment of writing,
3808         but soon to appear).  That behaviour was generally considered a
3809         feature rather than a bug, at least until this discussion:
3810         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
3811
3812         See also automake bugs #10997 and #11030.
3813
3814         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
3815         reference to relevant automake bug numbers.
3816         (func_emit_tests_Makefile_am): Likewise.
3817
3818 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
3819
3820         announce-gen: use Digest::SHA when possible
3821         * build-aux/announce-gen: Use Digest::SHA when possible, falling
3822         back to Digest::SHA1 if necessary.
3823
3824 2012-03-20  Jim Meyering  <meyering@redhat.com>
3825
3826         tests: avoid gcc warnings about argv vs. const initializers
3827         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
3828         warnings about discarding 'const' qualifier from pointer target type.
3829         * tests/test-posix_spawn2.c (main): Likewise.
3830
3831 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
3832
3833         README-release: simplify slightly
3834         * top/README-release: Run "git checkout master" only once.
3835
3836 2012-03-15  Mark Wielaard  <mark@klomp.org>
3837
3838         git-merge-changelog: add specific example on how to use with hg.
3839         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
3840
3841 2012-03-18  Mark Wielaard  <mark@klomp.org>
3842
3843         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
3844
3845 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
3846
3847         git-version-gen: don't let "prefix" envvar cause trouble
3848         * build-aux/git-version-gen (prefix): Initialize properly,
3849         so as not to use a value specified via the environment.
3850         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
3851
3852 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
3853
3854         regex: diagnose too-large repeat counts in EREs
3855         Previously, the code did not diagnose the too-large repeat count
3856         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
3857         as if it were 'b\{1000000000}', which is unexpected.
3858         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
3859         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
3860         is a reasonable one for this problem.  Another option would be to
3861         create a new REG_OVERFLOW error for repeat counts that are too large.
3862         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
3863         count is too large, so that the caller can distinguish the two cases.
3864         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
3865         "Too large" return code, and that repeat counts are one example of this.
3866
3867 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
3868
3869         doc: some glibc x32 integer width issues
3870         * doc/posix-headers/sys_types.texi (sys/types.h):
3871         * doc/posix-headers/time.texi (time.h):
3872         Mention that glibc x32 does not conform to POSIX in a couple of
3873         areas related to integer widths.
3874
3875 2012-03-15  Bruno Haible  <bruno@clisp.org>
3876
3877         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
3878         * lib/fma.c (VOLATILE): New macro.
3879         (FUNC): Use it to work around a GCC compiler bug.
3880
3881 2012-03-13  Bruno Haible  <bruno@clisp.org>
3882
3883         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
3884         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
3885         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
3886         REPLACE_HYPOTL to 1.
3887         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
3888
3889 2012-03-13  Bruno Haible  <bruno@clisp.org>
3890
3891         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
3892         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
3893         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
3894         REPLACE_REMAINDERL to 1.
3895         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
3896         bug.
3897
3898 2012-03-13  Bruno Haible  <bruno@clisp.org>
3899
3900         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
3901         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
3902         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
3903         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
3904         too big rounding errors.
3905         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
3906         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
3907         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
3908         (Depends-on): Update conditions.
3909         * tests/test-sqrtl.c (my_ldexpl): New function.
3910         (main): Add test of a particular value.
3911         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
3912
3913 2012-03-13  Pádraig Brady  <P@draigBrady.com>
3914
3915         doc: Update timer_* platform portability notes.
3916         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
3917         that always return ENOSYS.
3918         * doc/posix-functions/timer_delete.texi: Likewise.
3919         * doc/posix-functions/timer_gettime.texi: Likewise.
3920         * doc/posix-functions/timer_settime.texi: Likewise.
3921
3922 2012-03-13  Bruno Haible  <bruno@clisp.org>
3923
3924         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
3925         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
3926         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
3927         REPLACE_CBRTL to 1.
3928         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
3929
3930 2012-03-13  Bruno Haible  <bruno@clisp.org>
3931
3932         remainderl: Avoid compilation error on AIX >= 5.2.
3933         * lib/math.in.h (remainderl): Undefine macro from the system header.
3934
3935 2012-03-13  Bruno Haible  <bruno@clisp.org>
3936
3937         Avoid compilation errors with MSVC option -fp:strict.
3938         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
3939         * lib/cbrtf.c: Likewise.
3940         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
3941
3942 2012-03-12  Bruno Haible  <bruno@clisp.org>
3943
3944         uninorm: Don't crash in out-of-memory conditions.
3945         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
3946         gracefully.
3947         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
3948         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
3949
3950 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
3951
3952         quote: fix syntax-check
3953         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
3954         also exports quote_quoting_options.
3955
3956 2012-03-12  Simon Josefsson  <simon@josefsson.org>
3957
3958         Collapse list of copyright years to ranges.  See
3959         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
3960         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
3961         build-aux/csharpexec.sh.in, build-aux/gnupload,
3962         build-aux/install-reloc, build-aux/javacomp.sh.in,
3963         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
3964         build-aux/move-if-change, build-aux/reloc-ldflags,
3965         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
3966
3967 2012-03-11  Bruno Haible  <bruno@clisp.org>
3968
3969         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
3970         * m4/log2f-ieee.m4: New file.
3971         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
3972         whether log2f works with a minus zero argument. Replace it if not.
3973         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
3974         (Depends-on): Add log2-ieee.
3975         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
3976         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
3977
3978         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
3979         * m4/log2-ieee.m4: New file.
3980         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
3981         whether log2 works with a minus zero argument. Replace it if not.
3982         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
3983         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
3984         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
3985
3986         Tests for module 'log2l-ieee'.
3987         * modules/log2l-ieee-tests: New file.
3988         * tests/test-log2l-ieee.c: New file.
3989
3990         New module 'log2l-ieee'.
3991         * modules/log2l-ieee: New file.
3992
3993         Tests for module 'log2-ieee'.
3994         * modules/log2-ieee-tests: New file.
3995         * tests/test-log2-ieee.c: New file.
3996
3997         New module 'log2-ieee'.
3998         * modules/log2-ieee: New file.
3999
4000         Tests for module 'log2f-ieee'.
4001         * modules/log2f-ieee-tests: New file.
4002         * tests/test-log2f-ieee.c: New file.
4003         * tests/test-log2-ieee.h: New file.
4004
4005         New module 'log2f-ieee'.
4006         * modules/log2f-ieee: New file.
4007
4008 2012-03-11  Bruno Haible  <bruno@clisp.org>
4009
4010         Tests for module 'log2l'.
4011         * modules/log2l-tests: New file.
4012         * tests/test-log2l.c: New file.
4013
4014         New module 'log2l'.
4015         * lib/math.in.h (log2l): New declaration.
4016         * lib/log2l.c: New file.
4017         * m4/log2l.m4: New file.
4018         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
4019         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
4020         REPLACE_LOG2L.
4021         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
4022         REPLACE_LOG2L.
4023         * modules/log2l: New file.
4024         * tests/test-math-c++.cc: Check the declaration of log2l.
4025         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
4026         and OSF/1 problems.
4027
4028 2012-03-11  Bruno Haible  <bruno@clisp.org>
4029
4030         Tests for module 'log2f'.
4031         * modules/log2f-tests: New file.
4032         * tests/test-log2f.c: New file.
4033
4034         New module 'log2f'.
4035         * lib/math.in.h (log2f): New declaration.
4036         * lib/log2f.c: New file.
4037         * m4/log2f.m4: New file.
4038         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
4039         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
4040         REPLACE_LOG2F.
4041         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
4042         REPLACE_LOG2F.
4043         * modules/log2f: New file.
4044         * tests/test-math-c++.cc: Check the declaration of log2f.
4045         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
4046         and OSF/1 and Cygwin problems.
4047
4048 2012-03-11  Bruno Haible  <bruno@clisp.org>
4049
4050         Tests for module 'log2'.
4051         * modules/log2-tests: New file.
4052         * tests/test-log2.c: New file.
4053         * tests/test-log2.h: New file.
4054
4055         New module 'log2'.
4056         * lib/math.in.h (log2): New declaration.
4057         * lib/log2.c: New file.
4058         * m4/log2.m4: New file.
4059         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
4060         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
4061         REPLACE_LOG2.
4062         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
4063         REPLACE_LOG2.
4064         * modules/log2: New file.
4065         * tests/test-math-c++.cc: Check the declaration of log2.
4066         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
4067         and OSF/1 and Cygwin problems.
4068
4069 2012-03-11  Bruno Haible  <bruno@clisp.org>
4070
4071         exp2* tests: More tests.
4072         * tests/test-exp2.h (test_function): Test all integral arguments that
4073         don't need to overflow or denormalized numbers.
4074         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
4075         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
4076         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
4077
4078 2012-03-10  Bruno Haible  <bruno@clisp.org>
4079
4080         log1pl-ieee: Work around test failure on AIX 7.1.
4081         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
4082
4083         log1pl-ieee: Work around test failure on IRIX 6.5.
4084         * m4/log1pl-ieee.m4: New file.
4085         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
4086         test whether log1pl works with a minus zero argument. Replace it if
4087         not.
4088         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
4089         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
4090         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
4091         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
4092         (Depends-on): Update conditions.
4093         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
4094         m4/signbit.m4.
4095         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
4096         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
4097
4098         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
4099         * m4/log1pf-ieee.m4: New file.
4100         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
4101         test whether log1pf works with a minus zero argument. Replace it if
4102         not.
4103         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
4104         m4/signbit.m4.
4105         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
4106         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
4107
4108         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
4109         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
4110         (configure.ac): Require gl_FUNC_LOG1PF.
4111
4112         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
4113         * m4/log1p-ieee.m4: New file.
4114         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
4115         whether log1p works with a minus zero argument. Replace it if not.
4116         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
4117         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
4118         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
4119         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
4120         (Depends-on): Update conditions.
4121         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
4122         m4/signbit.m4.
4123         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
4124         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
4125
4126         Tests for module 'log1pl-ieee'.
4127         * modules/log1pl-ieee-tests: New file.
4128         * tests/test-log1pl-ieee.c: New file.
4129
4130         New module 'log1pl-ieee'.
4131         * modules/log1pl-ieee: New file.
4132
4133         Tests for module 'log1p-ieee'.
4134         * modules/log1p-ieee-tests: New file.
4135         * tests/test-log1p-ieee.c: New file.
4136
4137         New module 'log1p-ieee'.
4138         * modules/log1p-ieee: New file.
4139
4140         Tests for module 'log1pf-ieee'.
4141         * modules/log1pf-ieee-tests: New file.
4142         * tests/test-log1pf-ieee.c: New file.
4143         * tests/test-log1p-ieee.h: New file.
4144
4145         New module 'log1pf-ieee'.
4146         * modules/log1pf-ieee: New file.
4147
4148 2012-03-10  Bruno Haible  <bruno@clisp.org>
4149
4150         Tests for module 'log1pl'.
4151         * modules/log1pl-tests: New file.
4152         * tests/test-log1pl.c: New file.
4153
4154         New module 'log1pl'.
4155         * lib/math.in.h (log1pl): New declaration.
4156         * lib/log1pl.c: New file.
4157         * m4/log1pl.m4: New file.
4158         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
4159         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
4160         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
4161         * modules/log1pl: New file.
4162         * tests/test-math-c++.cc: Check the declaration of log1pl.
4163         * doc/posix-functions/log1pl.texi: Mention the new module.
4164
4165 2012-03-10  Bruno Haible  <bruno@clisp.org>
4166
4167         Tests for module 'log1pf'.
4168         * modules/log1pf-tests: New file.
4169         * tests/test-log1pf.c: New file.
4170
4171         New module 'log1pf'.
4172         * lib/math.in.h (log1pf): New declaration.
4173         * lib/log1pf.c: New file.
4174         * m4/log1pf.m4: New file.
4175         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
4176         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
4177         REPLACE_LOG1PF.
4178         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
4179         REPLACE_LOG1PF.
4180         * modules/log1pf: New file.
4181         * tests/test-math-c++.cc: Check the declaration of log1pf.
4182         * doc/posix-functions/log1pf.texi: Mention the new module.
4183
4184 2012-03-10  Bruno Haible  <bruno@clisp.org>
4185
4186         log1p tests: More tests.
4187         * tests/test-log1p.h: New file.
4188         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
4189         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
4190         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
4191         (main): Invoke test_function.
4192
4193         log1p: Provide replacement for Minix and MSVC.
4194         * lib/math.in.h (log1p): New declaration.
4195         * lib/log1p.c: New file.
4196         * m4/log1p.m4: New file.
4197         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
4198         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
4199         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
4200         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
4201         (Depends-on): Add math, isnand, log, round.
4202         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
4203         HAVE_LOG1P is 0.
4204         * tests/test-math-c++.cc: Check the declaration of log1p.
4205         * doc/posix-functions/log1p.texi: Mention the replacement.
4206
4207 2012-03-10  Bruno Haible  <bruno@clisp.org>
4208
4209         math tests: Small simplification.
4210         * tests/test-exp.h (test_function): Use the same err_bound for
4211         'double' on platforms with sizeof (long double) == sizeof (double)
4212         than on platforms with sizeof (long double) > sizeof (double).
4213         * tests/test-exp2.h (test_function): Likewise.
4214         * tests/test-expm1.h (test_function): Likewise.
4215         * tests/test-log.h (test_function): Likewise.
4216
4217 2012-03-10  Bruno Haible  <bruno@clisp.org>
4218
4219         Fix some comments.
4220         * lib/expl.c: Fix an ambiguous comment.
4221         * lib/expm1.c: Likewise.
4222         * lib/expm1l.c: Likewise.
4223         * lib/exp2.c: Likewise.
4224         * lib/exp2l.c: Likewise.
4225
4226 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
4227
4228         regex: allow inclusion of <regex.h> before <limits.h>
4229         Without this patch, portable programs had to include <limits.h> before
4230         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
4231         I ran into this problem with a test version of GNU grep on Solaris 8.
4232         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
4233         This is done conditionally so that this change can be merged
4234         back to glibc.
4235         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
4236         using the included regex.
4237
4238         fts: depend on fdopendir
4239         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
4240         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
4241         problem was introduced when fdopendir was split out.
4242
4243 2012-03-10  Bruno Haible  <bruno@clisp.org>
4244
4245         Remove unused variables.
4246         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
4247         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
4248
4249 2012-03-10  Bruno Haible  <bruno@clisp.org>
4250
4251         isnanf-nolibm: Fix last commit.
4252         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
4253
4254         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
4255         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
4256
4257 2012-03-10  Bruno Haible  <bruno@clisp.org>
4258
4259         logf-ieee: Work around test failure on NetBSD 5.1.
4260         * m4/logf-ieee.m4: New file.
4261         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
4262         whether logf works with a negative argument. Replace it if not.
4263         * lib/logf.c (logf): For negative arguments, return NaN.
4264         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
4265         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
4266         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
4267
4268         logf-ieee: Work around test failure on Solaris 9.
4269         * modules/logf-ieee (Depends-on): Add log-ieee.
4270         (configure.ac): Require gl_FUNC_LOGF.
4271
4272         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
4273         * m4/log-ieee.m4: New file.
4274         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
4275         log works with a negative argument. Replace it if not.
4276         * lib/log.c (log): For negative arguments, return NaN.
4277         * modules/log-ieee (Files): Add m4/log-ieee.m4.
4278         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
4279         * doc/posix-functions/log.texi: Mention the log-ieee module.
4280
4281         Tests for module 'logl-ieee'.
4282         * modules/logl-ieee-tests: New file.
4283         * tests/test-logl-ieee.c: New file.
4284
4285         New module 'logl-ieee'.
4286         * modules/logl-ieee: New file.
4287
4288         Tests for module 'log-ieee'.
4289         * modules/log-ieee-tests: New file.
4290         * tests/test-log-ieee.c: New file.
4291
4292         New module 'log-ieee'.
4293         * modules/log-ieee: New file.
4294
4295         Tests for module 'logf-ieee'.
4296         * modules/logf-ieee-tests: New file.
4297         * tests/test-logf-ieee.c: New file.
4298         * tests/test-log-ieee.h: New file.
4299
4300         New module 'logf-ieee'.
4301         * modules/logf-ieee: New file.
4302
4303 2012-03-10  Bruno Haible  <bruno@clisp.org>
4304
4305         log: Fix bug introduced on 2012-03-09.
4306         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
4307
4308 2012-03-10  Pádraig Brady  <P@draigBrady.com>
4309
4310         timer-time: link explicitly with pthreads on glibc
4311         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
4312         to support static linking, when newer glibc is
4313         detected, as that contains pthread emulation of
4314         POSIX timer functions where required.
4315         * modules/timer-time: Depend on threadlib to
4316         pull in the appropriate library to link.
4317
4318 2012-03-10  Bruno Haible  <bruno@clisp.org>
4319
4320         log* tests: More tests.
4321         * tests/test-log.h: New file.
4322         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
4323         (main): Invoke test_function.
4324         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
4325         (main): Invoke test_function.
4326         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
4327         (main): Invoke test_function.
4328         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
4329         tests/randomd.c.
4330         (Makefile.am): Add randomd.c to test_log_SOURCES.
4331         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
4332         tests/randomf.c.
4333         (Makefile.am): Add randomf.c to test_logf_SOURCES.
4334         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
4335         tests/randoml.c.
4336         (Depends-on): Add 'float'.
4337         (Makefile.am): Add randoml.c to test_logl_SOURCES.
4338
4339 2012-03-09  Bruno Haible  <bruno@clisp.org>
4340
4341         logl: Work around OSF/1 5.1 bug.
4342         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
4343         * lib/logl.c (logl): If logl exists, use it and provide just the
4344         workaround.
4345         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
4346         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
4347         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
4348         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
4349         * modules/logl (configure.ac): Consider REPLACE_LOGL.
4350         (Depends-on): Update conditions.
4351         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
4352
4353 2012-03-09  Bruno Haible  <bruno@clisp.org>
4354
4355         logf: Work around OSF/1 5.1 bug.
4356         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
4357         * lib/logf.c (logf): If logf exists, use it and provide just the
4358         workaround.
4359         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
4360         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
4361         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
4362         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
4363         * modules/logf (configure.ac): Consider REPLACE_LOGF.
4364         (Depends-on): Update conditions.
4365         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
4366
4367 2012-03-09  Bruno Haible  <bruno@clisp.org>
4368
4369         log: Work around OSF/1 5.1 bug.
4370         * lib/math.in.h (log): New declaration.
4371         * lib/log.c: New file.
4372         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
4373         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
4374         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
4375         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
4376         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
4377         * modules/log (Files): Add lib/log.c.
4378         (Depends-on): Add math.
4379         (configure.ac): If REPLACE_LOG is 1, compile an override.
4380         * tests/test-math-c++.cc: Check the declaration of log.
4381         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
4382
4383 2012-03-09  Jim Meyering  <meyering@redhat.com>
4384
4385         readtokens.c: adjust wording in a comment
4386         * lib/readtokens.c: Insert omitted "that" in a comment.
4387
4388 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
4389
4390         modechange: add notations +40, 00440, etc.
4391         * lib/modechange.c (mode_compile): Support new notations
4392         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
4393
4394 2012-03-08  Bruno Haible  <bruno@clisp.org>
4395
4396         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
4397         * m4/exp2l-ieee.m4: New file.
4398         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
4399         test whether exp2l works with a NaN argument and with a negative
4400         infinity argument. Replace it if not.
4401         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
4402         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
4403         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
4404         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
4405         (Depends-on): Update conditions.
4406         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
4407         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
4408         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
4409
4410         Tests for module 'exp2l-ieee'.
4411         * modules/exp2l-ieee-tests: New file.
4412         * tests/test-exp2l-ieee.c: New file.
4413
4414         New module 'exp2l-ieee'.
4415         * modules/exp2l-ieee: New file.
4416
4417         Tests for module 'exp2-ieee'.
4418         * modules/exp2-ieee-tests: New file.
4419         * tests/test-exp2-ieee.c: New file.
4420
4421         New module 'exp2-ieee'.
4422         * modules/exp2-ieee: New file.
4423
4424         Tests for module 'exp2f-ieee'.
4425         * modules/exp2f-ieee-tests: New file.
4426         * tests/test-exp2f-ieee.c: New file.
4427         * tests/test-exp2-ieee.h: New file.
4428
4429         New module 'exp2f-ieee'.
4430         * modules/exp2f-ieee: New file.
4431
4432 2012-03-08  Bruno Haible  <bruno@clisp.org>
4433
4434         Tests for module 'exp2l'.
4435         * modules/exp2l-tests: New file.
4436         * tests/test-exp2l.c: New file.
4437
4438         New module 'exp2l'.
4439         * lib/math.in.h (exp2l): New declaration.
4440         * lib/exp2l.c: New file.
4441         * lib/expl-table.c: New file, extracted from lib/expl.c.
4442         * lib/expl.c (gl_expl_table): New declaration.
4443         (expl): Remove expl_table. Update reference.
4444         * m4/exp2l.m4: New file.
4445         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
4446         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
4447         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
4448         * modules/exp2l: New file.
4449         * modules/expl (Files): Add lib/expl-table.c.
4450         (configure.ac): Compile also expl-table.c.
4451         * tests/test-math-c++.cc: Check the declaration of exp2l.
4452         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
4453         problem.
4454
4455 2012-03-08  Bruno Haible  <bruno@clisp.org>
4456
4457         Tests for module 'exp2f'.
4458         * modules/exp2f-tests: New file.
4459         * tests/test-exp2f.c: New file.
4460
4461         New module 'exp2f'.
4462         * lib/math.in.h (exp2f): New declaration.
4463         * lib/exp2f.c: New file.
4464         * m4/exp2f.m4: New file.
4465         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
4466         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
4467         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
4468         * modules/exp2f: New file.
4469         * tests/test-math-c++.cc: Check the declaration of exp2f.
4470         * doc/posix-functions/exp2f.texi: Mention the new module and the
4471         IRIX problem.
4472
4473 2012-03-08  Bruno Haible  <bruno@clisp.org>
4474
4475         Tests for module 'exp2'.
4476         * modules/exp2-tests: New file.
4477         * tests/test-exp2.c: New file.
4478         * tests/test-exp2.h: New file.
4479
4480         New module 'exp2'.
4481         * lib/math.in.h (exp2): New declaration.
4482         * lib/exp2.c: New file.
4483         * m4/exp2.m4: New file.
4484         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
4485         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
4486         REPLACE_EXP2.
4487         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
4488         REPLACE_EXP2.
4489         * modules/exp2: New file.
4490         * tests/test-math-c++.cc: Check the declaration of exp2.
4491         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
4492         and OpenBSD problems.
4493
4494 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
4495
4496         savedir: fix comment typo
4497         * lib/savedir.c (savedirstream): Fix typo in comment.
4498
4499 2012-03-08  Bruno Haible  <bruno@clisp.org>
4500
4501         test-readtokens.c: use const; remove unwarranted cast
4502         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
4503
4504 2012-03-08  Bruno Haible  <bruno@clisp.org>
4505
4506         fmal: Avoid compilation error on AIX.
4507         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
4508         AIX 5.2..7.1.
4509
4510 2012-03-08  Bruno Haible  <bruno@clisp.org>
4511
4512         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
4513         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
4514         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
4515         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
4516         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
4517         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
4518         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
4519
4520 2012-03-08  Bruno Haible  <bruno@clisp.org>
4521
4522         remainderf: Override buggy system function on IRIX 6.5.
4523         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
4524         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
4525         when it exists.
4526         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
4527
4528 2012-03-08  Jim Meyering  <meyering@redhat.com>
4529
4530         test-readtokens.c: avoid const-related compilation warnings
4531         * tests/test-readtokens.c: Avoid const-related compilation warnings.
4532
4533 2012-03-07  Jim Meyering  <meyering@redhat.com>
4534             Bruno Haible  <bruno@clisp.org>
4535
4536         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
4537         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
4538         tests/randomd.c.
4539         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
4540         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
4541         tests/randoml.c.
4542         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
4543
4544 2012-03-07  Bruno Haible  <bruno@clisp.org>
4545
4546         expm1l: Avoid compilation error on AIX.
4547         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
4548         AIX 5.2..7.1.
4549
4550 2012-03-07  Bruno Haible  <bruno@clisp.org>
4551
4552         expm1l: Don't override undeclared system function on IRIX 6.5.
4553         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
4554         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
4555         it exists. Set HAVE_DECL_EXPM1L.
4556         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
4557         HAVE_EXPM1L.
4558         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
4559         HAVE_EXPM1L.
4560         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
4561
4562 2012-03-07  Bruno Haible  <bruno@clisp.org>
4563
4564         remainderl: Don't override undeclared system function on IRIX 6.5.
4565         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
4566         HAVE_REMAINDERL.
4567         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
4568         declared when it exists. Set HAVE_DECL_REMAINDERL.
4569         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
4570         not HAVE_REMAINDERL.
4571         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
4572         HAVE_REMAINDERL.
4573         * doc/posix-functions/remainderl.texi: Mention missing declaration
4574         problem.
4575
4576 2012-03-07  Bruno Haible  <bruno@clisp.org>
4577
4578         rintf: Don't override undeclared system function on IRIX 6.5.
4579         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
4580         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
4581         exists. Set HAVE_DECL_RINTF.
4582         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
4583         HAVE_RINTF.
4584         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
4585         HAVE_RINTF.
4586         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
4587
4588 2012-03-07  Bruno Haible  <bruno@clisp.org>
4589
4590         roundl: Avoid compilation error on AIX.
4591         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
4592         AIX 5.2..7.1.
4593
4594 2012-03-07  Bruno Haible  <bruno@clisp.org>
4595
4596         roundl: Don't override undeclared system function on IRIX 6.5.
4597         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
4598         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
4599         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
4600         * modules/roundl (configure.ac): For replacement code, test
4601         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
4602         (Depends-on): Update conditions.
4603         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
4604
4605 2012-03-07  Bruno Haible  <bruno@clisp.org>
4606
4607         roundf: Don't override undeclared system function on IRIX 6.5.
4608         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
4609         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
4610         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
4611         * modules/roundf (configure.ac): For replacement code, test
4612         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
4613         (Depends-on): Update conditions.
4614         * modules/roundf-ieee (Depends-on): Update conditions.
4615         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
4616
4617 2012-03-07  Bruno Haible  <bruno@clisp.org>
4618
4619         round: Don't override undeclared system function on IRIX 6.5.
4620         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
4621         argument.
4622         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
4623         also when it is not declared. Set HAVE_ROUND. For replacement code,
4624         test HAVE_ROUND, not HAVE_DECL_ROUND.
4625         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
4626         not HAVE_DECL_ROUND.
4627         (Depends-on): Update conditions.
4628         * modules/round-ieee (Depends-on): Update conditions.
4629         * doc/posix-functions/round.texi: Mention the IRIX problem.
4630
4631 2012-03-07  Bruno Haible  <bruno@clisp.org>
4632
4633         copysignf: Don't override undeclared system function on IRIX 6.5.
4634         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
4635         HAVE_COPYSIGNF.
4636         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
4637         declared when it exists. Set HAVE_DECL_COPYSIGNF.
4638         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
4639         not HAVE_COPYSIGNF.
4640         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
4641         HAVE_COPYSIGNF.
4642         * doc/posix-functions/copysignf.texi: Mention missing declaration
4643         problem.
4644
4645 2012-03-07  Jim Meyering  <meyering@redhat.com>
4646
4647         readtokens: add tests
4648         * modules/readtokens-tests: New file.
4649         * tests/test-readtokens.c: New file.
4650
4651 2012-03-07  Jim Meyering  <meyering@redhat.com>
4652
4653         quotearg: the module must now include quote.h
4654         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
4655         So must the module.
4656         * modules/quotearg (Files): Add quote.h.
4657
4658 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
4659
4660         readtokens: avoid core dumps with unusual calling patterns
4661         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
4662         * lib/readtokens.c: Include limits.h.
4663         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
4664         (readtoken): Don't cache the delimiters; the cache code was buggy
4665         if !delim && saved_delim, or if the new n_delim differs from the old.
4666         Also, it wasn't thread-safe.
4667
4668 2012-03-07  Bruno Haible  <bruno@clisp.org>
4669
4670         quote: Adhere to common module description layout.
4671         * modules/quote (Makefile.am): Add back empty section.
4672
4673 2012-03-06  Akim Demaille  <demaille@gostai.com>
4674
4675         quote: fuse into quotearg
4676         This patch is made for the benefit of Bison.
4677         quote does not leave the choice of the quoting style to the user.
4678         quoting_style provides poor customizability, yet quoting_options,
4679         which is very rich, is hidden inside quotearg.c.  So in order to
4680         allow quote customization, move its implementation to quotearg.c.
4681         * lib/quote.c: Remove.
4682         * modules/quote: Adjust.
4683         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
4684         warning: provide all the members of literal structs.
4685         (quote_quoting_options): New.
4686         (quote, quote_n): Import implementation from quote.c.
4687         * lib/quote.h: Import the comments from quote.c.
4688         (quote_quoting_options): New.
4689
4690 2012-03-06  Bruno Haible  <bruno@clisp.org>
4691
4692         Tests for module 'expm1l-ieee'.
4693         * modules/expm1l-ieee-tests: New file.
4694         * tests/test-expm1l-ieee.c: New file.
4695
4696         New module 'expm1l-ieee'.
4697         * modules/expm1l-ieee: New file.
4698
4699         Tests for module 'expm1f-ieee'.
4700         * modules/expm1f-ieee-tests: New file.
4701         * tests/test-expm1f-ieee.c: New file.
4702
4703         New module 'expm1f-ieee'.
4704         * modules/expm1f-ieee: New file.
4705
4706         Tests for module 'expm1-ieee'.
4707         * modules/expm1-ieee-tests: New file.
4708         * tests/test-expm1-ieee.c: New file.
4709         * tests/test-expm1-ieee.h: New file.
4710
4711         New module 'expm1-ieee'.
4712         * modules/expm1-ieee: New file.
4713         * m4/expm1-ieee.m4: New file.
4714         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
4715         whether expm1 works with a minus zero argument. Replace it if not.
4716         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
4717         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
4718         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
4719         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
4720         (Depends-on): Update conditions.
4721         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
4722         AIX problem.
4723
4724 2012-03-06  Bruno Haible  <bruno@clisp.org>
4725
4726         Work around expm1f bug on IRIX 6.5.
4727         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
4728         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
4729         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
4730         not work.
4731         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
4732         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
4733         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
4734         (Depends-on): Update conditions.
4735         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
4736
4737 2012-03-06  Bruno Haible  <bruno@clisp.org>
4738
4739         Tests for module 'expm1l'.
4740         * modules/expm1l-tests: New file.
4741         * tests/test-expm1l.c: New file.
4742
4743         New module 'expm1l'.
4744         * lib/math.in.h (expm1l): New declaration.
4745         * lib/expm1l.c: New file.
4746         * m4/expm1l.m4: New file.
4747         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
4748         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
4749         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
4750         * modules/expm1l: New file.
4751         * tests/test-math-c++.cc: Check the declaration of expm1l.
4752         * doc/posix-functions/expm1l.texi: Mention the new module.
4753
4754 2012-03-06  Bruno Haible  <bruno@clisp.org>
4755
4756         Tests for module 'expm1f'.
4757         * modules/expm1f-tests: New file.
4758         * tests/test-expm1f.c: New file.
4759
4760         New module 'expm1f'.
4761         * lib/math.in.h (expm1f): New declaration.
4762         * lib/expm1f.c: New file.
4763         * m4/expm1f.m4: New file.
4764         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
4765         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
4766         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
4767         * modules/expm1f: New file.
4768         * tests/test-math-c++.cc: Check the declaration of expm1f.
4769         * doc/posix-functions/expm1f.texi: Mention the new module.
4770
4771 2012-03-06  Bruno Haible  <bruno@clisp.org>
4772
4773         Tests for module 'expm1'.
4774         * modules/expm1-tests: New file.
4775         * tests/test-expm1.c: New file.
4776         * tests/test-expm1.h: New file.
4777
4778         New module 'expm1'.
4779         * lib/math.in.h (expm1): New declaration.
4780         * lib/expm1.c: New file.
4781         * m4/expm1.m4: New file.
4782         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
4783         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
4784         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
4785         * modules/expm1: New file.
4786         * tests/test-math-c++.cc: Check the declaration of expm1.
4787         * doc/posix-functions/expm1.texi: Mention the new module.
4788
4789 2012-03-06  Bruno Haible  <bruno@clisp.org>
4790
4791         math: Ensure declarations of math functions.
4792         * modules/acosf (Depends-on): Add 'extensions'.
4793         * modules/asinf (Depends-on): Likewise.
4794         * modules/atan2f (Depends-on): Likewise.
4795         * modules/atanf (Depends-on): Likewise.
4796         * modules/cbrt (Depends-on): Likewise.
4797         * modules/cbrtf (Depends-on): Likewise.
4798         * modules/cbrtl (Depends-on): Likewise.
4799         * modules/copysignf (Depends-on): Likewise.
4800         * modules/copysignl (Depends-on): Likewise.
4801         * modules/cosf (Depends-on): Likewise.
4802         * modules/coshf (Depends-on): Likewise.
4803         * modules/expf (Depends-on): Likewise.
4804         * modules/fabsf (Depends-on): Likewise.
4805         * modules/fabsl (Depends-on): Likewise.
4806         * modules/fmaf (Depends-on): Likewise.
4807         * modules/fmal (Depends-on): Likewise.
4808         * modules/fmodf (Depends-on): Likewise.
4809         * modules/fmodl (Depends-on): Likewise.
4810         * modules/frexpf (Depends-on): Likewise.
4811         * modules/frexpl (Depends-on): Likewise.
4812         * modules/hypot (Depends-on): Likewise.
4813         * modules/hypotf (Depends-on): Likewise.
4814         * modules/hypotl (Depends-on): Likewise.
4815         * modules/ldexpf (Depends-on): Likewise.
4816         * modules/ldexpl (Depends-on): Likewise.
4817         * modules/log10f (Depends-on): Likewise.
4818         * modules/log10l (Depends-on): Likewise.
4819         * modules/log1p (Depends-on): Likewise.
4820         * modules/logb (Depends-on): Likewise.
4821         * modules/logf (Depends-on): Likewise.
4822         * modules/modff (Depends-on): Likewise.
4823         * modules/modfl (Depends-on): Likewise.
4824         * modules/powf (Depends-on): Likewise.
4825         * modules/remainderf (Depends-on): Likewise.
4826         * modules/remainderl (Depends-on): Likewise.
4827         * modules/rintf (Depends-on): Likewise.
4828         * modules/rintl (Depends-on): Likewise.
4829         * modules/sinf (Depends-on): Likewise.
4830         * modules/sinhf (Depends-on): Likewise.
4831         * modules/sqrtf (Depends-on): Likewise.
4832         * modules/tanf (Depends-on): Likewise.
4833         * modules/tanhf (Depends-on): Likewise.
4834         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
4835         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
4836         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
4837         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
4838         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
4839         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
4840         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
4841         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
4842         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
4843         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
4844         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
4845         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
4846         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
4847         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
4848         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
4849         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
4850         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
4851         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
4852         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
4853         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
4854         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
4855         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
4856         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
4857         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
4858         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
4859         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
4860         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
4861         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
4862         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
4863         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
4864         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
4865         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
4866         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
4867         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
4868         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
4869         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
4870         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
4871         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
4872         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
4873         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
4874         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
4875
4876 2012-03-06  Bruno Haible  <bruno@clisp.org>
4877
4878         math: Update module names in warnings.
4879         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
4880         tanl): Use specific module name in warn-on-use warning.
4881
4882 2012-03-06  Bruno Haible  <bruno@clisp.org>
4883
4884         expl: Simplify computation.
4885         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
4886
4887 2012-03-05  Bruno Haible  <bruno@clisp.org>
4888
4889         exp* tests: More tests.
4890         * tests/test-exp.h: New file.
4891         * tests/test-exp.c: Include <float.h> and test-exp.h.
4892         (main): Invoke test_function.
4893         * tests/test-expf.c: Include <float.h> and test-exp.h.
4894         (main): Invoke test_function.
4895         * tests/test-expl.c: Include <float.h> and test-exp.h.
4896         (main): Invoke test_function.
4897         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
4898         (Makefile.am): Add randomd.c to test_exp_SOURCES.
4899         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
4900         (Makefile.am): Add randomf.c to test_expf_SOURCES.
4901         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
4902         (Depends-on): Add 'float'.
4903         (Makefile.am): Add randoml.c to test_expl_SOURCES.
4904
4905         expl: Fix precision of computed result.
4906         * lib/expl.c: Completely rewritten.
4907         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
4908         (Maintainer): Add me.
4909         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
4910
4911 2012-03-05  Bruno Haible  <bruno@clisp.org>
4912
4913         cbrt* tests: More tests.
4914         * tests/test-cbrt.h: New file.
4915         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
4916         (main): Invoke test_function.
4917         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
4918         (main): Invoke test_function.
4919         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
4920         (main): Invoke test_function.
4921         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
4922         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
4923         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
4924         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
4925         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
4926         (Depends-on): Add 'float'.
4927         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
4928
4929 2012-03-05  Bruno Haible  <bruno@clisp.org>
4930
4931         hypot* tests: More tests.
4932         * tests/test-hypot.h: New file, partially extracted from
4933         tests/test-hypotl.c.
4934         * tests/test-hypot.c: Include test-hypot.h.
4935         (main): Invoke test_function.
4936         * tests/test-hypotf.c: Include test-hypot.h.
4937         (main): Invoke test_function.
4938         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
4939         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
4940         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
4941         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
4942         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
4943         tests/randomf.c.
4944         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
4945         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
4946         tests/randoml.c.
4947         (Depends-on): Add 'fpucw', 'float'.
4948         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
4949
4950 2012-03-05  Bruno Haible  <bruno@clisp.org>
4951
4952         fpucw: Doc about FreeBSD.
4953         * lib/fpucw.h: Mention FreeBSD in comments.
4954
4955 2012-03-04  Bruno Haible  <bruno@clisp.org>
4956
4957         sqrt* tests: More tests.
4958         * tests/test-sqrt.h: New file.
4959         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
4960         (main): Invoke test_function.
4961         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
4962         (main): Invoke test_function.
4963         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
4964         (main): Invoke test_function.
4965         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
4966         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
4967         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
4968         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
4969         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
4970         (Depends-on): Add 'float'.
4971         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
4972
4973 2012-03-04  Bruno Haible  <bruno@clisp.org>
4974
4975         remainder* tests: More tests.
4976         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
4977         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
4978         (main): Invoke test_function.
4979         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
4980         (main): Invoke test_function.
4981         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
4982         (main): Invoke test_function.
4983         * modules/remainder-tests (Files): Add tests/test-remainder.h,
4984         tests/randomd.c.
4985         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
4986         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
4987         tests/randomf.c.
4988         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
4989         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
4990         tests/randoml.c.
4991         (Depends-on): Add 'float'.
4992         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
4993
4994 2012-03-04  Bruno Haible  <bruno@clisp.org>
4995
4996         remainder, remainderf, remainderl: Fix computation for large quotients.
4997         * lib/remainder.c: Completely rewritten.
4998         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
4999         USE_FLOAT.
5000         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
5001         USE_LONG_DOUBLE.
5002         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
5003         isnand, isinf. Remove round, fma.
5004         * modules/remainderf (Files): Add lib/remainder.c.
5005         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
5006         Remove roundf, fmaf.
5007         * modules/remainderl (Files): Add lib/remainder.c.
5008         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
5009         isinf. Remove roundl, fmal.
5010         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
5011         REMAINDER_LIBM.
5012         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
5013         REMAINDERF_LIBM.
5014         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
5015         REMAINDERL_LIBM.
5016
5017 2012-03-04  Bruno Haible  <bruno@clisp.org>
5018
5019         fmod* tests: More tests.
5020         * tests/test-fmod.h (my_ldexp): New function.
5021         (test_function): Reduce amount of random numbers to test. Add tests
5022         of very large quotients x / y.
5023         * tests/test-fmod.c (MAX_EXP): New macro.
5024         * tests/test-fmodf.c (MAX_EXP): Likewise.
5025         * tests/test-fmodl.c (MAX_EXP): Likewise.
5026
5027 2012-03-04  Bruno Haible  <bruno@clisp.org>
5028
5029         fmod, fmodl: Fix computation for large quotients x / y.
5030         * lib/fmod.c: Completely rewritten.
5031         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
5032         USE_LONG_DOUBLE.
5033         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
5034         isnand. Remove fma.
5035         * modules/fmodl (Files): Add lib/fmod.c.
5036         (Depends-on): Add float, isfinite, signbit, fabsl,
5037         frexpl, ldexpl, isnanl. Remove fma.
5038         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
5039         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
5040
5041 2012-03-03  Bruno Haible  <bruno@clisp.org>
5042
5043         fmod* tests: More tests.
5044         * tests/test-fmod.h: New file.
5045         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
5046         (main): Invoke test_function.
5047         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
5048         (main): Invoke test_function.
5049         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
5050         (main): Invoke test_function.
5051         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
5052         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
5053         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
5054         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
5055         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
5056         (Depends-on): Add 'float'.
5057         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
5058
5059 2012-03-03  Bruno Haible  <bruno@clisp.org>
5060
5061         rint* tests: More tests.
5062         * tests/test-rint.h: New file, partially extracted from
5063         tests/test-rintl.c.
5064         * tests/test-rint.c: Include test-rint.h.
5065         (main): Invoke test_function.
5066         * tests/test-rintf.c: Include test-rint.h.
5067         (main): Invoke test_function.
5068         * tests/test-rintl.c: Include test-rint.h.
5069         (main): Invoke test_function.
5070         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
5071         (Makefile.am): Add randomd.c to test_rint_SOURCES.
5072         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
5073         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
5074         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
5075         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
5076
5077 2012-03-03  Bruno Haible  <bruno@clisp.org>
5078
5079         modf* tests: More tests.
5080         * tests/test-modf.h: New file.
5081         * tests/test-modf.c: Include <float.h> and test-modf.h.
5082         (main): Invoke test_function.
5083         * tests/test-modff.c: Include <float.h> and test-modf.h.
5084         (main): Invoke test_function.
5085         * tests/test-modfl.c: Include <float.h> and test-modf.h.
5086         (main): Invoke test_function.
5087         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
5088         (Makefile.am): Add randomd.c to test_modf_SOURCES.
5089         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
5090         (Makefile.am): Add randomf.c to test_modff_SOURCES.
5091         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
5092         (Depends-on): Add 'float'.
5093         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
5094
5095 2012-03-03  Bruno Haible  <bruno@clisp.org>
5096
5097         fabs* tests: More tests.
5098         * tests/test-fabs.h: New file, partially extracted from
5099         tests/test-fabsl.c.
5100         * tests/test-fabs.c (RANDOM): New macro.
5101         * tests/test-fabsf.c (RANDOM): New macro.
5102         * tests/test-fabsl.c (RANDOM): New macro.
5103         * modules/fabs-tests (Files): Add tests/randomd.c.
5104         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
5105         * modules/fabsf-tests (Files): Add tests/randomf.c.
5106         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
5107         * modules/fabsl-tests (Files): Add tests/randoml.c.
5108         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
5109
5110 2012-03-03  Bruno Haible  <bruno@clisp.org>
5111
5112         ldexp* tests: More tests.
5113         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
5114         * tests/test-ldexp.c (RANDOM): New macro.
5115         * tests/test-ldexpf.c (RANDOM): New macro.
5116         * tests/test-ldexpl.c (RANDOM): New macro.
5117         * modules/ldexp-tests (Files): Add tests/randomd.c.
5118         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
5119         * modules/ldexpf-tests (Files): Add tests/randomf.c.
5120         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
5121         * modules/ldexpl-tests (Files): Add tests/randoml.c.
5122         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
5123
5124 2012-03-03  Bruno Haible  <bruno@clisp.org>
5125
5126         frexp* tests: More tests.
5127         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
5128         * tests/test-frexp.c (RANDOM): New macro.
5129         * tests/test-frexpf.c (RANDOM): New macro.
5130         * tests/test-frexpl.c (RANDOM): New macro.
5131         * modules/frexp-tests (Files): Add tests/randomd.c.
5132         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
5133         * modules/frexpf-tests (Files): Add tests/randomf.c.
5134         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
5135         * modules/frexpl-tests (Files): Add tests/randoml.c.
5136         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
5137
5138 2012-03-03  Bruno Haible  <bruno@clisp.org>
5139
5140         Support for pseudo-random numbers in tests.
5141         * tests/randomf.c: New file.
5142         * tests/randomd.c: New file.
5143         * tests/randoml.c: New file.
5144         * tests/macros.h (randomf, randomd, randoml): New declarations.
5145
5146 2012-03-03  Bruno Haible  <bruno@clisp.org>
5147
5148         frexp* tests: Refactor.
5149         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
5150         * tests/test-frexp.c: Include and use it.
5151         * tests/test-frexpf.c: Likewise.
5152         * tests/test-frexpl.c: Likewise.
5153         * modules/frexp-tests (Files): Add tests/test-frexp.h.
5154         * modules/frexpf-tests (Files): Likewise.
5155         * modules/frexpl-tests (Files): Likewise.
5156
5157 2012-03-02  Jim Meyering  <meyering@redhat.com>
5158
5159         maint: don't specify XZ_OPT=-9ev in dist-related rule
5160         Using xz's -9 option is warranted only if you have a very large
5161         tarball (see xz's documentation for the sizes vs. presets), and
5162         requires 64MiB of memory at decompression time.
5163         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
5164         Automake's default of just "-e" is fine.  Override on a
5165         per-package basis by setting XZ_OPT e.g., in cfg.mk.
5166
5167 2012-03-01  Eric Blake  <eblake@redhat.com>
5168
5169         maint.mk: allow announcement for non-gnulib project
5170         * maint.mk (announcement): Skip gnulib version if not used.
5171
5172 2012-03-01  Jim Meyering  <meyering@redhat.com>
5173
5174         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
5175         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
5176         envvar settings cannot interfere.  Otherwise, setting envvars like
5177         prohibit=foo require=bar, etc. would cause spurious test failures.
5178
5179 2012-03-01  Eric Blake  <eblake@redhat.com>
5180
5181         maint.mk: add per-line exclusions to prohibitions
5182         * maint.mk (_sc_search_regexp): Add $exclude parameter.
5183         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
5184         (sc_const_long_option): Use it.
5185
5186 2012-03-01  Bruno Haible  <bruno@clisp.org>
5187
5188         Tests for module 'expl-ieee'.
5189         * modules/expl-ieee-tests: New file.
5190         * tests/test-expl-ieee.c: New file.
5191
5192         New module 'expl-ieee'.
5193         * modules/expl-ieee: New file.
5194
5195         Tests for module 'exp-ieee'.
5196         * modules/exp-ieee-tests: New file.
5197         * tests/test-exp-ieee.c: New file.
5198
5199         New module 'exp-ieee'.
5200         * modules/exp-ieee: New file.
5201
5202         Tests for module 'expf-ieee'.
5203         * modules/expf-ieee-tests: New file.
5204         * tests/test-expf-ieee.c: New file.
5205         * tests/test-exp-ieee.h: New file.
5206
5207         New module 'expf-ieee'.
5208         * modules/expf-ieee: New file.
5209
5210 2012-02-29  Bruno Haible  <bruno@clisp.org>
5211
5212         cbrtl-ieee: Work around test failure on IRIX 6.5.
5213         * m4/cbrtl-ieee.m4: New file.
5214         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
5215         test whether cbrtl works with a minus zero argument. Replace it if not.
5216         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
5217         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
5218         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
5219         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
5220         (Depends-on): Update conditions.
5221         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
5222         m4/signbit.m4.
5223         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
5224         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
5225         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
5226
5227         Tests for module 'cbrtl-ieee'.
5228         * modules/cbrtl-ieee-tests: New file.
5229         * tests/test-cbrtl-ieee.c: New file.
5230
5231         New module 'cbrtl-ieee'.
5232         * modules/cbrtl-ieee: New file.
5233
5234         Tests for module 'cbrt-ieee'.
5235         * modules/cbrt-ieee-tests: New file.
5236         * tests/test-cbrt-ieee.c: New file.
5237
5238         New module 'cbrt-ieee'.
5239         * modules/cbrt-ieee: New file.
5240
5241         Tests for module 'cbrtf-ieee'.
5242         * modules/cbrtf-ieee-tests: New file.
5243         * tests/test-cbrtf-ieee.c: New file.
5244         * tests/test-cbrt-ieee.h: New file.
5245
5246         New module 'cbrtf-ieee'.
5247         * modules/cbrtf-ieee: New file.
5248
5249 2012-02-29  Bruno Haible  <bruno@clisp.org>
5250
5251         cbrtf: Work around bug in IRIX 6.5 system function.
5252         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
5253         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
5254         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
5255         work.
5256         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
5257         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
5258         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
5259         (Depends-on): Update conditions.
5260         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
5261
5262 2012-02-29  Bruno Haible  <bruno@clisp.org>
5263
5264         Tests for module 'cbrtl'.
5265         * modules/cbrtl-tests: New file.
5266         * tests/test-cbrtl.c: New file.
5267
5268         New module 'cbrtl'.
5269         * lib/math.in.h (cbrtl): New declaration.
5270         * lib/cbrtl.c: New file.
5271         * m4/cbrtl.m4: New file.
5272         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
5273         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
5274         HAVE_DECL_CBRTL.
5275         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
5276         HAVE_DECL_CBRTL.
5277         * modules/cbrtl: New file.
5278         * tests/test-math-c++.cc: Check the declaration of cbrtl.
5279         * doc/posix-functions/cbrtl.texi: Mention the new module.
5280
5281 2012-02-29  Bruno Haible  <bruno@clisp.org>
5282
5283         Tests for module 'cbrtf'.
5284         * modules/cbrtf-tests: New file.
5285         * tests/test-cbrtf.c: New file.
5286
5287         New module 'cbrtf'.
5288         * lib/math.in.h (cbrtf): New declaration.
5289         * lib/cbrtf.c: New file.
5290         * m4/cbrtf.m4: New file.
5291         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
5292         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
5293         HAVE_DECL_CBRTF.
5294         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
5295         HAVE_DECL_CBRTF.
5296         * modules/cbrtf: New file.
5297         * tests/test-math-c++.cc: Check the declaration of cbrtf.
5298         * doc/posix-functions/cbrtf.texi: Mention the new module.
5299
5300 2012-02-29  Bruno Haible  <bruno@clisp.org>
5301
5302         cbrt: Provide replacement on MSVC and Minix.
5303         * lib/math.in.h (cbrt): New declaration.
5304         * lib/cbrt.c: New file.
5305         * m4/cbrt.m4: New file.
5306         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
5307         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
5308         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
5309         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
5310         (Depends-on): Add dependencies.
5311         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
5312         * tests/test-math-c++.cc: Check the declaration of cbrt.
5313         * doc/posix-functions/cbrt.texi: Mention that the module provides a
5314         replacement.
5315
5316 2012-02-29  Bruno Haible  <bruno@clisp.org>
5317
5318         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
5319         * m4/hypotl-ieee.m4: New file.
5320         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
5321         test whether hypotl works with mixed NaN and Infinity arguments.
5322         Replace it if not.
5323         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
5324         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
5325         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
5326         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
5327         (Depends-on): Update conditions.
5328         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
5329         (Depends-on): Add hypot-ieee.
5330         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
5331         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
5332
5333         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
5334         * m4/hypotf-ieee.m4: New file.
5335         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
5336         test whether hypotf works with mixed NaN and Infinity arguments.
5337         Replace it if not.
5338         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
5339         (Depends-on): Add hypot-ieee.
5340         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
5341         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
5342
5343         hypot-ieee: Work around test failure on OSF/1 and native Windows.
5344         * lib/math.in.h (hypot): New declaration.
5345         * lib/hypot.c: New file.
5346         * m4/hypot-ieee.m4: New file.
5347         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
5348         whether hypot works with mixed NaN and Infinity arguments. Replace it
5349         if not.
5350         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
5351         REPLACE_HYPOT.
5352         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
5353         * modules/hypot (Files): Add lib/hypot.c.
5354         (Depends-on): Add dependencies.
5355         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
5356         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
5357         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
5358         * tests/test-math-c++.cc: Check the declaration of hypot.
5359         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
5360
5361         Tests for module 'hypotl-ieee'.
5362         * modules/hypotl-ieee-tests: New file.
5363         * tests/test-hypotl-ieee.c: New file.
5364
5365         New module 'hypotl-ieee'.
5366         * modules/hypotl-ieee: New file.
5367
5368         Tests for module 'hypot-ieee'.
5369         * modules/hypot-ieee-tests: New file.
5370         * tests/test-hypot-ieee.c: New file.
5371
5372         New module 'hypot-ieee'.
5373         * modules/hypot-ieee: New file.
5374
5375         Tests for module 'hypotf-ieee'.
5376         * modules/hypotf-ieee-tests: New file.
5377         * tests/test-hypotf-ieee.c: New file.
5378         * tests/test-hypot-ieee.h: New file.
5379
5380         New module 'hypotf-ieee'.
5381         * modules/hypotf-ieee: New file.
5382
5383 2012-02-29  Bruno Haible  <bruno@clisp.org>
5384
5385         Remove unused variables.
5386         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
5387         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
5388         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
5389         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
5390
5391 2012-02-29  Eric Blake  <eblake@redhat.com>
5392
5393         termios: fix pid_t always, not just for tcgetsid
5394         * doc/posix-headers/termios.texi (termios.h): Mention problem.
5395         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
5396         just when building tcgetsid.
5397
5398 2012-02-29  Bruno Haible  <bruno@clisp.org>
5399
5400         Tests for module 'hypotl'.
5401         * modules/hypotl-tests: New file.
5402         * tests/test-hypotl.c: New file.
5403
5404         New module 'hypotl'.
5405         * lib/math.in.h (hypotl): New declaration.
5406         * lib/hypotl.c: New file.
5407         * m4/hypotl.m4: New file.
5408         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
5409         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
5410         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
5411         * modules/hypotl: New file.
5412         * tests/test-math-c++.cc: Check the hypotl declaration.
5413         * doc/posix-functions/hypotl.texi: Mention the new module.
5414
5415 2012-02-29  Eric Blake  <eblake@redhat.com>
5416
5417         tcgetsid: fix cygwin header bug
5418         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
5419
5420         docs: update cygwin progress
5421         * doc/posix-functions/llround.texi (llround): Added in cygwin
5422         1.7.8.
5423         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
5424         * doc/glibc-functions/program_invocation_name.texi
5425         (program_invocation_name): Likewise.
5426         * doc/glibc-functions/program_invocation_short_name.texi
5427         (program_invocation_short_name): Likewise.
5428         * doc/glibc-functions/madvise.texi (madvise): Likewise.
5429         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
5430         Likewise.
5431         * doc/posix-functions/pthread_spin_destroy.texi
5432         (pthread_spin_destroy): Added in cygwin 1.7.10.
5433         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
5434         Likewise.
5435         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
5436         Likewise.
5437         * doc/posix-functions/pthread_spin_trylock.texi
5438         (pthread_spin_trylock): Likewise.
5439         * doc/posix-functions/pthread_spin_unlock.texi
5440         (pthread_spin_unlock): Likewise.
5441         * doc/posix-functions/pthread_setschedprio.texi
5442         (pthread_setschedprio): Likewise.
5443         * doc/posix-functions/pthread_attr_getstack.texi
5444         (pthread_attr_getstack): Likewise.
5445         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
5446         (pthread_attr_getstackaddr): Likewise.
5447         * doc/glibc-functions/pthread_getattr_np.texi
5448         (pthread_getattr_np): Likewise.
5449         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
5450         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
5451         * doc/posix-functions/clock_settime.texi (clock_settime):
5452         Likewise.
5453         * doc/posix-functions/pthread_attr_getguardsize.texi
5454         (pthread_attr_getguardsize): Likewise.
5455         * doc/posix-functions/pthread_attr_setguardsize.texi
5456         (pthread_attr_setguardsize): Likewise.
5457         * doc/posix-functions/pthread_attr_setstack.texi
5458         (pthread_attr_setstack): Likewise.
5459         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
5460         (pthread_attr_setstackaddr): Likewise.
5461         * doc/posix-functions/clock_getcpuclockid.texi
5462         (clock_getcpuclockid): Likewise.
5463         * doc/posix-functions/pthread_getcpuclockid.texi
5464         (pthread_getcpuclockid): Likewise.
5465         * doc/glibc-functions/error.texi (error): Likewise.
5466         * doc/glibc-functions/error_at_line.texi (error_at_line):
5467         Likewise.
5468         * doc/glibc-functions/error_message_count.texi
5469         (error_message_count): Likewise.
5470         * doc/glibc-functions/error_one_per_line.texi
5471         (error_one_per_line): Likewise.
5472         * doc/glibc-functions/error_print_progname.texi
5473         (error_print_progname): Likewise.
5474         * doc/posix-functions/pthread_condattr_getclock.texi
5475         (pthread_condattr_getclock): Likewise.
5476         * doc/posix-functions/pthread_condattr_setclock.texi
5477         (pthread_condattr_setclock): Likewise.
5478         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
5479         Likewise.
5480         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
5481         * doc/glibc-functions/getpt.texi (getpt): Likewise.
5482         * doc/glibc-functions/get_current_dir_name.texi
5483         (get_current_dir_name): Likewise.
5484         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
5485         Likewise.
5486         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
5487         wrong return type.
5488         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
5489         1.7.11.
5490
5491 2012-02-29  Bruno Haible  <bruno@clisp.org>
5492
5493         Tests for module 'hypotf'.
5494         * modules/hypotf-tests: New file.
5495         * tests/test-hypotf.c: New file.
5496
5497         New module 'hypotf'.
5498         * lib/math.in.h (hypotf): New declaration.
5499         * lib/hypotf.c: New file.
5500         * m4/hypotf.m4: New file.
5501         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
5502         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
5503         REPLACE_HYPOTF.
5504         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
5505         REPLACE_HYPOTF.
5506         * modules/hypotf: New file.
5507         * tests/test-math-c++.cc: Check the hypotf declaration.
5508         * doc/posix-functions/hypotf.texi: Mention the new module.
5509
5510         hypot: Prepare for hypotf module.
5511         * m4/hypot.m4: New file.
5512         * modules/hypot (Files): Add m4/hypot.m4.
5513         (configure.ac): Invoke gl_FUNC_HYPOT.
5514
5515 2012-02-29  Bruno Haible  <bruno@clisp.org>
5516
5517         hypot tests: More tests.
5518         * tests/test-hypot.c: Include <float.h>.
5519         (main): Add tests about overflow and underflow.
5520
5521 2012-02-29  Bruno Haible  <bruno@clisp.org>
5522
5523         math code: Add comments.
5524         * lib/acosl.c: Add comment about related glibc source files.
5525         * lib/asinl.c: Likewise.
5526         * lib/atanl.c: Likewise.
5527         * lib/expl.c: Likewise.
5528         * lib/logl.c: Likewise.
5529         * lib/sincosl.c: Likewise.
5530         * lib/sinl.c: Likewise.
5531         * lib/tanl.c: Likewise.
5532         * lib/trigl.c: Likewise.
5533         * lib/cosl.c: Likewise. Fix comments.
5534
5535 2012-02-28  Bruno Haible  <bruno@clisp.org>
5536
5537         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
5538         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
5539         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
5540         HUGE_VALL are defined.
5541         (numeric_equald): Renamed from numeric_equal.
5542         (numeric_equalf, numeric_equall): New functions.
5543         (main): Check also HUGE_VALF, HUGE_VALL.
5544         * modules/math-tests (Files): Add tests/macros.h.
5545         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
5546         HUGE_VALL.
5547
5548 2012-02-28  Bruno Haible  <bruno@clisp.org>
5549
5550         doc: Move ISO C11 feature notes into POSIX chapters.
5551         * doc/posix-functions/aligned_alloc.texi: Renamed from
5552         doc/glibc-functions/aligned_alloc.texi.
5553         * doc/posix-functions/quick_exit.texi: Renamed from
5554         doc/glibc-functions/quick_exit.texi.
5555         * doc/posix-headers/uchar.texi: Renamed from
5556         doc/glibc-headers/uchar.texi.
5557         * doc/posix-functions/c16rtomb.texi: Renamed from
5558         doc/glibc-functions/c16rtomb.texi.
5559         * doc/posix-functions/c32rtomb.texi: Renamed from
5560         doc/glibc-functions/c32rtomb.texi.
5561         * doc/posix-functions/mbrtoc16.texi: Renamed from
5562         doc/glibc-functions/mbrtoc16.texi.
5563         * doc/posix-functions/mbrtoc32.texi: Renamed from
5564         doc/glibc-functions/mbrtoc32.texi.
5565         * doc/gnulib.texi: Update.
5566         (Glibc uchar.h): Remove section.
5567         Suggested by Eric Blake.
5568
5569 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
5570
5571         stdnoreturn: port to MSVC better
5572         MSVC standard headers use __declspec(noreturn), so #define noreturn
5573         to empty on that platform.  Reported by Bruno Haible in
5574         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
5575         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
5576         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
5577
5578 2012-02-28  Bruno Haible  <bruno@clisp.org>
5579
5580         doc: Mention new glibc headers and functions.
5581         * doc/glibc-headers/uchar.texi: New file.
5582         * doc/glibc-functions/aligned_alloc.texi: New file.
5583         * doc/glibc-functions/c16rtomb.texi: New file.
5584         * doc/glibc-functions/c32rtomb.texi: New file.
5585         * doc/glibc-functions/clock_adjtime.texi: New file.
5586         * doc/glibc-functions/fanotify_init.texi: New file.
5587         * doc/glibc-functions/fanotify_mark.texi: New file.
5588         * doc/glibc-functions/inet6_opt_append.texi: New file.
5589         * doc/glibc-functions/inet6_opt_find.texi: New file.
5590         * doc/glibc-functions/inet6_opt_finish.texi: New file.
5591         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
5592         * doc/glibc-functions/inet6_opt_init.texi: New file.
5593         * doc/glibc-functions/inet6_opt_next.texi: New file.
5594         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
5595         * doc/glibc-functions/inet6_rth_add.texi: New file.
5596         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
5597         * doc/glibc-functions/inet6_rth_init.texi: New file.
5598         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
5599         * doc/glibc-functions/inet6_rth_segments.texi: New file.
5600         * doc/glibc-functions/inet6_rth_space.texi: New file.
5601         * doc/glibc-functions/login.texi: New file.
5602         * doc/glibc-functions/mbrtoc16.texi: New file.
5603         * doc/glibc-functions/mbrtoc32.texi: New file.
5604         * doc/glibc-functions/name_to_handle_at.texi: New file.
5605         * doc/glibc-functions/ntp_gettimex.texi: New file.
5606         * doc/glibc-functions/open_by_handle_at.texi: New file.
5607         * doc/glibc-functions/prlimit.texi: New file.
5608         * doc/glibc-functions/process_vm_readv.texi: New file.
5609         * doc/glibc-functions/process_vm_writev.texi: New file.
5610         * doc/glibc-functions/recvmmsg.texi: New file.
5611         * doc/glibc-functions/scandirat.texi: New file.
5612         * doc/glibc-functions/sendmmsg.texi: New file.
5613         * doc/glibc-functions/setns.texi: New file.
5614         * doc/glibc-functions/timespec_get.texi: New file.
5615         * doc/gnulib.texi: Include them.
5616         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
5617         sections.
5618         Reported by Eric Blake.
5619
5620 2012-02-28  Bruno Haible  <bruno@clisp.org>
5621
5622         Avoid compilation errors with MSVC option -fp:strict.
5623         * lib/floor.c: Use MSVC specific pragma fenv_access.
5624         * lib/ceil.c: Likewise.
5625         * lib/trunc.c: Likewise.
5626         * lib/round.c: Likewise.
5627         * lib/rint.c: Likewise.
5628         * lib/fma.c: Likewise.
5629         * lib/integer_length.c: Likewise.
5630         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
5631         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
5632         * tests/test-floor2.c: Likewise.
5633         * tests/test-floorf2.c: Likewise.
5634         * tests/test-ceil2.c: Likewise.
5635         * tests/test-ceilf2.c: Likewise.
5636         * tests/test-trunc2.c: Likewise.
5637         * tests/test-truncf2.c: Likewise.
5638         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
5639
5640 2012-02-27  Bruno Haible  <bruno@clisp.org>
5641
5642         Tests for module 'sqrtl-ieee'.
5643         * modules/sqrtl-ieee-tests: New file.
5644         * tests/test-sqrtl-ieee.c: New file.
5645
5646         New module 'sqrtl-ieee'.
5647         * modules/sqrtl-ieee: New file.
5648
5649         Tests for module 'sqrt-ieee'.
5650         * modules/sqrt-ieee-tests: New file.
5651         * tests/test-sqrt-ieee.c: New file.
5652
5653         New module 'sqrt-ieee'.
5654         * modules/sqrt-ieee: New file.
5655
5656         Tests for module 'sqrtf-ieee'.
5657         * modules/sqrtf-ieee-tests: New file.
5658         * tests/test-sqrtf-ieee.c: New file.
5659         * tests/test-sqrt-ieee.h: New file.
5660
5661         New module 'sqrtf-ieee'.
5662         * modules/sqrtf-ieee: New file.
5663
5664 2012-02-27  Bruno Haible  <bruno@clisp.org>
5665
5666         remainderl-ieee: Work around test failure on OSF/1.
5667         * m4/remainderl-ieee.m4: New file.
5668         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
5669         present, test whether remainderl works with a zero second argument.
5670         Replace it if not.
5671         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
5672         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
5673         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
5674         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
5675         (Depends-on): Update conditions.
5676         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
5677         (Depends-on): Add remainder-ieee.
5678         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
5679         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
5680         module.
5681
5682         remainderf-ieee: Work around test failure on OSF/1.
5683         * m4/remainderf-ieee.m4: New file.
5684         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
5685         present, test whether remainderf works with a zero second argument.
5686         Replace it if not.
5687         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
5688         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
5689         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
5690         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
5691         (Depends-on): Update conditions.
5692         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
5693         (Depends-on): Add remainder-ieee.
5694         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
5695         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
5696         module.
5697
5698         remainder-ieee: Work around test failure on OSF/1.
5699         * m4/remainder-ieee.m4: New file.
5700         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
5701         present, test whether remainder works with a zero second argument.
5702         Replace it if not.
5703         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
5704         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
5705         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
5706         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
5707         (Depends-on): Update dependencies.
5708         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
5709         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
5710         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
5711
5712         Tests for module 'remainderl-ieee'.
5713         * modules/remainderl-ieee-tests: New file.
5714         * tests/test-remainderl-ieee.c: New file.
5715
5716         New module 'remainderl-ieee'.
5717         * modules/remainderl-ieee: New file.
5718
5719         Tests for module 'remainder-ieee'.
5720         * modules/remainder-ieee-tests: New file.
5721         * tests/test-remainder-ieee.c: New file.
5722
5723         New module 'remainder-ieee'.
5724         * modules/remainder-ieee: New file.
5725
5726         Tests for module 'remainderf-ieee'.
5727         * modules/remainderf-ieee-tests: New file.
5728         * tests/test-remainderf-ieee.c: New file.
5729         * tests/test-remainder-ieee.h: New file.
5730
5731         New module 'remainderf-ieee'.
5732         * modules/remainderf-ieee: New file.
5733
5734 2012-02-27  Bruno Haible  <bruno@clisp.org>
5735
5736         modff, modfl: Fix configure syntax error.
5737         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
5738         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
5739
5740 2012-02-27  Bruno Haible  <bruno@clisp.org>
5741
5742         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
5743         * m4/fmodl-ieee.m4: New file.
5744         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
5745         whether fmodl works with zero arguments. Replace it if not.
5746         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
5747         (Depends-on): Add fmod-ieee.
5748         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
5749         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
5750
5751         fmodf-ieee: Work around test failure on OSF/1.
5752         * m4/fmodf-ieee.m4: New file.
5753         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
5754         whether fmodf works with zero arguments. Replace it if not.
5755         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
5756         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
5757         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
5758         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
5759         (Depends-on): Update dependencies.
5760         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
5761         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
5762         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
5763
5764         fmodf-ieee: Work around test failure on MSVC 9.
5765         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
5766         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
5767
5768         fmod-ieee: Work around test failures on OSF/1, mingw.
5769         * m4/fmod-ieee.m4: New file.
5770         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
5771         whether fmod works with zero arguments. Replace it if not.
5772         * lib/math.in.h (fmod): New declaration.
5773         * lib/fmod.c: New file.
5774         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
5775         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
5776         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
5777         * modules/fmod (Files): Add lib/fmod.c.
5778         (Depends-on): Add math, isinf, trunc, fma.
5779         (configure.ac): Arrange to compile lib/fmod.c if needed.
5780         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
5781         m4/signbit.m4.
5782         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
5783         * tests/test-math-c++.cc: Check the declaration of fmod.
5784         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
5785
5786         fmodl-ieee: Fix test failures.
5787         * lib/fmodl.c (fmodl): Treat Inf specially.
5788         * modules/fmodl (Depends-on): Add isinf.
5789
5790         Tests for module 'fmodl-ieee'.
5791         * modules/fmodl-ieee-tests: New file.
5792         * tests/test-fmodl-ieee.c: New file.
5793
5794         New module 'fmodl-ieee'.
5795         * modules/fmodl-ieee: New file.
5796
5797         Tests for module 'fmod-ieee'.
5798         * modules/fmod-ieee-tests: New file.
5799         * tests/test-fmod-ieee.c: New file.
5800
5801         New module 'fmod-ieee'.
5802         * modules/fmod-ieee: New file.
5803
5804         Tests for module 'fmodf-ieee'.
5805         * modules/fmodf-ieee-tests: New file.
5806         * tests/test-fmodf-ieee.c: New file.
5807         * tests/test-fmod-ieee.h: New file.
5808
5809         New module 'fmodf-ieee'.
5810         * modules/fmodf-ieee: New file.
5811
5812 2012-02-27  Bruno Haible  <bruno@clisp.org>
5813
5814         Tests for module 'rintl-ieee'.
5815         * modules/rintl-ieee-tests: New file.
5816         * tests/test-rintl-ieee.c: New file.
5817
5818         New module 'rintl-ieee'.
5819         * modules/rintl-ieee: New file.
5820
5821         Tests for module 'rint-ieee'.
5822         * modules/rint-ieee-tests: New file.
5823         * tests/test-rint-ieee.c: New file.
5824
5825         New module 'rint-ieee'.
5826         * modules/rint-ieee: New file.
5827
5828         Tests for module 'rintf-ieee'.
5829         * modules/rintf-ieee-tests: New file.
5830         * tests/test-rintf-ieee.c: New file.
5831         * tests/test-rint-ieee.h: New file.
5832
5833         New module 'rintf-ieee'.
5834         * modules/rintf-ieee: New file.
5835
5836 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
5837
5838         regex: re_search etc. should return -2 when memory exhausted
5839         This bug was uncovered when testing 'grep'.  Without the fix,
5840         re_search and friends return -1 when memory is exhausted, but -1
5841         means no match, and this causes grep to falsely report no-match
5842         instead of memory-exhaustion.  See
5843         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
5844         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
5845         trouble; this can occur if re_search_internal ran out of memory.
5846
5847 2012-02-26  Bruno Haible  <bruno@clisp.org>
5848
5849         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
5850         * m4/modfl-ieee.m4: New file.
5851         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
5852         whether modfl works with Inf. Replace it if not.
5853         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
5854         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
5855         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
5856         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
5857         (Depends-on): Update dependencies.
5858         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
5859         m4/signbit.m4.
5860         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
5861         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
5862
5863         modfl-ieee: Fix dependencies.
5864         * modules/modfl-ieee (Depends-on): Add modf-ieee.
5865
5866         modfl-ieee: Fix test failures.
5867         * lib/modfl.c (modfl): Treat NaN and Inf specially.
5868         * modules/modfl (Depends-on): Add isfinite, isinf.
5869
5870         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
5871         * m4/modff-ieee.m4: New file.
5872         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
5873         whether modff works with NaN and Inf. Replace it if not.
5874         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
5875         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
5876         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
5877         * modules/modff (configure.ac): Consider REPLACE_MODFF.
5878         (Depends-on): Update dependencies.
5879         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
5880         m4/signbit.m4.
5881         (Depends-on): Add modf-ieee.
5882         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
5883         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
5884
5885         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
5886         * m4/modf-ieee.m4: New file.
5887         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
5888         whether modf works with NaN and Inf. Replace it if not.
5889         * lib/math.in.h (modf): New declaration.
5890         * lib/modf.c: New file.
5891         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
5892         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
5893         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
5894         * modules/modf (Files): Add lib/modf.c.
5895         (Depends-on): Add math, isfinite, trunc, isinf.
5896         (configure.ac): Addrange to compile lib/modf.c if needed.
5897         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
5898         m4/signbit.m4.
5899         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
5900         * tests/test-math-c++.cc: Check the declaration of modf.
5901         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
5902
5903         Tests for module 'modfl-ieee'.
5904         * modules/modfl-ieee-tests: New file.
5905         * tests/test-modfl-ieee.c: New file.
5906
5907         New module 'modfl-ieee'.
5908         * modules/modfl-ieee: New file.
5909
5910         Tests for module 'modf-ieee'.
5911         * modules/modf-ieee-tests: New file.
5912         * tests/test-modf-ieee.c: New file.
5913
5914         New module 'modf-ieee'.
5915         * modules/modf-ieee: New file.
5916
5917         Tests for module 'modff-ieee'.
5918         * modules/modff-ieee-tests: New file.
5919         * tests/test-modff-ieee.c: New file.
5920         * tests/test-modf-ieee.h: New file.
5921
5922         New module 'modff-ieee'.
5923         * modules/modff-ieee: New file.
5924
5925 2012-02-26  Bruno Haible  <bruno@clisp.org>
5926
5927         Tests for module 'fabsl-ieee'.
5928         * modules/fabsl-ieee-tests: New file.
5929         * tests/test-fabsl-ieee.c: New file.
5930
5931         New module 'fabsl-ieee'.
5932         * modules/fabsl-ieee: New file.
5933
5934         Tests for module 'fabs-ieee'.
5935         * modules/fabs-ieee-tests: New file.
5936         * tests/test-fabs-ieee.c: New file.
5937
5938         New module 'fabs-ieee'.
5939         * modules/fabs-ieee: New file.
5940
5941         Tests for module 'fabsf-ieee'.
5942         * modules/fabsf-ieee-tests: New file.
5943         * tests/test-fabsf-ieee.c: New file.
5944         * tests/test-fabs-ieee.h: New file.
5945
5946         New module 'fabsf-ieee'.
5947         * modules/fabsf-ieee: New file.
5948
5949 2012-02-26  Bruno Haible  <bruno@clisp.org>
5950
5951         Tests for module 'fmal-ieee'.
5952         * modules/fmal-ieee-tests: New file.
5953         * tests/test-fmal-ieee.c: New file.
5954
5955         New module 'fmal-ieee'.
5956         * modules/fmal-ieee: New file.
5957
5958         Tests for module 'fma-ieee'.
5959         * modules/fma-ieee-tests: New file.
5960         * tests/test-fma-ieee.c: New file.
5961
5962         New module 'fma-ieee'.
5963         * modules/fma-ieee: New file.
5964
5965         Tests for module 'fmaf-ieee'.
5966         * modules/fmaf-ieee-tests: New file.
5967         * tests/test-fmaf-ieee.c: New file.
5968         * tests/test-fma-ieee.h: New file.
5969
5970         New module 'fmaf-ieee'.
5971         * modules/fmaf-ieee: New file.
5972
5973 2012-02-26  Bruno Haible  <bruno@clisp.org>
5974
5975         Tests for module 'ldexpl-ieee'.
5976         * modules/ldexpl-ieee-tests: New file.
5977         * tests/test-ldexpl-ieee.c: New file.
5978
5979         New module 'ldexpl-ieee'.
5980         * modules/ldexpl-ieee: New file.
5981
5982         Tests for module 'ldexp-ieee'.
5983         * modules/ldexp-ieee-tests: New file.
5984         * tests/test-ldexp-ieee.c: New file.
5985
5986         New module 'ldexp-ieee'.
5987         * modules/ldexp-ieee: New file.
5988
5989         Tests for module 'ldexpf-ieee'.
5990         * modules/ldexpf-ieee-tests: New file.
5991         * tests/test-ldexpf-ieee.c: New file.
5992         * tests/test-ldexp-ieee.h: New file.
5993
5994         New module 'ldexpf-ieee'.
5995         * modules/ldexpf-ieee: New file.
5996
5997 2012-02-26  Bruno Haible  <bruno@clisp.org>
5998
5999         Refactor frexp*-ieee tests.
6000         * tests/test-frexp-ieee.h: New file.
6001         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
6002         (main): Just call test_function.
6003         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
6004         (main): Just call test_function.
6005         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
6006         (main): Just call test_function.
6007         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
6008         * modules/frexp-ieee-tests (Files): Likewise.
6009         * modules/frexpl-ieee-tests (Files): Likewise.
6010
6011         Tests for module 'frexpl-ieee'.
6012         * modules/frexpl-ieee-tests: New file.
6013         * tests/test-frexpl-ieee.c: New file.
6014
6015         New module 'frexpl-ieee'.
6016         * modules/frexpl-ieee: New file.
6017
6018         Tests for module 'frexp-ieee'.
6019         * modules/frexp-ieee-tests: New file.
6020         * tests/test-frexp-ieee.c: New file.
6021
6022         New module 'frexp-ieee'.
6023         * modules/frexp-ieee: New file.
6024
6025         Tests for module 'frexpf-ieee'.
6026         * modules/frexpf-ieee-tests: New file.
6027         * tests/test-frexpf-ieee.c: New file.
6028
6029         New module 'frexpf-ieee'.
6030         * modules/frexpf-ieee: New file.
6031
6032 2012-02-26  Bruno Haible  <bruno@clisp.org>
6033
6034         roundl-ieee tests: More tests.
6035         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
6036         (main): Add tests for [MX] shaded specification in POSIX.
6037         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6038         (Depends-on): Add isnanl-nolibm.
6039
6040         round-ieee tests: More tests.
6041         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
6042         (main): Add tests for [MX] shaded specification in POSIX.
6043         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6044         (Depends-on): Add isnand-nolibm.
6045
6046         roundf-ieee tests: More tests.
6047         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
6048         (main): Add tests for [MX] shaded specification in POSIX.
6049         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6050         (Depends-on): Add isnanf-nolibm.
6051
6052         truncl-ieee tests: More tests.
6053         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
6054         (main): Add tests for [MX] shaded specification in POSIX.
6055         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6056         (Depends-on): Add isnanl-nolibm.
6057
6058         trunc-ieee tests: More tests.
6059         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
6060         (main): Add tests for [MX] shaded specification in POSIX.
6061         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6062         (Depends-on): Add isnand-nolibm.
6063
6064         truncf-ieee tests: More tests.
6065         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
6066         (main): Add tests for [MX] shaded specification in POSIX.
6067         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6068         (Depends-on): Add isnanf-nolibm.
6069
6070         ceill-ieee tests: More tests.
6071         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
6072         (main): Add tests for [MX] shaded specification in POSIX.
6073         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6074         (Depends-on): Add isnanl-nolibm.
6075
6076         ceil-ieee tests: More tests.
6077         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
6078         (main): Add tests for [MX] shaded specification in POSIX.
6079         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6080         (Depends-on): Add isnand-nolibm.
6081
6082         ceilf-ieee tests: More tests.
6083         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
6084         (main): Add tests for [MX] shaded specification in POSIX.
6085         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6086         (Depends-on): Add isnanf-nolibm.
6087
6088         floorl-ieee tests: More tests.
6089         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
6090         (main): Add tests for [MX] shaded specification in POSIX.
6091         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6092         (Depends-on): Add isnanl-nolibm.
6093
6094         floor-ieee tests: More tests.
6095         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
6096         (main): Add tests for [MX] shaded specification in POSIX.
6097         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6098         (Depends-on): Add isnand-nolibm.
6099
6100         floorf-ieee tests: More tests.
6101         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
6102         (main): Add tests for [MX] shaded specification in POSIX.
6103         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6104         (Depends-on): Add isnanf-nolibm.
6105
6106 2012-02-26  Bruno Haible  <bruno@clisp.org>
6107
6108         fpieee: More comments.
6109         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
6110
6111 2012-02-25  Bruno Haible  <bruno@clisp.org>
6112
6113         Tests for module 'log10l'.
6114         * modules/log10l-tests: New file.
6115         * tests/test-log10l.c: New file.
6116         * tests/test-math-c++.cc: Check the declaration of log10l.
6117
6118         New module 'log10l'.
6119         * lib/math.in.h (log10l): New declaration.
6120         * lib/log10l.c: New file.
6121         * m4/log10l.m4: New file.
6122         * modules/log10l: New file.
6123         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
6124         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
6125         HAVE_DECL_LOG10L.
6126         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
6127         HAVE_DECL_LOG10L.
6128         * doc/posix-functions/log10l.texi: Mention the new module.
6129
6130 2012-02-25  Bruno Haible  <bruno@clisp.org>
6131
6132         fmodl, remainder*: Avoid wrong results due to rounding errors.
6133         * lib/fmodl.c (fmodl): Correct the result if it is not within the
6134         expected bounds.
6135         * lib/remainderf.c (remainderf): Likewise.
6136         * lib/remainder.c (remainder): Likewise.
6137         * lib/remainderl.c (remainderl): Likewise.
6138
6139 2012-02-25  Bruno Haible  <bruno@clisp.org>
6140
6141         Tests for module 'remainderl'.
6142         * modules/remainderl-tests: New file.
6143         * tests/test-remainderl.c: New file.
6144         * tests/test-math-c++.cc: Check the declaration of remainderl.
6145
6146         New module 'remainderl'.
6147         * lib/math.in.h (remainderl): New declaration.
6148         * lib/remainderl.c: New file.
6149         * m4/remainderl.m4: New file.
6150         * modules/remainderl: New file.
6151         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
6152         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
6153         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
6154         HAVE_REMAINDERL.
6155         * doc/posix-functions/remainderl.texi: Mention the new module.
6156
6157 2012-02-25  Bruno Haible  <bruno@clisp.org>
6158
6159         Tests for module 'remainderf'.
6160         * modules/remainderf-tests: New file.
6161         * tests/test-remainderf.c: New file.
6162         * tests/test-math-c++.cc: Check the declaration of remainderf.
6163
6164         New module 'remainderf'.
6165         * lib/math.in.h (remainderf): New declaration.
6166         * lib/remainderf.c: New file.
6167         * m4/remainderf.m4: New file.
6168         * modules/remainderf: New file.
6169         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
6170         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
6171         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
6172         HAVE_REMAINDERF.
6173         * doc/posix-functions/remainderf.texi: Mention the new module.
6174
6175 2012-02-25  Bruno Haible  <bruno@clisp.org>
6176
6177         remainder: Support for MSVC.
6178         * lib/math.in.h (remainder): New declaration.
6179         * lib/remainder.c: New file.
6180         * m4/remainder.m4: New file.
6181         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
6182         (Depends-on): Add math, round, fma.
6183         (configure.ac): Use results of gl_FUNC_REMAINDER.
6184         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
6185         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
6186         HAVE_DECL_REMAINDER.
6187         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
6188         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
6189         * tests/test-math-c++.cc: Check the declaration of remainder.
6190         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
6191         problems are fixed.
6192
6193 2012-02-25  Bruno Haible  <bruno@clisp.org>
6194
6195         Tests for module 'fmodl'.
6196         * modules/fmodl-tests: New file.
6197         * tests/test-fmodl.c: New file.
6198         * tests/test-math-c++.cc: Check the declaration of fmodl.
6199
6200         New module 'fmodl'.
6201         * lib/math.in.h (fmodl): New declaration.
6202         * lib/fmodl.c: New file.
6203         * m4/fmodl.m4: New file.
6204         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
6205         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
6206         REPLACE_FMODL.
6207         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
6208         REPLACE_FMODL.
6209         * modules/fmodl: New file.
6210         * doc/posix-functions/fmodl.texi: Mention the new module.
6211
6212 2012-02-25  Bruno Haible  <bruno@clisp.org>
6213
6214         Tests for module 'modfl'.
6215         * modules/modfl-tests: New file.
6216         * tests/test-modfl.c: New file.
6217         * tests/test-math-c++.cc: Check the declaration of modfl.
6218
6219         New module 'modfl'.
6220         * lib/math.in.h (modfl): New declaration.
6221         * lib/modfl.c: New file.
6222         * m4/modfl.m4: New file.
6223         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
6224         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
6225         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
6226         * modules/modfl: New file.
6227         * doc/posix-functions/modfl.texi: Mention the new module.
6228
6229 2012-02-25  Bruno Haible  <bruno@clisp.org>
6230
6231         Tests for module 'fabsl'.
6232         * modules/fabsl-tests: New file.
6233         * tests/test-fabsl.c: New file.
6234         * tests/test-math-c++.cc: Check the declaration of fabsl.
6235
6236         New module 'fabsl'.
6237         * lib/math.in.h (fabsl): New declaration.
6238         * lib/fabsl.c: New file.
6239         * m4/fabsl.m4: New file.
6240         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
6241         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
6242         REPLACE_FABSL.
6243         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
6244         REPLACE_FABSL.
6245         * modules/fabsl: New file.
6246         * doc/posix-functions/fabsl.texi: Mention the new module.
6247
6248 2012-02-25  Bruno Haible  <bruno@clisp.org>
6249
6250         fabs tests: More tests.
6251         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
6252         (zero): New variable.
6253         (main): Add tests for signed zero.
6254         * modules/fabs-tests (Files): Add tests/minus-zero.h.
6255
6256         fabsf tests: More tests.
6257         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
6258         (zero): New variable.
6259         (main): Add tests for signed zero.
6260         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
6261
6262 2012-02-24  Bruno Haible  <bruno@clisp.org>
6263
6264         atanl: Provide function definition on MSVC.
6265         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
6266         function pointer.
6267         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
6268
6269 2012-02-24  Bruno Haible  <bruno@clisp.org>
6270
6271         acosl: Provide function definition on MSVC.
6272         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
6273         function pointer.
6274         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
6275
6276 2012-02-24  Bruno Haible  <bruno@clisp.org>
6277
6278         asinl: Provide function definition on MSVC.
6279         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
6280         function pointer.
6281         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
6282
6283 2012-02-24  Bruno Haible  <bruno@clisp.org>
6284
6285         tanl: Provide function definition on MSVC.
6286         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
6287         function pointer.
6288         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
6289
6290 2012-02-24  Bruno Haible  <bruno@clisp.org>
6291
6292         cosl: Provide function definition on MSVC.
6293         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
6294         function pointer.
6295         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
6296
6297 2012-02-24  Bruno Haible  <bruno@clisp.org>
6298
6299         sinl: Provide function definition on MSVC.
6300         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
6301         function pointer.
6302         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
6303
6304 2012-02-24  Bruno Haible  <bruno@clisp.org>
6305
6306         logl: Provide function definition on MSVC.
6307         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
6308         function pointer.
6309         * lib/math.in.h (logl): Undefine if it does not exist as a function.
6310
6311 2012-02-24  Bruno Haible  <bruno@clisp.org>
6312
6313         expl: Provide function definition on MSVC.
6314         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
6315         function pointer.
6316         * lib/math.in.h (expl): Undefine if it does not exist as a function.
6317
6318 2012-02-24  Bruno Haible  <bruno@clisp.org>
6319
6320         sqrtl: Provide function definition on MSVC.
6321         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
6322         a function pointer.
6323         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
6324
6325 2012-02-24  Bruno Haible  <bruno@clisp.org>
6326
6327         ceill: Provide function definition on MSVC.
6328         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
6329         used as a function pointer.
6330         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
6331
6332 2012-02-24  Bruno Haible  <bruno@clisp.org>
6333
6334         floorl: Provide function definition on MSVC.
6335         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
6336         used as a function pointer.
6337         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
6338
6339 2012-02-24  Bruno Haible  <bruno@clisp.org>
6340
6341         ceilf: Provide function definition on MSVC.
6342         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
6343         used as a function pointer.
6344         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
6345
6346 2012-02-24  Bruno Haible  <bruno@clisp.org>
6347
6348         floorf: Provide function definition on MSVC.
6349         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
6350         used as a function pointer.
6351         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
6352
6353 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
6354
6355         stdnoreturn: new module
6356         This implements a replacement for C11's <stdnoreturn.h>.
6357         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
6358         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
6359         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
6360         * tests/test-stdnoreturn.c: New files.
6361
6362 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
6363
6364         regex: fix false multibyte matches in some regular expressions
6365         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
6366         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
6367         * lib/regex_internal.c (re_string_skip_chars):
6368         Fix miscomputation of remain_len that may cause incomplete
6369         multi-byte character and false match.
6370
6371 2012-02-24  Jim Meyering  <meyering@redhat.com>
6372
6373         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
6374         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
6375         uses with "==" *before* the call, e.g., 0 == strcmp (...)
6376         Remove now-unnecessary str''cmp obfuscation.
6377         Suggested by Akim Demaille.
6378
6379 2012-02-24  Bruno Haible  <bruno@clisp.org>
6380
6381         streq: Rename macro.
6382         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
6383         * NEWS: Mention the change.
6384         * lib/mbrtowc.c (mbrtowc): Update.
6385         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
6386         * lib/wcwidth.c (wcwidth): Update.
6387         Suggested by Akim Demaille and Jim Meyering.
6388
6389 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
6390
6391         regex: fix typo in definition of MIN
6392         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
6393         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
6394
6395 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
6396             Bruno Haible  <bruno@clisp.org>
6397
6398         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
6399         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
6400         entries into a stack-allocated buffer directly.
6401         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
6402
6403 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
6404             Bruno Haible  <bruno@clisp.org>
6405
6406         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
6407
6408          - There were several instances of this pattern:
6409
6410              for (;;) {
6411                n = acl (f, GETACLCNT, 0, NULL);
6412                [ allocate an array A of size N ]
6413                if (acl (f, GETACL, n, a) == n)
6414                  break;
6415              }
6416
6417            This loop might never terminate if some other process is constantly
6418            manipulating the file's ACL.  The loop should be rewritten to
6419            terminate.
6420
6421          - The acl (... GETACLNT ...) call is merely an optimization; its value
6422            is merely a hint as to how big to make the array.  A better
6423            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
6424            and just guess a reasonably-big size, growing the size and trying
6425            again if it's not large enough.  This guarantees termination, and
6426            saves a system call.
6427
6428         * lib/acl-internal.h: Include <limits.h>.
6429         (MIN, SIZE_MAX): New macros.
6430         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
6431         a stack-allocated buffer, and use malloc if it does not fit. Don't
6432         use GETACLCNT.
6433         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
6434
6435 2012-02-19  Bruno Haible  <bruno@clisp.org>
6436
6437         acl: Fix endless loop on Solaris with vxfs.
6438         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
6439         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
6440         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
6441         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
6442         * tests/test-sameacls.c (main)[Solaris]: Likewise.
6443         Reported by Bill Jones in
6444         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
6445
6446 2012-02-19  Bruno Haible  <bruno@clisp.org>
6447
6448         acl: Fix copy-acl test failure on Solaris 11 2011-11.
6449         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
6450         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
6451         that this function returns 0 in some more cases.
6452
6453 2012-02-19  Bruno Haible  <bruno@clisp.org>
6454
6455         acl: Update doc references.
6456         * doc/acl-resources.txt: Update links to Solaris documentation.
6457
6458 2012-02-19  Bruno Haible  <bruno@clisp.org>
6459
6460         Fix test failure in many locales on Solaris 11.
6461         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
6462         'tr' arguments.
6463         * tests/test-pipe-filter-ii1.c (main): Likewise.
6464         * build-aux/bootstrap (check_versions): Run 'tr' command with range
6465         expressions in the C locale.
6466         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
6467         * m4/host-os.m4 (gl_HOST_OS): Likewise.
6468
6469 2012-02-19  Bruno Haible  <bruno@clisp.org>
6470
6471         gnulib-tool: Improve usage message.
6472         * gnulib-tool (func_usage): Move doc of --help and --version to the
6473         section "Operation modes".
6474
6475 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
6476
6477         README-release: make it easier to execute commands
6478         * top/README-release: break commands out on to separate lines.
6479
6480 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
6481
6482         GNUmakefile: simplify detection of unconfigured trees
6483         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
6484         whether the tree make is being run from is already configured or
6485         not.  Related simplifications.
6486
6487 2012-02-13  Simon Josefsson  <simon@josefsson.org>
6488
6489         * gnulib-tool (func_usage): Document --help and --version.
6490
6491 2012-02-11  Jim Meyering  <meyering@redhat.com>
6492
6493         bootstrap: don't exit 0 upon gnulib-tool failure
6494         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
6495         its exit status, not 0.
6496
6497 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
6498
6499         README-release: various improvements
6500         * top/README-release: Give a command to push changes for the
6501         release.  Add "distcheck" to list of other pre-release checks.
6502         Fix instance of "make stable" which should be "make TYPE".
6503
6504 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
6505
6506         maint: replace FSF snail-mail addresses with URLs
6507         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
6508         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
6509         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
6510         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
6511         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
6512         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
6513         * lib/check-version.c, lib/check-version.h, lib/config.charset:
6514         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
6515         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
6516         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
6517         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
6518         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
6519         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
6520         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
6521         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
6522         * lib/glthread/thread.c, lib/glthread/thread.h:
6523         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
6524         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
6525         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
6526         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
6527         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
6528         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
6529         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
6530         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
6531         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
6532         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
6533         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
6534         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
6535         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
6536         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
6537         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
6538         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
6539         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
6540         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
6541         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
6542         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
6543         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
6544         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
6545         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
6546         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
6547         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
6548         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
6549         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
6550         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
6551         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
6552         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
6553         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
6554         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
6555         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
6556         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
6557         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
6558         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
6559         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
6560         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
6561         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
6562         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
6563         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
6564         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
6565         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
6566         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
6567         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
6568         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
6569         * tests/test-poll.c, tests/test-quotearg-simple.c:
6570         * tests/test-quotearg.c, tests/test-quotearg.h:
6571         * tests/test-round-ieee.c, tests/test-round1.c:
6572         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
6573         * tests/test-roundl-ieee.c, tests/test-roundl.c:
6574         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
6575         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
6576         * tests/test-strerror.c, tests/test-strerror_r.c:
6577         * tests/test-strsignal.c, tests/test-strverscmp.c:
6578         * tests/test-xmemdup0.c:
6579         Replace FSF snail mail addresses with URLs, as per GNU coding
6580         standards.  See glibc bug
6581         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
6582
6583 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
6584
6585         README-release: capitalize a word and split a line
6586         * top/README-release: Fix punctuation and spacing.
6587
6588 2012-02-08  Akim Demaille  <demaille@gostai.com>
6589
6590         fatal-signal: use C prototypes (with explicit void).
6591         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
6592         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
6593
6594 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
6595
6596         regex: spelling fix
6597         * lib/regexec.c: spelling fix
6598
6599         regex: rely on stdint.h for SIZE_MAX
6600         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
6601
6602 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
6603
6604         regex: merge glibc changes
6605
6606         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
6607         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
6608         (init_word_char): Work even if bitset words are not exactly 32 or
6609         64 bits wide.  Don't assume there are no padding bits.
6610         * lib/regex.c [_LIBC]: Do not include <config.h>.
6611         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
6612         and -Wtype-limits.
6613         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
6614         needless disagreement with glibc.  All uses changed.  Define it to
6615         1 only if _GNU_SOURCE, to match glibc.
6616         (_REG_RM_NAME): Remove; no longer needed, since the names in
6617         question are now all protected by __USE_GNU.
6618         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
6619         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
6620         * lib/regex_internal.h (MIN): New macro.
6621
6622         2012-01-03 Ulrich Drepper <drepper@gmail.com>
6623         * lib/regcomp.c (init_word_char): Optimize regex a bit.
6624
6625         2011-12-30 Jakub Jelinek <jakub@redhat.com>
6626         * lib/regex_internal.c (re_string_fetch_byte_case):
6627         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
6628         is miscompiled, and it turns out it is because of an incorrect
6629         attribute on re_string_fetch_byte_case.  Unlike
6630         re_string_peek_byte_case, this one is really not pure, it modifies
6631         memory (increments pstr->cur_idx), and with the pure attribute GCC
6632         assumed it doesn't and it cached the presumed value of
6633         regexp->cur_idx in a variable across the
6634          for (;; ++i)
6635            {
6636              if (i >= BRACKET_NAME_BUF_SIZE)
6637                return REG_EBRACK;
6638              if (token->type == OP_OPEN_CHAR_CLASS)
6639                ch = re_string_fetch_byte_case (regexp);
6640              else
6641                ch = re_string_fetch_byte (regexp);
6642              if (re_string_eoi(regexp))
6643                return REG_EBRACK;
6644              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
6645                break;
6646              elem->opr.name[i] = ch;
6647            }
6648
6649         2011-11-29 Andreas Schwab <schwab@redhat.com>
6650         * lib/regcomp.c (build_equiv_class):
6651         Fix access after end of search string in regex matcher.
6652
6653         2011-11-12 Ulrich Drepper <drepper@redhat.com>
6654         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
6655
6656         2011-10-12 Ulrich Drepper <drepper@redhat.com>
6657         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
6658
6659         2011-10-11 Ulrich Drepper <drepper@redhat.com>
6660         * lib/regcomp.c (parse_branch, parse_sub_exp):
6661         More regex memory leak fixes and tests.
6662         (parse_sub_exp, parse_bracket_exp):
6663         Fix memory leak for some invalid regular expressions.
6664
6665         2011-05-28 Ulrich Drepper <drepper@gmail.com>
6666         * lib/regex_internal.c, lib/regexec.c:
6667         Fix unnecessary overallocation due to incomplete character.  When
6668         incomplete characters are found at the end of a string the code
6669         ran amok and allocated lots of memory.  Stricter limits are now in
6670         place.
6671
6672         2011-05-20 Reuben Thomas <rrt@sc3d.org>
6673         * lib/regex.h: Update documentation.
6674
6675         2011-05-16 Aharon Robbins <arnold@skeeve.com>
6676         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
6677
6678         2010-05-05 Andreas Schwab <schwab@redhat.com>
6679         * lib/regexec.c (find_collation_sequence_value):
6680         Fix lookup of collation sequence value during regexp matching.
6681
6682         2010-01-22 Ulrich Drepper <drepper@redhat.com>
6683         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
6684
6685         2008-01-16 Ulrich Drepper <drepper@redhat.com>
6686         * lib/regex.h: Cleanup namespace.
6687
6688         2007-11-26 Ulrich Drepper <drepper@redhat.com>
6689         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
6690
6691         2007-08-26 Ulrich Drepper <drepper@redhat.com>
6692         * lib/regex_internal.h: Prevent some declarations and definitions
6693         to be seen when used in tests.
6694
6695         2005-05-06 Ulrich Drepper <drepper@redhat.com>
6696         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
6697         __libc_lock_* macros if not _LIBC.
6698         (struct re_dfa_t): Add lock.
6699
6700 2012-02-07  Eric Blake  <eblake@redhat.com>
6701
6702         maint.mk: also prohibit lower-case @var@
6703         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
6704         lower case, like @top_srcdir@.
6705
6706 2012-02-04  Eric Blake  <eblake@redhat.com>
6707
6708         canonicalize: avoid uninitialized memory use
6709         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
6710         random '/' left in dest.
6711         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
6712
6713 2012-02-04  Bruno Haible  <bruno@clisp.org>
6714
6715         isatty: Fix test failure of ptsname_r on native Windows.
6716         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
6717         and don't set errno.
6718         (isatty): Test first whether fd is valid. Set errno when returning 0.
6719
6720 2012-02-04  Bruno Haible  <bruno@clisp.org>
6721
6722         spawn-pipe tests: Fix a NULL program name in a diagnostic.
6723         * tests/test-spawn-pipe-main.c: Include progname.h.
6724         (main): Invoke set_program_name.
6725         * modules/spawn-pipe-tests (Depends-on): Add progname.
6726
6727         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
6728         * tests/test-nonblocking-socket-main.c: Include progname.h.
6729         (main): Invoke set_program_name.
6730         * modules/nonblocking-socket-tests (Depends-on): Add progname.
6731
6732         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
6733         * tests/test-nonblocking-pipe-main.c: Include progname.h.
6734         (main): Invoke set_program_name.
6735         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
6736
6737 2012-02-04  Eric Blake  <eblake@redhat.com>
6738
6739         canonicalize-lgpl: fix // handling
6740         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
6741
6742         canonicalize: fix // handling
6743         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
6744         /// to //, since only // is special.
6745
6746 2012-02-04  Bruno Haible  <bruno@clisp.org>
6747
6748         ioctl: Fix test failure on native Windows.
6749         * lib/ioctl.c: Include msvc-nothrow.h.
6750         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
6751
6752 2012-02-04  Bruno Haible  <bruno@clisp.org>
6753
6754         fsync: Avoid test failure on native Windows.
6755         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
6756         read-only.
6757
6758 2012-02-04  Bruno Haible  <bruno@clisp.org>
6759
6760         sys_select: Avoid syntax error on OpenBSD 5.0.
6761         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
6762         currently being included, just include the system's <sys/select.h>.
6763
6764 2012-02-04  Bruno Haible  <bruno@clisp.org>
6765
6766         sys_select: Avoid syntax error on OpenBSD 5.0.
6767         * lib/sys_select.in.h: Include <signal.h> only after the include_next
6768         <sys/select.h>, not before.
6769         Reported by Jiri B <jirib@devio.us>.
6770
6771 2012-02-04  Bruno Haible  <bruno@clisp.org>
6772
6773         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
6774         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
6775         global variables.
6776         * tests/test-get-rusage-data.c (main): Likewise.
6777         Reported by Jim Meyering.
6778
6779 2012-02-04  Bruno Haible  <bruno@clisp.org>
6780
6781         stdioext: Fix last commit.
6782         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
6783
6784 2012-02-03  Bruno Haible  <bruno@clisp.org>
6785
6786         stdioext: Add tentative support for Plan9.
6787         * lib/stdio-impl.h: Include <errno.h>.
6788         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
6789         * lib/freadable.c (freadable): Likewise.
6790         * lib/fwritable.c (fwritable): Likewise.
6791         * lib/fbufmode.c (fbufmode): Likewise.
6792         * lib/freading.c (freading): Likewise.
6793         * lib/fwriting.c (fwriting): Likewise.
6794         * lib/freadptr.c (freadptr): Likewise.
6795         * lib/freadseek.c (freadptrinc): Likewise.
6796         * lib/freadahead.c (freadahead): Likewise.
6797         * lib/fpurge.c (fpurge): Likewise.
6798         * lib/fseeko.c (rpl_fseeko): Likewise.
6799         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
6800         Reported by Jens Staal <staal1978@gmail.com>.
6801
6802 2012-02-02  Jim Meyering  <meyering@redhat.com>
6803
6804         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
6805         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
6806         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
6807         not even to try to add the attribute.  Instead, add a pragma to suppress
6808         the suggestion/warning.
6809
6810 2012-01-31  Karl Berry  <karl@gnu.org>
6811
6812         setstate doc: typo.
6813         * doc/posix-functions/setstate.texi (setstate): { not (.
6814
6815 2012-01-31  Bruno Haible  <bruno@clisp.org>
6816
6817         popen: Make more robust on Windows.
6818         * lib/popen.c: On native Windows, use the _popen based code even if
6819         HAVE_POPEN is set.
6820         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
6821         environment variable on native Windows.
6822
6823 2012-01-30  Bruno Haible  <bruno@clisp.org>
6824
6825         pclose: Fix typo.
6826         * lib/stdio.in.h (pclose): Fix typo in warning message.
6827
6828 2012-01-30  Bruno Haible  <bruno@clisp.org>
6829
6830         doc about getlogin_r, setstate.
6831         * doc/posix-functions/getlogin_r.texi: List the incompatible
6832         declaration problem under "not fixed by gnulib".
6833         * doc/posix-functions/setstate.texi: Mention incompatible declaration
6834         problem on Solaris 11 and other platforms.
6835
6836 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
6837             Bruno Haible  <bruno@clisp.org>
6838
6839         poll tests: Make test more robust.
6840         * tests/test-poll.c: Include macros.h.
6841         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
6842         return value of various I/O operations.
6843         * modules/poll-tests (Files): Add tests/macros.h.
6844
6845 2012-01-30  Bruno Haible  <bruno@clisp.org>
6846
6847         sys_stat: Fix support for mingw64 and MSVC.
6848         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
6849         header files already do it.
6850         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
6851         stat itself.
6852         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
6853
6854 2012-01-30  Bruno Haible  <bruno@clisp.org>
6855
6856         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
6857         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
6858         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
6859
6860 2012-01-29  Bruno Haible  <bruno@clisp.org>
6861
6862         quotearg: Fix test failure on MacOS X 10.5.
6863         * tests/test-quotearg-simple.c: Include localcharset.h.
6864         (main): If the locale encoding is not ASCII, bypass the tests of
6865         locale_quoting_style and clocale_quoting_style.
6866         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
6867
6868 2012-01-29  Jim Meyering  <meyering@redhat.com>
6869
6870         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
6871         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
6872         detect uses of canonicalize_file_name.
6873
6874 2012-01-28  Bruno Haible  <bruno@clisp.org>
6875
6876         test-framework-sh: Fix test failure with AIX 7.1 diff.
6877         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
6878         in column 1, like 'diff -c' does.
6879         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
6880         whether 'diff -u' is used. Instead, test whether the output contains
6881         some '@' character.
6882
6883 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
6884
6885         strtoimax: eliminate need for stdint.h, inttypes.h checks
6886         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
6887         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
6888         the prerequisites for a recently-introduced strtoimax test.
6889         I guess this might cause strtoimax to be replaced when not
6890         strictly necessary on older hosts, but this shouldn't introduce
6891         any bugs and it should make Emacs 'configure' faster on typical
6892         modern hosts.  Problem discovered when importing the latest gnulib
6893         to an Emacs test version.
6894         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
6895
6896 2012-01-28  Bruno Haible  <bruno@clisp.org>
6897
6898         sys_time: Override 'struct timeval' on some native Windows platforms.
6899         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
6900         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
6901         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
6902         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
6903         needs to be overridden.
6904         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
6905         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
6906         * tests/test-sys_select.c: Check that the tv_sec member has the same
6907         size as a 'time_t'.
6908         * tests/test-sys_time.c: Likewise.
6909         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
6910         is set, set also REPLACE_GETTIMEOFDAY.
6911         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
6912         convert the resulting 'struct timeval' before returning.
6913         * lib/select.c: Include <sys/time.h>.
6914         (select, timeval): Undefine at the right place.
6915         * modules/select (Depends-on): Add sys_time.
6916         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
6917         some Windows platforms.
6918         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
6919
6920 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
6921
6922         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
6923         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
6924         an integer.
6925         * lib/fcntl.c (dupfd): Likewise.
6926         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
6927
6928 2012-01-28  Bruno Haible  <bruno@clisp.org>
6929
6930         fcntl: Avoid compilation error on native Windows.
6931         * modules/fcntl (Depends-on): Add 'close'.
6932
6933 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
6934
6935         select, poll, isatty: Avoid warnings on x86_64 mingw64.
6936         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
6937         pointer to an integer.
6938         * lib/poll.c (IsConsoleHandle): Likewise.
6939         * lib/isatty.c (IsConsoleHandle): Likewise.
6940
6941 2012-01-28  Jim Meyering  <meyering@redhat.com>
6942
6943         doc: clarify README-release
6944         * top/README-release: Clarify: you should make a point to have
6945         the latest stable versions of build tools in your PATH, and the
6946         reference to buildreq is solely for its list of tool names, not
6947         for its minimal-functional version numbers.
6948         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
6949
6950         maint.mk: use more readable (yet functionally equivalent) quoting
6951         It is common to quote a single quote in a single quoted string like
6952         this:  '...'\''...'.  Unless you know the idiom, that looks like
6953         gibberish, so prefer to double-quote the string when possible.
6954         Then you can use a more readable, lone single quote: "...'..."
6955         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
6956         "don't" is more readable than the equivalent 'don'\''t'.
6957         (sc_cast_of_x_alloc_return_value): Likewise.
6958         (sc_cast_of_alloca_return_value): Likewise.
6959         (sc_makefile_path_separator_check): Similar: use ":" in '...',
6960         rather than '\'':'\''.
6961
6962 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
6963
6964         stdalign: relax _Alignof and tighten _Alignas test
6965         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
6966         as it was too strict: alignof must divide offsetof, but it need
6967         not equal offsetof.  Inspired by Joseph S. Myers's comment
6968         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
6969         Conversely, tighten the _Alignas test a bit, as the resulting
6970         alignment must be exactly 8.
6971
6972 2012-01-27  Bruno Haible  <bruno@clisp.org>
6973
6974         stdalign: Document the last change.
6975         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
6976
6977 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
6978
6979         stdalign: check that alignof and offsetof are consistent
6980         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
6981         Problem reported for gnulib by Richard W.M. Jones in
6982         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
6983
6984 2012-01-27  Jim Meyering  <meyering@redhat.com>
6985
6986         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
6987         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
6988         convert a sequence with gaps to the minimal containing range.
6989         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
6990         * tests/test-update-copyright.sh: Test for this.
6991         The FSF confirmed it is ok to do this, assuming there is at
6992         least one significant change per year in the affected range:
6993         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
6994
6995 2012-01-26  Bruno Haible  <bruno@clisp.org>
6996
6997         pipe2: refine doc about thread-safety
6998         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
6999         multithread-safety problem.
7000         * doc/glibc-functions/accept4.texi: Likewise.
7001
7002 2012-01-26  Bruno Haible  <bruno@clisp.org>
7003
7004         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
7005         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
7006         In the test program, include <fcntl.h>, for O_RDONLY.
7007
7008 2012-01-26  Eric Blake  <eblake@redhat.com>
7009
7010         pipe2: document lack of thread-safety in replacement
7011         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
7012         issue in replacement.
7013         * doc/glibc-functions/accept4.texi (accept4): Likewise.
7014         Based on a report by Eric Wong.
7015
7016 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
7017             Bruno Haible  <bruno@clisp.org>
7018
7019         malloca: Avoid warnings on x86_64 mingw64.
7020         * lib/malloca.c: Include <stdint.h>.
7021         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
7022         * modules/malloca (Depends-on): Add stdint.
7023         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
7024
7025 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
7026
7027         obstack: remove __STDC__ conditionals
7028         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
7029         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
7030         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
7031         m4/include_next.m4 as the only gnulib-maintained places that still
7032         refer to __STDC__.
7033
7034 2012-01-24  Bruno Haible  <bruno@clisp.org>
7035
7036         havelib: Modern quoting.
7037         * build-aux/config.rpath: Quote 'like this', not `like this', as per
7038         the recent change to the GNU coding standards.
7039
7040 2012-01-24  Bruno Haible  <bruno@clisp.org>
7041
7042         stdint: Improve support for Android.
7043         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
7044         Reported by Simon Josefsson <simon@josefsson.org>.
7045
7046 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
7047
7048         doc: omit trailing empty lines from INSTALL etc.
7049         * doc/Makefile (INSTALL): Omit trailing empty lines.
7050         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
7051         omit trailing empty lines.  This simplifies the build procedure.
7052
7053 2012-01-23  Jim Meyering  <meyering@redhat.com>
7054
7055         tests: avoid spurious warnings about gl_sockets_startup
7056         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
7057         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
7058         reporting a "statement with no effect".
7059         * tests/test-accept.c (main): Mark as "(void)".
7060         * tests/test-accept4.c (main): Likewise.
7061         * tests/test-bind.c (main): Likewise.
7062         * tests/test-connect.c (main): Likewise.
7063         * tests/test-getpeername.c (main): Likewise.
7064         * tests/test-getsockname.c (main): Likewise.
7065         * tests/test-getsockopt.c (main): Likewise.
7066         * tests/test-listen.c (main): Likewise.
7067         * tests/test-recv.c (main): Likewise.
7068         * tests/test-recvfrom.c (main): Likewise.
7069         * tests/test-send.c (main): Likewise.
7070         * tests/test-sendto.c (main): Likewise.
7071         * tests/test-setsockopt.c (main): Likewise.
7072         * tests/test-shutdown.c (main): Likewise.
7073
7074 2012-01-21  Bruno Haible  <bruno@clisp.org>
7075
7076         locale-fr.m4: Fix for Android.
7077         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
7078         failure of the test program on Bionic libc.
7079
7080 2012-01-21  Jim Meyering  <meyering@redhat.com>
7081
7082         bootstrap: fail when bootstrap_post_import_hook fails
7083         Otherwise, it's far too easy to miss diagnostics emitted
7084         between gnulib-tool's output and that of running configure.
7085         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
7086
7087 2012-01-17  Jim Meyering  <meyering@redhat.com>
7088
7089         maint: enable sc_trailing_blank
7090         * build-aux/pmccabe.css: Remove trailing blanks.
7091         * doc/acl-cygwin.txt: Likewise.
7092         * doc/gnu-oids.texi: Likewise
7093         * cfg.mk: Enable sc_trailing_blank.
7094         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
7095
7096 2012-01-17  Jim Meyering  <meyering@redhat.com>
7097
7098         maint: enable sc_prohibit_openat_without_use
7099         * cfg.mk: Enable sc_prohibit_openat_without_use.
7100         Exempt lib/selinux-at.c.
7101
7102 2012-01-17  Jim Meyering  <meyering@redhat.com>
7103
7104         maint: enable sc_prohibit_cloexec_without_use
7105         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
7106         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
7107
7108 2012-01-17  Jim Meyering  <meyering@redhat.com>
7109
7110         maint: enable sc_prohibit_intprops_without_use
7111         * cfg.mk: Enable sc_prohibit_intprops_without_use
7112         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
7113
7114 2012-01-17  Jim Meyering  <meyering@redhat.com>
7115
7116         maint: enable sc_prohibit_hash_pjw_without_use
7117         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
7118         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
7119         to match any use of \<hash_pjw\>, i.e., not necessarily with a
7120         following " (".
7121
7122 2012-01-17  Jim Meyering  <meyering@redhat.com>
7123
7124         maint: enable double-word-prohibiting rule
7125         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
7126         Exempt three files.
7127
7128 2012-01-17  Jim Meyering  <meyering@redhat.com>
7129
7130         maint: remove empty lines at EOF, but excluding modules/*
7131         Apply syntax rules at home as well as abroad.  Most changes
7132         were induced by running this:
7133           make srcdir=. _build-aux=build-aux -f top/maint.mk \
7134             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
7135             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
7136         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
7137         Exempt modules/* and two binary files.
7138         Also exempt doc/INSTALL*, per request from Bruno Haible.
7139         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
7140         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
7141         * doc/Copyright/request-assign.future: Likewise.
7142         * doc/Copyright/request-disclaim.changes: Likewise.
7143         * doc/INSTALL: Likewise.
7144         * doc/INSTALL.ISO: Likewise.
7145         * doc/INSTALL.UTF-8: Likewise.
7146         * doc/acl-cygwin.txt: Likewise.
7147         * doc/acl-resources.txt: Likewise.
7148         * doc/fdl-1.2.texi: Likewise.
7149         * doc/fdl-1.3.texi: Likewise.
7150         * doc/fdl.texi: Likewise.
7151         * lib/argp-pin.c: Likewise.
7152         * lib/round.c: Likewise.
7153         * lib/unicase/u16-totitle.c: Likewise.
7154         * lib/unictype/block_test.c: Likewise.
7155         * lib/uninorm/canonical-decomposition.c: Likewise.
7156         * m4/README: Likewise.
7157         * m4/relocatable-lib.m4: Likewise.
7158         * tests/test-isnand-nolibm.c: Likewise.
7159         * tests/test-isnand.c: Likewise.
7160         * tests/uninorm/NormalizationTest.txt: Likewise.
7161
7162 2012-01-17  Jim Meyering  <meyering@redhat.com>
7163
7164         maint: add framework to run syntax-check rules against gnulib sources
7165         * cfg.mk: New file, to disable all currently-failing tests.
7166         We'll enable them one by one, as they are made to pass.
7167         * Makefile (sc_maint): New rule.
7168
7169 2012-01-21  Bruno Haible  <bruno@clisp.org>
7170
7171         stdint: Add support for Android.
7172         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
7173         include the system's <stdint.h>.
7174         Reported by Simon Josefsson <simon@josefsson.org>.
7175
7176 2012-01-19  Jim Meyering  <meyering@redhat.com>
7177
7178         bootstrap: add bootstrap_post_import_hook
7179         Bison does still need something like the gnulib_mk_hook whose
7180         invocation I had to remove along with slurp in commit 767ccd40.
7181         Technically, we could get along without it, but doing so would
7182         have required living with a warning and a mandatory post-bootstrap
7183         automake rerun.
7184         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
7185         (bootstrap_post_import_hook): New function.
7186         Invoke it after gnulib-tool --import and before autoreconf.
7187
7188 2012-01-18  Jim Meyering  <meyering@redhat.com>
7189
7190         gitlog-to-changelog: don't use "no_"-prefixed variable name
7191         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
7192         to enable both --cluster and --no-cluster.  Change variable name,
7193         s/\$no_cluster/$cluster/, and reverse usage to match.
7194
7195         gitlog-to-changelog: use "||", not "or" in expressions
7196         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
7197         expressions.
7198
7199 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
7200
7201         gitlog-to-changelog: new option --no-cluster
7202         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
7203         clustering of adjacent commit messages.
7204
7205 2012-01-17  Jim Meyering  <meyering@redhat.com>
7206
7207         maint: spell file systems with two words, not one
7208         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
7209         two words, not one.
7210
7211 2012-01-16  Jim Meyering  <meyering@redhat.com>
7212
7213         bootstrap: add a FIXME comment to ensure we eventually remove the hack
7214         * build-aux/bootstrap (gnulib_tool_options): Add comment.
7215
7216 2012-01-16  Eric Blake  <eblake@redhat.com>
7217
7218         bootstrap: cater to autoconf 2.59
7219         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
7220         is not available.
7221
7222         bootstrap: properly check for libtool
7223         * build-aux/bootstrap (libtoolize): Also run libtool when older
7224         usage is detected.
7225
7226 2012-01-15  Bruno Haible  <bruno@clisp.org>
7227
7228         Improve support for MSVC 9.
7229         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
7230         clashes on MSVC.
7231         * lib/fcntl.in.h: Likewise.
7232         * lib/stdlib.in.h: Likewise.
7233         * lib/sys_stat.in.h: Likewise.
7234
7235 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
7236
7237         gnupload: we hold the master copy of this script now
7238         For motivation and more information, see:
7239         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
7240         * build-aux/gnupload: Make it clear in the heading comments that the
7241         master copy of this file is maintained by gnulib.  Since we are at
7242         it, bump its copyright year and ...
7243         ($scriptversion): ... the date in its version.
7244         ($usage): Patches and bug reports should be sent to the gnulib list,
7245         not the automake one.
7246         * config/srclist.txt: Don't try to sync 'gnupload' from automake
7247         anymore.
7248
7249 2012-01-15  Bruno Haible  <bruno@clisp.org>
7250
7251         Fix module 'random'.
7252         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
7253         initstate, setstate are declared.
7254
7255 2012-01-14  Bruno Haible  <bruno@clisp.org>
7256
7257         Tests for module 'random'.
7258         * modules/random-tests: New file.
7259         * tests/test-random.c: New file, based on tests/test-random_r.c.
7260
7261         New module 'random'.
7262         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
7263         declarations.
7264         * lib/random.c: New file, based on glibc/stdlib/random.c.
7265         * m4/random.m4: New file.
7266         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
7267         HAVE_RANDOM.
7268         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
7269         * modules/random: New file.
7270         * config/srclist.txt: Add an entry for random.c.
7271         * doc/posix-functions/random.texi: Mention the 'random' module.
7272         * doc/posix-functions/initstate.texi: Likewise.
7273         * doc/posix-functions/setstate.texi: Likewise.
7274         * doc/posix-functions/srandom.texi: Likewise.
7275
7276 2012-01-12  Bruno Haible  <bruno@clisp.org>
7277
7278         random_r: Use common idioms.
7279         * lib/random_r.c: Include <stdlib.h> first.
7280
7281         random_r: Override incompatible API on AIX, OSF/1.
7282         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
7283         Override the system function if REPLACE_RANDOM_R is 1.
7284         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
7285         and OSF/1, set REPLACE_RANDOM_R.
7286         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
7287         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
7288         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
7289         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
7290         * doc/glibc-functions/random_r.texi: Likewise.
7291         * doc/glibc-functions/setstate_r.texi: Likewise.
7292
7293         random_r: Support for MSVC 9.
7294         * lib/random_r.c: Include stdint.h, not inttypes.h.
7295
7296 2012-01-12  Eric Blake  <eblake@redhat.com>
7297
7298         inet_ntop: guard extra work by IF_LINT
7299         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
7300         better code generation when not checking for warnings.
7301         Suggested by Paul Eggert and Jim Meyering.
7302
7303         strptime: fix regression on mingw
7304         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
7305         Fix regression.  Reported by Bruno Haible.
7306
7307 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
7308             Bruno Haible  <bruno@clisp.org>
7309
7310         copy-file: add error-code-returning variant.
7311         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
7312         (qcopy_file_preserving): New declaration.
7313         * lib/copy-file.c (qcopy_file_preserving): Renamed from
7314         copy_file_preserving. Change return type to 'int'. Don't emit an error
7315         message here.
7316         (copy_file_preserving): New function.
7317         * tests/test-copy-file.c: Include <stdlib.h>.
7318         (main): Test qcopy_file_preserving if the environment variable
7319         NO_STDERR_OUTPUT is set.
7320         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
7321         with NO_STDERR_OUTPUT
7322         * tests/test-copy-file-2.sh: Likewise.
7323
7324 2012-01-10  Bruno Haible  <bruno@clisp.org>
7325
7326         copy-file: Use 'quote' module consistently.
7327         * lib/copy-file.c (copy_file_preserving): Use quote().
7328
7329         copy-file: Refactor.
7330         * lib/copy-file.c: Include quote.h.
7331         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
7332         message here.
7333         * modules/copy-file (Depends-on): Add quote.
7334
7335         acl: Export qcopy_acl.
7336         * lib/acl.h (qcopy_acl): New declaration.
7337         * lib/copy-acl.c (qcopy_acl): Make non-static.
7338
7339         acl: Rename a local variable.
7340         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
7341
7342         acl: Align return values of copy_acl and qcopy_acl.
7343         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
7344         maybe < -1.
7345
7346 2012-01-11  Eric Blake  <eblake@redhat.com>
7347
7348         strptime: silence gcc warnings
7349         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
7350         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
7351         Reported by Daniel P. Berrange.
7352
7353         inet_ntop: silence gcc warning
7354         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
7355         Reported by Daniel P. Berrange.
7356
7357 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
7358
7359         getloadavg test: skip the test on GNU/Linux without /proc mounted
7360         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
7361         file.  When /proc is not mounted, it always fails with ENOENT.
7362         * tests/test-getloadavg.c (main): Treat ENOENT return code from
7363         getloadavg(3) the same way as ENOSYS and ENOTSUP.
7364
7365 2012-01-10  Bruno Haible  <bruno@clisp.org>
7366
7367         regex: Avoid link error on MSVC 9.
7368         * modules/regex (Depends-on): Add wctype.
7369
7370 2012-01-10  Bruno Haible  <bruno@clisp.org>
7371
7372         doc: Mention --with-tests option.
7373         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
7374         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
7375         --with-tests.
7376         Reported by Reuben Thomas.
7377
7378 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
7379
7380         users.txt: order package names lexicographically.
7381         * users.txt: Order package names lexicographically.
7382
7383 2012-01-10  Jim Meyering  <meyering@redhat.com>
7384
7385         maint.mk: fix description in comment
7386         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
7387
7388         ignore-value: remove deprecated ignore_ptr function
7389         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
7390         * NEWS: Note this.
7391
7392 2012-01-09  Jim Meyering  <meyering@redhat.com>
7393
7394         test-init.sh: avoid a subshell
7395         * tests/test-init.sh: Remove protective subshell.
7396         Suggested by Bernhard Voelker.  While a subshell is normally
7397         required to protect against older shells (Solaris, FreeBSD) that
7398         warn about a missing program before performing redirection, the
7399         shell-selection tests performed by init.sh probably exclude any
7400         offending shell.
7401
7402 2012-01-08  Bruno Haible  <bruno@clisp.org>
7403
7404         setlocale tests: Avoid test failure on Solaris 11 2011-11.
7405         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
7406         variable.
7407
7408 2012-01-08  Bruno Haible  <bruno@clisp.org>
7409
7410         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
7411         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
7412         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
7413         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
7414         macro.
7415         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
7416         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
7417         * lib/spawn_faction_addopen.c: Add workaround implementation if
7418         HAVE_WORKING_POSIX_SPAWN.
7419         * modules/spawn (Makefile): Substitute
7420         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
7421         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
7422         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
7423         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
7424         (Depends-on): Update conditions.
7425         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
7426         the Solaris 11 bug.
7427
7428 2012-01-08  Bruno Haible  <bruno@clisp.org>
7429
7430         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
7431         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
7432         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
7433         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
7434         macro.
7435         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
7436         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
7437         * lib/spawn_faction_adddup2.c: Add workaround implementation if
7438         HAVE_WORKING_POSIX_SPAWN.
7439         * modules/spawn (Makefile): Substitute
7440         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
7441         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
7442         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
7443         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
7444         (Depends-on): Update conditions.
7445         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
7446         the Solaris 11 bug.
7447
7448 2012-01-08  Bruno Haible  <bruno@clisp.org>
7449
7450         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
7451         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
7452         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
7453         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
7454         HAVE_WORKING_POSIX_SPAWN.
7455         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
7456         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
7457         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
7458         * lib/spawn_faction_addclose.c: Add workaround implementation if
7459         HAVE_WORKING_POSIX_SPAWN.
7460         * modules/spawn (Makefile): Substitute
7461         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
7462         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
7463         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
7464         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
7465         (Depends-on): Update conditions.
7466         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
7467         the Solaris 11 bug.
7468
7469 2012-01-08  Bruno Haible  <bruno@clisp.org>
7470
7471         doc: Update for Solaris 11 2011-11.
7472         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
7473         * m4/printf.m4: Update comments.
7474
7475 2012-01-08  Bruno Haible  <bruno@clisp.org>
7476
7477         mktime: Avoid compilation error on Solaris 11.
7478         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
7479
7480 2012-01-08  Bruno Haible  <bruno@clisp.org>
7481
7482         doc: Small fix.
7483         * doc/posix-headers/nl_types.texi: Correct platforms list.
7484
7485 2012-01-08  Simon Josefsson  <simon@josefsson.org>
7486
7487         Add lgpl-3.0 module.
7488         * MODULES.html.sh (Support for building documentation): Add
7489         lgpl-3.0.
7490         * modules/lgpl-3.0: New file.
7491
7492 2012-01-08  Jim Meyering  <meyering@redhat.com>
7493
7494         select.c: indent with spaces, not TABs
7495         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
7496
7497 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
7498
7499         quotearg: do not use grave accent for left quote
7500         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
7501         locale_quoting_style.
7502         (quotearg_buffer_restyled): Fix example.
7503         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
7504
7505 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
7506
7507         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
7508         Most programs do not have translation catalogs for English and much
7509         less separate catalogs for British and American English.  Drop the
7510         suggestion to translators about these two, and provide it
7511         automatically for Unicode locales.  Like most programs, even those
7512         using American English, we use single quotation marks.  This conflicts
7513         with the American typographic convention, but works better when you
7514         cite the entire error message within double quotes.  It also tries not
7515         to clash with established practice and with what non-gnulib programs
7516         will usually do.
7517         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
7518         using an UTF-8 or GB-18030 locale.  The list of other locales with
7519         quotes was provided by Bruno Haible.
7520         (quotearg_buffer_restyled): Adjust instructions to translators.
7521         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
7522         text, since this would be wrong when using Unicode.
7523         * modules/quotearg: Depend on c-strcaseeq.
7524
7525 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
7526
7527         quotearg: fix Wikipedia link
7528         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
7529
7530 2012-01-07  Simon Josefsson  <simon@josefsson.org>
7531
7532         Fix for mingw with MSVC9.
7533         * m4/ld-version-script.m4: Check that compiler rejects version
7534         scripts with syntax errors.  Reported by Bruno Haible
7535         <bruno@clisp.org>.
7536
7537 2012-01-06  Bruno Haible  <bruno@clisp.org>
7538
7539         Talk about "native Windows API", not "Woe32".
7540         * lib/accept4.c: Update comments to mention native Windows.
7541         * lib/execute.c: Likewise.
7542         * lib/fatal-signal.c: Likewise.
7543         * lib/localcharset.c: Likewise.
7544         * lib/nanosleep.c: Likewise.
7545         * lib/nl_langinfo.c: Likewise.
7546         * lib/pclose.c: Likewise.
7547         * lib/pipe-filter-gi.c: Likewise.
7548         * lib/pipe-filter-ii.c: Likewise.
7549         * lib/pipe.c: Likewise.
7550         * lib/pipe2.c: Likewise.
7551         * lib/popen.c: Likewise.
7552         * lib/progreloc.c: Likewise.
7553         * lib/relocatable.c: Likewise.
7554         * lib/sigaction.c: Likewise.
7555         * lib/sigprocmask.c: Likewise.
7556         * lib/spawn-pipe.h: Likewise.
7557         * lib/spawn-pipe.c: Likewise.
7558         * lib/spawni.c: Likewise.
7559         * lib/stat-time.h: Likewise.
7560         * lib/w32spawn.h: Likewise.
7561         * tests/test-isatty.c: Likewise.
7562         * lib/config.charset: More comments.
7563         * doc/gnulib-intro.texi: Mention native Windows.
7564         * doc/posix-functions/_Exit_C99.texi: Likewise.
7565         * doc/posix-headers/fcntl.texi: Likewise.
7566
7567 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
7568
7569         argp: Avoid crash if translator uses % characters in a translation.
7570         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
7571         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
7572
7573 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
7574
7575         doc: C11 and C++11 are now official
7576         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
7577         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
7578         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
7579         * modules/stdalign:
7580         Replace references to draft C1X to C11, and to draft C++0X to C++11.
7581
7582 2012-01-06  Bruno Haible  <bruno@clisp.org>
7583
7584         uc-is-grapheme-break tests: Tweak.
7585         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
7586         message.
7587
7588 2012-01-06  Bruno Haible  <bruno@clisp.org>
7589
7590         test-init.sh: correct the test for diff -u
7591         * tests/test-init.sh: Also redirect stdout to /dev/null.
7592
7593 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
7594
7595         Use ', not `, for quoting output.
7596         * build-aux/announce-gen (usage, sizes, print_news_deltas)
7597         (print_changelog_deltas, get_tool_versions, main program):
7598         * build-aux/git-version-gen:
7599         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
7600         * build-aux/move-if-change (help):
7601         * build-aux/useless-if-before-free (usage, main program):
7602         * check-module (parse_module_file, usage)
7603         (find_included_lib_files, check_module):
7604         * lib/argmatch.c (main) [TEST]:
7605         * lib/argp-help.c (_help):
7606         * lib/getopt1.c (main) [TEST]:
7607         * lib/git-merge-changelog.c (usage):
7608         * lib/xstrtol-error.c (xstrtol_error):
7609         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
7610         * m4/argz.m4 (gl_FUNC_ARGZ):
7611         * m4/bison.m4 (gl_BISON):
7612         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
7613         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
7614         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
7615         * m4/fpending.m4 (gl_PREREQ_FPENDING):
7616         * m4/gc-random.m4 (gl_GC_RANDOM):
7617         * m4/intl.m4 (gt_CHECK_DECL):
7618         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
7619         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
7620         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
7621         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
7622         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
7623         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
7624         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
7625         * tests/test-dirname.c (main):
7626         * tests/test-getpass.c (main):
7627         * tests/test-iconvme.c (main):
7628         * tests/test-parse-datetime.c (LOG):
7629         * tests/test-xstrtoimax.sh:
7630         * tests/test-xstrtol.sh:
7631         * tests/test-xstrtoll.sh:
7632         * tests/test-xstrtoumax.sh:
7633         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
7634         * top/GNUmakefile (abort-due-to-no-makefile):
7635         Quote 'like this', not `like this', as per the recent change to
7636         the GNU coding standards.
7637
7638 2012-01-05  Bruno Haible  <bruno@clisp.org>
7639
7640         strtoimax: Don't force a replacement on systems where intmax_t is int.
7641         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
7642         'intmax_t' is not larger than 'int'.
7643         Reported by Pádraig Brady <P@draigBrady.com>.
7644
7645 2012-01-05  Bruno Haible  <bruno@clisp.org>
7646
7647         doc: Mention NetBSD bugs.
7648         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
7649         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
7650
7651 2012-01-05  Bruno Haible  <bruno@clisp.org>
7652
7653         strtoumax tests: Enhance tests.
7654         * tests/test-strtoumax.c (main): Add tests for large values.
7655
7656 2012-01-05  Bruno Haible  <bruno@clisp.org>
7657
7658         strtoimax: Work around AIX 5.1 bug.
7659         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
7660         definition.
7661         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
7662         Set HAVE_STRTOIMAX.
7663         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
7664         REPLACE_STRTOIMAX.
7665         * modules/inttypes-incomplete (Makefile.am): Substitute
7666         REPLACE_STRTOIMAX.
7667         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
7668         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
7669         (Depends-on): Update conditions.
7670         * tests/test-strtoimax.c (main): Add tests for large values.
7671         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
7672
7673 2012-01-05  Bruno Haible  <bruno@clisp.org>
7674
7675         inttypes: Modernize.
7676         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
7677         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
7678         (Makefile.am): Update inttypes.h rule.
7679
7680 2012-01-05  Jim Meyering  <meyering@redhat.com>
7681
7682         init.sh: don't waste a subshell just to redirect stderr
7683         * tests/init.sh: In testing for diff -u and diff -c, use a
7684         stderr-redirecting exec inside `...` rather than a subshell.
7685
7686         test-init.sh: avoid failure on HP-UX 11.00
7687         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
7688         resolves to diff -c or cmp.  Reported by Bruno Haible.
7689
7690 2012-01-05  Bruno Haible  <bruno@clisp.org>
7691
7692         Tests for module 'strtoull'.
7693         * modules/strtoull-tests: New file.
7694         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
7695
7696 2012-01-05  Bruno Haible  <bruno@clisp.org>
7697
7698         Tests for module 'strtoll'.
7699         * modules/strtoll-tests: New file.
7700         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
7701
7702 2012-01-05  Bruno Haible  <bruno@clisp.org>
7703
7704         Tests for module 'strtoul'.
7705         * modules/strtoul-tests: New file.
7706         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
7707
7708 2012-01-05  Bruno Haible  <bruno@clisp.org>
7709
7710         Tests for module 'strtol'.
7711         * modules/strtol-tests: New file.
7712         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
7713
7714 2012-01-04  Jim Meyering  <meyering@redhat.com>
7715
7716         test-init.sh: accommodate Solaris 5.10's different diff -u output
7717         * tests/test-init.sh: Also exempt @@ lines from the comparison
7718         of diff output, since Solaris 5.10 and GNU diff formats differ.
7719         Reported by Stefano Lattarini.
7720
7721 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
7722
7723         test-posixtm: don't assume signed integer wraparound
7724         * tests/test-posixtm.c (main): Don't assume wraparound semantics
7725         after signed integer overflow.  Inspired by (though it may not
7726         fix) Bruno Haible's bug report in
7727         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
7728
7729         Spell out "Windows 9x" and "Windows XP".
7730         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
7731         "Windows 9x" and "WinXP" with "Windows XP".
7732
7733 2012-01-04  Jim Meyering  <meyering@redhat.com>
7734
7735         test-vc-list-files-cvs.sh: remove obsolete comment
7736         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
7737         double exit.  Now that's all encapsulated via skip_ and Exit.
7738
7739 2012-01-04  Bruno Haible  <bruno@clisp.org>
7740
7741         Talk about "native Windows API", not "Win32".
7742         * lib/classpath.c: Update comments to mention native Windows.
7743         * lib/csharpexec.c: Likewise.
7744         * lib/dup2.c: Likewise.
7745         * lib/error.c: Likewise.
7746         * lib/fcntl.c: Likewise.
7747         * lib/filename.h: Likewise.
7748         * lib/findprog.c: Likewise.
7749         * lib/get-rusage-as.c: Likewise.
7750         * lib/get-rusage-data.c: Likewise.
7751         * lib/getpagesize.c: Likewise.
7752         * lib/javaexec.c: Likewise.
7753         * lib/msvc-inval.c: Likewise.
7754         * lib/msvc-nothrow.c: Likewise.
7755         * lib/nanosleep.c: Likewise.
7756         * lib/nonblocking.c: Likewise.
7757         * lib/printf-parse.c: Likewise.
7758         * lib/setlocale.c: Likewise.
7759         * lib/sigaction.c: Likewise.
7760         * lib/strerror_r.c: Likewise.
7761         * lib/tmpdir.c: Likewise.
7762         * lib/vasnprintf.c: Likewise.
7763         * lib/w32spawn.h: Likewise.
7764         * lib/waitpid.c: Likewise.
7765         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
7766         * m4/locale-ar.m4: Likewise.
7767         * m4/locale-fr.m4: Likewise.
7768         * m4/locale-ja.m4: Likewise.
7769         * m4/locale-tr.m4: Likewise.
7770         * m4/locale-zh.m4: Likewise.
7771         * m4/printf.m4: Likewise.
7772         * tests/test-cloexec.c: Likewise.
7773         * tests/test-copy-acl.sh: Likewise.
7774         * tests/test-copy-file.sh: Likewise.
7775         * tests/test-file-has-acl.sh: Likewise.
7776         * tests/test-set-mode-acl.sh: Likewise.
7777         * tests/test-dup-safer.c: Likewise.
7778         * tests/test-dup2.c: Likewise.
7779         * tests/test-dup3.c: Likewise.
7780         * tests/test-fcntl.c: Likewise.
7781         * tests/test-nonblocking-pipe.h: Likewise.
7782         * tests/test-nonblocking-socket.h: Likewise.
7783         * tests/test-pipe.c: Likewise.
7784         * tests/test-pipe2.c: Likewise.
7785         * tests/test-spawn-pipe-child.c: Likewise.
7786         * doc/acl-resources.txt: Likewise.
7787         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
7788         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
7789         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
7790         * lib/localcharset.c: Update comments to mention native Windows.
7791         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
7792         * lib/localename.c: Likewise.
7793         * lib/progreloc.c: Likewise.
7794         * lib/relocatable.c: Likewise.
7795         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
7796         (windows_compute_revents): Renamed from win32_compute_revents.
7797         (windows_compute_revents_socket): Renamed from
7798         win32_compute_revents_socket.
7799         * lib/select.c: Update comments to mention native Windows.
7800         (windows_poll_handle): Renamed from win32_poll_handle.
7801         * m4/threadlib.m4: Update comments to mention native Windows.
7802         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
7803         --enable-threads=windows instead of --enable-threads=win32. Set
7804         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
7805         * lib/glthread/lock.h: Update comments to mention native Windows.
7806         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
7807         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
7808         USE_WIN32_THREADS.
7809         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
7810         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
7811         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
7812         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
7813         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
7814         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
7815         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
7816         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
7817         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
7818         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
7819         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
7820         * tests/test-tls.c: Likewise.
7821         Rationale:
7822         Microsoft renamed the "Win32 API" to "Windows API", as it is available
7823         on both 32-bit and 64-bit Windows systems.
7824         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
7825         line of distinction is between "native Windows" on one side and Unix/
7826         POSIX systems on the other side. More details in
7827         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
7828         Suggested by Paul Eggert.
7829
7830 2012-01-03  Bruno Haible  <bruno@clisp.org>
7831
7832         isatty: Support for MSVC 9.
7833         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
7834         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
7835         (_isatty_nothrow): New function.
7836         (isatty): Use it instead of _isatty.
7837         (IsConsoleHandle): Add comment, from Paolo Bonzini.
7838         * lib/poll.c (IsConsoleHandle): Likewise.
7839         * lib/select.c (IsConsoleHandle): Likewise.
7840         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
7841         (gl_PREREQ_ISATTY): New macro.
7842         * modules/isatty (Depends-on): Add msvc-inval.
7843         (configure.ac): Invoke gl_PREREQ_ISATTY.
7844
7845 2012-01-03  Jim Meyering  <meyering@redhat.com>
7846
7847         maint.mk: remove temporary transition aid from over 1.5 years ago
7848         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
7849         purpose was to aid in the transition (avoiding silent malfunction)
7850         from that old name to the new _sc_search_regexp.  This shim was
7851         added by commit 219c504b.
7852
7853         init.sh: do not try to accommodate compare arguments starting with "-"
7854         * tests/init.sh (compare_dev_null_): Do not try to accommodate
7855         compare arguments that start with "-".  Besides, we do not worry
7856         about this when invoking diff or cmp; why start now with sed?
7857         Using "--" to separate options from argument would trigger sed
7858         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
7859         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
7860
7861 2012-01-02  Bruno Haible  <bruno@clisp.org>
7862
7863         Enhance tests for module 'isatty'.
7864         * modules/isatty-tests (Depends-on): Add pipe-posix.
7865         * tests/test-isatty.c: Include <fcntl.h>.
7866         (DEV_NULL): New macro.
7867         (main): Test the resut of isatty() also on regular files, pipes, and
7868         /dev/null.
7869
7870         New module 'isatty'.
7871         * lib/unistd.in.h (isatty): New declaration.
7872         * lib/isatty.c: New file, based on an idea of
7873         Bastien Roucariès <roucaries.bastien@gmail.com>.
7874         * m4/isatty.m4: New file.
7875         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
7876         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
7877         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
7878         REPLACE_ISATTY.
7879         * modules/isatty: New file.
7880         * doc/posix-functions/isatty.texi: Mention the new module.
7881         Suggested by Paolo Bonzini.
7882
7883 2012-01-02  Bruno Haible  <bruno@clisp.org>
7884
7885         canonicalize: Tweak 2011-12-29 commit.
7886         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
7887         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
7888
7889 2012-01-02  Jim Meyering  <meyering@redhat.com>
7890
7891         gitlog-to-changelog: describe input syntax in --help output
7892         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
7893
7894         gitlog-to-changelog: fix typo in --help: show backslash before email @
7895         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
7896         in sources, but not in actual output.
7897
7898 2011-12-30  Jim Meyering  <meyering@redhat.com>
7899
7900         gitlog-to-changelog: don't malfunction when name contains %-directive
7901         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
7902         in a name string cause trouble.  E.g., with a user name of "%s",
7903         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
7904
7905 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
7906
7907         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
7908         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
7909         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
7910         the "  (tiny change)" notation that is appended to the standard
7911         ChangeLog "date  name  email" header line.
7912
7913 2012-01-01  Jim Meyering  <meyering@redhat.com>
7914
7915         test-framework-sh: init.sh: fix "make dist" failure
7916         When using gnulib-tool's --with-tests option and any module that
7917         depends on test-framework-sh, "make dist" would fail due to the
7918         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
7919         in the gltests directory, and not in the gllib/ directory.
7920         One way to work around that is to move the EXTRA_DIST += init.sh
7921         from the primary module to the -tests one:
7922         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
7923         * modules/test-framework-sh (Makefile.am): ...not here.
7924         Reported by Tom G. Christensen in
7925         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
7926
7927         version-etc: update copyright year reported by --version
7928         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
7929
7930 2011-12-31  Pádraig Brady  <P@draigBrady.com>
7931
7932         canonicalize: only stat() if required
7933         * lib/canonicalize.c (canonicalize_filename_mode):
7934         Avoid calling l?stat() when both CAN_MISSING,
7935         and CAN_NOLINKS are set, as we neither need
7936         to resolve symlinks or test component existence.
7937
7938 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
7939
7940         doc: cover st_ino issues once; add OpenVMS etc.
7941         * doc/posix-functions/stat.texi (stat):
7942         * doc/posix-functions/lstat.texi (lstat):
7943         * doc/posix-functions/fstatat.texi (fstatat):
7944         * doc/posix-functions/fstat.texi (fstat):
7945         Move general 'struct stat' stuff to sys_stat.texi,
7946         leaving behind a pointer.
7947         * doc/posix-headers/sys_stat.texi (sys/stat.h):
7948         Merge duplicate info about 'struct stat' problems into here.
7949         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
7950         and suggest partial workarounds.
7951
7952         same-inode: port to OpenVMS
7953         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
7954         three st_ino values.
7955
7956 2011-12-30  Pádraig Brady  <P@draigBrady.com>
7957
7958         canonicalize: fix references to stat() and lstat()
7959         * lib/canonicalize.c (canonicalize_filename_mode):
7960         Ensure references always resolve to a replacement
7961         function if required (even via a macro).
7962
7963 2011-12-30  Jim Meyering  <meyering@redhat.com>
7964
7965         gitlog-to-changelog: remove a little duplication
7966         * build-aux/gitlog-to-changelog (main): Grep @lines once,
7967         rather than twice.
7968
7969 2011-12-29  Pádraig Brady  <P@draigBrady.com>
7970
7971         canonicalize: add support for not resolving symlinks
7972         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
7973         indicate we don't want to follow symlinks.  Also
7974         provide CAN_MODE_MASK to aid setting these existing
7975         mutually exclusive values.
7976         * lib/canonicalize.c (canonicalize_filename_mode):
7977         Extract the flags from can_mode parameter, which
7978         are currently just used to select between stat()
7979         and lstat().  Also ensure that mutually exclusive
7980         values are flagged immediately as invalid.
7981         * tests/test-canonicalize.c: Verify symlinks are
7982         not followed, and that invalid flag combinations
7983         are diagnosed.
7984
7985 2011-12-25  Jim Meyering  <meyering@redhat.com>
7986
7987         gitlog-to-changelog: do not clump multi-paragraph entries
7988         Identical header lines (date,name,email+coauthors) are suppressed,
7989         thus putting all entries with those same characteristics under
7990         a single header.  However, when a log entry consists of two or
7991         more paragraphs, it may not be clear where it starts and ends.
7992         This change makes it so that such an entry is always separated
7993         from others by a header line, even when that header would
7994         otherwise be suppressed.
7995         * build-aux/gitlog-to-changelog: Implement the above.
7996         Inspired by a related request from Stefano Lattarini in
7997         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
7998
7999 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
8000
8001         announce-gen: fix `cmd' typo in diagnostic
8002         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
8003         diagnostic: a missing '$' meant that the command was not output.
8004
8005 2011-12-23  Jim Meyering  <meyering@redhat.com>
8006
8007         test-framework-sh: distribute init.sh
8008         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
8009         Otherwise, "make -C gnulib-tests check" (at least in grep) would
8010         fail due to the lack of init.sh.
8011
8012         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
8013         * modules/atexit-tests: Rather than listing tests/init.sh,
8014         now that there's a module for it, simply depend on that new module.
8015         * modules/closein-tests: Likewise.
8016         * modules/exclude-tests: Likewise.
8017         * modules/getcwd-tests: Likewise.
8018         * modules/perror-tests: Likewise.
8019         * modules/pread-tests: Likewise.
8020         * modules/pwrite-tests: Likewise.
8021         * modules/vc-list-files-tests: Likewise.
8022         * modules/verify-tests: Likewise.
8023         * modules/xalloc-die-tests: Likewise.
8024         * modules/xstrtoimax-tests: Likewise.
8025         * modules/xstrtol-tests: Likewise.
8026         * modules/xstrtoll-tests: Likewise.
8027         * modules/xstrtoumax-tests: Likewise.
8028         * modules/yesno-tests: Likewise.
8029
8030 2011-12-22  Jim Meyering  <meyering@redhat.com>
8031
8032         test-framework-sh: add minimal tests of init.sh's compare function
8033         * modules/test-framework-sh-tests: New file.
8034         * tests/test-init.sh: New file.
8035
8036         test-framework-sh: new module
8037         * modules/test-framework-sh: New file.
8038         * MODULES.html.sh (Support for maintaining and releasing projects):
8039         List it.
8040
8041         init.sh: do not emit simulated diff output to stderr
8042         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
8043
8044 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
8045
8046         .gitignore: ignore gnulib.dvi and regex.info
8047         * doc/.gitignore:add gnulib.dvi and regex.info
8048
8049 2011-12-22  Jim Meyering  <meyering@redhat.com>
8050
8051         init.sh: correct previous change
8052         * tests/init.sh (compare): My previous change was wrong.
8053         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
8054
8055         init.sh: avoid unwarranted test failure when using "set -e"
8056         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
8057         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
8058         a use like "compare exp out" would get evoke an unconditional failure.
8059
8060 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
8061
8062         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
8063         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
8064         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
8065         autoreconf that did not.
8066         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
8067         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
8068
8069 2011-12-17  Jim Meyering  <meyering@redhat.com>
8070
8071         bootstrap: remove some now-unneeded code
8072         This script arose back when gnulib-tool was young.
8073         Since then, it has seen improvements that render much of this
8074         script unnecessary.  In particular, it can now make symlinks
8075         to the files it uses.  Also, I no longer see as much value in
8076         marking files as read-only via comments.
8077         If you relied on the symlink-creation feature of the preceding
8078         version of this script, you can get most of that functionality
8079         by adding the --symlink option to the definition of
8080         gnulib_tool_option_extras in your bootstrap.conf file.
8081         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
8082         Run autopoint and libtoolize *before* gnulib-tool.
8083         After it, run an abbreviated autoreconf, rather than a loop around
8084         all tools.
8085         (slirp, bt_mark_as_generated): Remove functions.
8086
8087 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
8088
8089         ftoastr: fix typo
8090         * lib/ftoastr.h: Fix misspelling in comment.
8091
8092 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
8093
8094         * top/README-release: fix punctuation.
8095
8096 2011-12-17  Jim Meyering  <meyering@redhat.com>
8097
8098         bootstrap: correct the recent buildreq change
8099         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
8100         had no effect.
8101         * build-aux/bootstrap (buildreq): Bracket each search term with
8102         "*...*", so that the shell "case" statement works as intended.
8103         Add comments.
8104
8105 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
8106
8107         build: let bootstrap resort to wget when downloading .po files
8108         * build-aux/bootstrap (download_po_files): Fallback to wget when
8109         downloading the .po files via rsync fails.  This is necessary to
8110         bootstrap from behind a strict firewall.
8111
8112 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
8113
8114         stdint: don't assume C++11 when compiling with g++
8115         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
8116         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
8117         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
8118         work also in C++ before C++11, as that improperly inhibits
8119         generating a substitute stdint.h for that case.
8120
8121 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
8122
8123         alloca: protect comment from gnulib-tool
8124         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
8125         that gnulib-tool doesn't think it's a license, and munge it to
8126         say "GCC version 3".
8127
8128 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
8129
8130         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
8131         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
8132         $(abs_top_builddir) instead of $(top_builddir).
8133
8134 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
8135
8136         strftime-tests: also test nanoseconds
8137         * tests/test-strftime.c (T): Add a test of %N.
8138
8139 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
8140
8141         inttypes, stdint: add C++11 support
8142         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
8143         when including inttypes.h and stdint.h.  Support this change to
8144         the standard.
8145         * doc/posix-headers/inttypes.texi (inttypes.h):
8146         * doc/posix-headers/stdint.texi (stdint.h): Document this.
8147         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
8148         Define if not defined already, for the benefit of pre-C++11 hosts.
8149         Define the standard format macros (e.g., PRId8) always.
8150         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
8151         Likewise, if __cpluspus.  Define the standard constant and limit
8152         macros (e.g., INT8_C, INT8_MAX) always.
8153         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
8154         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
8155         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
8156         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
8157         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
8158         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
8159         Likewise.
8160
8161 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
8162
8163         nonblocking tests: Fix test failure on Linux/PPC.
8164         Suggested by Prerna Saxena in
8165         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
8166         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
8167         Set to 1100000.
8168
8169 2011-12-12  Jim Meyering  <meyering@redhat.com>
8170
8171         argmatch: don't hard-code `' when listing valid option arguments
8172         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
8173         use the quote function to add quotes.  Use fputs rather than
8174         fprintf for the format string with no format directive.
8175
8176 2011-12-07  Eric Blake  <eblake@redhat.com>
8177
8178         bootstrap: detect tools required by gnulib-tool
8179         * build-aux/bootstrap (buildreq): Provide minimum implicit
8180         dependencies.
8181         * DEPENDENCIES: Mention patch as a prereq.
8182
8183 2011-12-04  Bruno Haible  <bruno@clisp.org>
8184
8185         sethostname: Port to Windows platforms.
8186         * lib/sethostname.c: Provide an alternate implementation for Windows
8187         platforms.
8188         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
8189         (main): Skip the test if sethostname() fails with EPERM. On Windows
8190         platforms, don't check the result of gethostname().
8191
8192 2011-12-04  Bruno Haible  <bruno@clisp.org>
8193             Jim Meyering  <meyering@redhat.com>
8194
8195         tests: Avoid spurious error message on platforms without mktemp program.
8196         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
8197
8198 2011-12-04  Bruno Haible  <bruno@clisp.org>
8199
8200         sethostname: Fix documentation.
8201         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
8202         "not fixed" section.
8203
8204 2011-12-03  Bruno Haible  <bruno@clisp.org>
8205
8206         gnulib-tool: Verify that the License field is present and non-empty.
8207         * gnulib-tool (func_get_license_raw): New function, extracted from
8208         func_get_license.
8209         (func_get_license): Use it. Warn if the module is not a test module and
8210         has no license.
8211         Suggested by Jim Meyering.
8212
8213 2011-12-03  Bruno Haible  <bruno@clisp.org>
8214
8215         sethostname tests: Fix link error on mingw.
8216         * tests/test-sethostname1.c: New file, extracted from
8217         tests/test-sethostname.c.
8218         * tests/test-sethostname2.c: New file, extracted from
8219         tests/test-sethostname.c.
8220         * tests/test-sethostname.c: Remove file.
8221         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
8222         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
8223         (Depends-on): Add gethostname.
8224         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
8225         Link the latter with $(GETHOSTNAME_LIB).
8226
8227         sethostname tests: Fix compilation error on mingw.
8228         * tests/test-sethostname.c: Don't include <sys/types.h>.
8229         (geteuid): Use a dummy value without uid_t.
8230         * modules/sethostname-tests (Depends-on): Remove sys_types.
8231
8232         sethostname tests: Avoid a gcc warning.
8233         * tests/test-sethostname.c (main): Remove an unused variable.
8234
8235         Tweak last commit.
8236         * modules/sethostname-tests (Files): Sort by decreasing importance.
8237         (configure.ac): Check for geteuid.
8238         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
8239         the test when there's nothing to test. Drop an unnecessary cast.
8240         Improve an error message. Verify that the final sethostname() call
8241         succeeds.
8242
8243 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
8244
8245         Add a test suite for the sethostname module.
8246         * modules/sethostname-tests: New file.  A test program
8247         for the sethostname module.
8248         * tests/test-sethostname.c: Likewise.
8249
8250 2011-12-03  Bruno Haible  <bruno@clisp.org>
8251
8252         Tweak last commit.
8253         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
8254         Fix preprocessor directives indentation. Fix typos.
8255         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
8256         * modules/unistd (Makefile): Likewise.
8257
8258 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
8259
8260         Integrate the sethostname module into unistd.
8261         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
8262         into the unistd.h header.
8263         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
8264         preprocessor directives.
8265         * modules/unistd: Setup the Makefile substitutions of the
8266         SETHOSTNAME preprocessor directives.
8267
8268 2011-12-03  Bruno Haible  <bruno@clisp.org>
8269
8270         Tweak last commit.
8271         * lib/sethostname.c: Don't include <string.h>.
8272         (sethostname): No need to copy the argument string to the stack. Don't
8273         call clearerr. Preserve errno when fprintf failed.
8274         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
8275         Don't invoke AC_REPLACE_FUNCS.
8276         * modules/sethostname (Link): Remove empty section.
8277         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
8278         failure problem.
8279
8280 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
8281
8282         New module 'sethostname'.
8283         * lib/sethostname.c (sethostname): New file.  Provide sethostname
8284         for systems that lack it.
8285         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
8286         sethostname declaration and function.
8287         * modules/sethostname: New file.  Define the sethostname module.
8288
8289 2011-12-03  Bruno Haible  <bruno@clisp.org>
8290
8291         Tweak last commit.
8292         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
8293
8294 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
8295
8296         Split the HOST_NAME_MAX detection into a separate m4 macro.
8297         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
8298         macro so it can be used by the pending sethostname module.
8299
8300 2011-12-03  Bruno Haible  <bruno@clisp.org>
8301
8302         Fix module descriptions syntax.
8303         * modules/argv-iter (License): Fix syntax.
8304         * modules/di-set (License): Likewise.
8305         * modules/ino-map (License): Likewise.
8306         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
8307
8308 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
8309
8310         stdalign: port to Clang 3.0
8311         Problem reported by Simon Josefsson in
8312         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
8313         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
8314         which has <stdalign.h> but which does not define alignof.
8315         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
8316
8317 2011-12-01  Eric Blake  <eblake@redhat.com>
8318
8319         mktempd: silence dd usage
8320         * build-aux/mktempd (rand_bytes): Silence dd.
8321
8322 2011-11-30  Simon Josefsson  <simon@josefsson.org>
8323
8324         manywarnings: Don't mention gcc version in docstring.
8325         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
8326         Jim Meyering <meyering@redhat.com>.
8327
8328 2011-11-30  Jim Meyering  <meyering@redhat.com>
8329
8330         hash: mark a few floating point constants with "f" suffix
8331         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
8332         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
8333         floating point constants with "f", since they're destined to be
8334         saved/used as "float"s.
8335
8336 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
8337
8338         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
8339         * tests/test-float.c (test_long_double): Correct and re-enable the
8340         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
8341
8342 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
8343
8344         Avoid subtracting two pointers that don't point into the same block.
8345         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
8346         only pointers into the same memory block are subtracted. We cannot
8347         assume that sizeof (ptrdiff_t) == sizeof (void *).
8348
8349 2011-11-29  Eric Blake  <eblake@redhat.com>
8350
8351         maint.mk: add syntax check for use of compare from init.sh
8352         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
8353         moved here from coreutils.
8354
8355         manywarnings: drop -Wunsuffixed-float-constants
8356         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
8357         '1.0D', which is the only way to silence this warning for 'double'.
8358
8359 2011-11-29  Jim Meyering  <meyering@redhat.com>
8360
8361         hash: mark compute_bucket_size with the pure attribute
8362         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
8363
8364         quotearg, propername: correct pragma guard expression
8365         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
8366         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
8367
8368 2011-11-28  Jim Meyering  <meyering@redhat.com>
8369
8370         propername: do not mark proper_name with the const attribute
8371         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
8372         since it examines data pointed to by its parameter.
8373         * lib/propername.c (proper_name): Instead, add a pragma to suppress
8374         the suggestion from -Wsuggest-attribute=const.
8375
8376         propername: mark one more function as const
8377         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
8378
8379 2011-11-27  Jim Meyering  <meyering@redhat.com>
8380
8381         mark functions with const and pure attributes
8382
8383         Mark functions per suggestions from gcc-4.6 when using these options:
8384         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
8385         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
8386         Follow these guidelines: when possible, apply the attribute to
8387         an extern declaration, not to its definition.  Apply it to the
8388         definition only when the definition is static.
8389         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
8390         * lib/argv-iter.h (argv_iter_n_args): Likewise.
8391         * lib/base64.h (isbase64): Likewise.
8392         * lib/basename-lgpl.c (last_component, base_len): Likewise.
8393         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
8394         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
8395         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
8396         (c_tolower, c_toupper): Likewise.
8397         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
8398         * lib/chdir-long.c (find_non_slash): Likewise.
8399         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
8400         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
8401         * lib/file-type.h (file_type): Likewise.
8402         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
8403         * lib/filevercmp.c (verrevcmp): Likewise.
8404         * lib/freadahead.h (freadahead): Likewise.
8405         * lib/fts.c (fts_maxarglen): Likewise.
8406         * lib/hash-pjw.h (hash_pjw): Likewise.
8407         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
8408         * lib/hash.c (is_prime, next_prime): Likewise.
8409         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
8410         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
8411         (hash_table_ok, hash_get_first, hash_string): Likewise.
8412         (compute_bucket_size): Likewise.
8413         * lib/i-ring.h (i_ring_empty): Likewise.
8414         * lib/isnan.c (isnanl): Likewise.
8415         * lib/math.h (isnanl, rpl_isnanl): Likewise.
8416         * lib/memcasecmp.h (memcasecmp): Likewise.
8417         * lib/memchr2.h (memchr2): Likewise.
8418         * lib/memcmp2.h (memcmp2): Likewise.
8419         * lib/parse-datetime.y (lookup_zone): Likewise.
8420         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
8421         [!WINDOWS_SOCKETS]: Likewise.
8422         * lib/strnlen1.h (strnlen1): Likewise.
8423         * lib/uniwidth.in.h (uc_width): Likewise.
8424         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
8425         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
8426         (quoting_options_from_style): Add a comment.
8427         * lib/propername.h (proper_name): Add a comment.
8428
8429 2011-11-27  Bruno Haible  <bruno@clisp.org>
8430
8431         Remove unused macros from !_LIBC code in glibc-borrowed files.
8432         * lib/fnmatch.c (STRCOLL): Remove macro.
8433         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
8434         * lib/glob.c (__stat, __readdir64): Remove macros.
8435         * lib/tempname.c (__open64, __xstat64): Remove macros.
8436         Suggested by Paul Eggert.
8437
8438 2011-11-27  Bruno Haible  <bruno@clisp.org>
8439
8440         getcwd: Fix link error on MSVC 9.
8441         * modules/getcwd (Depends-on): Add readdir, rewinddir.
8442
8443 2011-11-27  Bruno Haible  <bruno@clisp.org>
8444
8445         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
8446         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
8447         HAVE_OPENDIR is 0.
8448         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
8449         HAVE_CLOSEDIR is 0.
8450         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
8451         is 0.
8452         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
8453
8454 2011-11-27  Bruno Haible  <bruno@clisp.org>
8455
8456         getcwd: Fix bug from 2011-08-17.
8457         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
8458         platforms that need it.
8459         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
8460         code of 4 to be a failure, not a success. This ensures that
8461         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
8462
8463 2011-11-27  Bruno Haible  <bruno@clisp.org>
8464
8465         binary-io tests: Avoid test failure on mingw when libtool is used.
8466         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
8467         Don't verify the size of t-bin-out1.tmp here.
8468         * tests/test-binary-io.sh: Verify it here.
8469         Reported by Simon Josefsson.
8470
8471 2011-11-26  Bruno Haible  <bruno@clisp.org>
8472
8473         Fix conflict between two instantiations of module 'unistd'.
8474         * gnulib-tool (func_emit_autoconf_snippet): Substitute
8475         ${include_guard_prefix} also in the autoconf snippet.
8476         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
8477         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
8478         GNULIB_UNISTD_H_GETOPT.
8479         * modules/getopt-posix (configure.ac): Set the
8480         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
8481         * modules/getopt-gnu (configure.ac): Likewise.
8482         * modules/unistd (Makefile.am): Change the substitution value of
8483         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
8484         Reported by Simon Josefsson.
8485
8486 2011-11-25  Bruno Haible  <bruno@clisp.org>
8487
8488         pagealign_alloc: Doc and comments.
8489         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
8490         module.
8491         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
8492
8493 2011-11-25  Jim Meyering  <meyering@redhat.com>
8494
8495         test-update-copyright.sh: avoid false-positive failure
8496         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
8497         around false positive failure on Cygwin/Windows.  The latter was
8498         matching erroneously-created files with names like
8499         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
8500
8501 2011-11-25  Simon Josefsson  <simon@josefsson.org>
8502
8503         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
8504         * m4/valgrind-tests.m4: Check that the parameters that will be
8505         used works, not just a subset of them.  Reported by Bruno Haible
8506         <bruno@clisp.org>.
8507
8508 2011-11-24  Jim Meyering  <meyering@redhat.com>
8509
8510         test-stdalign.c: comment out long double tests
8511         * tests/test-stdalign.c: Don't try to reduce alignment of long double
8512         variables.  That provokes errors like this from gcc-4.7.0 20111124:
8513         error: '_Alignas' specifiers cannot reduce alignment of \
8514         'static_longdouble_alignas'.
8515
8516 2011-11-22  Jim Meyering  <meyering@redhat.com>
8517
8518         init.sh: make "compare /dev/null FILE" output more readable
8519         * tests/init.sh (compare_): Document the preferred order of arguments.
8520         (emit_diff_u_header_): New function.
8521         (compare_dev_null_): Emit a simulated diff, rather than just the
8522         contents of the unexpected file.  Suggestion from Bruno Haible.
8523
8524 2011-11-21  Jim Meyering  <meyering@redhat.com>
8525             Eric Blake  <eblake@redhat.com>
8526
8527         init.sh: work around OSF/1 5.1's mishandling of /dev/null
8528         * tests/init.sh: Make our compare function slightly more portable.
8529         Reported by Bruno Haible in
8530         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
8531
8532 2011-11-21  Simon Josefsson  <simon@josefsson.org>
8533
8534         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
8535         before using it, in code that ends up in config.h.
8536
8537 2011-11-20  Bruno Haible  <bruno@clisp.org>
8538
8539         getcwd: Work around getcwd bug on AIX 5..7.
8540         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
8541         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
8542         Use a different value for gl_cv_func_getcwd_path_max. Move the
8543         definition of HAVE_PARTLY_WORKING_GETCWD from here...
8544         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
8545         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
8546         Define HAVE_MINIMALLY_WORKING_GETCWD.
8547         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
8548         where it is not even minimally working, that is, on AIX.
8549         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
8550         m4/getcwd-path-max.m4.
8551         (main): Update exit code computation.
8552         * doc/posix-functions/getcwd.texi: Mention list of platforms where
8553         getcwd does not handle long file names.
8554
8555 2011-11-20  Bruno Haible  <bruno@clisp.org>
8556
8557         getcwd: Fix bug from 2009-09-10.
8558         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
8559         like "no".
8560
8561 2011-11-20  Simon Josefsson  <simon@josefsson.org>
8562
8563         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
8564
8565 2011-11-20  Bruno Haible  <bruno@clisp.org>
8566
8567         fma tests: Avoid shadowing local variables.
8568         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
8569         expected.
8570
8571 2011-11-20  Bruno Haible  <bruno@clisp.org>
8572
8573         copysignf tests: Fix.
8574         * tests/test-copysignf.c: Fix signature check.
8575
8576 2011-11-20  Bruno Haible  <bruno@clisp.org>
8577
8578         fma: Remove unused code.
8579         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
8580         unused macros.
8581
8582 2011-11-20  Bruno Haible  <bruno@clisp.org>
8583
8584         sethostname: Fix doc about AIX.
8585         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
8586         sethostname; it has it.
8587
8588         sethostname: Mention more portability problems.
8589         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
8590         problem.
8591         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
8592
8593 2011-11-19  Bruno Haible  <bruno@clisp.org>
8594
8595         Depend on module fcntl-h when AT_FDCWD is used.
8596         * modules/utimens (Depends-on): Add fcntl-h.
8597         * modules/areadlinkat (Depends-on): Likewise.
8598         * modules/areadlinkat-with-size (Depends-on): Likewise.
8599         * modules/faccessat (Depends-on): Likewise.
8600         * modules/fchmodat (Depends-on): Likewise.
8601         * modules/fchownat (Depends-on): Likewise.
8602         * modules/getcwd (Depends-on): Likewise.
8603         * modules/mkdirat (Depends-on): Likewise.
8604         * modules/mkfifoat (Depends-on): Likewise.
8605         * modules/readlinkat (Depends-on): Likewise.
8606         * modules/symlinkat (Depends-on): Likewise.
8607         * modules/dup2-tests (Depends-on): Likewise.
8608         * modules/fdutimensat-tests (Depends-on): Likewise.
8609         * modules/futimens-tests (Depends-on): Likewise.
8610
8611 2011-11-19  Bruno Haible  <bruno@clisp.org>
8612
8613         euidaccess: Update a comment.
8614         * lib/euidaccess.c: Update comment about platforms with faccessat.
8615
8616 2011-11-19  Bruno Haible  <bruno@clisp.org>
8617
8618         openat: Fix file list.
8619         * modules/openat (Files): Remove lib/at-func.c.
8620
8621 2011-11-19  Bruno Haible  <bruno@clisp.org>
8622
8623         fstatat: Simplify.
8624         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
8625         gnulib should define rpl_fstatat, there is a
8626         "#define fstatat rpl_fstatat" in <sys/stat.h>.
8627
8628 2011-11-19  Bruno Haible  <bruno@clisp.org>
8629
8630         Ensure 'inline' can be used in tests/test-utimens-common.h.
8631         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
8632         * modules/futimens-tests (configure.ac): Likewise.
8633         * modules/utimens-tests (configure.ac): Likewise.
8634         * modules/utimensat-tests (configure.ac): Likewise.
8635
8636 2011-11-19  Simon Josefsson  <simon@josefsson.org>
8637
8638         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
8639         not hash_insert0.
8640         (hash_insert_if_absent): Doc fix.
8641
8642 2011-11-19  Simon Josefsson  <simon@josefsson.org>
8643
8644         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
8645
8646 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
8647
8648         test-getcwd: disambiguate exit status
8649         * tests/test-getcwd.c (test_long_name): Return 0..7.
8650         (main): Exit with an unambiguous exit status.  The old
8651         code yielded a mysterious mixture of two failure codes.
8652
8653         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
8654         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
8655         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
8656         rpl_fstatat or fstatat.  This should fix the other problem
8657         reported by Kai Habel in
8658         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
8659         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
8660         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
8661         and I reproduced it on a Solaris 8 host we still have in production.
8662
8663 2011-11-18  Jim Meyering  <meyering@redhat.com>
8664
8665         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
8666         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
8667         Add a sentence to the comment.
8668         (hash_insert0): New function that simply calls hash_insert_if_absent.
8669         * lib/hash.h (hash_insert_if_absent): Declare it.
8670         (hash_insert0): Add deprecation attribute.
8671         (_GL_ATTRIBUTE_DEPRECATED): Define.
8672         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
8673         not hash_insert0.
8674         * NEWS: Mention it, even though it's not really an incompatible change.
8675
8676 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
8677
8678         openat: avoid compilation failure due to lack of <errno.h> inclusion
8679         * lib/openat.c: Include <errno.h>.
8680
8681 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
8682
8683         * modules/getcwd (Depends-on): Add fdopendir.
8684         This fixes one of the two problems reported by Kai Habel in
8685         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
8686
8687         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
8688         stdalign problem reported by Ian Beckwith in
8689         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
8690         * modules/crypto/gc-arcfour (Depends-on):
8691         Depend conditionally on crypto/arcfour.
8692         * modules/crypto/gc-arctwo (Depends-on):
8693         Depend conditionally on crypto/arctwo.
8694         * modules/crypto/gc-des (Depends-on):
8695         Depend conditionally on crypto/des.
8696         * modules/crypto/gc-hmac-md5 (Depends-on):
8697         Depend conditionally on crypto/hmac-md5.
8698         * modules/crypto/gc-hmac-sha1 (Depends-on):
8699         Depend conditionally on crypto/hmac-sha1.
8700         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
8701         * modules/crypto/gc-md4 (Depends-on):
8702         Depend conditionally on crypto/md4.
8703         * modules/crypto/gc-md5 (Depends-on):
8704         Depend conditionally on crypto/md5.
8705         * modules/crypto/gc-rijndael (Depends-on):
8706         Depend conditionally on crypto/rijndael.
8707         * modules/crypto/gc-sha1 (Depends-on):
8708         Depend conditionally on crypto/sha1.
8709         * modules/crypto/gc-arcfour:
8710         * modules/crypto/gc-arctwo:
8711         * modules/crypto/gc-des:
8712         * modules/crypto/gc-hmac-md5:
8713         * modules/crypto/gc-hmac-sha1:
8714         * modules/crypto/gc-md2:
8715         * modules/crypto/gc-md4:
8716         * modules/crypto/gc-md5:
8717         * modules/crypto/gc-rijndael:
8718         * modules/crypto/gc-sha1:
8719         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
8720         now that the conditional dependencies do the work for us.
8721
8722 2011-11-17  Jim Meyering  <meyering@redhat.com>
8723
8724         tests: factor st_ctime-comparison out of two headers
8725         * tests/test-utimens-common.h (ctime_compare): Define.
8726         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
8727         * tests/test-lutimens.h (test_lutimens): Likewise.
8728         * tests/test-utimens.h (test_utimens): Likewise.
8729
8730         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
8731         Invoke the test program via an init.sh-using wrapper.
8732         * tests/test-getcwd.sh: New file.
8733         * modules/getcwd-tests (Files): Add it.
8734         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
8735
8736 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
8737
8738         gitlog-to-changelog: support multi-author commits.
8739         The FSF cares about keeping track of all authors of patches to its
8740         projects, but Git doesn't provide obvious support for multi-author
8741         changesets. Consensus seems to be forming around the use of extra
8742         Signed-off-by inspired lines in the log message formatted as
8743         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
8744         multi-author commits between version control systems.
8745         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
8746         log message and output in standard ChangeLog multi-author format.
8747         Reported by Peter Rosin <peda@lysator.liu.se>
8748
8749 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
8750             Bruno Haible  <bruno@clisp.org>
8751
8752         Fix some modules' file list.
8753         * modules/fstatat (Files): Add m4/lstat.m4.
8754         * modules/openat (Files): Likewise.
8755         * modules/unlinkat (Files): Likewise.
8756
8757 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
8758
8759         maint.mk: fix tight-scope.mk generation in VPATH builds.
8760         * top/maint.mk (tight-scope.mk): Make sure to prefix file
8761         reference with $(srcdir) so that the file is found correctly even
8762         when running `make syntax-check' in a VPATH build.
8763
8764 2011-11-13  Bruno Haible  <bruno@clisp.org>
8765             Jim Meyering  <meyering@redhat.com>
8766
8767         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
8768         * tests/init.sh (compare): Remove "No differences encountered" or
8769         synonymous output from the 'diff' program.
8770
8771 2011-11-13  Bruno Haible  <bruno@clisp.org>
8772
8773         Makefile: Tweak indentation.
8774         * Makefile: Use tab as first character in every line that contains rule
8775         commands.
8776
8777 2011-11-13  Bruno Haible  <bruno@clisp.org>
8778
8779         Syntax check for copyright statements.
8780         * check-copyright: New file.
8781         * Makefile (sc_check_copyright): New rule.
8782
8783 2011-11-13  Simon Josefsson  <simon@josefsson.org>
8784
8785         * build-aux/git-version-gen: Add --prefix to configure the tag
8786         match string.
8787
8788 2011-11-13  Simon Josefsson  <simon@josefsson.org>
8789
8790         * build-aux/git-version-gen: Add --help and --version.
8791
8792 2011-11-12  Jim Meyering  <meyering@redhat.com>
8793
8794         revamp the other test-exclude?.sh scripts to use init.sh, too
8795         * tests/test-exclude1.sh: Use init.sh.
8796         * tests/test-exclude2.sh: Likewise.
8797         * tests/test-exclude3.sh: Likewise.
8798         * tests/test-exclude4.sh: Likewise.
8799         * tests/test-exclude5.sh: Likewise.
8800         * tests/test-exclude6.sh: Likewise.
8801         * tests/test-exclude7.sh: Likewise.
8802         * tests/test-exclude8.sh: Likewise.
8803         * modules/exclude-tests (Files): List init.sh.
8804
8805         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
8806         These shell scripts ignored failure of the binary test-exclude,
8807         so making the latter return 77 didn't cause them to be skipped.
8808         * tests/test-exclude5.sh: Exit with test-exclude's error status
8809         when that program fails.  Revamp to use init.sh.
8810         * tests/test-exclude2.sh: Likewise.
8811
8812         test-exclude: fix a typo
8813         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
8814
8815 2011-11-11  Bruno Haible  <bruno@clisp.org>
8816
8817         obstack: Fix compilation error on MSVC 9.
8818         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
8819
8820 2011-11-11  Jim Meyering  <meyering@redhat.com>
8821
8822         test-exclude: skip tests rather than failing on deficient systems
8823         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
8824         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
8825         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
8826         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
8827
8828 2011-11-10  Bruno Haible  <bruno@clisp.org>
8829
8830         ptsname_r test: Avoid gcc warning on glibc systems.
8831         * tests/test-ptsname_r.c (null_ptr): New function.
8832         (test_errors): Use it.
8833
8834 2011-11-10  Bruno Haible  <bruno@clisp.org>
8835
8836         ptsname_r: Avoid compilation error on OSF/1 5.1.
8837         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
8838         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
8839         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
8840         function is not declared or incompatibly declared.
8841         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
8842         * modules/ptsname_r (Depends-on, configure.ac): Update.
8843         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
8844
8845 2011-11-10  Bruno Haible  <bruno@clisp.org>
8846
8847         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
8848         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
8849         When cross-compiling, guess yes on all platforms except AIX.
8850         Reported by Ludovic Courtès <ludo@gnu.org>.
8851
8852 2011-11-09  Bruno Haible  <bruno@clisp.org>
8853
8854         ptsname_r tests: Fix bugs.
8855         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
8856         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
8857
8858 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
8859
8860         fstatat: work with cross-compilation
8861         Problem reported by Ludovic Courtès in
8862         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
8863         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
8864         "cross-compiling" and assume the bug is present.  Replace
8865         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
8866         an inverted sense, to be more conservative about our assumptions.
8867         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
8868
8869 2011-11-09  Bruno Haible  <bruno@clisp.org>
8870
8871         Improve MODULES.html output.
8872         * modules/mkfifoat (Description): Use the word "function".
8873         * modules/readlinkat (Description): Likewise.
8874         * modules/symlinkat (Description): Likewise.
8875
8876 2011-11-09  Eric Blake  <eblake@redhat.com>
8877
8878         ptsname_r-tests: new test module
8879         * modules/ptsname_r-tests: New module.
8880         * tests/test-ptsname_r.c: New file.
8881
8882         ptsname_r: new module
8883         * modules/ptsname_r: New module.
8884         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
8885         * lib/ptsname.c (__ptsname_r): Split...
8886         * lib/ptsname_r.c: ...into new file.
8887         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
8888         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
8889         * modules/stdlib (Makefile.am): Substitute witnesses.
8890         * lib/stdlib.in.h (ptsname_r): Declare it.
8891         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
8892         * MODULES.html.sh (Misc): Likewise.
8893         * modules/ptsname (Depends-on): Alter dependency.
8894         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
8895
8896 2011-11-09  Jim Meyering  <meyering@redhat.com>
8897
8898         announce-gen: be more concise when there's only one URL+tarball
8899         * build-aux/announce-gen (get_tool_versions): When you distribute
8900         only one type of tarball, combine the first two "Here are..."
8901         sections and make the key-checking grammar independent of
8902         how many tarballs there are.
8903
8904 2011-11-09  Eric Blake  <eblake@redhat.com>
8905
8906         openpty: provide a stub on mingw
8907         * lib/pty.in.h (includes): Provide forward declarations.
8908         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
8909
8910         raise: fix mingw handling of SIGPIPE
8911         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
8912
8913 2011-11-08  Bruno Haible  <bruno@clisp.org>
8914
8915         More conditional dependencies.
8916         * modules/faccessat (Depends-on): Add conditions.
8917         * modules/fchmodat (Depends-on): Likewise.
8918         * modules/fchownat (Depends-on): Likewise.
8919         * modules/fstatat (Depends-on): Likewise.
8920         * modules/mkfifoat (Depends-on): Likewise.
8921         * modules/readlinkat (Depends-on): Likewise.
8922         * modules/symlinkat (Depends-on): Likewise.
8923         * modules/unlinkat (Depends-on): Likewise.
8924         * modules/utimensat (Depends-on): Likewise.
8925         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
8926         * modules/linkat (Depends-on): Refine the conditions.
8927         * modules/renameat (Depends-on): Likewise.
8928
8929 2011-11-08  Bruno Haible  <bruno@clisp.org>
8930
8931         faccessat: Move AC_LIBOBJ invocation to module description.
8932         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
8933         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
8934         invocation from here...
8935         * modules/faccessat (configure.ac): ... to here. Invoke
8936         gl_PREREQ_FACCESSAT.
8937
8938 2011-11-08  Bruno Haible  <bruno@clisp.org>
8939
8940         faccessat: Simplify autoconf macro.
8941         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
8942         gl_FUNC_EUIDACCESS.
8943
8944 2011-11-08  Bruno Haible  <bruno@clisp.org>
8945
8946         renameat: Fix dependencies.
8947         * modules/renameat (Depends-on): Add stdbool.
8948
8949 2011-11-08  Bruno Haible  <bruno@clisp.org>
8950
8951         mkfifoat: Fix module description.
8952         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
8953         not gl_UNISTD_MODULE_INDICATOR.
8954
8955 2011-11-08  Bruno Haible  <bruno@clisp.org>
8956
8957         fstatat: Remove unused dependency.
8958         * modules/fstatat (Depends-on): Remove fstat.
8959
8960 2011-11-08  Simon Josefsson  <simon@josefsson.org>
8961
8962         GNUmakefile: behave when Makefile is missing.
8963         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
8964
8965 2011-11-08  Bruno Haible  <bruno@clisp.org>
8966
8967         openat: Conditionalize dependencies.
8968         * lib/openat.c: Reduce the scope of some #includes.
8969         * modules/openat (Depends-on): Add conditions.
8970
8971 2011-11-07  Jim Meyering  <meyering@redhat.com>
8972
8973         maint.mk: extract GPG key ID without using a temporary file
8974         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
8975         without using a temporary file.  Based on a suggestion from Werner Koch
8976         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
8977
8978 2011-11-07  Eric Blake  <eblake@redhat.com>
8979
8980         grantpt: fix typo
8981         * lib/stdlib.in.h (grantpt): Check correct function.
8982
8983         maint.mk: silence new syntax check
8984         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
8985
8986 2011-11-06  Bruno Haible  <bruno@clisp.org>
8987
8988         Doc about floating-point and math API.
8989         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
8990         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
8991
8992 2011-11-06  Bruno Haible  <bruno@clisp.org>
8993
8994         stdalign tests: Skip the test when compiled by Sun C.
8995         * tests/test-stdalign.c (main): Skip the test on Sun C.
8996
8997 2011-11-06  Bruno Haible  <bruno@clisp.org>
8998
8999         ansi-c++-opt: Complete the 2011-06-05 change.
9000         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
9001         does not support namespaces, set the variable to "no", not to ":".
9002
9003 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
9004
9005         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
9006
9007 2011-11-06  Bruno Haible  <bruno@clisp.org>
9008
9009         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
9010         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
9011         (minus_zerol) [HP-UX]: New macro.
9012         (unary_minus) [HP-UX]: New function.
9013         (copysignl) [HP-UX]: Use unary_minus function.
9014
9015 2011-11-06  Bruno Haible  <bruno@clisp.org>
9016
9017         ldexp, ldexpf, ldexpl: Enhance tests.
9018         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
9019         and tests/test-ldexpl.c.
9020         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
9021         LDEXP, MIN_EXP, MAX_EXP): New macros.
9022         Include test-ldexp.h.
9023         (main): Just call test_function.
9024         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
9025         infinity.h, nan.h.
9026         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
9027         MAX_EXP): New macros.
9028         Include test-ldexp.h.
9029         (x, y): Remove variables.
9030         (main): Just call test_function.
9031         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
9032         infinity.h, nan.h.
9033         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
9034         MAX_EXP): New macros.
9035         Include test-ldexp.h.
9036         (x, y): Remove variables.
9037         (main): Just call test_function.
9038         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
9039         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
9040         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
9041         (Depends-on): Add isnand-nolibm, signbit, float.
9042         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
9043         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
9044         (Depends-on): Add isnanf-nolibm, signbit, float.
9045
9046 2011-11-06  Bruno Haible  <bruno@clisp.org>
9047
9048         math tests: Cosmetics.
9049         * tests/test-math-c++.cc: Reorder declarations.
9050
9051 2011-11-05  Bruno Haible  <bruno@clisp.org>
9052
9053         fma*: Simplify test.
9054         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
9055         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
9056
9057         Tests for module 'fmal'.
9058         * modules/fmal-tests: New file.
9059         * tests/test-fmal1.c: New file.
9060         * tests/test-fmal2.c: New file.
9061
9062         New module 'fmal'.
9063         * lib/math.in.h (fmal): New declaration.
9064         * lib/fmal.c: New file.
9065         * m4/fmal.m4: New file.
9066         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
9067         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
9068         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
9069         REPLACE_FMAL.
9070         * modules/fmal: New file.
9071         * doc/posix-functions/fmal.texi: Mention the new module and the various
9072         bugs.
9073
9074         Tests for module 'fmaf'.
9075         * modules/fmaf-tests: New file.
9076         * tests/test-fmaf1.c: New file.
9077         * tests/test-fmaf2.c: New file.
9078
9079         New module 'fmaf'.
9080         * lib/math.in.h (fmaf): New declaration.
9081         * lib/fmaf.c: New file.
9082         * m4/fmaf.m4: New file.
9083         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
9084         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
9085         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
9086         REPLACE_FMAF.
9087         * modules/fmaf: New file.
9088         * doc/posix-functions/fmaf.texi: Mention the new module and the various
9089         bugs.
9090
9091         Tests for module 'fma'.
9092         * modules/fma-tests: New file.
9093         * tests/test-fma1.c: New file.
9094         * tests/test-fma1.h: New file.
9095         * tests/test-fma2.c: New file.
9096         * tests/test-fma2.h: New file.
9097
9098         New module 'fma'.
9099         * lib/math.in.h (fma): New declaration.
9100         * lib/fma.c: New file.
9101         * m4/fma.m4: New file.
9102         * m4/fegetround.m4: New file.
9103         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
9104         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
9105         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
9106         REPLACE_FMA.
9107         * modules/fma: New file.
9108         * doc/posix-functions/fma.texi: Mention the new module and the various
9109         bugs.
9110
9111         Extend gl_MATHFUNC.
9112         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
9113         Support 'void' as argument type.
9114         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
9115
9116 2011-11-05  Jim Meyering  <meyering@redhat.com>
9117
9118         maint.mk: also prohibit inclusion of dirent.h without use
9119         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
9120
9121 2011-11-05  Bruno Haible  <bruno@clisp.org>
9122
9123         ldexpl tests: Avoid test failure on MSVC 9.
9124         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
9125         value. Needed in order to enforce the conversion from a value greater
9126         than LDBL_MAX to Infinity.
9127
9128 2011-11-05  Bruno Haible  <bruno@clisp.org>
9129
9130         New modules 'at-internal', 'openat-h', split off from module 'openat'.
9131         * modules/at-internal: New file, extracted from modules/openat.
9132         * modules/openat-h: New file.
9133         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
9134         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
9135         * modules/openat (Description): Add reference to POSIX function.
9136         (Files): Remove lib/openat.h, lib/openat-proc.c.
9137         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
9138         intprops, unistd.
9139         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
9140         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
9141         gl_FCNTL_MODULE_INDICATOR.
9142         (Include): Remove unistd.h, openat.h.
9143         * modules/areadlinkat (Files): Add lib/at-func.c.
9144         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
9145         openat-die, openat-h, save-cwd.
9146         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
9147         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
9148         openat-die, openat-h, save-cwd, unistd.
9149         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
9150         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
9151         openat-h, save-cwd. Remove fcntl-h, openat.
9152         * modules/fchmodat (Files): Remove lib/openat.h.
9153         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
9154         openat, stdbool, unistd.
9155         * modules/fchownat (Files): Remove lib/openat.h.
9156         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
9157         openat, stdbool, sys_stat.
9158         * modules/fdopendir (Files): Remove lib/openat-priv.h,
9159         lib/openat-proc.c.
9160         (Depends-on): Add at-internal.
9161         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
9162         * modules/fstatat (Files): Remove lib/openat.h.
9163         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
9164         stdbool, unistd.
9165         * modules/fts (Depends-on): Add openat-h.
9166         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
9167         openat.
9168         * modules/mkdirat (Files): Remove lib/openat.h.
9169         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
9170         openat, stdbool, sys_stat.
9171         * modules/mkfifoat (Files): Add lib/at-func.c.
9172         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
9173         openat-h, save-cwd. Remove fcntl-h, openat.
9174         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
9175         * modules/readlinkat (Files): Add lib/at-func.c.
9176         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
9177         openat-h, save-cwd. Remove fcntl-h, openat.
9178         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
9179         openat.
9180         * modules/selinux-at (Files): Add lib/at-func.c.
9181         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
9182         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
9183         * modules/symlinkat (Files): Add lib/at-func.c.
9184         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
9185         openat-h, save-cwd. Remove fcntl-h, openat.
9186         * modules/unlinkat (Files): Remove lib/openat.h.
9187         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
9188         stdbool.
9189         * modules/utimensat (Files): Add lib/at-func.c.
9190         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
9191         openat-die, openat-h, save-cwd.
9192         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
9193         * modules/fdutimensat-tests (Depends-on): Add openat.
9194         * modules/fstatat-tests (Depends-on): Add openat-h.
9195         * modules/readlinkat-tests (Depends-on): Add openat.
9196         * modules/symlinkat-tests (Depends-on): Add openat.
9197
9198 2011-11-05  Bruno Haible  <bruno@clisp.org>
9199
9200         openat: Include <stdbool.h>.
9201         * lib/openat.c: Include <stdbool.h>.
9202
9203 2011-11-04  Bruno Haible  <bruno@clisp.org>
9204
9205         fchownat, renameat, unlinkat: Fix dependencies.
9206         * modules/fchownat (Depends-on): Add fstatat.
9207         * modules/renameat (Depends-on): Likewise.
9208         * modules/unlinkat (Depends-on): Likewise.
9209
9210 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
9211
9212         openat: remove direct dependency on dirent
9213         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
9214         and hasn't been needed ever since fdopendir was split into its own
9215         module on 2009-08-31.
9216         * modules/openat (Depends-on): Remove dirent.
9217
9218 2011-11-04  Bruno Haible  <bruno@clisp.org>
9219
9220         renameat: Optimize code size.
9221         * modules/renameat (configure.ac): Don't compile at-func2.c if
9222         REPLACE_RENAMEAT is 1.
9223
9224 2011-11-04  Bruno Haible  <bruno@clisp.org>
9225
9226         openat tests: Fix file list.
9227         * modules/openat-tests (Files): Add tests/test-open.h.
9228
9229 2011-11-04  Bruno Haible  <bruno@clisp.org>
9230
9231         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
9232         * modules/fchmodat (Depends-on): Add openat-die.
9233         * modules/fchownat (Depends-on): Likewise.
9234         * modules/linkat (Depends-on): Likewise.
9235         * modules/renameat (Depends-on): Likewise.
9236         * modules/openat (Depends-on): Add dirent.
9237
9238 2011-11-04  Jim Meyering  <meyering@redhat.com>
9239
9240         at-func*.c: fix comments
9241         * lib/at-func2.c: Correct/improve first-line comment.
9242         * lib/at-func.c: Correct grammar in first-line comment.
9243
9244 2011-11-04  Bruno Haible  <bruno@clisp.org>
9245
9246         New module 'mkdirat', split off from module 'openat'.
9247         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
9248         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
9249         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
9250         * modules/mkdirat: New file, extracted from modules/openat.
9251         * modules/openat (Files): Remove lib/mkdirat.c.
9252         (Depends-on): Remove mkdir.
9253         (configure.ac): Remove AC_LIBOBJ of mkdirat.
9254         (Include): Remove <sys/stat.h>.
9255         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
9256         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
9257         tests/test-mkdir.h.
9258         (Depends-on): Remove ignore-value.
9259         (Makefile.am): Remove rules for test-mkdirat.
9260         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
9261         of module 'openat'.
9262         * NEWS: Mention the change.
9263
9264 2011-11-04  Bruno Haible  <bruno@clisp.org>
9265
9266         closedir: Avoid warning on mingw.
9267         * lib/closedir.c: Include <unistd.h>.
9268
9269 2011-11-04  Bruno Haible  <bruno@clisp.org>
9270
9271         New module 'fstatat', split off from module 'openat'.
9272         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
9273         defined.
9274         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
9275         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
9276         gl_FUNC_FSTATAT.
9277         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
9278         * modules/fstatat: New file, extracted from modules/openat.
9279         * modules/openat (Files): Remove lib/fstatat.c.
9280         (Depends-on): Remove lstat.
9281         (configure.ac): Remove AC_LIBOBJ of fstatat.
9282         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
9283         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
9284         tests/test-lstat.h, tests/test-stat.h.
9285         (Depends-on): Remove getcwd-lgpl.
9286         (Makefile.am): Remove rules for test-fstatat.
9287         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
9288         of module 'openat'.
9289         * NEWS: Mention the change.
9290         * modules/getcwd (Depends-on): Add fstatat.
9291         * modules/linkat (Depends-on): Likewise.
9292         * modules/mkfifoat-tests (Depends-on): Likewise.
9293         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
9294
9295 2011-11-03  Bruno Haible  <bruno@clisp.org>
9296
9297         New module 'unlinkat', split off from module 'openat'.
9298         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
9299         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
9300         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
9301         * modules/unlinkat: New file, extracted from modules/openat. Correct
9302         the dependency conditions.
9303         * modules/openat (Files): Remove lib/unlinkat.c.
9304         (Depends-on): Remove rmdir, unlink.
9305         (configure.ac): Remove AC_LIBOBJ of unlinkat.
9306         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
9307         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
9308         tests/test-rmdir.h, tests/test-unlink.h.
9309         (Depends-on): Remove unlinkdir.
9310         (Makefile.am): Remove rules for test-unlinkat.
9311         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
9312         of module 'openat'.
9313         * NEWS: Mention the change.
9314         * modules/linkat-tests (Depends-on): Add unlinkat.
9315         * modules/mkfifoat-tests (Depends-on): Likewise.
9316         * modules/readlinkat-tests (Depends-on): Likewise.
9317
9318 2011-11-02  Bruno Haible  <bruno@clisp.org>
9319
9320         New module 'fchmodat', split off from module 'openat'.
9321         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
9322         defined.
9323         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
9324         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
9325         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
9326         * modules/fchmodat: New file, extracted from modules/openat.
9327         * modules/openat (Files): Remove lib/fchmodat.c.
9328         (configure.ac): Remove AC_LIBOBJ of fchmodat.
9329         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
9330         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
9331         (Makefile.am): Remove rules for test-fchmodat.
9332         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
9333         of module 'openat'.
9334         * NEWS: Mention the change.
9335
9336 2011-11-02  Jim Meyering  <meyering@redhat.com>
9337
9338         putenv: indent #definition of "environ" to placate cppi
9339         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
9340
9341         gitlog-to-changelog: provide a ChangeLog-repair mechanism
9342         Git logs are often treated as immutable, because editing them
9343         changes the SHA1 checksums of all descendants.  Thus, errors in
9344         git logs tend to stay there forever.  However, when we generate
9345         a ChangeLog file -- typically for distribution -- from that git log,
9346         we can actually make corrections in the generated file.  The key
9347         lies in recording in machine-readable/applicable form the desired
9348         corrections.  See --help for description and an example.
9349         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
9350         (usage): Describe it; alphabetize option descriptions.
9351         (main): Honor the new option, carefully.
9352
9353 2011-11-01  Jim Meyering  <meyering@redhat.com>
9354
9355         gitlog-to-changelog: avoid an infloop
9356         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
9357         that ends up being empty.
9358
9359 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
9360
9361         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
9362         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
9363         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
9364         contains (possibly-quoted) backslashes.  This should avoid
9365         all-too-common shell bugs if COMPLICATED contains backslashes in
9366         the "wrong" places.  Reported by David Evans in
9367         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
9368         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
9369         because we want ASCII ranges.  Is there some reason we don't use
9370         the C locale everywhere in this script?
9371         (func_module, top level): Avoid unwanted pathname expansion when
9372         $repo_url_prefix or $repo_url_suffix_repl contain shell
9373         metacharacters like '?' and '*'.
9374
9375 2011-11-01  Bruno Haible  <bruno@clisp.org>
9376
9377         fchownat: Improve description.
9378         * modules/fchownat (Description): Add link to function.
9379
9380 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
9381
9382         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
9383         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
9384         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
9385         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
9386
9387 2011-11-01  Bruno Haible  <bruno@clisp.org>
9388
9389         alignof: Avoid collision with stdalign module.
9390         * lib/alignof.h (alignof): Remove macro.
9391         * NEWS: Mention the change.
9392         Reported by Paul Eggert.
9393
9394 2011-11-01  Bruno Haible  <bruno@clisp.org>
9395
9396         New module 'fchownat', split off from module 'openat'.
9397         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
9398         defined.
9399         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
9400         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
9401         invoke gl_FUNC_FCHOWNAT.
9402         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
9403         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
9404         * modules/fchownat: New file, extracted from modules/openat.
9405         * modules/openat (Files): Remove lib/fchownat.c.
9406         (Depends-on): Remove lchown.
9407         (configure.ac): Remove AC_LIBOBJ of fchownat.
9408         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
9409         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
9410         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
9411         (Depends-on): Remove mgetgroups, usleep, stat-time.
9412         (configure.ac): Remove test for getegid.
9413         (Makefile.am): Remove rules for test-fchownat.
9414         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
9415         of module 'openat'.
9416         * NEWS: Mention the change.
9417
9418 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
9419
9420         stdalign: port better to MSVC and to Sun C 5.11
9421         This fixes some of the problems reported by Bruno Haible in
9422         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
9423         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
9424         shortcomings of MSVC and of Sun C 5.11.
9425         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
9426         around __declspec arg.
9427         * modules/stdalign-tests (Files): Add tests/macros.h.
9428         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
9429         Include macros.h, for ASSERT.
9430         (DECLARE_ALIGNED): Remove.
9431         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
9432         to catch bug), and to 1 if not (simplifies the rest of the code).
9433         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
9434         (CHECK_AUTO): Remove.
9435         (CHECK_ALIGNED): Check only the alignment of the static vars,
9436         since auto var alignment isn't supported by Sun C 5.11.
9437         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
9438         ASSERT failures are easier to diagnose.
9439
9440 2011-10-31  Bruno Haible  <bruno@clisp.org>
9441
9442         doc about some IRIX 5.3 problems.
9443         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
9444         on IRIX 5.3.
9445         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
9446         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
9447         5.3.
9448         * doc/posix-functions/grantpt.texi: Likewise.
9449         * doc/posix-functions/unlockpt.texi: Likewise.
9450         * doc/posix-functions/lgamma.texi: Likewise.
9451         * doc/posix-functions/nextafter.texi: Likewise.
9452         * doc/posix-functions/remainder.texi: Likewise.
9453         * doc/posix-functions/select.texi: Mention misplaced declaration on
9454         IRIX 5.3.
9455         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9456
9457 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
9458
9459         gitlog-to-changelog: fix git-log invocation.
9460         git-log mishandles date strings before 1970-01-01 UTC, and there is
9461         no use to specify --since=1970-01-01 by default anyway.
9462         * build-aux/gitlog-to-changelog: By default, when no --since option
9463         was given, do not specify explicit --since option to git-log.
9464
9465 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
9466
9467         gitlog-to-changelog: new option --append-dot.
9468         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
9469         first non-blank line of each commit message terminated with a dot.
9470
9471 2011-10-30  Bruno Haible  <bruno@clisp.org>
9472
9473         ffsl, ffsll: Avoid compilation error due to 'restrict'.
9474         * lib/ffsl.h: Include <config.h>.
9475         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
9476
9477 2011-10-30  Jim Meyering  <meyering@redhat.com>
9478
9479         GNUmakefile: reenable "make syntax-check" for most projects
9480         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
9481         build-aux variable", "syntax-check" would do nothing but succeed with
9482         the "No version control files detected..." diagnostic (unless you
9483         happened to override _build-aux via cfg.mk).
9484         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
9485         to precede inclusion of maint.mk.  Otherwise, these variables would
9486         be used undefined in any project that does not override the default.
9487
9488 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
9489
9490         gitlog-to-changelog: treat a message with only blank lines as empty.
9491         * build-aux/gitlog-to-changelog: Move the code that removes leading and
9492         trailing blank lines before the code that issues a warning about an
9493         empty commit message.
9494
9495 2011-10-30  Jim Meyering  <meyering@redhat.com>
9496
9497         test-parse-datetime.c: avoid new DST-related false positive test failure
9498         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
9499         based on the time/date we'll convert, not the current time.
9500         Otherwise, the moment we cross a DST boundary like today's in
9501         Europe, (CEST to CET), that offset ends up being one hour off.
9502
9503 2011-10-27  Bruno Haible  <bruno@clisp.org>
9504
9505         fstat: Tweak documentation.
9506         * modules/fstat (Description): More precise description.
9507
9508 2011-10-27  Bruno Haible  <bruno@clisp.org>
9509
9510         Update documentation regarding 'largefile' module.
9511         * doc/posix-functions/fstat.texi: Tweak wording.
9512         * doc/posix-functions/opendir.texi: Mention that the module fixes the
9513         problems with huge directories and/or small ino_t types.
9514         * doc/posix-functions/readdir.texi: Likewise.
9515         * doc/posix-functions/rewinddir.texi: Likewise.
9516
9517 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
9518
9519         maint.mk: don't maintain a second build-aux variable.
9520         * maint.mk (build_aux): Removed.  The maintainer-makefile module
9521         depends on GNUmakefile, which already maintains a cfg.mk
9522         overridable $(_build-aux) for projects with a non-standard
9523         build-aux directory location, although without the $(srcdir)
9524         prefix.  Use that variable consistently instead of introducing a
9525         second one.  Adjust all call sites.
9526
9527 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
9528
9529         Add stdalign module and use it in other modules.
9530         This is based on a previous proposal by Bruno Haible
9531         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
9532
9533         stdalign: new module
9534         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
9535         * modules/stdalign: New files.
9536         * MODULES.html.sh (c1x_core_properties): Add stdalign.
9537         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
9538
9539         stdalign-tests: new module
9540         * modules/stdalign-tests, tests/test-stdalign.c: New files.
9541
9542         argp: use stdalign
9543         * lib/argp-parse.c: Include <stdalign.h>.
9544         (alignof): Remove.
9545         * modules/argp (Depends-on): Add stdalign.
9546
9547         crypto libraries: use stdalign
9548         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
9549         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
9550         Do not include <stdlib.h> twice, in md4.c.
9551         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
9552         because we are accessing a pointer's bit-pattern, not a size.
9553         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
9554         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
9555         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
9556         * modules/crypto/sha512: Likewise.
9557
9558         sys_socket: use stdalign, not alignof
9559         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
9560         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
9561
9562 2011-10-27  Bruno Haible  <bruno@clisp.org>
9563
9564         raise test: Avoid a test failure on Linux/MIPS.
9565         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
9566         because 99 is a valid signal on Linux/MIPS.
9567
9568 2011-10-27  Bruno Haible  <bruno@clisp.org>
9569
9570         nonblocking tests: Fix test failure on Linux/MIPS.
9571         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
9572         Set to 270000.
9573
9574 2011-10-27  Bruno Haible  <bruno@clisp.org>
9575
9576         utimensat: Work around problem on Linux/hppa.
9577         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
9578         values.
9579         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
9580
9581 2011-10-25  Jim Meyering  <meyering@redhat.com>
9582
9583         maint.mk: fix a bug in sc_prohibit_stddef_without_use
9584         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
9585         after symbols like NULL, size_t, etc.
9586         Reported by Alfred M. Szmidt.
9587
9588         maint.mk: exempt ENODATA from a syntax-check rule
9589         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
9590         from the sc_prohibit_always-defined_macros syntax-check rule.
9591         Add a comment.  See this for more details:
9592         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
9593
9594 2011-10-23  Jim Meyering  <meyering@redhat.com>
9595
9596         fts: close parent dir FD before returning from post-traversal fts_read
9597         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
9598         unlink A, even though an FD open on A remained.  This is suboptimal
9599         (holding a file descriptor open longer than needed), but otherwise not
9600         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
9601         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
9602         that represents a real problem: it causes the removal of A to fail
9603         with e.g., "rm: cannot remove `A': Device or resource busy"
9604
9605         fts visits each directory twice and keeps a cache (fts_fd_ring) of
9606         directory file descriptors.  After completing the final, FTS_DP,
9607         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
9608         cache, but then proceeded to add a new FD to it via the subsequent
9609         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
9610         final file descriptor would be closed only via fts_close's call to
9611         fd_ring_clear.  Now, it is usually closed earlier, via the final
9612         FTS_DP-returning fts_read call.
9613         * lib/fts.c (restore_initial_cwd): New function, converted from
9614         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
9615         Update callers.
9616         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
9617         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
9618
9619 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
9620             Bruno Haible  <bruno@clisp.org>
9621             Jim Meyering  <jim@meyering.net>
9622
9623         readme-release: improve safety of release prep instructions.
9624         * README-release: Don't git pull all branches when only master
9625         is needed for the release process.
9626         Run make maintainer-clean before changing trees and merging.
9627         Don't try to run ./configure right after git pull in case files
9628         that influence the bootstrap process have changed, move the
9629         ./configure step to after running ./bootstrap.
9630         Don't bootstrap "one last time"... it's the first time!
9631
9632 2011-10-22  Bruno Haible  <bruno@clisp.org>
9633
9634         errno, strerror-override: Support for MSVC 10.
9635         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
9636         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
9637         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
9638         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
9639         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
9640         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
9641         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
9642         Assign values compatible with MSVC 10.
9643         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
9644         New macros.
9645         (GNULIB_defined_EWINSOCK): New macro.
9646         * lib/strerror-override.c (strerror_override): Update accordingly.
9647         * lib/strerror-override.h: Likewise.
9648         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
9649         longer equal to the corresponding errno value.
9650         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
9651
9652 2011-10-22  Bruno Haible  <bruno@clisp.org>
9653
9654         perror: Recognize when test program crashes.
9655         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
9656         strerror, set gl_cv_func_perror_works to no.
9657         Reported by Daniel Richard G. <skunk@iskunk.org>.
9658
9659         perror: Fix indentation.
9660         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
9661
9662 2011-10-22  Bruno Haible  <bruno@clisp.org>
9663
9664         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
9665         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
9666         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
9667         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
9668         functions, not as a macro.
9669         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
9670         macros.
9671         (isfinite, isinf, isnan, signbit): Check overloaded functions and
9672         absence of macro.
9673         Suggested by Eric Blake.
9674         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
9675
9676 2011-10-21  Bruno Haible  <bruno@clisp.org>
9677
9678         relocatable-prog-wrapper: Don't leave object files behind.
9679         * build-aux/install-reloc: Re-synchronize list of .o files to be
9680         removed with list of compilation units.
9681
9682 2011-10-20  Bruno Haible  <bruno@clisp.org>
9683
9684         openpty, posix_openpt: Remove code duplication.
9685         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
9686         * lib/openpty.c: Include <stdlib.h>.
9687         (openpty): Use posix_openpt on all platforms except IRIX.
9688         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
9689
9690 2011-10-20  Bruno Haible  <bruno@clisp.org>
9691
9692         unlockpt: Detect invalid argument.
9693         * lib/unlockpt.c: Include <fcntl.h>.
9694         (unlockpt): Check whether fd is valid, using fcntl().
9695         * modules/unlockpt (Depends-on): Add fcntl-h.
9696
9697 2011-10-20  Bruno Haible  <bruno@clisp.org>
9698
9699         openpty: Avoid compilation error on AIX 6.1.
9700         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
9701
9702 2011-10-20  Bruno Haible  <bruno@clisp.org>
9703
9704         posix_openpt: Support for OpenBSD.
9705         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
9706         (posix_openpt) [OpenBSD]: New code.
9707         * lib/grantpt.c: Include <fcntl.h>.
9708         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
9709         * modules/grantpt (Depends-on): Add fcntl-h.
9710
9711 2011-10-20  Bruno Haible  <bruno@clisp.org>
9712
9713         posix_openpt test: Coding style.
9714         * tests/test-posix_openpt.c: Use GNU coding style.
9715
9716 2011-10-20  Bruno Haible  <bruno@clisp.org>
9717
9718         grantpt: Support --avoid=pt_chown.
9719         * modules/grantpt (Files): Add lib/pty-private.h.
9720
9721 2011-10-20  Bruno Haible  <bruno@clisp.org>
9722
9723         posix_openpt: Fix autoconf macro.
9724         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
9725         unneeded check for _getpty.
9726
9727 2011-10-20  Bruno Haible  <bruno@clisp.org>
9728
9729         openpty: Update comments.
9730         * lib/openpty.c: Add comments about Minix.
9731
9732 2011-10-19  Eric Blake  <eblake@redhat.com>
9733
9734         openpty: relax license
9735         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
9736
9737         pt_chown: use configmake to simplify build
9738         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
9739
9740         ptsname and others: relax license
9741         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
9742         * modules/unlockpt (License): Likewise.
9743         * modules/pt_chown (License): Likewise.
9744         * modules/ptsname (License): Likewise.
9745         * modules/ttyname_r (License): Likewise.
9746
9747 2011-10-19  Jim Meyering  <meyering@redhat.com>
9748
9749         posix_openpt: remove spurious #endif
9750         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
9751
9752 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
9753
9754         maint.mk: Respect $(build_aux) in web-manual rule.
9755         * top/maint.mk (web-manual): Find gen-announce script in user's
9756         $(build_aux) directory instead of hard-coding 'build-aux'.
9757
9758 2011-10-19  Bruno Haible  <bruno@clisp.org>
9759
9760         posix_openpt: Fix compilation error.
9761         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
9762         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
9763         Mention the openpty module as an alternative.
9764
9765 2011-10-19  Bruno Haible  <bruno@clisp.org>
9766
9767         Support for old NeXTstep 3.3 frexp().
9768         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
9769         execution time of the test to 5 seconds.
9770         Reported by Daniel Richard G. <skunk@iskunk.org>.
9771
9772 2011-10-19  Bruno Haible  <bruno@clisp.org>
9773
9774         Support for old NeXTstep 3.3 sed.
9775         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
9776         part, use /.../, not \|...|. Escape periods in the header file name.
9777         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
9778         Reported by Daniel Richard G. <skunk@iskunk.org>.
9779
9780 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
9781
9782         Support for old NeXTstep 3.3 gcc.
9783         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
9784         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
9785         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
9786         * lib/spawn.in.h (_Restrict_arr_): Likewise.
9787         * lib/regex.h (_Restrict_arr_): Likewise.
9788         * lib/regex_internal.h (re_token_t): Likewise.
9789         * lib/regexec.c (check_node_accept_bytes): Likewise.
9790         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
9791
9792 2011-10-18  Eric Blake  <eblake@redhat.com>
9793
9794         posix_openpt: new module
9795         * modules/posix_openpt: New module.
9796         * m4/posix_openpt.m4: New file.
9797         * lib/posix_openpt.c: Likewise.
9798         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
9799         (gl_STDLIB_H_DEFAULTS): Set defaults.
9800         * modules/stdlib (Makefile.am): Substitute macros.
9801         * lib/stdlib.in.h (posix_openpt): Declare.
9802         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
9803         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
9804         * modules/posix_openpt-tests: New test module.
9805         * tests/test-posix_openpt.c: New test.
9806
9807 2011-10-15  Bruno Haible  <bruno@clisp.org>
9808
9809         xstrtoll: Fix compilation failure.
9810         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
9811         from lib/strtol.c.
9812         * doc/posix-headers/limits.texi: Mention missing numerical limits on
9813         some platforms.
9814         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9815
9816 2011-10-15  Bruno Haible  <bruno@clisp.org>
9817
9818         vasnprintf: Optimize bit search operation.
9819         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
9820         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
9821         gl_DOUBLE_EXPONENT_LOCATION.
9822         * modules/vasnprintf (Files): Add m4/exponentd.m4.
9823         * modules/unistdio/u8-vasnprintf (Files): Likewise.
9824         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
9825         * modules/unistdio/u16-vasnprintf (Files): Likewise.
9826         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
9827         * modules/unistdio/u32-vasnprintf (Files): Likewise.
9828         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
9829         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
9830         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
9831
9832 2011-10-15  Bruno Haible  <bruno@clisp.org>
9833
9834         vasnprintf: Fix comments.
9835         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
9836
9837 2011-10-14  Bruno Haible  <bruno@clisp.org>
9838
9839         Tests for module 'integer_length_ll'.
9840         * modules/integer_length_ll-tests: New file.
9841         * tests/test-integer_length_ll.c: New file.
9842
9843         New module 'integer_length_ll'.
9844         * lib/integer_length_ll.c: New file.
9845         * modules/integer_length_ll: New file.
9846
9847 2011-10-14  Bruno Haible  <bruno@clisp.org>
9848
9849         Tests for module 'integer_length_l'.
9850         * modules/integer_length_l-tests: New file.
9851         * tests/test-integer_length_l.c: New file.
9852
9853         New module 'integer_length_l'.
9854         * lib/integer_length_l.c: New file.
9855         * modules/integer_length_l: New file.
9856
9857 2011-10-14  Bruno Haible  <bruno@clisp.org>
9858
9859         Tests for module 'integer_length'.
9860         * modules/integer_length-tests: New file.
9861         * tests/test-integer_length.c: New file.
9862
9863         New module 'integer_length'.
9864         * lib/integer_length.h: New file.
9865         * lib/integer_length.c: New file.
9866         * modules/integer_length: New file.
9867
9868 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
9869
9870         popen: Fix dependency conditions.
9871         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
9872
9873 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
9874
9875         perror: Fix autoconf test.
9876         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
9877         <stdlib.h> and <string.h>.
9878
9879 2011-10-14  Bruno Haible  <bruno@clisp.org>
9880
9881         ffsl: Optimize on 64-bit platforms.
9882         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
9883         unrolling.
9884
9885 2011-10-13  Bruno Haible  <bruno@clisp.org>
9886
9887         ffsl: Optimize on 32-bit platforms.
9888         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
9889         use ffs() without a loop.
9890
9891         ffsl, ffsll: Optimize for GCC.
9892         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
9893         * lib/ffsl.c (GCC_BUILTIN): New macro.
9894         * lib/ffsll.c (GCC_BUILTIN): Likewise.
9895
9896 2011-10-13  Bruno Haible  <bruno@clisp.org>
9897
9898         ffs, bcopy, memset: Support symbol renaming via config.h.
9899         * lib/ffs.c: Include <config.h>.
9900         * lib/bcopy.c: Likewise.
9901         * lib/memset.c: Likewise.
9902
9903 2011-10-10  Bruno Haible  <bruno@clisp.org>
9904
9905         atanl: Simplify for platforms where 'long double' == 'double'.
9906         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
9907         alternative implementation.
9908         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9909         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9910         * modules/atanl (Depends-on): Add atan. Update conditions.
9911
9912 2011-10-10  Bruno Haible  <bruno@clisp.org>
9913
9914         acosl: Simplify for platforms where 'long double' == 'double'.
9915         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
9916         alternative implementation.
9917         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9918         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9919         * modules/acosl (Depends-on): Add acos. Update conditions.
9920
9921 2011-10-10  Bruno Haible  <bruno@clisp.org>
9922
9923         asinl: Simplify for platforms where 'long double' == 'double'.
9924         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
9925         alternative implementation.
9926         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9927         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9928         * modules/asinl (Depends-on): Add asin. Update conditions.
9929
9930 2011-10-10  Bruno Haible  <bruno@clisp.org>
9931
9932         tanl: Simplify for platforms where 'long double' == 'double'.
9933         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
9934         implementation.
9935         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9936         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9937         * modules/tanl (Depends-on): Add tan. Update conditions.
9938         (configure.ac): Don't compile trigl.c if
9939         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9940
9941 2011-10-10  Bruno Haible  <bruno@clisp.org>
9942
9943         cosl: Simplify for platforms where 'long double' == 'double'.
9944         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
9945         implementation.
9946         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9947         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9948         * modules/cosl (Depends-on): Add cos. Update conditions.
9949         (configure.ac): Don't compile sincosl.c and trigl.c if
9950         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9951
9952 2011-10-10  Bruno Haible  <bruno@clisp.org>
9953
9954         sinl: Simplify for platforms where 'long double' == 'double'.
9955         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
9956         implementation.
9957         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9958         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9959         * modules/sinl (Depends-on): Add sin. Update conditions.
9960         (configure.ac): Don't compile sincosl.c and trigl.c if
9961         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9962
9963 2011-10-10  Bruno Haible  <bruno@clisp.org>
9964
9965         logl: Simplify for platforms where 'long double' == 'double'.
9966         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
9967         implementation.
9968         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9969         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9970         * modules/logl (Depends-on): Add log. Update conditions.
9971
9972 2011-10-10  Bruno Haible  <bruno@clisp.org>
9973
9974         expl: Simplify for platforms where 'long double' == 'double'.
9975         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
9976         implementation.
9977         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9978         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9979         * modules/expl (Depends-on): Add exp. Update conditions.
9980
9981 2011-10-10  Bruno Haible  <bruno@clisp.org>
9982
9983         sqrtl: Simplify for platforms where 'long double' == 'double'.
9984         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
9985         alternative implementation.
9986         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9987         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9988         * modules/sqrtl (Depends-on): Update conditions.
9989
9990 2011-10-10  Bruno Haible  <bruno@clisp.org>
9991
9992         ldexpl: Simplify for platforms where 'long double' == 'double'.
9993         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
9994         alternative implementation.
9995         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9996         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9997         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
9998
9999 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
10000
10001         ffsll: set correct witness
10002         * modules/ffsll (configure.ac): Fix typo.
10003
10004 2011-10-10  Bruno Haible  <bruno@clisp.org>
10005
10006         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
10007         * lib/printf-frexpl.c: Include <config.h>.
10008         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10009         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
10010         second time.
10011         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
10012         gl_LONG_DOUBLE_VS_DOUBLE.
10013         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
10014         conditions.
10015
10016 2011-10-10  Bruno Haible  <bruno@clisp.org>
10017
10018         frexpl: Simplify for platforms where 'long double' == 'double'.
10019         * lib/frexpl.c: Include <config.h>.
10020         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10021         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10022         time.
10023         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10024         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10025         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
10026         * modules/frexpl (Depends-on): Add frexp. Update conditions.
10027         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
10028         conditions.
10029
10030 2011-10-10  Jim Meyering  <meyering@redhat.com>
10031
10032         test-renameat: don't leave behind a temporary file
10033         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
10034           ERROR: files left in build directory after distclean:
10035           ./gltests/test-renameat.too
10036           make[1]: *** [distcleancheck] Error 1
10037         Reported by Tom G. Christensen.
10038
10039 2011-10-09  Bruno Haible  <bruno@clisp.org>
10040
10041         rint: Determine RINT_LIBM correctly on AIX 7.
10042         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
10043         directly, not only through a function pointer. Also accept an optional
10044         4th argument with extra code.
10045         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
10046         rintf() call by gcc when optimizing.
10047
10048         mathfunc.m4: Refactor.
10049         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
10050         m4 variable.
10051
10052 2011-10-09  Bruno Haible  <bruno@clisp.org>
10053
10054         rintl: Simplify for platforms where 'long double' == 'double'.
10055         * lib/rintl.c: Include <config.h>.
10056         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10057         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10058         time.
10059         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10060         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10061         * modules/rintl (Depends-on): Add rint. Update conditions.
10062
10063 2011-10-09  Bruno Haible  <bruno@clisp.org>
10064
10065         roundl: Simplify for platforms where 'long double' == 'double'.
10066         * lib/roundl.c: Include <config.h>.
10067         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10068         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10069         time.
10070         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10071         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10072         * modules/roundl (Depends-on): Add round. Update conditions.
10073
10074 2011-10-09  Bruno Haible  <bruno@clisp.org>
10075
10076         truncl: Simplify for platforms where 'long double' == 'double'.
10077         * lib/truncl.c: Include <config.h>.
10078         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10079         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10080         time.
10081         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10082         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10083         * modules/truncl (Depends-on): Add trunc. Update conditions.
10084
10085 2011-10-09  Bruno Haible  <bruno@clisp.org>
10086
10087         ceill: Simplify for platforms where 'long double' == 'double'.
10088         * lib/ceill.c: Include <config.h>.
10089         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10090         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10091         time.
10092         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10093         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10094         * modules/ceill (Depends-on): Add ceil. Update conditions.
10095
10096 2011-10-09  Bruno Haible  <bruno@clisp.org>
10097
10098         floorl: Simplify for platforms where 'long double' == 'double'.
10099         * lib/floorl.c: Include <config.h>.
10100         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10101         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10102         time.
10103         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10104         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10105         * modules/floorl (Depends-on): Add floor. Update conditions.
10106
10107 2011-10-09  Bruno Haible  <bruno@clisp.org>
10108
10109         rint: Fix ordering constraints.
10110         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
10111         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
10112         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
10113
10114 2011-10-09  Bruno Haible  <bruno@clisp.org>
10115
10116         copysignl: Simplify for platforms where 'long double' == 'double'.
10117         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10118         alternative.
10119         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10120         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10121         * modules/copysignl (Depends-on): Add copysign. Update conditions.
10122
10123 2011-10-09  Bruno Haible  <bruno@clisp.org>
10124
10125         Tests for module 'rintl'.
10126         * modules/rintl-tests: New file.
10127         * tests/test-rintl.c: New file.
10128
10129         New module 'rintl'.
10130         * lib/math.in.h (rintl): New declaration.
10131         * lib/rintl.c: New file.
10132         * m4/rintl.m4: New file.
10133         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
10134         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
10135         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
10136         * modules/rintl: New file.
10137         * tests/test-math-c++.cc: Check the declaration of rintl.
10138         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
10139         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
10140         * doc/posix-functions/rintl.texi: Mention the new module.
10141
10142 2011-10-09  Bruno Haible  <bruno@clisp.org>
10143
10144         Tests for module 'rintf'.
10145         * modules/rintf-tests: New file.
10146         * tests/test-rintf.c: New file.
10147
10148         New module 'rintf'.
10149         * lib/math.in.h (rintf): New declaration.
10150         * lib/rintf.c: New file.
10151         * m4/rintf.m4: New file.
10152         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
10153         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
10154         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
10155         * modules/rintf: New file.
10156         * tests/test-math-c++.cc: Check the declaration of rintf.
10157         * doc/posix-functions/rintf.texi: Mention the new module.
10158
10159 2011-10-09  Bruno Haible  <bruno@clisp.org>
10160
10161         rint: Support for MSVC.
10162         * lib/math.in.h (rint): New declaration.
10163         * lib/rint.c: New file.
10164         * m4/rint.m4: New file.
10165         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
10166         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
10167         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
10168         * modules/rint (Description): Fix.
10169         (Files): Add lib/rint.c, m4/rint.m4.
10170         (Depends-on): Add math.
10171         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
10172         gl_MATH_MODULE_INDICATOR.
10173         * tests/test-math-c++.cc: Check the declaration of rint.
10174         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
10175         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
10176         * doc/posix-functions/rint.texi: Mention the replacement provided by
10177         the module.
10178
10179         rint tests: More tests.
10180         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
10181         minus-zero.h, infinity.h, nan.h.
10182         (main): Skip the test if the current rounding mode is not standard. Add
10183         tests for negative numbers, minus zero, infinity, NaN.
10184         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
10185         tests/nan.h.
10186         (Depends-on): Add isnand-nolibm.
10187
10188 2011-10-09  Bruno Haible  <bruno@clisp.org>
10189
10190         Tests for module 'copysignl'.
10191         * modules/copysignl-tests: New file.
10192         * tests/test-copysignl.c: New file.
10193
10194         New module 'copysignl'.
10195         * lib/math.in.h (copysignl): New declaration.
10196         * lib/copysignl.c: New file.
10197         * m4/copysignl.m4: New file.
10198         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
10199         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
10200         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
10201         HAVE_COPYSIGNL.
10202         * modules/copysignl: New file.
10203         * tests/test-math-c++.cc: Check the declaration of copysignl.
10204         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
10205         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
10206         * doc/posix-functions/copysignl.texi: Mention the new module.
10207
10208 2011-10-09  Bruno Haible  <bruno@clisp.org>
10209
10210         Tests for module 'copysignf'.
10211         * modules/copysignf-tests: New file.
10212         * tests/test-copysignf.c: New file.
10213
10214         New module 'copysignf'.
10215         * lib/math.in.h (copysignf): New declaration.
10216         * lib/copysignf.c: New file.
10217         * m4/copysignf.m4: New file.
10218         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
10219         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
10220         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
10221         HAVE_COPYSIGNF.
10222         * modules/copysignf: New file.
10223         * tests/test-math-c++.cc: Check the declaration of copysignf.
10224         * doc/posix-functions/copysignf.texi: Mention the new module.
10225
10226 2011-10-09  Bruno Haible  <bruno@clisp.org>
10227
10228         Ensure that HAVE_* variables are set to 1 before they are set to 0.
10229         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
10230         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
10231         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
10232         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
10233         gl_SIGNAL_H_DEFAULTS.
10234
10235 2011-10-09  Bruno Haible  <bruno@clisp.org>
10236
10237         poll: Make macro safer.
10238         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
10239         ac_cv_header_poll_h is not set.
10240
10241 2011-10-09  Bruno Haible  <bruno@clisp.org>
10242
10243         copysign: Provide replacement.
10244         * lib/math.in.h (copysign): New declaration.
10245         * lib/copysign.c: New file.
10246         * m4/copysign.m4: New file.
10247         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
10248         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
10249         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
10250         HAVE_COPYSIGN.
10251         * modules/copysign (Description): Clarify.
10252         (Files): Add lib/copysign.c, m4/copysign.m4.
10253         (Depends-on): Add math, signbit.
10254         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
10255         gl_MATH_MODULE_INDICATOR.
10256         * tests/test-math-c++.cc: Check the declaration of copysign.
10257         * doc/posix-functions/copysign.texi: Mention the effects of the module
10258         on Minix and MSVC.
10259
10260 2011-10-09  Bruno Haible  <bruno@clisp.org>
10261
10262         isinf: Ensure macro on AIX 5.1.
10263         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
10264         macro.
10265         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
10266
10267 2011-10-09  Bruno Haible  <bruno@clisp.org>
10268
10269         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
10270         * modules/snprintf-posix-tests (configure.ac): Require
10271         gl_LONG_DOUBLE_VS_DOUBLE.
10272         * modules/sprintf-posix-tests (configure.ac): Likewise.
10273         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
10274         * modules/vasprintf-posix-tests (configure.ac): Likewise.
10275         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
10276         * modules/vsprintf-posix-tests (configure.ac): Likewise.
10277         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
10278         tests on platforms where 'long double' is the same as 'double'.
10279         * tests/test-sprintf-posix.h (test_function): Likewise.
10280         * tests/test-vasnprintf-posix.c (test_function): Likewise.
10281         * tests/test-vasprintf-posix.c (test_function): Likewise.
10282
10283         *printf: Fix for platforms where 'long double' == 'double'.
10284         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
10285         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
10286         * modules/dprintf-posix (Files): Add m4/math_h.m4.
10287         * modules/fprintf-posix (Files): Likewise.
10288         * modules/obstack-printf-posix (Files): Likewise.
10289         * modules/snprintf-posix (Files): Likewise.
10290         * modules/sprintf-posix (Files): Likewise.
10291         * modules/vasnprintf (Files): Likewise.
10292         * modules/vasnprintf-posix (Files): Likewise.
10293         * modules/vasprintf-posix (Files): Likewise.
10294         * modules/vdprintf-posix (Files): Likewise.
10295         * modules/vfprintf-posix (Files): Likewise.
10296         * modules/vsnprintf-posix (Files): Likewise.
10297         * modules/vsprintf-posix (Files): Likewise.
10298         * modules/unistdio/u8-vasnprintf (Files): Likewise.
10299         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
10300         * modules/unistdio/u16-vasnprintf (Files): Likewise.
10301         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
10302         * modules/unistdio/u32-vasnprintf (Files): Likewise.
10303         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
10304         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
10305
10306         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
10307         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
10308         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10309         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
10310         'long double'.
10311         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
10312
10313         isinf: Fix for platforms where 'long double' == 'double'.
10314         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
10315         Don't blindly assume 80-bit 'long double'.
10316
10317         isfinite: Fix for platforms where 'long double' == 'double'.
10318         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
10319         Don't blindly assume 80-bit 'long double'.
10320
10321         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
10322         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
10323         * modules/isfinite-tests (configure.ac): Require
10324         gl_LONG_DOUBLE_VS_DOUBLE.
10325         * modules/isinf-tests (configure.ac): Likewise.
10326         * modules/isnan-tests (configure.ac): Likewise.
10327         * modules/isnanl-tests (configure.ac): Likewise.
10328         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
10329         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
10330         tests on platforms where 'long double' is the same as 'double'.
10331         * tests/test-isinf.c (test_isinfl): Likewise.
10332         * tests/test-isnan.c (test_long_double): Likewise.
10333         * tests/test-isnanl.h (main): Likewise.
10334
10335 2011-10-08  Bruno Haible  <bruno@clisp.org>
10336
10337         Tests for module 'tanhf'.
10338         * modules/tanhf-tests: New file.
10339         * tests/test-tanhf.c: New file.
10340
10341         New module 'tanhf'.
10342         * lib/math.in.h (tanhf): New declaration.
10343         * lib/tanhf.c: New file.
10344         * m4/tanhf.m4: New file.
10345         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
10346         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
10347         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
10348         * modules/tanhf: New file.
10349         * tests/test-math-c++.cc: Check the declaration of tanhf.
10350         * doc/posix-functions/tanhf.texi: Mention the new module.
10351
10352         tanh: Use a .m4 file.
10353         * m4/tanh.m4: New file.
10354         * modules/tanh (Files): Add it.
10355         (configure.ac): Just invoke gl_FUNC_TANH.
10356
10357 2011-10-08  Bruno Haible  <bruno@clisp.org>
10358
10359         Tests for module 'coshf'.
10360         * modules/coshf-tests: New file.
10361         * tests/test-coshf.c: New file.
10362
10363         New module 'coshf'.
10364         * lib/math.in.h (coshf): New declaration.
10365         * lib/coshf.c: New file.
10366         * m4/coshf.m4: New file.
10367         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
10368         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
10369         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
10370         * modules/coshf: New file.
10371         * tests/test-math-c++.cc: Check the declaration of coshf.
10372         * doc/posix-functions/coshf.texi: Mention the new module.
10373
10374         cosh: Use a .m4 file.
10375         * m4/cosh.m4: New file.
10376         * modules/cosh (Files): Add it.
10377         (configure.ac): Just invoke gl_FUNC_COSH.
10378
10379 2011-10-08  Bruno Haible  <bruno@clisp.org>
10380
10381         Tests for module 'sinhf'.
10382         * modules/sinhf-tests: New file.
10383         * tests/test-sinhf.c: New file.
10384
10385         New module 'sinhf'.
10386         * lib/math.in.h (sinhf): New declaration.
10387         * lib/sinhf.c: New file.
10388         * m4/sinhf.m4: New file.
10389         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
10390         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
10391         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
10392         * modules/sinhf: New file.
10393         * tests/test-math-c++.cc: Check the declaration of sinhf.
10394         * doc/posix-functions/sinhf.texi: Mention the new module.
10395
10396         sinh: Use a .m4 file.
10397         * m4/sinh.m4: New file.
10398         * modules/sinh (Files): Add it.
10399         (configure.ac): Just invoke gl_FUNC_SINH.
10400
10401 2011-10-08  Bruno Haible  <bruno@clisp.org>
10402
10403         Tests for module 'atan2f'.
10404         * modules/atan2f-tests: New file.
10405         * tests/test-atan2f.c: New file.
10406
10407         New module 'atan2f'.
10408         * lib/math.in.h (atan2f): New declaration.
10409         * lib/atan2f.c: New file.
10410         * m4/atan2f.m4: New file.
10411         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
10412         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
10413         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
10414         * modules/atan2f: New file.
10415         * tests/test-math-c++.cc: Check the declaration of atan2f.
10416         * doc/posix-functions/atan2f.texi: Mention the new module.
10417
10418         atan2: Use a .m4 file.
10419         * m4/atan2.m4: New file.
10420         * modules/atan2 (Files): Add it.
10421         (configure.ac): Just invoke gl_FUNC_ATAN2.
10422
10423 2011-10-08  Bruno Haible  <bruno@clisp.org>
10424
10425         Tests for module 'atanf'.
10426         * modules/atanf-tests: New file.
10427         * tests/test-atanf.c: New file.
10428
10429         New module 'atanf'.
10430         * lib/math.in.h (atanf): New declaration.
10431         * lib/atanf.c: New file.
10432         * m4/atanf.m4: New file.
10433         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
10434         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
10435         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
10436         * modules/atanf: New file.
10437         * tests/test-math-c++.cc: Check the declaration of atanf.
10438         * doc/posix-functions/atanf.texi: Mention the new module.
10439
10440         atan: Use a .m4 file.
10441         * m4/atan.m4: New file.
10442         * modules/atan (Files): Add it.
10443         (configure.ac): Just invoke gl_FUNC_ATAN.
10444
10445 2011-10-08  Bruno Haible  <bruno@clisp.org>
10446
10447         Tests for module 'acosf'.
10448         * modules/acosf-tests: New file.
10449         * tests/test-acosf.c: New file.
10450
10451         New module 'acosf'.
10452         * lib/math.in.h (acosf): New declaration.
10453         * lib/acosf.c: New file.
10454         * m4/acosf.m4: New file.
10455         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
10456         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
10457         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
10458         * modules/acosf: New file.
10459         * tests/test-math-c++.cc: Check the declaration of acosf.
10460         * doc/posix-functions/acosf.texi: Mention the new module.
10461
10462         acos: Use a .m4 file.
10463         * m4/acos.m4: New file.
10464         * modules/acos (Files): Add it.
10465         (configure.ac): Just invoke gl_FUNC_ACOS.
10466
10467 2011-10-08  Bruno Haible  <bruno@clisp.org>
10468
10469         Tests for module 'asinf'.
10470         * modules/asinf-tests: New file.
10471         * tests/test-asinf.c: New file.
10472
10473         New module 'asinf'.
10474         * lib/math.in.h (asinf): New declaration.
10475         * lib/asinf.c: New file.
10476         * m4/asinf.m4: New file.
10477         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
10478         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
10479         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
10480         * modules/asinf: New file.
10481         * tests/test-math-c++.cc: Check the declaration of asinf.
10482         * doc/posix-functions/asinf.texi: Mention the new module.
10483
10484         asin: Use a .m4 file.
10485         * m4/asin.m4: New file.
10486         * modules/asin (Files): Add it.
10487         (configure.ac): Just invoke gl_FUNC_ASIN.
10488
10489 2011-10-08  Bruno Haible  <bruno@clisp.org>
10490
10491         Tests for module 'tanf'.
10492         * modules/tanf-tests: New file.
10493         * tests/test-tanf.c: New file.
10494
10495         New module 'tanf'.
10496         * lib/math.in.h (tanf): New declaration.
10497         * lib/tanf.c: New file.
10498         * m4/tanf.m4: New file.
10499         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
10500         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
10501         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
10502         * modules/tanf: New file.
10503         * tests/test-math-c++.cc: Check the declaration of tanf.
10504         * doc/posix-functions/tanf.texi: Mention the new module.
10505
10506         tan: Use a .m4 file.
10507         * m4/tan.m4: New file.
10508         * modules/tan (Files): Add it.
10509         (configure.ac): Just invoke gl_FUNC_TAN.
10510
10511 2011-10-08  Bruno Haible  <bruno@clisp.org>
10512
10513         Tests for module 'cosf'.
10514         * modules/cosf-tests: New file.
10515         * tests/test-cosf.c: New file.
10516
10517         New module 'cosf'.
10518         * lib/math.in.h (cosf): New declaration.
10519         * lib/cosf.c: New file.
10520         * m4/cosf.m4: New file.
10521         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
10522         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
10523         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
10524         * modules/cosf: New file.
10525         * tests/test-math-c++.cc: Check the declaration of cosf.
10526         * doc/posix-functions/cosf.texi: Mention the new module.
10527
10528         cos: Use a .m4 file.
10529         * m4/cos.m4: New file.
10530         * modules/cos (Files): Add it.
10531         (configure.ac): Just invoke gl_FUNC_COS.
10532
10533 2011-10-08  Bruno Haible  <bruno@clisp.org>
10534
10535         Tests for module 'sinf'.
10536         * modules/sinf-tests: New file.
10537         * tests/test-sinf.c: New file.
10538
10539         New module 'sinf'.
10540         * lib/math.in.h (sinf): New declaration.
10541         * lib/sinf.c: New file.
10542         * m4/sinf.m4: New file.
10543         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
10544         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
10545         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
10546         * modules/sinf: New file.
10547         * tests/test-math-c++.cc: Check the declaration of sinf.
10548         * doc/posix-functions/sinf.texi: Mention the new module.
10549
10550         sin: Use a .m4 file.
10551         * m4/sin.m4: New file.
10552         * modules/sin (Files): Add it.
10553         (configure.ac): Just invoke gl_FUNC_SIN.
10554
10555 2011-10-08  Bruno Haible  <bruno@clisp.org>
10556
10557         Tests for module 'powf'.
10558         * modules/powf-tests: New file.
10559         * tests/test-powf.c: New file.
10560
10561         New module 'powf'.
10562         * lib/math.in.h (powf): New declaration.
10563         * lib/powf.c: New file.
10564         * m4/powf.m4: New file.
10565         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
10566         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
10567         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
10568         * modules/powf: New file.
10569         * tests/test-math-c++.cc: Check the declaration of powf.
10570         * doc/posix-functions/powf.texi: Mention the new module.
10571
10572         pow: Use a .m4 file.
10573         * m4/pow.m4: New file.
10574         * modules/pow (Files): Add it.
10575         (configure.ac): Just invoke gl_FUNC_POW.
10576
10577 2011-10-08  Bruno Haible  <bruno@clisp.org>
10578
10579         Tests for module 'log10f'.
10580         * modules/log10f-tests: New file.
10581         * tests/test-log10f.c: New file.
10582
10583         New module 'log10f'.
10584         * lib/math.in.h (log10f): New declaration.
10585         * lib/log10f.c: New file.
10586         * m4/log10f.m4: New file.
10587         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
10588         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
10589         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
10590         * modules/log10f: New file.
10591         * tests/test-math-c++.cc: Check the declaration of log10f.
10592         * doc/posix-functions/log10f.texi: Mention the new module.
10593
10594         log10: Use a .m4 file.
10595         * m4/log10.m4: New file.
10596         * modules/log10 (Files): Add it.
10597         (configure.ac): Just invoke gl_FUNC_LOG10.
10598
10599 2011-10-08  Bruno Haible  <bruno@clisp.org>
10600
10601         Tests for module 'logf'.
10602         * modules/logf-tests: New file.
10603         * tests/test-logf.c: New file.
10604
10605         New module 'logf'.
10606         * lib/math.in.h (logf): New declaration.
10607         * lib/logf.c: New file.
10608         * m4/logf.m4: New file.
10609         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
10610         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
10611         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
10612         * modules/logf: New file.
10613         * tests/test-math-c++.cc: Check the declaration of logf.
10614         * doc/posix-functions/logf.texi: Mention the new module.
10615
10616         log: Use a .m4 file.
10617         * m4/log.m4: New file.
10618         * modules/log (Files): Add it.
10619         (configure.ac): Just invoke gl_FUNC_LOG.
10620
10621 2011-10-08  Bruno Haible  <bruno@clisp.org>
10622
10623         Tests for module 'expf'.
10624         * modules/expf-tests: New file.
10625         * tests/test-expf.c: New file.
10626
10627         New module 'expf'.
10628         * lib/math.in.h (expf): New declaration.
10629         * lib/expf.c: New file.
10630         * m4/expf.m4: New file.
10631         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
10632         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
10633         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
10634         * modules/expf: New file.
10635         * tests/test-math-c++.cc: Check the declaration of expf.
10636         * doc/posix-functions/expf.texi: Mention the new module.
10637
10638         exp: Use a .m4 file.
10639         * m4/exp.m4: New file.
10640         * modules/exp (Files): Add it.
10641         (configure.ac): Just invoke gl_FUNC_EXP.
10642
10643 2011-10-08  Bruno Haible  <bruno@clisp.org>
10644
10645         Tests for module 'sqrtf'.
10646         * modules/sqrtf-tests: New file.
10647         * tests/test-sqrtf.c: New file.
10648
10649         New module 'sqrtf'.
10650         * lib/math.in.h (sqrtf): New declaration.
10651         * lib/sqrtf.c: New file.
10652         * m4/sqrtf.m4: New file.
10653         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
10654         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
10655         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
10656         * modules/sqrtf: New file.
10657         * tests/test-math-c++.cc: Check the declaration of sqrtf.
10658         * doc/posix-functions/sqrtf.texi: Mention the new module.
10659
10660 2011-10-08  Bruno Haible  <bruno@clisp.org>
10661
10662         Tests: Avoid link failures w.r.t. libintl.
10663         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
10664         $(LIBINTL).
10665         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
10666         $(LIBINTL).
10667         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
10668         against $(LIBINTL).
10669         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
10670         $(LIBINTL).
10671         * modules/openat-tests (Makefile.am): Link test-fchmodat against
10672         $(LIBINTL).
10673         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
10674
10675 2011-10-08  Bruno Haible  <bruno@clisp.org>
10676
10677         pow tests: Defeat compiler optimizations.
10678         * tests/test-pow.c (main): Assign arguments to x and y before use.
10679
10680 2011-10-08  Bruno Haible  <bruno@clisp.org>
10681
10682         gnulib-tool: Improve last commit.
10683         * gnulib-tool (func_modules_transitive_closure): Simplify code.
10684         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
10685         ignore dependencies that are not among the modules list.
10686
10687 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
10688
10689         gnulib-tool: don't follow dependencies to avoided modules
10690         This fixes a bug that is related to the previous one.
10691         * gnulib-tool (func_modules_transitive_closure)
10692         (func_emit_autoconf_snippets):
10693         Check whether a dependency is acceptable before using it.
10694         (--extract-dependencies): Report an error if --avoid is also used,
10695         since this combination of options is not yet supported.
10696
10697         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
10698         Problem reported by Peter Dyballa in
10699         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
10700         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
10701         when echoing "$condition".
10702
10703 2011-10-07  Bruno Haible  <bruno@clisp.org>
10704
10705         Fix documentation about math functions on MacOS X.
10706         * doc/posix-functions/exp2.texi: Don't say the function is missing on
10707         MacOS X 10.5.
10708         * doc/posix-functions/fdim.texi: Likewise.
10709         * doc/posix-functions/feclearexcept.texi: Likewise.
10710         * doc/posix-functions/fegetenv.texi: Likewise.
10711         * doc/posix-functions/fegetround.texi: Likewise.
10712         * doc/posix-functions/feholdexcept.texi: Likewise.
10713         * doc/posix-functions/feraiseexcept.texi: Likewise.
10714         * doc/posix-functions/fesetenv.texi: Likewise.
10715         * doc/posix-functions/fesetround.texi: Likewise.
10716         * doc/posix-functions/fetestexcept.texi: Likewise.
10717         * doc/posix-functions/feupdateenv.texi: Likewise.
10718         * doc/posix-functions/fmax.texi: Likewise.
10719         * doc/posix-functions/fmin.texi: Likewise.
10720         * doc/posix-functions/log2.texi: Likewise.
10721         * doc/posix-functions/modff.texi: Likewise.
10722         * doc/posix-functions/nan.texi: Likewise.
10723         * doc/posix-functions/nanf.texi: Likewise.
10724         * doc/posix-functions/nextafterf.texi: Likewise.
10725         * doc/posix-functions/remquo.texi: Likewise.
10726
10727 2011-10-07  Bruno Haible  <bruno@clisp.org>
10728
10729         modff: Drop assumption about library that defines modff.
10730         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
10731         AC_CHECK_FUNCS.
10732         * modules/modff (Files): Add m4/mathfunc.m4.
10733
10734 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
10735
10736         raise tests: Avoid a GCC warning.
10737         * tests/test-raise.c (handler): Use _Noreturn.
10738
10739 2011-10-07  Bruno Haible  <bruno@clisp.org>
10740
10741         Tests for module 'ldexpf'.
10742         * modules/ldexpf-tests: New file.
10743         * tests/test-ldexpf.c: New file.
10744
10745         New module 'ldexpf'.
10746         * lib/math.in.h (ldexpf): New declaration.
10747         * lib/ldexpf.c: New file.
10748         * m4/ldexpf.m4: New file.
10749         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
10750         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
10751         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
10752         * modules/ldexpf: New file.
10753         * tests/test-math-c++.cc: Check the declaration of ldexpf.
10754         * doc/posix-functions/ldexpf.texi: Mention the new module.
10755
10756 2011-10-06  Bruno Haible  <bruno@clisp.org>
10757
10758         frexpf: Work around problems on IRIX and mingw.
10759         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
10760         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
10761         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
10762         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
10763         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
10764         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
10765         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
10766
10767 2011-10-06  Bruno Haible  <bruno@clisp.org>
10768
10769         fabsf: Drop assumption about library that defines fabsf.
10770         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
10771         AC_CHECK_FUNCS.
10772         * modules/fabsf (Files): Add m4/mathfunc.m4.
10773
10774 2011-10-06  Bruno Haible  <bruno@clisp.org>
10775
10776         frexpf: Drop assumption about library that defines frexpf.
10777         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
10778         'int *', 'float *', 'long double *', 'float', 'long double'.
10779         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
10780         AC_CHECK_FUNCS.
10781         * modules/frexpf (Files): Add m4/mathfunc.m4.
10782
10783         Tests for module 'frexpf'.
10784         * modules/frexpf-tests: New file.
10785         * tests/test-frexpf.c: New file.
10786
10787         New module 'frexpf'.
10788         * lib/math.in.h (frexpf): New declaration.
10789         * lib/frexpf.c: New file.
10790         * m4/frexpf.m4: New file.
10791         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
10792         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
10793         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
10794         * modules/frexpf: New file.
10795         * tests/test-math-c++.cc: Check the declaration of frexpf.
10796         * doc/posix-functions/frexpf.texi: Mention the new module.
10797
10798 2011-10-06  Bruno Haible  <bruno@clisp.org>
10799
10800         math: Sort function declarations of math.in.h.
10801         * lib/math.in.h (frexp, logb): Move declarations.
10802
10803 2011-10-05  Bruno Haible  <bruno@clisp.org>
10804
10805         Tests for module 'modff'.
10806         * modules/modff-tests: New file.
10807         * tests/test-modff.c: New file.
10808
10809         New module 'modff'.
10810         * lib/math.in.h (modff): New declaration.
10811         * lib/modff.c: New file.
10812         * m4/modff.m4: New file.
10813         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
10814         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
10815         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
10816         * modules/modff: New file.
10817         * tests/test-math-c++.cc: Check the declaration of modff.
10818         * doc/posix-functions/modff.texi: Mention the new module.
10819
10820         modf tests: Make test sharper.
10821         * tests/test-modf.c (main): Strengthen upper bound.
10822
10823         modf: Use a .m4 file.
10824         * m4/modf.m4: New file.
10825         * modules/modf (Files): Add it.
10826         (configure.ac): Just invoke gl_FUNC_MODF.
10827
10828 2011-10-05  Bruno Haible  <bruno@clisp.org>
10829
10830         Tests for module 'fmodf'.
10831         * modules/fmodf-tests: New file.
10832         * tests/test-fmodf.c: New file.
10833
10834         New module 'fmodf'.
10835         * lib/math.in.h (fmodf): New declaration.
10836         * lib/fmodf.c: New file.
10837         * m4/fmodf.m4: New file.
10838         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
10839         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
10840         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
10841         * modules/fmodf: New file.
10842         * tests/test-math-c++.cc: Check the declaration of fmodf.
10843         * doc/posix-functions/fmodf.texi: Mention the new module.
10844
10845         fmod: Use a .m4 file.
10846         * m4/fmod.m4: New file.
10847         * modules/fmod (Files): Add it.
10848         (configure.ac): Just invoke gl_FUNC_FMOD.
10849
10850 2011-10-05  Bruno Haible  <bruno@clisp.org>
10851
10852         Tests for module 'fabsf'.
10853         * modules/fabsf-tests: New file.
10854         * tests/test-fabsf.c: New file.
10855
10856         New module 'fabsf'.
10857         * lib/math.in.h (fabsf): New declaration.
10858         * lib/fabsf.c: New file.
10859         * m4/fabsf.m4: New file.
10860         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
10861         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
10862         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
10863         * modules/fabsf: New file.
10864         * tests/test-math-c++.cc: Check the declaration of fabsf.
10865         * doc/posix-functions/fabsf.texi: Mention the new module.
10866
10867         fabs: Use a .m4 file.
10868         * m4/fabs.m4: New file.
10869         * modules/fabs (Files): Add it.
10870         (configure.ac): Just invoke gl_FUNC_FABS.
10871
10872 2011-10-05  Jim Meyering  <meyering@redhat.com>
10873
10874         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
10875         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
10876         ls -lL regression introduced in coreutils-8.12, it does so at the
10877         cost of an additional stat call in the common case.  Besides, now
10878         that the kernel change that prompted commit 95f7c57f has been reverted
10879         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
10880         we have no use for commit 95f7c57f, "file-has-acl: use
10881         acl_extended_file_nofollow if available".
10882
10883 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
10884
10885         file-has-acl: revert unintended change in behavior of ls -L
10886         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
10887         derived from...
10888         (file_has_acl): ...code here.  Call it.
10889         This problem was introduced with 2011-07-22 commit 95f7c57f,
10890         "file-has-acl: use acl_extended_file_nofollow if available".
10891         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
10892
10893 2011-10-03  Bruno Haible  <bruno@clisp.org>
10894
10895         poll: Avoid link errors on MSVC.
10896         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
10897         * modules/poll (Depends-on): Add sockets.
10898         (Link): New section.
10899         * NEWS: Mention the change.
10900         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
10901         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
10902         $(LIB_POLL) instead of $(LIBSOCKET).
10903
10904 2011-10-03  Bruno Haible  <bruno@clisp.org>
10905
10906         sys_select tests: Fix link error on MSVC 9.
10907         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
10908         with $(LIB_SELECT) instead of $(LIBSOCKET).
10909
10910 2011-10-03  Bruno Haible  <bruno@clisp.org>
10911
10912         sys_select: Fix compilation error on mingw.
10913         * lib/sys_select.in.h: On native Windows, include <io.h>.
10914
10915 2011-10-03  Bruno Haible  <bruno@clisp.org>
10916
10917         wmemset: Support for MSVC.
10918         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
10919         whether wmemset() exists.
10920
10921 2011-10-03  Bruno Haible  <bruno@clisp.org>
10922
10923         wmemmove: Support for MSVC.
10924         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
10925         whether wmemmove() exists.
10926
10927 2011-10-03  Bruno Haible  <bruno@clisp.org>
10928
10929         wmemcpy: Support for MSVC.
10930         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
10931         whether wmemcpy() exists.
10932
10933 2011-10-03  Bruno Haible  <bruno@clisp.org>
10934
10935         wmemcmp: Support for MSVC.
10936         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
10937         whether wmemcmp() exists.
10938
10939 2011-10-03  Bruno Haible  <bruno@clisp.org>
10940
10941         wmemchr: Support for MSVC.
10942         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
10943         whether wmemchr() exists.
10944
10945 2011-10-03  Bruno Haible  <bruno@clisp.org>
10946
10947         glthread/*, strsignal: Support for MSVC.
10948         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
10949         including <winsock.h> on MSVC 9.
10950         * lib/glthread/lock.h: Likewise.
10951         * lib/glthread/thread.h: Likewise.
10952         * lib/glthread/tls.h: Likewise.
10953         * lib/glthread/yield.h: Likewise.
10954         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
10955         if HAVE_UNISTD_H is false.
10956         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
10957
10958 2011-10-03  Bruno Haible  <bruno@clisp.org>
10959
10960         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
10961         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
10962         Set to 100000.
10963
10964 2011-10-03  Bruno Haible  <bruno@clisp.org>
10965
10966         acl: Fix specification.
10967         * lib/file-has-acl.c (file_has_acl): Fix specification.
10968
10969 2011-10-03  Bruno Haible  <bruno@clisp.org>
10970
10971         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
10972         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
10973         (compute_curr_prefix, shared_library_fullname,
10974         find_shared_library_fullname, get_shared_library_fullname, relocate):
10975         Use it together with PIC && INSTALLDIR.
10976         Reported by <jojelino@gmail.com>
10977         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
10978
10979 2011-10-01  Jim Meyering  <meyering@redhat.com>
10980
10981         maint.mk: adjust a release-related rule not to require use of gzip
10982         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
10983         Instead, check each file in $(DIST_ARCHIVES).  This is better for
10984         projects that build only .tar.xz files.  Also fix an erroneous test.
10985
10986         test-linkat: don't leave behind a temporary file
10987         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
10988         Otherwise, coreutils' "make distcheck" would fail with this:
10989           Only in /c/cu/tests/torture/coreutils/test/\
10990             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
10991           make[2]: *** [my-distcheck] Error 1
10992
10993         float, math: add omitted file
10994         * lib/itold.c: Add file, required for yesterday's float change.
10995
10996 2011-10-01  Bruno Haible  <bruno@clisp.org>
10997
10998         isinf: Fix for OpenBSD/x86.
10999         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
11000         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
11001         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
11002
11003 2011-10-01  Bruno Haible  <bruno@clisp.org>
11004
11005         isfinite: Fix syntax error in configure test.
11006         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
11007
11008         isfinite: Fix typo.
11009         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
11010         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
11011
11012 2011-10-01  Bruno Haible  <bruno@clisp.org>
11013
11014         nonblocking tests: Fix test failure on Linux/IA-64.
11015         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
11016         Set to 270000.
11017
11018 2011-10-01  Bruno Haible  <bruno@clisp.org>
11019
11020         mkfifoat tests: Fix a test failure on mingw.
11021         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
11022         with error ENOSYS.
11023
11024 2011-09-30  Bruno Haible  <bruno@clisp.org>
11025
11026         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
11027         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
11028         'long double'. Set REPLACE_ITOLD.
11029         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
11030         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
11031         * lib/itold.c: New file.
11032         * modules/float (Files): Add lib/itold.c.
11033         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
11034         (Makefile.am): Substitute REPLACE_ITOLD.
11035         * modules/math (Depends-on): Add float.
11036         (Makefile.am): Substitute REPLACE_ITOLD.
11037         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
11038         * doc/posix-headers/math.texi: Likewise.
11039         * doc/posix-functions/logl.texi: Likewise.
11040
11041 2011-09-30  Bruno Haible  <bruno@clisp.org>
11042
11043         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
11044         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
11045         Set to 140000.
11046
11047 2011-09-30  Bruno Haible  <bruno@clisp.org>
11048
11049         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
11050         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
11051         invocation, say "right after AC_PROG_CC_STDC", not "right after
11052         AC_PROG_CC".
11053         Reported by Gary V. Vaughan <gary@gnu.org>.
11054
11055 2011-09-30  Bruno Haible  <bruno@clisp.org>
11056
11057         Centralize C99 requirement.
11058         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
11059         * modules/stdarg (configure.ac-early): Invoke it instead of
11060         AC_PROG_CC_STDC.
11061         Reported by Gary V. Vaughan and Paul Eggert.
11062
11063 2011-09-29  Bruno Haible  <bruno@clisp.org>
11064
11065         float: Fix LDBL_MAX value on Linux/PowerPC.
11066         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
11067         on Linux/PowerPC.
11068         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
11069         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
11070         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
11071         platform.
11072         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
11073
11074 2011-09-29  Bruno Haible  <bruno@clisp.org>
11075
11076         doc: Improve doc about gl_EARLY.
11077         * doc/gnulib-tool.texi (Initial import): Mention where to place an
11078         AC_PROG_CC_STDC invocation.
11079         Reported by Gary V. Vaughan <gary@gnu.org>.
11080
11081 2011-09-28  Bruno Haible  <bruno@clisp.org>
11082
11083         fgetc, fputc, fread, fwrite tests: Fix link error.
11084         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
11085         on non-MSVC platforms.
11086         * tests/test-fputc.c (main): Likewise.
11087         * tests/test-fread.c (main): Likewise.
11088         * tests/test-fwrite.c (main): Likewise.
11089         Reported by Jim Meyering.
11090
11091 2011-09-27  Bruno Haible  <bruno@clisp.org>
11092
11093         fputc, fwrite tests: Avoid test failure on MSVC.
11094         * tests/test-fgetc.c: Include msvc-inval.h.
11095         (main): Invoke gl_msvc_inval_ensure_handler.
11096         * tests/test-fputc.c: Include msvc-inval.h.
11097         (main): Invoke gl_msvc_inval_ensure_handler.
11098         * tests/test-fread.c: Include msvc-inval.h.
11099         (main): Invoke gl_msvc_inval_ensure_handler.
11100         * tests/test-fwrite.c: Include msvc-inval.h.
11101         (main): Invoke gl_msvc_inval_ensure_handler.
11102         * modules/fgetc-tests (Depends-on): Add msvc-inval.
11103         * modules/fputc-tests (Depends-on): Likewise.
11104         * modules/fread-tests (Depends-on): Likewise.
11105         * modules/fwrite-tests (Depends-on): Likewise.
11106
11107 2011-09-27  Bruno Haible  <bruno@clisp.org>
11108
11109         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
11110         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
11111         (raise): Remove older, duplicated declaration.
11112         (_gl_raise_SIGPIPE): New declaration.
11113         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
11114         (rpl_raise): Remove function.
11115         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
11116         a gnulib-defined SIGPIPE here.
11117         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
11118         'sigprocmask' has detected missing signal-blocking and the module
11119         'sigpipe' is enabled.
11120         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
11121
11122 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
11123
11124         base64-tests: avoid memory leak
11125         * tests/test-base64.c (main): Plug memory leak.
11126
11127         base32: new module
11128         * modules/base32: New module.
11129         * lib/base32.c: New file.
11130         * lib/base32.h: Likewise.
11131         * m4/base32.m4: Likewise.
11132         * modules/base32-tests: New test.
11133         * tests/test-base32.c: Likewise.
11134         * MODULES.html.sh (Misc): Mention it.
11135
11136 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
11137
11138         gnulib: use more-standard license notice wording
11139         * gnulib-tool (func_emit_copyright_notice): When emitting a
11140         license notice into a file, use the standard wording as suggested
11141         by the current information for GNU maintainers, except say "file"
11142         rather than "program".  The new wording gives a license version
11143         number, which addresses an issue raised by Glenn Morris in
11144         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
11145         * m4/onceonly.m4: Use that same wording here, too.
11146
11147         dup2: minor simplification
11148         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
11149         as lib/dup2.c no longer uses 'inline'.
11150
11151 2011-09-25  Bruno Haible  <bruno@clisp.org>
11152
11153         strings: Fix compilation error on MSVC.
11154         * lib/strings.in.h: Include <stddef.h> for size_t.
11155
11156 2011-09-25  Bruno Haible  <bruno@clisp.org>
11157
11158         fflush et al.: Document limitation on MSVC.
11159         * doc/posix-functions/fflush.texi: Document possible crash in handling
11160         mode other than DEFAULT_HANDLING.
11161         * doc/posix-functions/fgetc.texi: Likewise.
11162         * doc/posix-functions/fputc.texi: Likewise.
11163         * doc/posix-functions/fread.texi: Likewise.
11164         * doc/posix-functions/fwrite.texi: Likewise.
11165
11166 2011-09-25  Bruno Haible  <bruno@clisp.org>
11167
11168         msvc-inval: Allow three invalid parameter handling modes.
11169         * lib/msvc-inval.h: Don't include <stdlib.h> here.
11170         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
11171         macros.
11172         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
11173         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
11174         SANE_LIBRARY_HANDLING as a no-op.
11175         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
11176         <stdlib.h>.
11177         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
11178
11179 2011-09-25  Bruno Haible  <bruno@clisp.org>
11180
11181         msvc-inval: Make handler multithread-safe.
11182         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
11183         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
11184         declarations.
11185         (gl_msvc_inval_current): New declaration.
11186         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
11187         Operate on the structure returned by gl_msvc_inval_current().
11188         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
11189         Remove varaiables.
11190         (tls_index, tls_initialized): New variables.
11191         (not_per_thread): New variable.
11192         (gl_msvc_inval_current): New function.
11193         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
11194         returned by gl_msvc_inval_current().
11195
11196 2011-09-25  Bruno Haible  <bruno@clisp.org>
11197
11198         msvc-inval: Install handler globally.
11199         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
11200         !_MSC_VER.
11201         (gl_msvc_invalid_parameter_handler): Remove declaration.
11202         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
11203         declarations.
11204         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
11205         Install the handler globally, don't uninstall it.
11206         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
11207         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
11208         currently valid, call RaiseException instead.
11209         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
11210         for !_MSC_VER.
11211
11212 2011-09-25  Bruno Haible  <bruno@clisp.org>
11213
11214         strerror_r-posix: Fix for MSVC 9.
11215         * lib/strerror_r.c (local_snprintf): New function.
11216         (snprintf): Define to local_snprintf, not to _snprintf.
11217
11218 2011-09-25  Bruno Haible  <bruno@clisp.org>
11219
11220         ftruncate: Support for MSVC 9.
11221         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
11222         (chsize_nothrow): New function.
11223         (chsize): Redefine as a macro.
11224         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
11225         * modules/ftruncate (Depends-on): Add msvc-inval.
11226
11227 2011-09-25  Bruno Haible  <bruno@clisp.org>
11228
11229         New module 'fstat'.
11230         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
11231         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
11232         * lib/fchdir.c (rpl_fstat): Remove function.
11233         * m4/fstat.m4: New file.
11234         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
11235         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
11236         declared.
11237         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
11238         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
11239         * modules/fstat: New file.
11240         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
11241         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
11242         is set.
11243         * doc/posix-functions/fstat.texi: Mention the new module and the
11244         problem on MSVC.
11245         * NEWS: Mention the change.
11246         * modules/acl (Depends-on): Add fstat.
11247         * modules/chdir-safer (Depends-on): Likewise.
11248         * modules/chown (Depends-on): Likewise.
11249         * modules/copy-file (Depends-on): Likewise.
11250         * modules/fchdir (Depends-on): Likewise.
11251         * modules/fdopendir (Depends-on): Likewise.
11252         * modules/fopen (Depends-on): Likewise.
11253         * modules/fts (Depends-on): Likewise.
11254         * modules/getcwd (Depends-on): Likewise.
11255         * modules/isapipe (Depends-on): Likewise.
11256         * modules/linkat (Depends-on): Likewise.
11257         * modules/lseek (Depends-on): Likewise.
11258         * modules/mkdir-p (Depends-on): Likewise.
11259         * modules/open (Depends-on): Likewise.
11260         * modules/openat (Depends-on): Likewise.
11261         * modules/read-file (Depends-on): Likewise.
11262         * modules/renameat (Depends-on): Likewise.
11263         * modules/utimens (Depends-on): Likewise.
11264
11265 2011-09-25  Bruno Haible  <bruno@clisp.org>
11266
11267         linkat: Fix compilation on MSVC 9.
11268         * lib/linkat.c: Don't include <stdint.h>.
11269
11270 2011-09-25  Bruno Haible  <bruno@clisp.org>
11271
11272         fclose: Support for MSVC 9.
11273         * lib/fclose.c: Include msvc-inval.h.
11274         (fclose_nothrow): New function.
11275         (rpl_fclose): Use it.
11276         * modules/fclose (Depends-on): Add msvc-inval.
11277         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
11278
11279 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
11280
11281         dup2: minor simplifications
11282         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
11283         that it's a performance win.
11284         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
11285         ! defined __CYGWIN__)" to "ifdef F_GETFL".
11286
11287 2011-09-24  Jim Meyering  <meyering@redhat.com>
11288
11289         test-futimens: avoid a warning from gcc -Wshadow
11290         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
11291         to avoid a shadowing warning.
11292
11293 2011-09-24  Bruno Haible  <bruno@clisp.org>
11294
11295         fdopen: Support for MSVC 9.
11296         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
11297         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
11298         * lib/fdopen.c: Include msvc-inval.h.
11299         (fdopen_nothrow): New function.
11300         (rpl_fdopen): Use it.
11301         * modules/fdopen (Depends-on): Add msvc-inval.
11302         * modules/fclose-tests (Depends-on): Add fdopen.
11303         * modules/fflush-tests (Depends-on): Likewise.
11304         * modules/fgetc-tests (Depends-on): Likewise.
11305         * modules/fputc-tests (Depends-on): Likewise.
11306         * modules/fread-tests (Depends-on): Likewise.
11307         * modules/freopen-tests (Depends-on): Likewise.
11308         * modules/fseeko-tests (Depends-on): Likewise.
11309         * modules/ftello-tests (Depends-on): Likewise.
11310         * modules/fwrite-tests  (Depends-on): Likewise.
11311         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
11312
11313 2011-09-24  Bruno Haible  <bruno@clisp.org>
11314
11315         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
11316         * modules/fgetc-tests (Depends-on): Add unistd.
11317         * modules/fputc-tests (Depends-on): Likewise.
11318         * modules/fread-tests (Depends-on): Likewise.
11319         * modules/fwrite-tests (Depends-on): Likewise.
11320
11321 2011-09-24  Bruno Haible  <bruno@clisp.org>
11322
11323         dup: Simplify autoconf test.
11324         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
11325         on gl_MSVC_INVAL's result.
11326
11327 2011-09-24  Bruno Haible  <bruno@clisp.org>
11328
11329         Tests for function fwrite().
11330         * modules/fwrite-tests: New file.
11331         * tests/test-fwrite.c: New file.
11332         * modules/stdio-tests (Depends-on): Add fwrite-tests.
11333
11334         Tests for function fread().
11335         * modules/fread-tests: New file.
11336         * tests/test-fread.c: New file.
11337         * modules/stdio-tests (Depends-on): Add fread-tests.
11338
11339         Activate fputc tests.
11340         * modules/stdio-tests (Depends-on): Add fputc-tests.
11341
11342         Enhance fgetc, fputc tests.
11343         * tests/test-fgetc.c (main): Also test the stream's error indicator.
11344         * tests/test-fputc.c (main): Likewise.
11345
11346 2011-09-24  Bruno Haible  <bruno@clisp.org>
11347
11348         write: Support for MSVC 9.
11349         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
11350         is not 1.
11351         * lib/write.c (write_nothrow): New function.
11352         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
11353         not 1. Use write_nothrow.
11354         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
11355         invalid parameter handler.
11356         (gl_PREREQ_WRITE): New macro.
11357         * modules/write (Depends-on): Add msvc-inval.
11358         (configure.ac): Invoke gl_PREREQ_WRITE.
11359         * doc/posix-functions/write.texi: Mention the problem on MSVC.
11360
11361 2011-09-24  Bruno Haible  <bruno@clisp.org>
11362
11363         read: Fix last commit.
11364         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
11365
11366 2011-09-24  Bruno Haible  <bruno@clisp.org>
11367
11368         dup2: Fix last commit.
11369         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
11370         (rpl_dup2): Disable fcntl workaround on native Windows.
11371
11372         sigprocmask: Make code safer.
11373         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
11374         section that changes macro definitions for this compilation unit.
11375
11376 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
11377
11378         dup2: clarify by coalescing Windows-specific material
11379         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
11380         "msvc-nothrow.h"' to the Windows-specific section, so that the
11381         Emacs source need not contain these include files.
11382         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
11383         Windows-specific fixes into this function rather than just the
11384         nothrow fix, as this shortens and clarifies the code.  Always
11385         define as a function, as that's a bit cleaner than having it be
11386         sometimes a function and sometimes a macro.
11387         (rpl_dup2): Move the Windows-specific stuff out of here and into
11388         ms_windows_dup2.  Don't protect the Haiku-related fix with
11389         "#if !defined __linux__", as the same code also works around
11390         a Linux kernel bug, and it doesn't add any system calls on any
11391         platform.  Add comment about FreeBSD 6.1.
11392
11393         sigprocmask: move #include directive
11394         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
11395         Windows-specific section, so that the Emacs source need not
11396         contain msvc-inval.h.
11397
11398 2011-09-23  Bruno Haible  <bruno@clisp.org>
11399
11400         read: Support for MSVC 9.
11401         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
11402         is not 1.
11403         * lib/read.c (read_nothrow): New function.
11404         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
11405         read_nothrow.
11406         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
11407         invalid parameter handler.
11408         (gl_PREREQ_READ): New macro.
11409         * modules/read (Depends-on): Add msvc-inval.
11410         (configure.ac): Invoke gl_PREREQ_READ.
11411         * doc/posix-functions/read.texi: Mention the problem on MSVC.
11412
11413 2011-09-23  Bruno Haible  <bruno@clisp.org>
11414
11415         close: Support for MSVC 9.
11416         * lib/close.c: Include <errno.h>, msvc-inval.h.
11417         (close_nothrow): New function.
11418         (rpl_close): Use it.
11419         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
11420         invalid parameter handler.
11421         * modules/close (Depends-on): Add msvc-inval.
11422         * modules/dup2-tests (Depends-on): Add close.
11423         * modules/dup3-tests (Depends-on): Likewise.
11424         * modules/fcntl-tests (Depends-on): Likewise.
11425         * modules/spawn-pipe-tests (Depends-on): Likewise.
11426         * modules/unistd-safer-tests (Depends-on): Likewise.
11427         * doc/posix-functions/close.texi: Mention the problem on MSVC.
11428
11429 2011-09-23  Bruno Haible  <bruno@clisp.org>
11430
11431         New module 'dup'.
11432         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
11433         Allow replacement.
11434         * lib/dup.c: New file.
11435         * lib/fchdir.c (rpl_dup): Remove function.
11436         * m4/dup.m4: New file.
11437         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
11438         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
11439         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
11440         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
11441         * modules/dup: New file.
11442         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
11443         'dup' module is in use.
11444         * modules/fdopendir (Depends-on): Add dup.
11445         * modules/fdutimensat-tests (Depends-on): Likewise.
11446         * modules/fts (Depends-on): Likewise.
11447         * modules/futimens-tests (Depends-on): Likewise.
11448         * modules/posix_spawnp-tests (Depends-on): Likewise.
11449         * modules/unistd-safer-tests (Depends-on): Likewise.
11450         * modules/utimens-tests (Depends-on): Likewise.
11451         * doc/posix-functions/dup.texi: Mention the new module and the problem
11452         on MSVC.
11453
11454 2011-09-23  Bruno Haible  <bruno@clisp.org>
11455
11456         getdtablesize: Support for MSVC 9.
11457         * lib/getdtablesize.c: Include msvc-inval.h.
11458         (_setmaxstdio_nothrow): New function.
11459         (_setmaxstdio): Redefine it.
11460         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
11461         * modules/getdtablesize (Depends-on): Add msvc-inval.
11462         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
11463
11464 2011-09-23  Bruno Haible  <bruno@clisp.org>
11465
11466         signal-h: Rename from signal.
11467         * modules/signal-h: Renamed from modules/signal.
11468         * modules/pthread_sigmask (Depends-on): Update.
11469         * modules/raise (Depends-on): Likewise.
11470         * modules/sigaction (Depends-on): Likewise.
11471         * modules/sigpipe (Depends-on): Likewise.
11472         * modules/sigprocmask (Depends-on): Likewise.
11473         * modules/sys_select (Depends-on): Likewise.
11474         * modules/signal-h-tests: Renamed from modules/signal-tests.
11475         (Files, Depends-on, Makefile.am): Update.
11476         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
11477         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
11478         (Files, Makefile.am): Update.
11479         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
11480         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
11481         * modules/signal: New placeholder file.
11482         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
11483         * doc/posix-headers/signal.texi: Update.
11484         * NEWS: Mention the change.
11485
11486 2011-09-23  Bruno Haible  <bruno@clisp.org>
11487
11488         sigprocmask: Avoid crashes through signal() on MSVC 9.
11489         * lib/sigprocmask.c: Include msvc-inval.h.
11490         (signal_nothrow): New function.
11491         (signal): Redefine it.
11492         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
11493         * modules/sigprocmask (Depends-on): Add msvc-inval.
11494         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
11495
11496 2011-09-23  Bruno Haible  <bruno@clisp.org>
11497
11498         Tests for module 'raise'.
11499         * modules/raise-tests: New file.
11500         * tests/test-raise.c: New file.
11501
11502         raise: Support for MSVC.
11503         * lib/signal.in.h (raise): New declaration.
11504         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
11505         for native Windows platforms.
11506         * m4/raise.m4: New file.
11507         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
11508         HAVE_RAISE, REPLACE_RAISE.
11509         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
11510         REPLACE_RAISE.
11511         * modules/raise (Status, Notice): Remove fields.
11512         (Files): Add m4/raise.m4.
11513         (Depends-on): Add signal, msvc-inval.
11514         (configure.ac): Use the common idioms.
11515         (Maintainer): Add me.
11516         * tests/test-signal-c++.cc: Check the signature of raise.
11517         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
11518
11519 2011-09-23  Bruno Haible  <bruno@clisp.org>
11520
11521         pipe2: Fix compilation on pre-C99 compilers.
11522         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
11523
11524 2011-09-23  Bruno Haible  <bruno@clisp.org>
11525
11526         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
11527         * lib/msvc-nothrow.h: New file.
11528         * lib/msvc-nothrow.c: New file.
11529         * m4/msvc-nothrow.m4: New file.
11530         * modules/msvc-nothrow: New file.
11531         * lib/dup2.c: Include msvc-nothrow.h.
11532         (rpl_dup2): No need to protect _get_osfhandle call here.
11533         * lib/accept4.c: Include msvc-nothrow.h.
11534         * lib/error.c: Likewise.
11535         * lib/fcntl.c: Likewise.
11536         * lib/lseek.c: Likewise.
11537         * lib/nonblocking.c: Likewise.
11538         * lib/poll.c: Likewise.
11539         * lib/read.c: Likewise.
11540         * lib/select.c: Likewise.
11541         * lib/sockets.h: Likewise.
11542         * lib/sockets.c: Likewise.
11543         * lib/stdio-read.c: Likewise.
11544         * lib/stdio-write.c: Likewise.
11545         * lib/write.c: Likewise.
11546         * lib/w32sock.h: Likewise.
11547         * lib/w32spawn.h: Likewise.
11548         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
11549         * lib/fsync.c: Likewise.
11550         * lib/isapipe.c: Likewise.
11551         * modules/dup2 (Depends-on): Add msvc-nothrow.
11552         * modules/accept4 (Depends-on): Likewise.
11553         * modules/error (Depends-on): Likewise.
11554         * modules/fcntl (Depends-on): Likewise.
11555         * modules/lseek (Depends-on): Likewise.
11556         * modules/nonblocking (Depends-on): Likewise.
11557         * modules/poll (Depends-on): Likewise.
11558         * modules/read (Depends-on): Likewise.
11559         * modules/select (Depends-on): Likewise.
11560         * modules/sockets (Depends-on): Likewise.
11561         * modules/sigpipe (Depends-on): Likewise.
11562         * modules/write (Depends-on): Likewise.
11563         * modules/accept (Depends-on): Likewise.
11564         * modules/bind (Depends-on): Likewise.
11565         * modules/connect (Depends-on): Likewise.
11566         * modules/gethostname (Depends-on): Likewise.
11567         * modules/getpeername (Depends-on): Likewise.
11568         * modules/getsockname (Depends-on): Likewise.
11569         * modules/getsockopt (Depends-on): Likewise.
11570         * modules/ioctl (Depends-on): Likewise.
11571         * modules/listen (Depends-on): Likewise.
11572         * modules/recv (Depends-on): Likewise.
11573         * modules/recvfrom (Depends-on): Likewise.
11574         * modules/send (Depends-on): Likewise.
11575         * modules/sendto (Depends-on): Likewise.
11576         * modules/setsockopt (Depends-on): Likewise.
11577         * modules/shutdown (Depends-on): Likewise.
11578         * modules/socket (Depends-on): Likewise.
11579         * modules/execute (Depends-on): Likewise.
11580         * modules/spawn-pipe (Depends-on): Likewise.
11581         * modules/flock (Depends-on): Likewise.
11582         * modules/fsync (Depends-on): Likewise.
11583         * modules/isapipe (Depends-on): Likewise.
11584         * tests/test-cloexec.c: Include msvc-nothrow.h.
11585         * tests/test-dup-safer.c: Likewise.
11586         * tests/test-dup2.c: Likewise.
11587         * tests/test-dup3.c: Likewise.
11588         * tests/test-fcntl.c: Likewise.
11589         * tests/test-pipe.c: Likewise.
11590         * tests/test-pipe2.c: Likewise.
11591         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
11592         * modules/unistd-safer-tests (Depends-on): Likewise.
11593         * modules/dup2-tests (Depends-on): Likewise.
11594         * modules/dup3-tests (Depends-on): Likewise.
11595         * modules/fcntl-tests (Depends-on): Likewise.
11596         * modules/pipe-posix-tests (Depends-on): Likewise.
11597         * modules/pipe2-tests (Depends-on): Likewise.
11598
11599 2011-09-23  Bruno Haible  <bruno@clisp.org>
11600
11601         dup2: Make code more maintainable.
11602         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
11603         (rpl_dup2): Use it.
11604         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
11605         * modules/dup2 (configure.ac): Invoke it.
11606         Reported by Paul Eggert.
11607
11608 2011-09-23  Bruno Haible  <bruno@clisp.org>
11609
11610         msvc-inval: Fix compilation error.
11611         * lib/msvc-inval.h: Include <excpt.h>.
11612
11613 2011-09-23  Bruno Haible  <bruno@clisp.org>
11614
11615         mkdir: Tweak for MSVC 9.
11616         * lib/sys_stat.in.h: Update comments.
11617         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
11618
11619         Tests for module 'chdir'.
11620         * modules/chdir-tests: New file.
11621         * tests/test-chdir.c: New file.
11622
11623         New module 'chdir'.
11624         * modules/chdir: New file.
11625         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
11626         (chdir): New declaration.
11627         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
11628         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
11629         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
11630         * tests/test-unistd-c++.cc: Check signature of chdir.
11631         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
11632         * modules/chdir-long (Depends-on): Add chdir.
11633         * modules/fchdir (Depends-on): Likewise.
11634         * modules/rename (Depends-on): Likewise.
11635         * modules/savewd (Depends-on): Likewise.
11636
11637         rmdir: Support for mingw, MSVC 9.
11638         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
11639         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
11640
11641         getcwd: Tweak for MSVC 9.
11642         * lib/unistd.in.h: Update comments.
11643         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
11644
11645 2011-09-22  Bruno Haible  <bruno@clisp.org>
11646
11647         strerror_r-posix: Avoid a link error on MSVC.
11648         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
11649         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
11650
11651 2011-09-22  Bruno Haible  <bruno@clisp.org>
11652
11653         select: Avoid link errors on MSVC.
11654         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
11655         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
11656         * modules/pselect (Link): Likewise.
11657         * NEWS: Mention the change.
11658         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
11659         test-select-stdin against $(LIB_SELECT).
11660         * modules/pselect-tests (Makefile.am): Link test-pselect against
11661         $(LIB_SELECT).
11662
11663 2011-09-22  Bruno Haible  <bruno@clisp.org>
11664
11665         select: Avoid compilation error on MSVC.
11666         * lib/select.c: Don't include <stdbool.h>.
11667
11668 2011-09-21  Bruno Haible  <bruno@clisp.org>
11669
11670         Consolidate all uses of PATH_MAX in *.m4 files.
11671         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
11672         macros.
11673         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
11674         and gl_PATHMAX_SNIPPET.
11675         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
11676         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
11677         * modules/chdir-long (Files): Add m4/pathmax.m4.
11678         * modules/getcwd (Files): Likewise.
11679
11680 2011-09-21  Bruno Haible  <bruno@clisp.org>
11681
11682         ftruncate: Un-deprecate, concentrate on Win32 support.
11683         * modules/ftruncate (Status, Notice): Remove sections.
11684         (Depends-on): Add largefile.
11685         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
11686         non-mingw platforms.
11687         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
11688         include <io.h>.
11689         * modules/perror-tests (Depends-on): Add ftruncate.
11690         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
11691         'ftruncate' module.
11692
11693 2011-09-21  Bruno Haible  <bruno@clisp.org>
11694
11695         Add dependencies to new dirent related modules.
11696         * modules/opendir (Depends-on): Add closedir.
11697         * modules/getcwd (Depends-on): Add opendir, closedir.
11698         * modules/dirent-safer-tests (Depends-on): Likewise.
11699         * modules/fdopendir-tests (Depends-on): Likewise.
11700         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
11701         * modules/renameat-tests (Depends-on): Likewise.
11702
11703 2011-09-21  Bruno Haible  <bruno@clisp.org>
11704
11705         opendir: Avoid compilation error on mingw.
11706         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
11707         * modules/opendir (Depends-on): Add unistd.
11708
11709 2011-09-21  Bruno Haible  <bruno@clisp.org>
11710
11711         ftruncate tests: Avoid a test failure on mingw.
11712         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
11713
11714 2011-09-21  Bruno Haible  <bruno@clisp.org>
11715
11716         select tests: Avoid test failures on OSF/1 5.1 and mingw.
11717         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
11718         native Windows.
11719
11720 2011-09-21  Bruno Haible  <bruno@clisp.org>
11721
11722         New module 'fdopen'.
11723         * lib/stdio.in.h (fdopen): New declaration.
11724         * lib/fdopen.c: New file.
11725         * m4/fdopen.m4: New file.
11726         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
11727         REPLACE_FDOPEN.
11728         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
11729         REPLACE_FDOPEN.
11730         * modules/fdopen: New file.
11731         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
11732         * tests/test-stdio-c++.cc: Check signature of fdopen.
11733         * doc/posix-functions/fdopen.texi: Mention the new module.
11734
11735 2011-09-21  Bruno Haible  <bruno@clisp.org>
11736
11737         unlockpt tests: Avoid test failure on NetBSD 5.1.
11738         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
11739         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
11740
11741 2011-09-21  Bruno Haible  <bruno@clisp.org>
11742
11743         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
11744         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
11745         * tests/test-getlogin_r.c (main): Likewise.
11746
11747 2011-09-20  Bruno Haible  <bruno@clisp.org>
11748
11749         time tests: Don't require pid_t.
11750         * doc/posix-headers/time.texi: Revert last change.
11751         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
11752         * tests/test-time.c: Comment out the check for pid_t.
11753
11754 2011-09-20  Bruno Haible  <bruno@clisp.org>
11755
11756         fsync tests: Avoid a test failure on mingw.
11757         * tests/test-fsync.c (main): Allow a failure with EIO.
11758
11759 2011-09-20  Bruno Haible  <bruno@clisp.org>
11760
11761         euidaccess: Update comments.
11762         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
11763
11764 2011-09-20  Bruno Haible  <bruno@clisp.org>
11765
11766         Ensure EBADF returns for socket functions on mingw.
11767         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
11768         descriptor is invalid.
11769         * lib/bind.c (rpl_bind): Likewise.
11770         * lib/connect.c (rpl_connect): Likewise.
11771         * lib/getpeername.c (rpl_getpeername): Likewise.
11772         * lib/getsockname.c (rpl_getsockname): Likewise.
11773         * lib/getsockopt.c (rpl_getsockopt): Likewise.
11774         * lib/listen.c (rpl_listen): Likewise.
11775         * lib/recv.c (rpl_recv): Likewise.
11776         * lib/recvfrom.c (rpl_recvfrom): Likewise.
11777         * lib/send.c (rpl_send): Likewise.
11778         * lib/sendto.c (rpl_sendto): Likewise.
11779         * lib/setsockopt.c (rpl_setsockopt): Likewise.
11780         * lib/shutdown.c (rpl_shutdown): Likewise.
11781
11782 2011-09-20  Bruno Haible  <bruno@clisp.org>
11783
11784         select tests: EBADF tests.
11785         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
11786         test_bad_fd): New functions.
11787         (test_function): Invoke also test_bad_fd.
11788
11789 2011-09-20  Bruno Haible  <bruno@clisp.org>
11790
11791         Tests for module 'posix_spawn_file_actions_addopen.
11792         * modules/posix_spawn_file_actions_addopen-tests: New file.
11793         * tests/test-posix_spawn_file_actions_addopen.c: New file.
11794
11795         Tests for module 'posix_spawn_file_actions_adddup2'.
11796         * modules/posix_spawn_file_actions_adddup2-tests: New file.
11797         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
11798
11799         Tests for module 'posix_spawn_file_actions_addclose'.
11800         * modules/posix_spawn_file_actions_addclose-tests: New file.
11801         * tests/test-posix_spawn_file_actions_addclose.c: New file.
11802
11803 2011-09-20  Bruno Haible  <bruno@clisp.org>
11804
11805         Tests for module 'unlockpt'.
11806         * modules/unlockpt-tests: New file.
11807         * tests/test-unlockpt.c: New file.
11808         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
11809
11810         Tests for module 'grantpt'.
11811         * modules/grantpt-tests: New file.
11812         * tests/test-grantpt.c: New file.
11813         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
11814
11815 2011-09-20  Bruno Haible  <bruno@clisp.org>
11816
11817         freopen tests: EBADF tests.
11818         * tests/test-freopen.c: Include errno.h, unistd.h.
11819         (main): Add tests for EBADF, commented out for the moment.
11820
11821         fclose tests: EBADF tests.
11822         * tests/test-fclose.c (main): Add tests for EBADF.
11823
11824         fflush tests: EBADF tests.
11825         * tests/test-fflush.c: Include errno.h, macros.h.
11826         (main): Add tests for EBADF.
11827
11828         ftello tests: EBADF tests.
11829         * tests/test-ftello4.sh: New file.
11830         * tests/test-ftello4.c: New file.
11831         * modules/ftello-tests (Files): Add them.
11832         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
11833
11834         fseeko tests: EBADF tests.
11835         * tests/test-fseeko4.sh: New file.
11836         * tests/test-fseeko4.c: New file.
11837         * modules/fseeko-tests (Files): Add them.
11838         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
11839
11840         Tests for function fputc().
11841         * modules/fputc-tests: New file.
11842         * tests/test-fputc.c: New file.
11843         * modules/stdio-tests (Depends-on): Add fputc-tests.
11844
11845         Tests for function fgetc().
11846         * modules/fgetc-tests: New file.
11847         * tests/test-fgetc.c: New file.
11848         * modules/stdio-tests (Depends-on): Add fgetc-tests.
11849
11850         Tests for function fdopen().
11851         * modules/fdopen-tests: New file.
11852         * tests/test-fdopen.c: New file.
11853         * modules/stdio-tests (Depends-on): Add fdopen-tests.
11854
11855         Tests for module 'vdprintf'.
11856         * modules/vdprintf-tests: New file.
11857         * tests/test-vdprintf.c: New file.
11858
11859         Tests for module 'dprintf'.
11860         * modules/dprintf-tests: New file.
11861         * tests/test-dprintf.c: New file.
11862
11863 2011-09-20  Bruno Haible  <bruno@clisp.org>
11864
11865         Tests for module 'ioctl'.
11866         * modules/ioctl-tests: New file.
11867         * tests/test-ioctl.c: New file.
11868
11869 2011-09-20  Bruno Haible  <bruno@clisp.org>
11870
11871         fcntl tests: EBADF tests.
11872         * tests/test-fcntl.c (main): Add more tests for EBADF.
11873
11874 2011-09-20  Bruno Haible  <bruno@clisp.org>
11875
11876         utimensat tests: EBADF tests.
11877         * tests/test-utimensat.c (main): Add tests for EBADF.
11878
11879         renameat tests: EBADF tests.
11880         * tests/test-renameat.c (main): Add tests for EBADF.
11881
11882         mkfifoat tests: EBADF tests.
11883         * tests/test-mkfifoat.c (main): Add tests for EBADF.
11884
11885         readlinkat tests: EBADF tests.
11886         * tests/test-readlinkat.c (main): Add tests for EBADF.
11887
11888         symlinkat tests: EBADF tests.
11889         * tests/test-symlinkat.c (main): Add tests for EBADF.
11890
11891         linkat tests: EBADF tests.
11892         * tests/test-linkat.c (main): Add tests for EBADF.
11893
11894         Tests for module 'faccessat'.
11895         * modules/faccessat-tests: New file.
11896         * tests/test-faccessat.c: New file.
11897
11898         fdopendir tests: EBADF tests.
11899         * tests/test-fdopendir.c (main): Add more tests for EBADF.
11900
11901         openat tests: EBADF tests.
11902         * tests/test-fchownat.c (main): Add tests for EBADF.
11903         * tests/test-fstatat.c (main): Likewise.
11904         * tests/test-mkdirat.c (main): Likewise.
11905         * tests/test-openat.c (main): Likewise.
11906         * tests/test-unlinkat.c (main): Likewise.
11907         * tests/test-fchmodat.c: New file.
11908         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
11909         (Makefile.am): Also run 'test-fchmodat'.
11910
11911 2011-09-20  Bruno Haible  <bruno@clisp.org>
11912
11913         utimens, futimens, fdutimensat tests: EBADF tests.
11914         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
11915
11916         Tests for function fstat().
11917         * modules/fstat-tests: New file.
11918         * tests/test-fstat.c: New file.
11919         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
11920
11921 2011-09-20  Bruno Haible  <bruno@clisp.org>
11922
11923         test-ttyname_r tests: EBADF tests.
11924         * tests/test-ttyname_r.c (main): Add tests for EBADF.
11925
11926         Tests for module 'isatty'.
11927         * modules/isatty-tests: New file.
11928         * tests/test-isatty.c: New file.
11929
11930         Tests for module 'write'.
11931         * modules/write-tests: New file.
11932         * tests/test-write.c: New file.
11933
11934         Tests for module 'read'.
11935         * modules/read-tests: New file.
11936         * tests/test-read.c: New file.
11937
11938         pwrite tests: EBADF tests.
11939         * tests/test-pwrite.c (main): Add tests for EBADF.
11940
11941         pread tests: EBADF tests.
11942         * tests/test-pread.c (main): Add tests for EBADF.
11943
11944         lseek tests: EBADF tests.
11945         * tests/test-lseek.c (main): Add more tests for EBADF.
11946
11947         Tests for module 'ftruncate'.
11948         * modules/ftruncate-tests: New file.
11949         * tests/test-ftruncate.sh: New file.
11950         * tests/test-ftruncate.c: New file.
11951
11952         fsync tests: EBADF tests.
11953         * tests/test-fsync.c (main): Add more tests for EBADF.
11954
11955         fdatasync tests: EBADF tests.
11956         * tests/test-fdatasync.c (main): Add more tests for EBADF.
11957
11958         Tests for module 'fchown'.
11959         * modules/fchown-tests: New file.
11960         * tests/test-fchown.c: New file.
11961
11962         Tests for module 'fchmod'.
11963         * modules/fchmod-tests: New file.
11964         * tests/test-fchmod.c: New file.
11965
11966         fchdir tests: EBADF tests.
11967         * tests/test-fchdir.c (main): Add more tests for EBADF.
11968
11969         dup2 tests: EBADF tests.
11970         * tests/test-dup2.c (main): Add more tests for EBADF.
11971
11972         Tests for module 'dup'.
11973         * modules/dup-tests: New file.
11974         * tests/test-dup.c: New file.
11975
11976         Tests for module 'close'.
11977         * modules/close-tests: New file.
11978         * tests/test-close.c: New file.
11979
11980 2011-09-20  Bruno Haible  <bruno@clisp.org>
11981
11982         Tests for module 'shutdown'.
11983         * modules/shutdown-tests: New file.
11984         * tests/test-shutdown.c: New file.
11985
11986         Tests for module 'setsockopt'.
11987         * modules/setsockopt-tests: New file.
11988         * tests/test-setsockopt.c: New file.
11989
11990         Tests for module 'sendto'.
11991         * modules/sendto-tests: New file.
11992         * tests/test-sendto.c: New file.
11993
11994         Tests for module 'send'.
11995         * modules/send-tests: New file.
11996         * tests/test-send.c: New file.
11997
11998         Tests for module 'recvfrom'.
11999         * modules/recvfrom-tests: New file.
12000         * tests/test-recvfrom.c: New file.
12001
12002         Tests for module 'recv'.
12003         * modules/recv-tests: New file.
12004         * tests/test-recv.c: New file.
12005
12006         Tests for module 'listen'.
12007         * modules/listen-tests: New file.
12008         * tests/test-listen.c: New file.
12009
12010         Tests for module 'getsockopt'.
12011         * modules/getsockopt-tests: New file.
12012         * tests/test-getsockopt.c: New file.
12013
12014         Tests for module 'getsockname'.
12015         * modules/getsockname-tests: New file.
12016         * tests/test-getsockname.c: New file.
12017
12018         Tests for module 'getpeername'.
12019         * modules/getpeername-tests: New file.
12020         * tests/test-getpeername.c: New file.
12021
12022         Tests for module 'connect'.
12023         * modules/connect-tests: New file.
12024         * tests/test-connect.c: New file.
12025
12026         Tests for module 'bind'.
12027         * modules/bind-tests: New file.
12028         * tests/test-bind.c: New file.
12029
12030         accept4 tests: Fix for native Windows.
12031         * tests/test-accept4.c: Include sockets.h.
12032         (main): Invoke gl_sockets_startup.
12033         * modules/accept4-tests (Depends-on): Add sockets.
12034
12035         accept tests: Fix for native Windows.
12036         * tests/test-accept.c: Include sockets.h.
12037         (main): Invoke gl_sockets_startup.
12038         * modules/accept-tests (Depends-on): Add sockets.
12039
12040 2011-09-19  Bruno Haible  <bruno@clisp.org>
12041
12042         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
12043         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
12044         do...while(0).
12045         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
12046         Suggested by Paul Eggert.
12047
12048 2011-09-19  Bruno Haible  <bruno@clisp.org>
12049
12050         sched: Ensure pid_t is defined.
12051         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
12052         not define pid_t.
12053         * lib/sched.in.h: Include <sys/types.h>.
12054         * doc/posix-headers/sched.texi: Mention the pid_t problem.
12055         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12056
12057 2011-09-19  Bruno Haible  <bruno@clisp.org>
12058
12059         msvc-inval: Ensure the entire expansion is a single statement.
12060         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
12061         of braces.
12062
12063 2011-09-19  Jim Meyering  <meyering@redhat.com>
12064
12065         tests: use printf, not echo in init.sh's warn_ function
12066         * tests/init.sh (warn_): Use printf, not echo.  The latter would
12067         misbehave when given strings containing a backslash or starting
12068         with e.g., -n.  James Youngman suggested setting IFS.
12069
12070 2011-09-19  Eric Blake  <eblake@redhat.com>
12071
12072         futimens: enhance test
12073         * tests/test-futimens.h (test_futimens): Also check for EBADF on
12074         closed non-negative fd.
12075
12076         date: accept 'hence' as opposite of 'ago'
12077         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
12078         * tests/test-parse-datetime.c (main): Enhance test.
12079         Suggested by Jesse Wilson.
12080
12081 2011-09-19  Jim Meyering  <meyering@redhat.com>
12082
12083         getcwd: don't fail in a deep directory on a system without openat
12084         Before this change, getcwd would fail when called from a directory
12085         of depth PATH_MAX / 3 or greater.  That was due to the fact that
12086         the non-openat implementation used "..", "../..", "../../..", etc.
12087         to access ancestor directories.  With too many, that string would
12088         be longer than PATH_MAX.
12089         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
12090         using gnulib's openat replacement.
12091         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
12092         we're using the replacement function.
12093
12094 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
12095
12096         maint.mk: avoid warnings from perl about missing files
12097         * top/maint.mk (def_sym_regex): Ignore files listed in
12098         $(gl_other_headers_) that do not exist, say because a project
12099         does not use a corresponding module.
12100
12101 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
12102
12103         stat: use pathmax.h only if needed
12104         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
12105         This is better for Emacs, which does not have a mingw port and
12106         therefore can avoid the pathmax module.
12107
12108         utimens: remove dependency on dup2
12109         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
12110         to work around the Linux kernel bug.
12111         * modules/utimens (Depends-on): Remove dup2.
12112
12113 2011-09-18  Bruno Haible  <bruno@clisp.org>
12114
12115         inet_ntop, inet_pton: Look for it also in libresolv.
12116         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
12117         libnsl, search for it in libresolv.
12118         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
12119         Needed on Solaris 7.
12120
12121 2011-09-18  Bruno Haible  <bruno@clisp.org>
12122
12123         accept, accept4 tests: Avoid link error on Solaris.
12124         * modules/accept-tests (Makefile.am): Link test-accept against
12125         $(LIBSOCKET).
12126         * modules/accept4-tests (Makefile.am): Link test-accept4 against
12127         $(LIBSOCKET).
12128
12129         accept4: Avoid link error on Solaris.
12130         * modules/accept4 (Link): New section.
12131
12132         socket functions: Avoid link errors on Solaris.
12133         * modules/accept (Depends-on): Add socketlib.
12134         (Link): New section.
12135         * modules/bind (Depends-on): Add socketlib.
12136         (Link): New section.
12137         * modules/connect (Depends-on): Add socketlib.
12138         (Link): New section.
12139         * modules/getpeername (Depends-on): Add socketlib.
12140         (Link): New section.
12141         * modules/getsockname (Depends-on): Add socketlib.
12142         (Link): New section.
12143         * modules/getsockopt (Depends-on): Add socketlib.
12144         (Link): New section.
12145         * modules/listen (Depends-on): Add socketlib.
12146         (Link): New section.
12147         * modules/recv (Depends-on): Add socketlib.
12148         (Link): New section.
12149         * modules/recvfrom (Depends-on): Add socketlib.
12150         (Link): New section.
12151         * modules/send (Depends-on): Add socketlib.
12152         (Link): New section.
12153         * modules/sendto (Depends-on): Add socketlib.
12154         (Link): New section.
12155         * modules/setsockopt (Depends-on): Add socketlib.
12156         (Link): New section.
12157         * modules/shutdown (Depends-on): Add socketlib.
12158         (Link): New section.
12159         * modules/socket (Depends-on): Add socketlib.
12160         (Link): New section.
12161
12162 2011-09-18  Bruno Haible  <bruno@clisp.org>
12163
12164         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
12165         * tests/test-ptsname.c (main): Terminate the test if it takes longer
12166         than 5 seconds.
12167         * modules/ptsname-tests (configure.ac): Test for alarm.
12168
12169 2011-09-18  Bruno Haible  <bruno@clisp.org>
12170
12171         posix_spawn_file_actions_add*: Fix module dependencies.
12172         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
12173         posix_spawn_file_actions_init.
12174         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
12175         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
12176
12177 2011-09-18  Bruno Haible  <bruno@clisp.org>
12178
12179         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
12180         * tests/test-rename.h (test_rename): Allow error code EEXIST.
12181         * tests/test-renameat.c (main): Likewise.
12182
12183 2011-09-18  Bruno Haible  <bruno@clisp.org>
12184
12185         Tests for module 'accept4'.
12186         * modules/accept4-tests: New file.
12187         * tests/test-accept4.c: New file.
12188
12189 2011-09-18  Bruno Haible  <bruno@clisp.org>
12190
12191         Tests for module 'accept'.
12192         * modules/accept-tests: New file.
12193         * tests/test-accept.c: New file.
12194
12195 2011-09-18  Bruno Haible  <bruno@clisp.org>
12196
12197         dup2: Support for MSVC.
12198         * lib/dup2.c: Include msvc-inval.h.
12199         (rpl_dup2): Handle invalid parameter notifications during dup2 and
12200         _get_osfhandle calls.
12201         * modules/dup2 (Depends-on): Add msvc-inval.
12202         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
12203
12204         New module 'msvc-inval'.
12205         * lib/msvc-inval.h: New file.
12206         * lib/msvc-inval.c: New file.
12207         * m4/msvc-inval.m4: New file.
12208         * modules/msvc-inval: New file.
12209
12210 2011-09-17  Bruno Haible  <bruno@clisp.org>
12211
12212         Tests for module 'pclose'.
12213         * modules/pclose-tests: New file.
12214
12215         New module 'pclose'.
12216         * lib/stdio.in.h (pclose): New declaration.
12217         * lib/pclose.c: New file.
12218         * m4/pclose.m4: New file.
12219         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
12220         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
12221         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
12222         * modules/pclose: New file.
12223         * modules/popen-tests (Depends-on): Add pclose.
12224         * modules/popen-safer-tests (Depends-on): Likewise.
12225         * doc/posix-functions/pclose.texi: Mention the new module.
12226
12227 2011-09-17  Bruno Haible  <bruno@clisp.org>
12228
12229         popen: Support for MSVC.
12230         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
12231         * lib/popen.c (popen): Provide alternate definition for native Windows.
12232         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
12233         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
12234         * modules/popen (Depends-on, configure.ac): Update condition.
12235         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
12236         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
12237         fixed.
12238
12239 2011-09-17  Bruno Haible  <bruno@clisp.org>
12240
12241         isnanl, isnand, isnanf: Work around MSVC bug.
12242         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
12243
12244 2011-09-17  Bruno Haible  <bruno@clisp.org>
12245
12246         sys_socket tests: Fix recent mistake.
12247         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
12248
12249 2011-09-17  Bruno Haible  <bruno@clisp.org>
12250
12251         putenv: Support for MSVC.
12252         * modules/putenv (Depends-on): Add environ.
12253         * lib/putenv.c (environ): Disable declaration.
12254         * lib/unistd.in.h: Update comment.
12255
12256 2011-09-17  Bruno Haible  <bruno@clisp.org>
12257
12258         math: Avoid macro redefinition warnings on MSVC.
12259         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
12260         Undefine before redefining.
12261
12262 2011-09-17  Bruno Haible  <bruno@clisp.org>
12263
12264         doc: Mention functions which are declared as macros.
12265         * doc/posix-functions/*[fl].texi: Mention that some functions are
12266         defined as macros with arguments only.
12267
12268 2011-09-17  Bruno Haible  <bruno@clisp.org>
12269
12270         Add dependencies to new dirent related modules.
12271         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
12272         * modules/fts (Depends-on): Likewise.
12273         * modules/glob (Depends-on): Likewise.
12274         * modules/savedir (Depends-on): Likewise.
12275         * modules/scandir (Depends-on): Likewise.
12276         * modules/dirent-safer (Depends-on): Add opendir, closedir.
12277         * modules/fdopendir (Depends-on): Add opendir.
12278
12279 2011-09-17  Bruno Haible  <bruno@clisp.org>
12280
12281         inet_pton: Support for MSVC on Windows Vista or newer.
12282         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
12283         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
12284         HAVE_DECL_INET_PTON is defined.
12285         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
12286         On platforms with <winsock2.h>, test whether inet_pton is declared in
12287         <ws2tcpip.h>. If so, arrange to replace it.
12288         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
12289         REPLACE_INET_PTON.
12290         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
12291         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
12292         (Depends-on, configure.ac): Update condition.
12293         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
12294
12295 2011-09-17  Bruno Haible  <bruno@clisp.org>
12296
12297         inet_ntop: Support for MSVC on Windows Vista or newer.
12298         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
12299         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
12300         HAVE_DECL_INET_NTOP is defined.
12301         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
12302         On platforms with <winsock2.h>, test whether inet_ntop is declared in
12303         <ws2tcpip.h>. If so, arrange to replace it.
12304         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
12305         REPLACE_INET_NTOP.
12306         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
12307         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
12308         (Depends-on, configure.ac): Update condition.
12309         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
12310
12311 2011-09-16  Eric Blake  <eblake@redhat.com>
12312
12313         test-fsync: yet another enhancement
12314         * tests/test-fsync.c (main): Also test behavior on read-only text
12315         file.
12316
12317 2011-09-16  Bruno Haible  <bruno@clisp.org>
12318
12319         Enhance fsync, fdatasync tests.
12320         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
12321         * tests/test-fdatasync.c (main): Likewise.
12322
12323 2011-09-16  Bruno Haible  <bruno@clisp.org>
12324
12325         Support for MSVC compiler: Ensure mode_t gets defined.
12326         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
12327         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
12328         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
12329         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
12330         * tests/test-fcntl-h.c: Check that mode_t is defined.
12331         * tests/test-sys_stat.c: Likewise.
12332         * tests/test-sys_types.c: Likewise.
12333         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
12334         * doc/posix-headers/sys_stat.texi: Likewise.
12335         * doc/posix-headers/sys_types.texi: Likewise.
12336
12337 2011-09-16  Bruno Haible  <bruno@clisp.org>
12338
12339         sys_stat: Support for MSVC.
12340         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
12341         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
12342         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
12343         MSVC.
12344
12345 2011-09-16  Bruno Haible  <bruno@clisp.org>
12346
12347         Support for MSVC compiler: Ensure off_t gets defined.
12348         * lib/unistd.in.h: Include <sys/types.h>.
12349         * tests/test-fcntl-h.c: Check that off_t is defined.
12350         * tests/test-sys_stat.c: Likewise.
12351         * tests/test-sys_types.c: Likewise.
12352
12353 2011-09-16  Eric Blake  <eblake@redhat.com>
12354
12355         fdatasync: port to Solaris
12356         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
12357         * modules/fdatasync (Link): Document it.
12358         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
12359
12360         fdatasync: port to MacOS X 10.7
12361         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
12362         declared.
12363         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
12364         * modules/unistd (Makefile.am): Substitute it.
12365         * lib/unistd.in.h (fdatasync): Declare on MacOS.
12366         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
12367
12368         fdatasync: minor improvements
12369         * modules/fdatasync (Depends-on): Add condition for fsync.
12370         * lib/fdatasync.c (fdatasync): Add comment.
12371         * tests/test-unistd-c++.cc: Test fdatasync.
12372
12373         unistd: update refs to newer POSIX
12374         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
12375         Suggested by Bruno Haible.
12376
12377         fdatasync: new module
12378         * modules/fsync (Description): Document difference to fdatasync.
12379         * modules/fdatasync: New module.
12380         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
12381         * lib/fdatasync.c (fdatasync): Likewise.
12382         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
12383         defaults.
12384         * modules/unistd (Makefile.am): Set witnesses.
12385         * lib/unistd.in.h (fdatasync): Declare.
12386         * MODULES.html.sh: Document it.
12387         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
12388         * modules/fdatasync-tests: New test.
12389         * tests/test-fdatasync.c: Likewise.
12390
12391 2011-09-16  Eric Blake  <eblake@redhat.com>
12392
12393         test-fsync: enhance tests
12394         * modules/fsync-tests (Depends-on): Add errno, for mingw.
12395         * tests/test-fsync.c (main): Enhance test.
12396
12397 2011-09-15  Bruno Haible  <bruno@clisp.org>
12398
12399         Support for MSVC compiler: Ensure ssize_t gets defined.
12400         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
12401         * doc/posix-headers/stdio.texi: Likewise.
12402         * modules/stdio (Depends-on): Add ssize_t.
12403         * modules/sys_socket (Depends-on): Likewise.
12404         * modules/sys_types (Depends-on): Likewise.
12405         * modules/sys_uio (Depends-on): Likewise.
12406         * modules/unistd (Depends-on): Likewise.
12407         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
12408         * tests/test-sys_types.c: Check that ssize_t is defined.
12409
12410 2011-09-14  Bruno Haible  <bruno@clisp.org>
12411
12412         Avoid using #, the m4 comment starter character, near brackets.
12413         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
12414         delimiter character in sed expressions.
12415         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
12416         Suggested by Eric Blake.
12417
12418         Properly quote AC_CHECK_DECLS' 4th argument.
12419         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
12420         argument.
12421         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
12422         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
12423         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
12424         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
12425         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
12426         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
12427         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
12428         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
12429         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
12430         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
12431         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
12432         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
12433         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
12434         * m4/isinf.m4 (gl_ISINF): Likewise.
12435         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
12436         * m4/readutmp.m4 (gl_READUTMP): Likewise.
12437         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
12438         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
12439         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
12440         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
12441         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
12442         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
12443         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
12444         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
12445         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
12446         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
12447         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
12448         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
12449         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
12450         Reported by Eric Blake.
12451
12452         Properly quote AC_CHECK_DECL's 4th argument.
12453         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
12454         argument.
12455         * m4/argp.m4 (gl_ARGP): Likewise.
12456         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
12457         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
12458         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
12459         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
12460         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
12461         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
12462         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
12463         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
12464         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
12465         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
12466         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
12467         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
12468         Reported by Eric Blake.
12469
12470 2011-09-14  Eric Blake  <eblake@redhat.com>
12471
12472         opendir: avoid compile warning
12473         * lib/opendir.c (includes): Always include errno.h.
12474         Reported by Tatsuro MATSUOKA.
12475
12476 2011-09-14  Jim Meyering  <meyering@redhat.com>
12477
12478         maint.mk: sc_tight_scope: propagate failure from sub-make
12479         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
12480         Reported by Martin von Gagern.
12481
12482 2011-09-13  Bruno Haible  <bruno@clisp.org>
12483
12484         tempname: Support for MSVC.
12485         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
12486         MSVC.
12487         * modules/tempname (Depends-on): Add fcntl-h.
12488
12489 2011-09-13  Bruno Haible  <bruno@clisp.org>
12490
12491         sys_time: Support for MSVC.
12492         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
12493         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
12494         include <winsock2.h>.
12495         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
12496         function declarations that collide with POSIX.
12497         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
12498         (Makefile.am): Substitute HAVE_WINSOCK2_H.
12499
12500 2011-09-13  Bruno Haible  <bruno@clisp.org>
12501
12502         stat: Support for MSVC.
12503         * lib/stat.c: Include pathmax.h.
12504         * modules/stat (Depends-on): Add pathmax.
12505
12506         pathmax: Support for native Windows.
12507         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
12508
12509 2011-09-12  Bruno Haible  <bruno@clisp.org>
12510
12511         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
12512         * lib/dirent.in.h (struct dirent): New type.
12513         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
12514         DT_WHT): New macros.
12515         (DIR): New type.
12516         (opendir, closedir): Declare only if the module 'opendir' is enabled.
12517         (readdir, rewinddir): New declarations.
12518         * lib/dirent-private.h: New file.
12519         * lib/opendir.c: New file.
12520         * lib/readdir.c: New file.
12521         * lib/rewinddir.c: New file.
12522         * lib/closedir.c: New file.
12523         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
12524         * m4/opendir.m4: New file.
12525         * m4/readdir.m4: New file.
12526         * m4/rewinddir.m4: New file.
12527         * m4/closedir.m4: New file.
12528         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
12529         REPLACE_CLOSEDIR here.
12530         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
12531         readdir, rewinddir are declared.
12532         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
12533         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
12534         HAVE_REWINDDIR, HAVE_CLOSEDIR.
12535         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
12536         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
12537         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
12538         * modules/opendir: New file.
12539         * modules/readdir: New file.
12540         * modules/rewinddir: New file.
12541         * modules/closedir: New file.
12542         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
12543         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
12544         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
12545         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
12546         * NEWS: Mention the 'fchdir' change.
12547
12548 2011-09-11  Bruno Haible  <bruno@clisp.org>
12549
12550         asm-underscore.m4: Support for MSVC.
12551         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
12552         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
12553
12554 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
12555
12556         Doc about crypt functions.
12557         * doc/posix-functions/crypt.texi: Expand range of glibc versions
12558         needing for _GNU_SOURCE to get crypt.
12559         * doc/posix-functions/encrypt.texi: Likewise.
12560         * doc/posix-functions/setkey.texi: Likewise.
12561
12562 2011-09-11  Bruno Haible  <bruno@clisp.org>
12563
12564         doc: Update regarding MSVC 9.
12565         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
12566         tested".
12567         * doc/posix-functions/*.texi: Update with info about MSVC 9.
12568         * doc/posix-headers/*.texi: Likewise.
12569         * doc/pastposix-functions/*.texi: Likewise.
12570         * doc/glibc-functions/*.texi: Likewise.
12571         * doc/glibc-headers/*.texi: Likewise.
12572
12573 2011-09-11  Bruno Haible  <bruno@clisp.org>
12574
12575         unistd et al.: Don't assume <unistd.h> exists.
12576         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
12577         does not exist.
12578         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
12579         exist. But include <stdlib.h>.
12580         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
12581         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
12582         symlink() does not exist.
12583         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
12584         include <io.h> instead.
12585         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
12586         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
12587         include <direct.h> instead.
12588         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
12589         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
12590         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
12591         <io.h> instead.
12592         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
12593         correctly if the system does not have hard links.
12594         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
12595         <direct.h> instead.
12596         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
12597         it when looking for function declarations.
12598         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
12599         <direct.h> and <io.h> instead.
12600         * doc/posix-headers/unistd.texi: More details about MSVC problem.
12601
12602 2011-09-11  Bruno Haible  <bruno@clisp.org>
12603
12604         strcase: Support for MSVC.
12605         * modules/strcase (Status, Notice): Remove obsoletion mark.
12606         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
12607         * doc/posix-functions/strncasecmp.texi: Likewise.
12608
12609         strings: Don't assume <strings.h> exists.
12610         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
12611         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
12612         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
12613         * doc/posix-headers/strings.texi: Mention the MSVC problem.
12614
12615 2011-09-11  Bruno Haible  <bruno@clisp.org>
12616
12617         dirent: Don't assume <dirent.h> exists.
12618         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
12619         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
12620         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
12621         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
12622
12623 2011-09-11  Bruno Haible  <bruno@clisp.org>
12624
12625         Fix wint_t on MSVC.
12626         * lib/wchar.in.h (wint_t): On MSVC, override it.
12627         * lib/wctype.in.h (wint_t): Likewise.
12628         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
12629         MSVC.
12630         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
12631         * doc/posix-headers/wctype.texi: Likewise.
12632
12633 2011-09-11  Bruno Haible  <bruno@clisp.org>
12634
12635         sys_types: Fix typo.
12636         * lib/sys_types.in.h: Fix typo in comment.
12637         Reported by Paul Eggert.
12638
12639         Support for MSVC compiler: Ensure size_t gets defined.
12640         * modules/strings (Depends-on): Add 'sys_types'.
12641         * modules/sys_uio (Depends-on): Likewise.
12642         * lib/sys_uio.in.h: Update comment.
12643
12644         C++ tests for module 'sys_types'.
12645         * modules/sys_types-c++-tests: New file.
12646         * tests/test-sys_types-c++.cc: New file.
12647
12648         Tests for module 'sys_types'.
12649         * modules/sys_types-tests: New file.
12650         * tests/test-sys_types.c: New file.
12651
12652         New module 'sys_types'.
12653         * lib/sys_types.in.h: New file.
12654         * m4/sys_types_h.m4: New file.
12655         * modules/sys_types: New file.
12656         * doc/posix-headers/sys_types.texi: Mention the new module and the
12657         size_t problem on MSVC 9.
12658
12659 2011-09-11  Bruno Haible  <bruno@clisp.org>
12660
12661         Support for MSVC compiler: Avoid division by a literal 0.
12662         * lib/math.in.h (NAN): Define through a function call also on MSVC.
12663         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
12664         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
12665         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
12666         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
12667         * tests/infinity.h: New file.
12668         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
12669         on MSVC.
12670         * tests/test-ceilf1.c: Include infinity.h.
12671         (main): Use Infinityf.
12672         * tests/test-ceil1.c: Include infinity.h.
12673         (main): Use Infinityd.
12674         * tests/test-ceill.c: Include infinity.h.
12675         (main): Use Infinityl.
12676         * tests/test-dprintf-posix.c: Include infinity.h.
12677         (test_function): Use Infinityd.
12678         * tests/test-floorf1.c: Include infinity.h.
12679         (main): Use Infinityf.
12680         * tests/test-floor1.c: Include infinity.h.
12681         (main): Use Infinityd.
12682         * tests/test-floorl.c: Include infinity.h.
12683         (main): Use Infinityl.
12684         * tests/test-fprintf-posix.c: Include infinity.h.
12685         (test_function): Use Infinityd.
12686         * tests/test-frexp.c: Include infinity.h.
12687         (main): Use Infinityd.
12688         * tests/test-frexpl.c: Include infinity.h.
12689         (main): Use Infinityl.
12690         * tests/test-isfinite.c: Include infinity.h.
12691         (test_isfinitef): Use Infinityf.
12692         (test_isfinited): Use Infinityd.
12693         (test_isfinitel): Use Infinityl.
12694         * tests/test-isinf.c: Include infinity.h.
12695         (test_isinff): Use Infinityf.
12696         (test_isinfd): Use Infinityd.
12697         (test_isinfl): Use Infinityl.
12698         * tests/test-isnan.c: Include infinity.h.
12699         (test_float): Use Infinityf.
12700         (test_double): Use Infinityd.
12701         (test_long_double): Use Infinityl.
12702         * tests/test-isnanf.h: Include infinity.h.
12703         (main): Use Infinityf.
12704         * tests/test-isnand.h: Include infinity.h.
12705         (main): Use Infinityd.
12706         * tests/test-isnanl.h: Include infinity.h.
12707         (main): Use Infinityl.
12708         * tests/test-ldexpl.c: Include infinity.h.
12709         (main): Use Infinityl.
12710         * tests/test-printf-posix.h: Include infinity.h.
12711         (test_function): Use Infinityd.
12712         * tests/test-roundf1.c: Include infinity.h.
12713         (main): Use Infinityf.
12714         * tests/test-round1.c: Include infinity.h.
12715         (main): Use Infinityd.
12716         * tests/test-roundl.c: Include infinity.h.
12717         (main): Use Infinityl.
12718         * tests/test-signbit.c: Include infinity.h.
12719         (test_signbitf): Use Infinityf.
12720         (test_signbitd): Use Infinityd.
12721         (test_signbitl): Use Infinityl.
12722         * tests/test-snprintf-posix.h: Include infinity.h.
12723         (test_function): Use Infinityd, Infinityl.
12724         * tests/test-sprintf-posix.h: Include infinity.h.
12725         (test_function): Use Infinityd, Infinityl.
12726         * tests/test-truncf1.c: Include infinity.h.
12727         (main): Use Infinityf.
12728         * tests/test-trunc1.c: Include infinity.h.
12729         (main): Use Infinityd.
12730         * tests/test-truncl.c: Include infinity.h.
12731         (main): Use Infinityl.
12732         * tests/test-vasnprintf-posix.c: Include infinity.h.
12733         (test_function): Use Infinityd, Infinityl.
12734         * tests/test-vasprintf-posix.c: Include infinity.h.
12735         (test_function): Use Infinityd, Infinityl.
12736         * modules/ceilf-tests (Files): Add tests/infinity.h.
12737         * modules/ceil-tests (Files): Likewise.
12738         * modules/ceill-tests (Files): Likewise.
12739         * modules/dprintf-posix-tests (Files): Likewise.
12740         * modules/floorf-tests (Files): Likewise.
12741         * modules/floor-tests (Files): Likewise.
12742         * modules/floorl-tests (Files): Likewise.
12743         * modules/fprintf-posix-tests (Files): Likewise.
12744         * modules/frexp-tests (Files): Likewise.
12745         * modules/frexp-nolibm-tests (Files): Likewise.
12746         * modules/frexpl-tests (Files): Likewise.
12747         * modules/frexpl-nolibm-tests (Files): Likewise.
12748         * modules/isfinite-tests (Files): Likewise.
12749         * modules/isinf-tests (Files): Likewise.
12750         * modules/isnan-tests (Files): Likewise.
12751         * modules/isnanf-tests (Files): Likewise.
12752         * modules/isnanf-nolibm-tests (Files): Likewise.
12753         * modules/isnand-tests (Files): Likewise.
12754         * modules/isnand-nolibm-tests (Files): Likewise.
12755         * modules/isnanl-tests (Files): Likewise.
12756         * modules/isnanl-nolibm-tests (Files): Likewise.
12757         * modules/ldexpl-tests (Files): Likewise.
12758         * modules/printf-posix-tests (Files): Likewise.
12759         * modules/roundf-tests (Files): Likewise.
12760         * modules/round-tests (Files): Likewise.
12761         * modules/roundl-tests (Files): Likewise.
12762         * modules/signbit-tests (Files): Likewise.
12763         * modules/snprintf-posix-tests (Files): Likewise.
12764         * modules/sprintf-posix-tests (Files): Likewise.
12765         * modules/truncf-tests (Files): Likewise.
12766         * modules/trunc-tests (Files): Likewise.
12767         * modules/truncl-tests (Files): Likewise.
12768         * modules/vasnprintf-posix-tests (Files): Likewise.
12769         * modules/vasprintf-posix-tests (Files): Likewise.
12770         * modules/vdprintf-posix-tests (Files): Likewise.
12771         * modules/vfprintf-posix-tests (Files): Likewise.
12772         * modules/vprintf-posix-tests (Files): Likewise.
12773         * modules/vsnprintf-posix-tests (Files): Likewise.
12774         * modules/vsprintf-posix-tests (Files): Likewise.
12775         * modules/xprintf-posix-tests (Files): Likewise.
12776
12777 2011-09-11  Bruno Haible  <bruno@clisp.org>
12778
12779         Ensure pid_t gets defined.
12780         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
12781         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
12782         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
12783         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
12784         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
12785         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
12786         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
12787         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
12788         * tests/test-fcntl-h.c: Check that pid_t is defined.
12789         * tests/test-sched.c: Likewise.
12790         * tests/test-termios.c: Likewise.
12791         * tests/test-time.c: Likewise.
12792         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
12793         * doc/posix-headers/signal.texi: Likewise.
12794         * doc/posix-headers/sys_types.texi: Likewise.
12795         * doc/posix-headers/time.texi: Likewise.
12796
12797 2011-09-11  Bruno Haible  <bruno@clisp.org>
12798
12799         acl: Fix compilation on Solaris 10 (older version).
12800         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
12801         of ACE_EVERYONE.
12802         * lib/set-mode-acl.c (qset_acl): Likewise.
12803         Reported by Christian Jullien <eligis@orange.fr>.
12804
12805 2011-09-10  Bruno Haible  <bruno@clisp.org>
12806
12807         iconv, unsetenv: Add support for MSVC compiler.
12808         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
12809         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
12810
12811 2011-09-10  Bruno Haible  <bruno@clisp.org>
12812
12813         *printf: Add support for MSVC compiler.
12814         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
12815         handles the exception caused by the %n directive. When cross-compiling,
12816         guess no on native Windows.
12817         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
12818         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
12819         emulate it through vsnprintf.
12820         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
12821         * doc/posix-functions/dprintf.texi: Update documentation regarding
12822         MSVC 9.
12823         * doc/posix-functions/fprintf.texi: Likewise.
12824         * doc/posix-functions/printf.texi: Likewise.
12825         * doc/posix-functions/snprintf.texi: Likewise.
12826         * doc/posix-functions/sprintf.texi: Likewise.
12827         * doc/posix-functions/swprintf.texi: Likewise.
12828         * doc/posix-functions/vdprintf.texi: Likewise.
12829         * doc/posix-functions/vfprintf.texi: Likewise.
12830         * doc/posix-functions/vprintf.texi: Likewise.
12831         * doc/posix-functions/vsnprintf.texi: Likewise.
12832         * doc/posix-functions/vsprintf.texi: Likewise.
12833         * doc/glibc-functions/asprintf.texi: Likewise.
12834         * doc/glibc-functions/obstack_printf.texi: Likewise.
12835         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
12836         * doc/glibc-functions/vasprintf.texi: Likewise.
12837
12838 2011-09-10  Bruno Haible  <bruno@clisp.org>
12839
12840         nocrash: Add support for native Windows.
12841         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
12842
12843 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
12844             Bruno Haible  <bruno@clisp.org>
12845
12846         absolute-header, include-next: Add support for MSVC compiler.
12847         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
12848         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
12849         directory separator in #line directives.
12850         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
12851         recognize also backslash as directory separator in #line directives.
12852
12853 2011-09-08  Jim Meyering  <meyering@redhat.com>
12854
12855         maint.mk: mark the post-release commit log with "maint: " prefix
12856         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
12857         one-line commit-log summary.
12858
12859 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
12860             Bruno Haible  <bruno@clisp.org>
12861
12862         Doc about crypt functions.
12863         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
12864         systems.
12865         * doc/posix-functions/encrypt.texi: Likewise.
12866         * doc/posix-functions/setkey.texi: Likewise.
12867
12868 2011-09-08  Simon Josefsson  <simon@josefsson.org>
12869
12870         * lib/gc.h: Fix copyright header.
12871
12872 2011-09-07  Bruno Haible  <bruno@clisp.org>
12873
12874         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
12875         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
12876         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
12877
12878 2011-09-07  Bruno Haible  <bruno@clisp.org>
12879
12880         openat: Work around compilation error with OSF/1 5.1 DTK cc.
12881         * lib/fopen.c: Use different syntax for include of <stdio.h>.
12882         * lib/freopen.c: Likewise.
12883         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
12884         * lib/lstat.c: Likewise.
12885         * lib/stat.c: Likewise.
12886         * lib/open.c: Use different syntax for include of <fcntl.h>.
12887         * lib/openat.c: Include fcntl.h again, explicitly.
12888
12889 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
12890
12891         parse-datetime: document the newly accepted format
12892         * doc/parse-datetime.texi (Combined date and time of day items):
12893         New section.
12894
12895 2011-09-06  Bruno Haible  <bruno@clisp.org>
12896
12897         acl: Fix a test failure on newer Solaris 10 with ZFS.
12898         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
12899         ENOSYS as no ACL.
12900         Reported by Jim Meyering.
12901
12902 2011-09-06  Bruno Haible  <bruno@clisp.org>
12903
12904         acl: Update for AIX >= 5.3 with NFS.
12905         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
12906         ENOSYS as no ACL.
12907
12908         acl: Fix a test failure on AIX >= 5.3 with NFS.
12909         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
12910         as no ACL.
12911
12912 2011-09-06  Bruno Haible  <bruno@clisp.org>
12913
12914         acl: Fix a test failure on IRIX 6.5 with NFS.
12915         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
12916         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
12917         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
12918         * lib/copy-acl.c (qcopy_acl): Likewise.
12919
12920 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
12921
12922         openat: port to AIX 7.1 with large files
12923         AIX 7.1 does a "#define openat open64at" if large files are in use,
12924         so we can't simply #undef openat.  Use the orig_openat trick (similar
12925         to orig_open in lib/open.c) to work around the problem.  Problem
12926         reported by Kevin Brott for GNU tar, in the thread containing
12927         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
12928         * lib/openat.c (__need_system_fcntl_h): Define first.
12929         Include <fcntl.h> and <sys/types.h> before undefining.
12930         (orig_openat) [HAVE_OPENAT]: New inline function.
12931         (openat) [HAVE_OPENAT]: Do not undef.
12932         (rpl_openat): Use orig_openat, not openat.
12933
12934 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
12935             Bruno Haible  <bruno@clisp.org>
12936
12937         acl: Avoid errors on NonStop Kernel.
12938         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
12939         ENOTSUP errors.
12940
12941 2011-09-05  Bruno Haible  <bruno@clisp.org>
12942
12943         acl: Clean up Solaris code.
12944         * lib/acl-internal.h: Remove no-op #if.
12945         * lib/file-has-acl.c: Likewise.
12946         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
12947         * lib/copy-acl.c (qcopy_acl): Likewise.
12948
12949 2011-09-05  Bruno Haible  <bruno@clisp.org>
12950
12951         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
12952         binaries built on the original Solaris 10.
12953         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
12954         trivial.
12955
12956 2011-09-05  Bruno Haible  <bruno@clisp.org>
12957
12958         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
12959         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
12960         10.
12961         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
12962         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
12963         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
12964         instead of acl_get, facl_get, acl_set, facl_set.
12965
12966 2011-09-05  Bruno Haible  <bruno@clisp.org>
12967
12968         copy-file: Try unit tests on more file systems.
12969         * tests/test-copy-file-1.sh: New file.
12970         * tests/test-copy-file-2.sh: New file.
12971         * modules/copy-file-tests (Files): Add them.
12972         (Makefile.am): Add them to TESTS.
12973
12974         acl: Try unit tests on more file systems.
12975         * tests/test-file-has-acl-1.sh: New file.
12976         * tests/test-file-has-acl-2.sh: New file.
12977         * tests/test-set-mode-acl-1.sh: New file.
12978         * tests/test-set-mode-acl-2.sh: New file.
12979         * tests/test-copy-acl-1.sh: New file.
12980         * tests/test-copy-acl-2.sh: New file.
12981         * modules/acl-tests (Files): Add them.
12982         (Makefile.am): Add them to TESTS.
12983
12984 2011-09-04  Bruno Haible  <bruno@clisp.org>
12985
12986         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
12987         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
12988         10.
12989         (OLD_ALLOW, OLD_DENY): New macros.
12990         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
12991         ACE_ACCESS_ALLOWED_ACE_TYPE.
12992         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
12993         ACE_ACCESS_DENIED_ACE_TYPE.
12994         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
12995         (NEW_ACE_EXECUTE): Fix value.
12996         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
12997         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
12998         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
12999         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
13000         NEW_ACE_SYNCHRONIZE): New macros.
13001         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
13002         instead of acl_fromtext, acl_set, facl_set.
13003         Fixes a coreutils/tests/cp/perm failure.
13004
13005 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
13006
13007         openat: test for fstatat (..., 0) bug
13008         Further testing with tar suggests that fstatat (..., 0)
13009         does not work in general, on AIX 7.1; see
13010         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
13011         So, give up entirely on AIX 7.1's fstatat, and fall back on our
13012         replacement fstatat (which is what older AIX releases were using
13013         anyway).
13014         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
13015         use is now changed to orig_fstatat.  This was probably the right
13016         thing to do anyway.
13017         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
13018         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
13019         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
13020         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
13021         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
13022         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
13023         if the bug is found.
13024
13025         openat: test for fstatat (AT_FDCWD, ..., 0) bug
13026         This tests for another fstatat bug on AIX 7.1:
13027         fstatat (AT_FDCWD, ..., 0) does not work.  See
13028         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
13029         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
13030         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
13031         (rpl_fstatat): Adjust so that it works around either (or both)
13032         bugs if present.
13033         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
13034
13035 2011-09-03  Karl Berry  <karl@gnu.org>
13036
13037         * doc/regex.texi (Character Class Operators): Avoid literal ":"
13038         in index entries.
13039
13040 2011-09-02  Bruno Haible  <bruno@clisp.org>
13041
13042         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
13043         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
13044         values of AR, ARFLAGS, RANLIB.
13045         Reported by John W. Eaton <jwe@gnu.org> for Octave.
13046
13047 2011-09-02  Bruno Haible  <bruno@clisp.org>
13048
13049         Find 'ar' program that fits with --host argument.
13050         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
13051
13052 2011-09-02  Bruno Haible  <bruno@clisp.org>
13053
13054         tests: init.sh: Support any non-GNU diff.
13055         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
13056         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
13057         Solaris 8.
13058
13059 2011-09-02  Bruno Haible  <bruno@clisp.org>
13060
13061         tests: init.sh: work also with any non-GNU diff that supports -u
13062         * tests/init.sh: Relax check for diff -u support.
13063         Rather than checking for GNU diff via --version, simply check
13064         for support for -u itself.  Useful at least on OpenBSD 4.9,
13065         AIX 7.1, IRIX 6.5, and Solaris 10.
13066
13067 2011-09-01  Bruno Haible  <bruno@clisp.org>
13068
13069         strtoimax, strtoumax: Document problem on HP-UX 11.
13070         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
13071         * doc/posix-functions/strtoumax.texi: Likewise.
13072
13073 2011-09-01  Bruno Haible  <bruno@clisp.org>
13074
13075         strtoumax: Avoid link error on OSF/1 with DTK cc.
13076         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
13077         defined as a function.
13078         * modules/strtoumax (Depends-on, configure.ac): Test only whether
13079         strtoumax is defined, not whether it is declared.
13080
13081 2011-09-01  Bruno Haible  <bruno@clisp.org>
13082
13083         strtoimax: Avoid link error on OSF/1 with DTK cc.
13084         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
13085         defined as a function.
13086         * modules/strtoimax (Depends-on, configure.ac): Test only whether
13087         strtoimax is defined, not whether it is declared.
13088
13089 2011-09-01  Bruno Haible  <bruno@clisp.org>
13090
13091         imaxdiv: Avoid link error on OSF/1 with DTK cc.
13092         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
13093         as a function.
13094         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
13095         whether it is declared.
13096
13097 2011-09-01  Bruno Haible  <bruno@clisp.org>
13098
13099         imaxabs: Avoid link error on OSF/1 with DTK cc.
13100         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
13101         as a function.
13102         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
13103         whether it is declared.
13104
13105 2011-09-01  Bruno Haible  <bruno@clisp.org>
13106
13107         Tests for module 'strtoumax'.
13108         * modules/strtoumax-tests: New file.
13109         * tests/test-strtoumax.c: New file.
13110
13111         Tests for module 'strtoimax'.
13112         * modules/strtoimax-tests: New file.
13113         * tests/test-strtoimax.c: New file.
13114
13115         Tests for module 'imaxdiv'.
13116         * modules/imaxdiv-tests: New file.
13117         * tests/test-imaxdiv.c: New file.
13118
13119         Tests for module 'imaxabs'.
13120         * modules/imaxabs-tests: New file.
13121         * tests/test-imaxabs.c: New file.
13122
13123 2011-09-01  Bruno Haible  <bruno@clisp.org>
13124
13125         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
13126         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
13127         pthread_create.
13128
13129 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
13130
13131         openat: work around AIX 7.1 fstatat issue
13132         This should fix the problem that was not properly fixed
13133         in the previous change, dated 2011-08-30.
13134         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
13135         __need_system_stat_h defined.
13136         (orig_fstatat) [HAVE_FSTATAT]: New function.
13137         (rpl_fstatat): Go back to the old way of doing things,
13138         except call orig_fstatat instead of fstatat.
13139         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
13140         Remove unnecessary check whether fstatat fills in st_size etc.
13141
13142 2011-09-01  Bruno Haible  <bruno@clisp.org>
13143
13144         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
13145         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
13146         just include the system's header.
13147
13148 2011-08-31  Jim Meyering  <meyering@redhat.com>
13149
13150         tests: avoid spurious assertion failure in test-float.c on ppc64
13151         * tests/test-float.c (test_long_double): Comment out an assertion,
13152         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
13153         with gcc-4.4.4.
13154
13155         maint: indent with spaces, not TABs
13156         I need to get in the habit of running gnulib's "make check".
13157         Both of these would have been caught.
13158         * m4/largefile.m4: Indent with spaces, not TABs.
13159         * lib/parse-datetime.y (iso_8601_time): Likewise.
13160         Spotted by Pádraig Brady.
13161
13162         test-parse-datetime.c: accommodate a relatively strict gcc warning
13163         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
13164         to avoid a warning from gcc's -Werror=missing-declarations.
13165         Insert a few spaces-before-funcall-parenthesis.
13166
13167 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
13168
13169         parse-datetime: accept ISO 8601 date and time rep with "T" separator
13170         The parser now accepts ISO 8601 date-time strings with "T" as the
13171         separator.  It has long parsed dates like "2004-02-29 16:21:42"
13172         with a space between the date and time strings.  Now it also parses
13173         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
13174         variants like "2004-02-29T16:21:42.333-07:00"
13175         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
13176         of day representation using the 'T' separator character.
13177         * doc/parse-datetime.texi (General date syntax): replace use of
13178         deprecated --iso-8601 option with --rfc-3339 in example of date
13179         command output formats that can be parsed.
13180         * tests/test-parse-datetime.c (tm_diff): New function, taken from
13181         lib/parse-datetime.y.
13182         (gmt_offset): New function.
13183         (main): Add additional test cases to validate ISO8601 extended
13184         date and time of day parsing.
13185
13186 2011-08-31  Bruno Haible  <bruno@clisp.org>
13187
13188         freopen: Documentation.
13189         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
13190         name.
13191         Reported by Claudio Bley <claudio.bley@gmail.com>.
13192
13193 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
13194
13195         freopen: Don't crash if the filename argument is NULL.
13196         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
13197         NULL.
13198
13199 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
13200
13201         openat: work around AIX 7.1 fstatat bug
13202         Problem reported by Kevin Brott for GNU tar, in the thread containing
13203         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
13204         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
13205         FSTATAT_ST_SIZE_ETC_BROKEN.
13206         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
13207         rpl_fstatat.
13208         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
13209         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
13210         AC_CHECK_FUNCS_ONCE for fstatat.
13211         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
13212         fchmodat, mkdirat, openat and unlinkat.
13213
13214 2011-08-30  Bruno Haible  <bruno@clisp.org>
13215
13216         Avoid endless recursions if config.h includes some header files.
13217         * lib/fopen.c (__need_FILE): Define already before including config.h.
13218         * lib/freopen.c (__need_FILE): Likewise.
13219         * lib/open.c (__need_system_fcntl_h): Likewise.
13220         * lib/stat.c (__need_system_sys_stat_h): Likewise.
13221         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
13222         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
13223
13224 2011-08-25  Karl Berry  <karl@gnu.org>
13225
13226         * config/srclist.txt (ylwrap): new try.
13227         * build-aux/ylwrap: new file.
13228
13229 2011-08-23  Bruno Haible  <bruno@clisp.org>
13230
13231         tmpdir: Use a good default directory on native Windows.
13232         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
13233         (P_tmpdir): Default to _P_tmpdir on native Windows.
13234         (path_search): On native Windows, try the value returned by GetTempPath
13235         before trying P_tmpdir.
13236         * modules/tmpdir (Depends-on): Add pathmax.
13237         Suggested by John Darrington <john@darrington.wattle.id.au>.
13238
13239 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
13240
13241         doc: fix typo in README-release
13242         * top/README-release: Capitalize first word of a sentence.
13243
13244 2011-08-19  Jim Meyering  <meyering@redhat.com>
13245
13246         fts: do not exhaust memory when processing million-entry directories
13247         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
13248         directory would require about 256*N bytes of memory.  Thus, it was
13249         easy to construct a directory too large to be processed by any of
13250         those tools.  With this change, fts' maximum memory utilization is
13251         now limited to around 30MB.
13252         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
13253         (fts_read): When we've processed the final entry (i.e., when
13254         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
13255         using the parent entry to read any remaining entries.  Dispatch
13256         depending on what fts_build returns:
13257         - NULL+stop, aka failure: stop
13258         - NULL otherwise: move up in the dir hierarchy
13259         - non-NULL: handle this new entry
13260         (fts_build): Declare and use new local, continue_readdir.
13261         Prepare to be called from fts_read, when the entries
13262         from a partially-read directory have just been exhausted.
13263         In that case, we'll skip the opendir and instead use the parent's
13264         fts_dirp and derive dir_fd from that.
13265         Finally, in the readdir loop, if we read max_entries entries,
13266         exit the loop ensuring *not* to call closedir.  This is required
13267         so that fts_dirp can be reused on a subsequent call.
13268         Prompted by Ben England's report of memory exhaustion in find
13269         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
13270
13271         maint: fts: move decl of `dp' down into while loop; split a long line
13272         * lib/fts.c (fts_build): No semantic change.
13273
13274         fts: add/use new struct member, fts_dirp
13275         We are about to use this to manage any directory with
13276         too many entries to read all of them into memory at once.
13277         To do that, we'll need to save the DIR* pointer in each
13278         affected FTSENT struct.
13279         * lib/fts_.h: Include <dirent.h>.
13280         (struct FTSENT) [fts_dirp]: New member.
13281         * lib/fts.c (closedir_and_clear): Define.
13282         Use it in place of closedir so that we are sure to
13283         clear the new fts_dirp member when done with it.
13284         (fts_alloc): Initialize the new member.
13285         (fts_lfree): Free, if needed.
13286
13287         maint: fts: give __opendir2 a new parameter and rename
13288         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
13289         than surreptitiously using sole caller's "dir_fd".
13290         (fts_opendir): Rename from __opendir2.
13291
13292         maint: fts.c: remove __opendir2's now-unused parameter, oflag
13293         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
13294
13295         maint: fts.c: correct off-by-one indentation
13296         * lib/fts.c (fts_build): Correct indentation, change style
13297         of a couple of block comments, and bracing style.
13298
13299         maint: fts.c: move __opendir2 #define "up" out of function body
13300         * lib/fts.c (__opendir2): Move "up".  No semantic change.
13301
13302         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
13303         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
13304         out for a long time and besides was useful only on BSD systems.
13305
13306 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
13307
13308         regex: port to Stratus OpenVOS
13309         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
13310         define to empty, rather than attempting nonportable optimizations.
13311         Problem reported by Paul Green in:
13312         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
13313         and fix suggested by Eric Blake in:
13314         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
13315
13316 2011-08-17  Eric Blake  <eblake@redhat.com>
13317
13318         getcwd: fix test failures on mingw
13319         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
13320         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
13321         test if long directory cannot be created, and allow mingw errno.
13322
13323         getcwd-lgpl: fix m4 to match relaxed test for BSD
13324         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
13325         (gl_FUNC_GETCWD_SIGNATURE): New macro.
13326         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
13327         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
13328         signature problem.
13329
13330         getcwd: fix compilation on mingw64
13331         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
13332         getcwd.
13333         Reported by Marc-André Lureau.
13334
13335         pipe2: silence compiler warning
13336         * lib/pipe2.c (pipe2): Hide label if it is not used.
13337
13338 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
13339
13340         relocatable-prog: fix link error
13341         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
13342         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
13343         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
13344         into modules/relocatable-lib without noticing that
13345         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
13346         also needs to build relocatable.c.
13347
13348 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
13349
13350         getaddrinfo: fix sh typo in gai_strerrorA decl checking
13351         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
13352         shell code: it contained a 'break' that was not in a loop.
13353         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
13354         via a shell-language loop; this may have been true in old Autoconf
13355         versions, but it's not true in Autoconf 2.68.  I found this bug
13356         when testing coreutils git on Solaris 8, whose shell complains
13357         about the syntax error.
13358
13359 2011-08-12  Simon Josefsson  <simon@josefsson.org>
13360
13361         * lib/base64.c: Fix comment to reference RFC 4648.
13362         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
13363         <gvtulder@gmail.com>.
13364
13365 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
13366
13367         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
13368
13369         po/Makefile.in.in: fix make -q problem
13370         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
13371         rule, since there's no file named 'check-macro-version' and its
13372         use as a file breaks make -q.
13373         (all): Don't depend on check-macro-version.
13374         (CHECK_MACRO_VERSION): New macro.
13375         (stamp-po): Use it.
13376
13377         configmake: fix make -q problem
13378         * modules/configmake (configmake.h): Update configmake.h's time stamp
13379         even if the file does not change.  Otherwise, 'make -q' fails.
13380         Problem reported by Simon Josefsson in
13381         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
13382
13383 2011-08-11  Jim Meyering  <meyering@redhat.com>
13384
13385         git-version-gen: correct the advice in a comment
13386         * build-aux/git-version-gen: Correct comment.
13387         Don't recommend to list .tarball-version in .gitignore.
13388
13389 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
13390
13391         base64: fix off-by-one buffer size bug
13392         Problem and (trivial) fix reported by Gijs van Tulder in
13393         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
13394         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
13395         * tests/test-base64.c (main): Catch the bug.
13396
13397 2011-08-10  Eric Blake  <eblake@redhat.com>
13398
13399         closein: correct comments
13400         * lib/closein.c (close_stdin): Improve comments.
13401
13402 2011-08-09  Bruno Haible  <bruno@clisp.org>
13403
13404         More tests for 'fseeko'.
13405         * tests/test-fseeko3.c: New file, from Eric Blake.
13406         * tests/test-fseeko3.sh: New file.
13407         * modules/fseeko-tests (Files): Add them.
13408         (TESTS): Add test-fseeko3.sh.
13409         (check_PROGRAMS): Add test-fseeko3.
13410
13411 2011-08-09  Eric Blake  <eblake@redhat.com>
13412
13413         fseeko: remove unneeded hack
13414         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
13415
13416         fseeko: fix bug on glibc
13417         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
13418         Reported by John W. Eaton.
13419
13420 2011-08-08  Bruno Haible  <bruno@clisp.org>
13421
13422         unictype/base: Fix interoperability with preinstalled libunistring.
13423         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
13424         Reported by Simon Josefsson.
13425
13426 2011-08-08  Bruno Haible  <bruno@clisp.org>
13427
13428         iswblank: Detect declaration correctly.
13429         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
13430         AC_CHECK_DECLS invocation.
13431
13432 2011-08-08  Bruno Haible  <bruno@clisp.org>
13433
13434         tcgetsid: Detect declaration correctly.
13435         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
13436         AC_CHECK_DECLS invocation.
13437         Reported by Simon Josefsson.
13438
13439 2011-08-08  Eric Blake  <eblake@redhat.com>
13440
13441         largefile: fix typo that regressed large file support
13442         * modules/largefile (configure.ac-early): Fix section name.
13443
13444 2011-08-06  Karl Berry  <karl@gnu.org>
13445
13446         * MODULES.html.sh (func_all_files): _Noreturn is no longer
13447         a separate module.
13448
13449 2011-08-05  Simon Josefsson  <simon@josefsson.org>
13450
13451         openat: Fix warnings and commens when building unlinkat.c on Hurd.
13452         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
13453         get prototype for free.
13454
13455 2011-08-04  Bruno Haible  <bruno@clisp.org>
13456
13457         Tests for module 'pathmax'.
13458         * modules/pathmax-tests: New file.
13459         * tests/test-pathmax.c: New file.
13460
13461         canonicalize-lgpl: Support larger filenames on the Hurd.
13462         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
13463         Reported by Paul Eggert.
13464
13465         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
13466         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
13467         * lib/chdir-long.h: Include pathmax.h.
13468         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
13469         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
13470         (PATH_MAX): Remove code that is done by pathmax.h.
13471         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
13472         * lib/tmpfile.c: Add a comment.
13473         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
13474         * modules/chdir-long (Depends-on): Add pathmax.
13475         * modules/getcwd (Depends-on): Add pathmax.
13476         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
13477         is not defined.
13478         * doc/posix-headers/limits.texi: Mention the pathmax module.
13479         * NEWS: Mention the change.
13480
13481 2011-08-02  Bruno Haible  <bruno@clisp.org>
13482
13483         pthread_sigmask: Actually use results of gl_THREADLIB.
13484         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
13485         gl_THREADLIB, not gl_[]THREADLIB.
13486         Reported by Eric Blake.
13487
13488 2011-08-02  Jim Meyering  <meyering@redhat.com>
13489
13490         maint.mk: relax the default _gl_TS_function_match regexp
13491         * top/maint.mk (_gl_TS_function_match): Don't require at least one
13492         space between function name and "(" in an "extern" declaration.
13493         That would fail to match a decl with no space there: extern void foo();
13494
13495 2011-07-31  Iain Nicol  <iain@thenicols.net>
13496
13497         git-version-gen: document that EXTRA_DIST must include .version
13498         * build-aux/git-version-gen: In the how-to-use comment, document
13499         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
13500         will fail when run from an unpacked distribution tarball.
13501
13502 2011-08-01  Bruno Haible  <bruno@clisp.org>
13503
13504         wctype-h: Fix last change.
13505         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
13506         REPLACE_TOWLOWER to 0.
13507         Reported by Sam Steingold <sds@gnu.org>.
13508
13509 2011-07-31  Bruno Haible  <bruno@clisp.org>
13510
13511         frexpl: Update autoconf test.
13512         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
13513         according to changes of 2011-06-20.
13514
13515 2011-07-31  Bruno Haible  <bruno@clisp.org>
13516
13517         sys_utsname: Add support for Minix.
13518         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
13519         <sys/utsname.h>.
13520         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
13521         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
13522
13523 2011-07-31  Bruno Haible  <bruno@clisp.org>
13524
13525         strings: Add support for Minix.
13526         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
13527         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
13528         * doc/posix-headers/strings.texi: Document the Minix problem.
13529
13530 2011-07-31  Bruno Haible  <bruno@clisp.org>
13531
13532         wctype-h: Add support for Minix.
13533         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
13534         REPLACE_TOWLOWER.
13535         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
13536         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
13537         REPLACE_ISWCNTRL.
13538
13539 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
13540
13541         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
13542         This is a performance improvement for 64-bit hosts: it causes the
13543         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
13544
13545 2011-07-31  Bruno Haible  <bruno@clisp.org>
13546
13547         stdioext: Add support for Minix.
13548         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
13549         * lib/fpurge.c (fpurge): Likewise.
13550         * lib/freadahead.c (freadahead): Likewise.
13551         * lib/freadable.c (freadable): Likewise.
13552         * lib/freading.c (freading): Likewise.
13553         * lib/freadptr.c (freadptr): Likewise.
13554         * lib/freadseek.c (freadptrinc): Likewise.
13555         * lib/fseeko.c (rpl_fseeko): Likewise.
13556         * lib/fseterr.c (fseterr): Likewise.
13557         * lib/fwritable.c (fwritable): Likewise.
13558         * lib/fwriting.c (fwriting): Likewise.
13559         * lib/fflush.c (clear_ungetc_buffer): Update comment.
13560         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
13561
13562 2011-07-31  Bruno Haible  <bruno@clisp.org>
13563
13564         errno: Port to Minix.
13565         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
13566         ECONNABORTED are defined.
13567         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
13568         GNULIB_defined_ECONNABORTED): New macros.
13569         * lib/strerror-override.h (strerror_override): Test also
13570         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
13571         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
13572         ECONNABORTED.
13573         * doc/posix-headers/errno.texi: Mention the Minix problem.
13574
13575 2011-07-31  Bruno Haible  <bruno@clisp.org>
13576
13577         Work around declaration collisions on Minix.
13578         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
13579         defined, set REPLACE_MBSINIT.
13580         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
13581         defined, set REPLACE_MBRTOWC.
13582         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
13583         set REPLACE_MBRLEN.
13584         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
13585         defined, set REPLACE_MBSRTOWCS.
13586         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
13587         defined, set REPLACE_WCRTOMB.
13588         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
13589         defined, set REPLACE_WCSRTOMBS.
13590
13591 2011-07-31  Bruno Haible  <bruno@clisp.org>
13592
13593         Add support for Minix with ACK compiler.
13594         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
13595         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
13596         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
13597
13598 2011-07-31  Bruno Haible  <bruno@clisp.org>
13599
13600         Documentation about Minix.
13601         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
13602         * doc/glibc-headers/*.texi: Likewise.
13603         * doc/posix-functions/*.texi: Likewise.
13604         * doc/glibc-functions/*.texi: Likewise.
13605
13606 2011-07-31  Bruno Haible  <bruno@clisp.org>
13607
13608         snippet/warn-on-use: Fix indentation.
13609         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
13610
13611 2011-07-25  Jim Meyering  <meyering@redhat.com>
13612
13613         tests: test-update-copyright.sh: remove unnecessary "rm" commands
13614         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
13615         commands.
13616
13617 2011-07-27  Jim Meyering  <meyering@redhat.com>
13618
13619         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
13620         * top/maint.mk (gl_extract_significant_defines_): Now that
13621         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
13622         gnulib/lib/signal.in.h, and now that we recommend to
13623         define-if-undefined those two symbols in application code,
13624         we must filter them out of the "significant" list.
13625         This avoids a "make syntax-check" failure in coreutils.
13626
13627 2011-07-26  Eric Blake  <eblake@redhat.com>
13628
13629         warnings: add comments about previous patch
13630         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
13631         * m4/include_next.m4: Likewise.
13632         * m4/warn-on-use.m4: Likewise.
13633         * m4/warnings.m4: Likewise, and simplify use.
13634         Suggested by Stefano Lattarini.
13635
13636         include-next, warnings: support older autoconf
13637         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
13638         AS_VAR_PUSHDEF in a way that works with older autoconf.
13639         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
13640         Reported by Daniel P. Berrange.
13641
13642 2011-07-25  Bruno Haible  <bruno@clisp.org>
13643
13644         fseek, ftell: Fix doc.
13645         * doc/posix-functions/fseek.texi: Reword statement about
13646         AC_SYS_LARGEFILE.
13647         * doc/posix-functions/ftell.texi: Likewise.
13648
13649 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
13650             Bruno Haible  <bruno@clisp.org>
13651
13652         Add dependencies to the 'largefile' module.
13653         * modules/fopen (Depends-on): Add 'largefile'.
13654         * modules/freopen (Depends-on): Likewise.
13655         * modules/fseeko (Depends-on): Likewise.
13656         * modules/ftello (Depends-on): Likewise.
13657         * modules/glob (Depends-on): Likewise.
13658         * modules/lseek (Depends-on): Likewise.
13659         * modules/lstat (Depends-on): Likewise.
13660         * modules/mkostemp (Depends-on): Likewise.
13661         * modules/mkostemps (Depends-on): Likewise.
13662         * modules/mkstemp (Depends-on): Likewise.
13663         * modules/mkstemps (Depends-on): Likewise.
13664         * modules/open (Depends-on): Likewise.
13665         * modules/openat (Depends-on): Likewise.
13666         * modules/pread (Depends-on): Likewise.
13667         * modules/pwrite (Depends-on): Likewise.
13668         * modules/scandir (Depends-on): Likewise.
13669         * modules/stat (Depends-on): Likewise.
13670         * modules/tmpfile (Depends-on): Likewise.
13671         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
13672         since the containing module now depends on the largefile module.
13673         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
13674         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
13675         off_t is fixed by gnulib.
13676         * doc/posix-functions/freopen.texi: Likewise.
13677         * doc/posix-functions/fseeko.texi: Likewise.
13678         * doc/posix-functions/fstatat.texi: Likewise.
13679         * doc/posix-functions/ftello.texi: Likewise.
13680         * doc/posix-functions/glob.texi: Likewise.
13681         * doc/posix-functions/lseek.texi: Likewise.
13682         * doc/posix-functions/lstat.texi: Likewise.
13683         * doc/posix-functions/mkstemp.texi: Likewise.
13684         * doc/posix-functions/open.texi: Likewise.
13685         * doc/posix-functions/openat.texi: Likewise.
13686         * doc/posix-functions/pread.texi: Likewise.
13687         * doc/posix-functions/pwrite.texi: Likewise.
13688         * doc/posix-functions/scandir.texi: Likewise.
13689         * doc/posix-functions/stat.texi: Likewise.
13690         * doc/posix-functions/tmpfile.texi: Likewise.
13691         * doc/glibc-functions/mkostemp.texi: Likewise.
13692         * doc/glibc-functions/mkostemps.texi: Likewise.
13693         * doc/glibc-functions/mkstemps.texi: Likewise.
13694
13695 2011-07-25  Bruno Haible  <bruno@clisp.org>
13696
13697         fcntl: Move AC_LIBOBJ invocation to module description.
13698         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
13699         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
13700
13701         fcntl: Remove call-in from fchdir.m4.
13702         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
13703         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
13704
13705         dup3: Remove potential call-in from fchdir.m4.
13706         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
13707         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
13708
13709         dup2: Move AC_LIBOBJ invocation to module description.
13710         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
13711         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
13712         Don't invoke AC_LIBOBJ.
13713         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
13714
13715         dup2: Remove call-in from fchdir.m4.
13716         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
13717         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
13718
13719         fclose: Move AC_LIBOBJ invocation to module description.
13720         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
13721         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
13722         to 1.
13723         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
13724
13725         fclose: Remove call-in from close.m4.
13726         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
13727         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
13728
13729         close: Move AC_LIBOBJ invocation to module description.
13730         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
13731         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
13732         1.
13733         * modules/close (configure.ac): Invoke AC_LIBOBJ.
13734
13735         close: Remove call-in from fchdir.m4.
13736         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
13737         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
13738
13739         open: Move AC_LIBOBJ invocation to module description.
13740         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
13741         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
13742         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
13743
13744         open: Remove call-in from fchdir.m4.
13745         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
13746         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
13747
13748         fchdir: Start to remove gl_REPLACE_* idiom.
13749         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
13750         (gl_FUNC_FCHDIR): Invoke it.
13751
13752 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
13753
13754         * lib/ftell.c (ftell): Comment out cast.
13755
13756         close: use gl_REPLACE_FCLOSE only if defined
13757         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
13758         is defined.  The close module doesn't depend on the fclose module
13759         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
13760         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
13761         I reproduced the problem with "./gnulib-tool --test close sys_socket".
13762
13763 2011-07-24  Jim Meyering  <meyering@redhat.com>
13764
13765         test-select.h: avoid warning when using gcc's -Wmissing-declarations
13766         * tests/test-select.h (test_function): Declare as "static".
13767
13768 2011-07-24  Bruno Haible  <bruno@clisp.org>
13769
13770         doc: Mention the effects of AC_SYS_LARGEFILE.
13771         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
13772         on this function.
13773         * doc/posix-functions/aio_error.texi: Likewise.
13774         * doc/posix-functions/aio_fsync.texi: Likewise.
13775         * doc/posix-functions/aio_read.texi: Likewise.
13776         * doc/posix-functions/aio_return.texi: Likewise.
13777         * doc/posix-functions/aio_suspend.texi: Likewise.
13778         * doc/posix-functions/aio_write.texi: Likewise.
13779         * doc/posix-functions/fgetpos.texi: Likewise.
13780         * doc/posix-functions/fopen.texi: Likewise.
13781         * doc/posix-functions/freopen.texi: Likewise.
13782         * doc/posix-functions/fsetpos.texi: Likewise.
13783         * doc/posix-functions/fstatvfs.texi: Likewise.
13784         * doc/posix-functions/ftruncate.texi: Likewise.
13785         * doc/posix-functions/ftw.texi: Likewise.
13786         * doc/posix-functions/getrlimit.texi: Likewise.
13787         * doc/posix-functions/glob.texi: Likewise.
13788         * doc/posix-functions/lio_listio.texi: Likewise.
13789         * doc/posix-functions/lockf.texi: Likewise.
13790         * doc/posix-functions/mkstemp.texi: Likewise.
13791         * doc/posix-functions/mmap.texi: Likewise.
13792         * doc/posix-functions/nftw.texi: Likewise.
13793         * doc/posix-functions/openat.texi: Likewise.
13794         * doc/posix-functions/opendir.texi: Likewise.
13795         * doc/posix-functions/posix_fadvise.texi: Likewise.
13796         * doc/posix-functions/posix_fallocate.texi: Likewise.
13797         * doc/posix-functions/pread.texi: Likewise.
13798         * doc/posix-functions/pwrite.texi: Likewise.
13799         * doc/posix-functions/readdir.texi: Likewise.
13800         * doc/posix-functions/readdir_r.texi: Likewise.
13801         * doc/posix-functions/rewinddir.texi: Likewise.
13802         * doc/posix-functions/scandir.texi: Likewise.
13803         * doc/posix-functions/seekdir.texi: Likewise.
13804         * doc/posix-functions/setrlimit.texi: Likewise.
13805         * doc/posix-functions/statvfs.texi: Likewise.
13806         * doc/posix-functions/telldir.texi: Likewise.
13807         * doc/posix-functions/tmpfile.texi: Likewise.
13808         * doc/posix-functions/truncate.texi: Likewise.
13809         * doc/glibc-functions/fallocate.texi: Likewise.
13810         * doc/glibc-functions/fstatfs.texi: Likewise.
13811         * doc/glibc-functions/fts_children.texi: Likewise.
13812         * doc/glibc-functions/fts_read.texi: Likewise.
13813         * doc/glibc-functions/getdirentries.texi: Likewise.
13814         * doc/glibc-functions/mkostemp.texi: Likewise.
13815         * doc/glibc-functions/mkostemps.texi: Likewise.
13816         * doc/glibc-functions/mkstemps.texi: Likewise.
13817         * doc/glibc-functions/preadv.texi: Likewise.
13818         * doc/glibc-functions/pwritev.texi: Likewise.
13819         * doc/glibc-functions/sendfile.texi: Likewise.
13820         * doc/glibc-functions/statfs.texi: Likewise.
13821
13822 2011-07-24  Bruno Haible  <bruno@clisp.org>
13823
13824         doc: Fix typo.
13825         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
13826
13827 2011-07-24  Bruno Haible  <bruno@clisp.org>
13828
13829         doc: Mention fsusage.
13830         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
13831
13832 2011-07-24  Bruno Haible  <bruno@clisp.org>
13833
13834         doc: Mention new glibc headers and functions.
13835         * doc/glibc-headers/gshadow.texi: New file.
13836         * doc/glibc-functions/endsgent.texi: New file.
13837         * doc/glibc-functions/fgetsgent.texi: New file.
13838         * doc/glibc-functions/fgetsgent_r.texi: New file.
13839         * doc/glibc-functions/getsgent.texi: New file.
13840         * doc/glibc-functions/getsgent_r.texi: New file.
13841         * doc/glibc-functions/getsgnam.texi: New file.
13842         * doc/glibc-functions/getsgnam_r.texi: New file.
13843         * doc/glibc-functions/putsgent.texi: New file.
13844         * doc/glibc-functions/setsgent.texi: New file.
13845         * doc/glibc-functions/sgetsgent.texi: New file.
13846         * doc/glibc-functions/sgetsgent_r.texi: New file.
13847         * doc/glibc-functions/malloc_info.texi: New file.
13848         * doc/glibc-functions/preadv.texi: New file.
13849         * doc/glibc-functions/pwritev.texi: New file.
13850         * doc/glibc-functions/register_printf_modifier.texi: New file.
13851         * doc/glibc-functions/register_printf_specifier.texi: New file.
13852         * doc/glibc-functions/register_printf_type.texi: New file.
13853         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
13854         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
13855         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
13856         * doc/glibc-functions/pthread_getname_np.texi: New file.
13857         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
13858         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
13859         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
13860         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
13861         * doc/glibc-functions/pthread_setname_np.texi: New file.
13862         * doc/glibc-functions/pthread_sigqueue.texi: New file.
13863         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
13864         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
13865         * doc/glibc-functions/qsort_r.texi: New file.
13866         * doc/glibc-functions/quick_exit.texi: New file.
13867         * doc/glibc-functions/syncfs.texi: New file.
13868         * doc/gnulib.texi: Include them.
13869         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
13870         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
13871         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
13872         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
13873         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
13874         * doc/glibc-functions/execvpe.texi: Likewise.
13875
13876 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
13877
13878         ftell: don't include <unistd.h>
13879         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
13880         guaranteed to define off_t, and the ftell module depends on the
13881         stdio module.
13882
13883         ftell: do not assume wraparound signed arithmetic
13884         * lib/ftell.c: Include <limits.h>.
13885         (ftell): Don't assume wraparound signed arithmetic.
13886
13887 2011-07-24  Bruno Haible  <bruno@clisp.org>
13888
13889         close: No longer depend on module 'fclose'.
13890         * modules/close (Depends-on): Remove fclose.
13891         * NEWS: Mention the change.
13892         Suggested by Sam Steingold <sds@gnu.org>.
13893
13894 2011-07-24  Bruno Haible  <bruno@clisp.org>
13895
13896         fsusage: Enable large volume support on AIX >= 5.2.
13897         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
13898         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
13899         instead of STAT_STATVFS.
13900         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
13901
13902         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
13903         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
13904         f_blocks field only on MacOS X.
13905
13906         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
13907         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
13908         * modules/fsusage (Depends-on): Add largefile.
13909
13910 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
13911
13912         * README: Modernize discussion of signed integers.
13913         Assuming overflow wraparound is no longer safe.
13914         Mention ones' complement and signed magnitude.
13915
13916 2011-07-22  Bruno Haible  <bruno@clisp.org>
13917
13918         select tests, pselect tests: Refactor.
13919         * tests/test-select.h: New file, extracted from tests/test-select.c.
13920         (select_fn): New type.
13921         (test, do_select, do_select_nowait, do_select_wait, test_tty,
13922         test_connect_first, test_accept_first, test_pair, test_socket_pair,
13923         test_pipe): Add my_select argument.
13924         (test_function): Renamed from main. Add my_select argument.
13925         * tests/test-select.c: Move most code to tests/test-select.h. Include
13926         test-select.h.
13927         * modules/select-tests (Files): Add tests/test-select.h.
13928         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
13929         (my_select, main): New functions.
13930         * modules/pselect-tests (Files): Add tests/test-select.h,
13931         tests/macros.h, tests/signature.h.
13932         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
13933         (configure.ac): Check for <sys/wait.h>.
13934
13935 2011-07-22  Bruno Haible  <bruno@clisp.org>
13936
13937         sys_select tests: Check the signature of FD_*.
13938         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
13939         signature tests from here...
13940         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
13941         here.
13942         * modules/sys_select-tests (Files): Add tests/signature.h.
13943
13944 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
13945
13946         largefile: new module, replacing large-inode
13947         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
13948         * MODULES.html.sh: Add largefile, remove large-inode.
13949         * modules/largefile, m4/largefile.m4: New files.
13950         * modules/large-inode, m4/large-inode.m4: Remove.
13951
13952         fsusage: port to MacOS X 10.7 with 4 TiB file systems
13953         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
13954         implementations that use only 32 bits to count blocks.
13955         On typical hosts with 1024-byte blocks, this fails with file
13956         systems as small as 4 TiB.  Problem reported by Herb Wartens
13957         <http://debbugs.gnu.org/9140> and this should also fix a similar
13958         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
13959
13960         large-inode: New module
13961         * MODULES.html.sh: Add it.
13962         * modules/large-inode, m4/large-inode.m4: New files.
13963
13964         extensions: Enable extensions on MacOS X 10.5 and later.
13965         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
13966
13967 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
13968
13969         file-has-acl: use acl_extended_file_nofollow if available
13970         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
13971         (acl_extended_file): New macro.
13972         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
13973         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
13974
13975 2011-07-21  Bruno Haible  <bruno@clisp.org>
13976
13977         Declare system functions in a way that works with C++.
13978         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
13979         declare fdopendir as extern "C".
13980         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
13981         declare frexpl as extern "C".
13982         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
13983         declare gai_strerror as extern "C".
13984         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
13985         programs, declare gai_strerror as extern "C".
13986         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
13987         declare getlogin_r as extern "C".
13988         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
13989         as extern "C".
13990         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
13991         declare ldexpl as extern "C".
13992         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
13993         as extern "C".
13994         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
13995         program, declare getmntinfo as extern "C".
13996         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
13997         stpncpy as extern "C".
13998         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
13999         program, declare __xpg_strerror_r as extern "C".
14000         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
14001         strndup as extern "C".
14002         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
14003         declare memset and bzero as extern "C".
14004         Reported by Sam Steingold <sds@gnu.org>.
14005
14006 2011-07-12  Jim Meyering  <meyering@redhat.com>
14007
14008         maint.mk: prohibit inclusion of "verify.h" without use
14009         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
14010
14011 2011-07-19  Pádraig Brady  <P@draigBrady.com>
14012
14013         timer-time: A new module to check for timer_settime()
14014         * m4/timer_time.m4: Check for the posix function.
14015         * modules/timer-time: Add the new module.
14016         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
14017         Mention it.
14018
14019 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
14020             Bruno Haible  <bruno@clisp.org>
14021
14022         pthread_sigmask: assume POSIX threads if --avoid=threadlib
14023         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
14024         not defined, assume POSIX threads and look for pthread_sigmask in
14025         $LIBS, without changing $CPPFLAGS.
14026
14027 2011-07-19  Bruno Haible  <bruno@clisp.org>
14028
14029         strstr: Update cross-compilation guess.
14030         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
14031         CPUs, guess no, in view of glibc
14032         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
14033         Suggested by Eric Blake. Reported by Reuben Thomas.
14034
14035 2011-07-19  Pádraig Brady  <P@draigBrady.com>
14036
14037         getopt-gnu: suppress core dumps from detection code
14038         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
14039         to suppress core dumps that may well occur on glibc systems.
14040         * modules/getopt-gnu: Depend on nocrash.
14041
14042 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
14043
14044         pthread_sigmask: ensure usleep is declared
14045         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
14046         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
14047
14048 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
14049
14050         doc: Document NonStop portability issues.
14051         * doc/posix-functions/sigaction.texi (sigaction):
14052         * doc/posix-headers/signal.texi (signal.h):
14053         Document NonStop.  See Joachim Schmitz in
14054         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
14055
14056 2011-07-15  Bruno Haible  <bruno@clisp.org>
14057
14058         ffsl, ffsll: Avoid unportable behaviour.
14059         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
14060
14061 2011-07-15  Bruno Haible  <bruno@clisp.org>
14062
14063         ffs: More tests.
14064         * tests/test-ffs.c (NBITS): New macro.
14065         (main): Add more tests.
14066         * tests/test-ffsl.c (NBITS): New macro.
14067         (main): Add more tests.
14068         * tests/test-ffsll.c (NBITS): New macro.
14069         (main): Add more tests.
14070
14071 2011-07-15  Eric Blake  <eblake@redhat.com>
14072
14073         ffsl, ffsll: new modules
14074         * modules/ffsl: New file.
14075         * modules/ffsll: Likewise.
14076         * m4/ffsl.m4: Likewise.
14077         * m4/ffsll.m4: Likewise.
14078         * lib/ffsl.c: Likewise.
14079         * lib/ffsl.h: Likewise.
14080         * lib/ffsll.c: Likewise.
14081         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
14082         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
14083         * modules/string (Makefile.am): Substitute witnesses.
14084         * lib/strings.in.h (ffsl, ffsll): Declare.
14085         * modules/ffsl-tests: New test file.
14086         * modules/ffsll-tests: Likewise.
14087         * tests/test-ffsl.c: Likewise.
14088         * tests/test-ffsll.c: Likewise.
14089         * MODULES.html.sh (Integer arithmetic functions): Mention it.
14090         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
14091         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
14092
14093         ffs: fix m4 prerequisite
14094         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
14095
14096         ffs: avoid undefined behavior
14097         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
14098         * tests/test-ffs.c (naive, main): Avoid signed shifts.
14099         Reported by Bruno Haible.
14100
14101 2011-07-12  Bruno Haible  <bruno@clisp.org>
14102
14103         pthread_sigmask: Rely on module 'threadlib'.
14104         * modules/pthread_sigmask (Depends-on): Add threadlib.
14105         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
14106         is defined.
14107
14108 2011-07-12  Bruno Haible  <bruno@clisp.org>
14109
14110         regex: Depend on module 'strcase'.
14111         * modules/regex (Depends-on): Add strcase, for strcasecmp().
14112
14113 2011-07-12  Jim Meyering  <meyering@redhat.com>
14114
14115         warn-on-use: fix typo in file name
14116         * modules/snippet/warn-on-use (Files): Correct file name:
14117         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
14118
14119 2011-07-12  Bruno Haible  <bruno@clisp.org>
14120
14121         strings: Document module.
14122         * doc/posix-headers/strings.texi: Mention module 'strings'.
14123
14124 2011-07-12  Bruno Haible  <bruno@clisp.org>
14125
14126         Rename module '_Noreturn' to 'snippet/_Noreturn'.
14127         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
14128         (Files, Makefile.am): Update.
14129         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
14130         * modules/stdlib (Depends-on): Update.
14131
14132 2011-07-12  Bruno Haible  <bruno@clisp.org>
14133
14134         * NEWS: Mention the changes.
14135
14136         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
14137         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
14138         (Files, Makefile.am): Update.
14139         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
14140         * modules/arpa_inet (Depends-on): Update.
14141         * modules/ctype (Depends-on): Update.
14142         * modules/dirent (Depends-on): Update.
14143         * modules/fcntl-h (Depends-on): Update.
14144         * modules/glob (Depends-on): Update.
14145         * modules/iconv-h (Depends-on): Update.
14146         * modules/inttypes-incomplete (Depends-on): Update.
14147         * modules/langinfo (Depends-on): Update.
14148         * modules/locale (Depends-on): Update.
14149         * modules/math (Depends-on): Update.
14150         * modules/netdb (Depends-on): Update.
14151         * modules/poll-h (Depends-on): Update.
14152         * modules/pty (Depends-on): Update.
14153         * modules/search (Depends-on): Update.
14154         * modules/signal (Depends-on): Update.
14155         * modules/spawn (Depends-on): Update.
14156         * modules/stdio (Depends-on): Update.
14157         * modules/stdlib (Depends-on): Update.
14158         * modules/string (Depends-on): Update.
14159         * modules/strings (Depends-on): Update.
14160         * modules/sys_file (Depends-on): Update.
14161         * modules/sys_ioctl (Depends-on): Update.
14162         * modules/sys_select (Depends-on): Update.
14163         * modules/sys_socket (Depends-on): Update.
14164         * modules/sys_stat (Depends-on): Update.
14165         * modules/sys_time (Depends-on): Update.
14166         * modules/sys_times (Depends-on): Update.
14167         * modules/sys_utsname (Depends-on): Update.
14168         * modules/sys_wait (Depends-on): Update.
14169         * modules/termios (Depends-on): Update.
14170         * modules/time (Depends-on): Update.
14171         * modules/unistd (Depends-on): Update.
14172         * modules/wchar (Depends-on): Update.
14173         * modules/wctype-h (Depends-on): Update.
14174         * MODULES.html.sh (Support for building libraries and executables):
14175         Update.
14176
14177         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
14178         * modules/snippet/unused-parameter: Renamed from
14179         modules/unused-parameter.
14180         (Files, Makefile.am): Update.
14181         * build-aux/snippet/unused-parameter.h: Renamed from
14182         build-aux/unused-parameter.h.
14183         * modules/selinux-h (Depends-on): Update.
14184         * modules/unistr/base (Depends-on): Update.
14185         * MODULES.html.sh (Core language properties): Update.
14186
14187         Rename module 'link-warning' to 'snippet/link-warning'.
14188         * modules/snippet/link-warning: Renamed from modules/link-warning.
14189         (Files, Makefile.am): Update.
14190         * build-aux/snippet/link-warning.h: Renamed from
14191         build-aux/link-warning.h.
14192         * MODULES.html.sh (Support for building libraries and executables):
14193         Update.
14194
14195         Rename module 'c++defs' to 'snippet/c++defs'.
14196         * modules/snippet/c++defs: Renamed from modules/c++defs.
14197         (Files, Makefile.am): Update.
14198         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
14199         * modules/arpa_inet (Depends-on): Update.
14200         * modules/ctype (Depends-on): Update.
14201         * modules/dirent (Depends-on): Update.
14202         * modules/fcntl-h (Depends-on): Update.
14203         * modules/glob (Depends-on): Update.
14204         * modules/iconv-h (Depends-on): Update.
14205         * modules/langinfo (Depends-on): Update.
14206         * modules/locale (Depends-on): Update.
14207         * modules/math (Depends-on): Update.
14208         * modules/netdb (Depends-on): Update.
14209         * modules/poll-h (Depends-on): Update.
14210         * modules/pty (Depends-on): Update.
14211         * modules/search (Depends-on): Update.
14212         * modules/signal (Depends-on): Update.
14213         * modules/spawn (Depends-on): Update.
14214         * modules/stdio (Depends-on): Update.
14215         * modules/stdlib (Depends-on): Update.
14216         * modules/string (Depends-on): Update.
14217         * modules/strings (Depends-on): Update.
14218         * modules/sys_ioctl (Depends-on): Update.
14219         * modules/sys_select (Depends-on): Update.
14220         * modules/sys_socket (Depends-on): Update.
14221         * modules/sys_stat (Depends-on): Update.
14222         * modules/sys_time (Depends-on): Update.
14223         * modules/sys_wait (Depends-on): Update.
14224         * modules/termios (Depends-on): Update.
14225         * modules/time (Depends-on): Update.
14226         * modules/unistd (Depends-on): Update.
14227         * modules/wchar (Depends-on): Update.
14228         * modules/wctype-h (Depends-on): Update.
14229
14230         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
14231         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
14232         (Files, Makefile.am): Update.
14233         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
14234         * modules/argv-iter (Depends-on): Update.
14235         * modules/arpa_inet (Depends-on): Update.
14236         * modules/dirent (Depends-on): Update.
14237         * modules/fcntl-h (Depends-on): Update.
14238         * modules/fnmatch (Depends-on): Update.
14239         * modules/getopt-posix (Depends-on): Update.
14240         * modules/glob (Depends-on): Update.
14241         * modules/iconv-h (Depends-on): Update.
14242         * modules/inttypes-incomplete (Depends-on): Update.
14243         * modules/locale (Depends-on): Update.
14244         * modules/math (Depends-on): Update.
14245         * modules/netdb (Depends-on): Update.
14246         * modules/search (Depends-on): Update.
14247         * modules/signal (Depends-on): Update.
14248         * modules/spawn (Depends-on): Update.
14249         * modules/stdio (Depends-on): Update.
14250         * modules/stdlib (Depends-on): Update.
14251         * modules/string (Depends-on): Update.
14252         * modules/strings (Depends-on): Update.
14253         * modules/sys_socket (Depends-on): Update.
14254         * modules/sys_stat (Depends-on): Update.
14255         * modules/sys_time (Depends-on): Update.
14256         * modules/sys_times (Depends-on): Update.
14257         * modules/sys_utsname (Depends-on): Update.
14258         * modules/time (Depends-on): Update.
14259         * modules/unistd (Depends-on): Update.
14260         * modules/wchar (Depends-on): Update.
14261         * MODULES.html.sh (Support for building libraries and executables):
14262         Update.
14263
14264 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
14265
14266         Improvements on _Noreturn and related modules.
14267
14268         modules/_Exit-tests: test _Noreturn too
14269         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
14270         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
14271         (main): Use them.
14272
14273         stdnoreturn, stdnoreturn-tests: remove modules
14274         They're not needed here and a bit premature for use elsewhere.  See
14275         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
14276         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
14277         * tests/test-stdnoreturn.c: Remove files.
14278         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
14279         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
14280         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
14281         and using noreturn.
14282         * modules/openat, modules/sigpipe-die, modules/xalloc:
14283         * modules/xmemdup0, modules/xstrtol:
14284         Remove dependency on stdnoreturn.
14285
14286         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
14287         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
14288         Reparenthesize to avoid GCC warning.
14289         Support Microsoft's syntax.
14290         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
14291
14292         _Noreturn-tests: remove module
14293         * modules/_Noreturn-tests: Remove.
14294         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
14295         * tests/test-_Noreturn.c: Remove.
14296         * tests/test-stdnoreturn.c: Merge from the old
14297         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
14298
14299 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
14300
14301         _Noreturn, stdnoreturn, and related modules.
14302
14303         * top/maint.mk: Adjust to new noreturn support.
14304         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
14305         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
14306
14307         xalloc: use stdnoreturn.h
14308         * lib/xalloc.h: Include <stdnoreturn.h>.
14309         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
14310         * modules/xalloc (Depends-on): Add stdnoreturn.
14311
14312         xstrtol: use stdnoreturn.h
14313         * lib/xstrtol.h: Include <stdnoreturn.h>.
14314         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
14315         * modules/xstrtol (Depends-on): Add stdnoreturn.
14316
14317         xmemdup0: use stdnoreturn.h
14318         * lib/xmemdup0.h: Include <stdnoreturn.h>.
14319         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
14320         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
14321
14322         sigpipe-die: use stdnoreturn.h
14323         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
14324         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
14325         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
14326
14327         openat: use stdnoreturn.h
14328         * lib/openat.h: Include <stdnoreturn.h>.
14329         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
14330         * modules/openat (Depends-on): Add stdnoreturn.
14331
14332         * lib/openat-die.c (openat_save_fail): Modernize comment.
14333
14334         * lib/xalloc-die.c (xalloc_die): Modernize comment.
14335
14336         * lib/glthread/thread.h: Modernize comment.
14337
14338         obstack: use _Noreturn
14339         * lib/obstack.c (__attribute__): Remove macro.
14340         (print_and_abort): Use _Noreturn.
14341
14342         c-stack: use _Noreturn
14343         * lib/c-stack.c (die, overflow_handler, segv_handler):
14344         Use _Noreturn rather than __attribute__((noreturn)).
14345
14346         argmatch-tests, exclude_tests: use _Noreturn
14347         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
14348         Remove.
14349         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
14350
14351         stdlib: use _Noreturn
14352         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
14353         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
14354         * modules/stdlib (Depends-on): Add _Noreturn.
14355         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
14356
14357         stdnoreturn-tests: new module
14358         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
14359
14360         stdnoreturn: new module
14361         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
14362         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
14363
14364         _Noreturn-tests: new module
14365         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
14366
14367         _Noreturn: new module
14368         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
14369         New section, mentioning it.
14370         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
14371
14372         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
14373
14374 2011-07-11  Eric Blake  <eblake@redhat.com>
14375
14376         ffs: new module
14377         * modules/ffs: New file.
14378         * m4/ffs.m4: Likewise.
14379         * lib/ffs.c: Likewise.
14380         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
14381         * modules/strings (Makefile.am): Substitute witness.
14382         (Depends-on): Add c++defs.
14383         * lib/strings.in.h (ffs): Declare.
14384         * modules/ffs-tests: New test file.
14385         * tests/test-ffs.c: Test new module.
14386         * MODULES.html.sh (Integer arithmetic functions): Mention it.
14387         * doc/posix-functions/ffs.texi (ffs): Likewise.
14388
14389         regex: avoid compiler warning
14390         * lib/regex.c (includes): Include <strings.h>, for use of
14391         strcasecmp in regcomp.c.
14392         Reported by Joachim Schmitz.
14393
14394 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
14395
14396         stdint: respect system's intmax_t if INTMAX_MAX
14397         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
14398         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
14399         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
14400         long but int64_t is long long, and where we will clash with the
14401         system intmax_t if we override it.  See
14402         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
14403         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
14404         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
14405         similarly for UINTMAX_C.
14406
14407 2011-07-08  Bruno Haible  <bruno@clisp.org>
14408
14409         pthread_sigmask tests: Avoid a compiler warning.
14410         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
14411         non-zero.
14412
14413         sigprocmask tests: A better way to avoid a compiler warning.
14414         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
14415         (main): Complain if system() returns non-zero.
14416         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
14417
14418 2011-07-08  Bruno Haible  <bruno@clisp.org>
14419
14420         pthread_sigmask: Work around IRIX bug.
14421         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
14422         bug.
14423         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
14424         there may be unblocked pending signals.
14425         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
14426
14427 2011-07-08  Bruno Haible  <bruno@clisp.org>
14428
14429         pthread_sigmask: Work around Cygwin bug.
14430         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
14431         bug.
14432         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
14433         the system's pthread_sigmask function.
14434         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
14435
14436 2011-07-08  Bruno Haible  <bruno@clisp.org>
14437
14438         pthread_sigmask: Work around bug in single-threaded implementation.
14439         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
14440         FreeBSD, HP-UX, Solaris bug.
14441         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
14442         * lib/pthread_sigmask.c: Include <stddef.h>.
14443         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
14444         the system's pthread_sigmask function.
14445         * modules/pthread_sigmask (configure.ac): Invoke
14446         gl_PREREQ_PTHREAD_SIGMASK.
14447         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
14448         HP-UX, Solaris.
14449
14450 2011-07-08  Eric Blake  <eblake@redhat.com>
14451
14452         test-sigprocmask: avoid compiler warning
14453         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
14454         * tests/test-sigprocmask.c (main): Use it to silence warning.
14455         Reported by Jim Meyering.
14456
14457         test-snprintf: avoid compiler warning
14458         * tests/test-snprintf.c (main): Avoid shadowed declaration.
14459         * tests/test-vsnprintf.c (main): Likewise.
14460         Reported by Jim Meyering.
14461
14462 2011-07-08  Bruno Haible  <bruno@clisp.org>
14463
14464         Tests for module 'pthread_sigmask'.
14465         * modules/pthread_sigmask-tests: New file.
14466         * tests/test-pthread_sigmask1.c: New file, based on
14467         tests/test-sigprocmask.c.
14468         * tests/test-pthread_sigmask2.c: New file.
14469
14470 2011-07-08  Jim Meyering  <meyering@redhat.com>
14471
14472         test-getopt.h: avoid warning about an unused variable
14473         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
14474
14475 2011-07-07  Jim Meyering  <meyering@redhat.com>
14476
14477         maint: reduce list of files exempt from sc_prohibit_leading_TABs
14478         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
14479         now that it no longer contains leading TABs.
14480         Remove unused "url=FIXME" statement.
14481
14482 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
14483
14484         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
14485         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
14486         When gl_THREADLIB is not in use, assume that the POSIX sematics
14487         are desired.  This is better for Emacs, which uses POSIX semantics
14488         on GNUish and/or POSIXish platforms, and does not use threads at
14489         all otherwise.
14490
14491         pthread_sigmask: fix typo when testing for libraries
14492         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
14493         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
14494
14495 2011-07-08  Eric Blake  <eblake@redhat.com>
14496
14497         fts: introduce FTS_NOATIME
14498         * lib/fts_.h (FTS_NOATIME): New bit flag.
14499         (FTS_OPTIONMASK): Adjust.
14500         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
14501         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
14502
14503 2011-07-08  Bruno Haible  <bruno@clisp.org>
14504
14505         Tests for module 'thread'.
14506         * modules/thread-tests: New file.
14507         * tests/test-thread_self.c: New file.
14508         * tests/test-thread_create.cc: New file.
14509
14510 2011-07-08  Bruno Haible  <bruno@clisp.org>
14511
14512         thread: Avoid gcc warnings when using gl_thread_self().
14513         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
14514         'void *'.
14515         (gl_thread_self_pointer): Update.
14516
14517 2011-07-07  Bruno Haible  <bruno@clisp.org>
14518
14519         signal-c++-tests: Check declaration of pthread_sigmask.
14520         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
14521         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
14522         $(LIB_PTHREAD_SIGMASK).
14523
14524 2011-07-07  Bruno Haible  <bruno@clisp.org>
14525
14526         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
14527         * lib/signal.in.h (pthread_sigmask): Override if
14528         REPLACE_PTHREAD_SIGMASK is 1.
14529         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
14530         REPLACE_PTHREAD_SIGMASK.
14531         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
14532         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
14533         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
14534         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
14535         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
14536
14537 2011-07-07  Bruno Haible  <bruno@clisp.org>
14538
14539         pthread_sigmask: Ensure declaration in <signal.h>.
14540         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
14541         include <pthread.h>.
14542         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
14543         problem.
14544
14545 2011-07-07  Bruno Haible  <bruno@clisp.org>
14546
14547         pthread_sigmask: Document the module.
14548         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
14549
14550 2011-07-07  Bruno Haible  <bruno@clisp.org>
14551
14552         pthread_sigmask: Follow gnulib conventions.
14553         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
14554         gl_PTHREAD_SIGMASK.
14555         * modules/pthread_sigmask (configure.ac): Update.
14556
14557 2011-07-07  Bruno Haible  <bruno@clisp.org>
14558
14559         pthread_sigmask: Make declaration C++ safe.
14560         * lib/signal.in.h: In two special conditions, just do an #include_next.
14561         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
14562         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
14563         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
14564         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
14565         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
14566         not REPLACE_PTHREAD_MASK.
14567         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
14568         not REPLACE_PTHREAD_MASK.
14569         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
14570
14571 2011-07-07  Bruno Haible  <bruno@clisp.org>
14572
14573         pthread_sigmask: Fix return value.
14574         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
14575         * lib/pthread_sigmask.c: New file.
14576         * modules/pthread_sigmask (Files): Add it.
14577         (configure.ac): Invoke AC_LIBOBJ.
14578
14579 2011-07-07  Eric Blake  <eblake@redhat.com>
14580
14581         getopt: more portable argv creation
14582         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
14583         const, use char arrays rather than strings.
14584         Suggested by Paul Eggert.
14585
14586 2011-07-07  Bruno Haible  <bruno@clisp.org>
14587
14588         Tests for module 'sigprocmask'.
14589         * modules/sigprocmask-tests: New file.
14590         * tests/test-sigprocmask.c: New file.
14591
14592 2011-07-07  Bruno Haible  <bruno@clisp.org>
14593
14594         float tests: Tweak.
14595         * tests/test-float.c (main): Tweak skip message.
14596
14597 2011-07-07  Eric Blake  <eblake@redhat.com>
14598
14599         getopt: avoid compiler warning during configure
14600         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
14601         assigning string literals to non-const pointer.
14602
14603         getopt-gnu: avoid crash in glibc getopt
14604         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
14605         * tests/test-getopt.h (test_getopt): Enhance test.
14606         * tests/test-getopt_long.h (test_getopt_long): Likewise.
14607         * doc/posix-functions/getopt.texi (getopt): Document it.
14608         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
14609         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
14610         Likewise.
14611
14612 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
14613
14614         getopt: handle W; without long options in getopt [BZ #12922]
14615         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
14616         but no long options are defined, just return 'W'.
14617
14618 2011-07-07  Bruno Haible  <bruno@clisp.org>
14619
14620         Avoid literal tabs.
14621         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
14622         variable containing a tab instead of a literal tab.
14623         Reported by Jim Meyering.
14624
14625 2011-07-07  Bruno Haible  <bruno@clisp.org>
14626
14627         Comments.
14628         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
14629
14630 2011-07-06  Bruno Haible  <bruno@clisp.org>
14631
14632         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
14633         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
14634         <winsock2.h>.
14635         (rpl_fd_isset, FD_ISSET): New definitions, copied from
14636         lib/sys_socket.in.h.
14637         (close, gethostname): Hide declarations from <winsock2.h>.
14638         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
14639         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
14640         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
14641         (select): Don't override if gnulib's <sys/select.h> was already
14642         included.
14643         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
14644         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
14645         setsockopt, shutdown, select): Tweak indentation.
14646
14647 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
14648
14649         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
14650         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
14651         in an application that does not use the sys_select module.
14652
14653 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
14654
14655         poll: do not return 0 on timeout=-1
14656         * lib/poll.c: Loop with yield if no events occured
14657
14658 2011-07-06  Eric Blake  <eblake@redhat.com>
14659
14660         pthread_sigmask: always replace when not using pthread
14661         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
14662         replacement when using some threading other than pthread.  Fix
14663         logic bug.
14664
14665 2011-07-06  Bruno Haible  <bruno@clisp.org>
14666
14667         Comments.
14668         * m4/printf.m4: Update comments about mingw.
14669
14670 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
14671
14672         sys_select: define sigset_t more portably
14673         * lib/sys_select.in.h: Always include <sys/types.h>, since
14674         we now need sigset_t and mingw defines it there.
14675         Include <signal.h> before split inclusion guard, to avoid
14676         mishaps on Solaris, whose <signal.h> eventually includes us.
14677         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
14678         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
14679         which come from ...
14680         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
14681         gl_CHECK_TYPE_SIGSET_T.
14682         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
14683         does the real work.
14684         * modules/sys_select (Depends-on): Add 'signal'.
14685
14686         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
14687         Suggested by Bruno Haible.
14688
14689         pselect: Use pthread_sigmask, not sigprocmask.
14690         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
14691         multithreaded apps better than sigprocmask does.
14692         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
14693         sigprocmask directly.
14694
14695 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
14696
14697         * lib/pselect.c (pselect): Use plain name, without "rpl_".
14698         Don't #undef,  since we don't need any underlying pselect.
14699         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
14700         (Depends-on): Add select.
14701         (Link): Add $(LIBSOCKET).
14702         These changes suggested by Bruno Haible.
14703
14704         pselect: document better
14705         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
14706         * doc/posix-functions/pselect.texi (pselect): Document new module.
14707
14708         pthread_sigmask: new module
14709         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
14710         * doc/posix-functions/pthread_sigmask.texi: Document new module.
14711         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
14712         This is done only as a macro; I don't know how well that'll
14713         work for C++.  Move <sys/types.h> include before the include_next,
14714         to avoid mishap on Solaris.
14715         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
14716         * modules/signal (Makefile.am): Substitute the check's results.
14717         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
14718
14719         test-pselect: new module
14720         * modules/pselect-tests, tests/test-pselect.c: New files.
14721         * tests/test-select.c, tests/test-sys_select-c++.cc:
14722         If TEST_PSELECT is defined, test pselect instead of testing select.
14723
14724         * tests/test-sys_select.c (sigset_t): Test for it, too.
14725         Suggested by Bruno Haible.
14726
14727 2011-07-05  Eric Blake  <eblake@redhat.com>
14728
14729         snprintf: guarantee %1$d, for libintl
14730         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
14731         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
14732         * doc/posix-functions/snprintf.texi (snprintf): Update.
14733         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
14734         * tests/test-snprintf.c (main): Enhance test.
14735         * tests/test-vsnprintf.c (main): Likewise.
14736
14737 2011-07-05  Jim Meyering  <meyering@redhat.com>
14738
14739         maint: exempt stdio-read.c and stdio-write.c from the cppi check
14740         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
14741         per Bruno's request, to accommodate this idiom (no space after "#")
14742         even when the function is inside an #if block:
14743         char *
14744         gets (char *s)
14745         #undef gets
14746         {
14747           ...
14748         }
14749
14750 2011-07-04  Jim Meyering  <meyering@redhat.com>
14751
14752         maint: indent with spaces, not TABs, and add a rule to check this
14753         * tests/test-userspec.c: Indent with spaces, not TABs.
14754         * tests/test-argp.c: Likewise.
14755         * tests/test-c-stack2.sh: Likewise.
14756         * tests/test-parse-duration.sh: Likewise
14757         * m4/strtod.m4: Likewise.
14758         * m4/alloca.m4: Likewise.
14759         * m4/pselect.m4: Likewise.
14760         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
14761
14762 2011-07-03  Jim Meyering  <meyering@redhat.com>
14763
14764         maint.mk: correct omissions in prohibit_argmatch_without_use check
14765         This rule would mistakenly report that argmatch.h is included without
14766         use even when both the argmatch and invalid_arg macro were used.
14767         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
14768         of argmatch and invalid_arg.
14769
14770 2011-07-03  Bruno Haible  <bruno@clisp.org>
14771
14772         Comments about EINTR.
14773         * lib/safe-read.h: Explain the purpose of this module.
14774         * lib/safe-write.h: Likewise.
14775         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
14776         module.
14777         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
14778         module.
14779         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
14780
14781 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
14782
14783         xnanosleep: Rewrite to use new dtotimespec module.
14784         It has the conversion code that used to be in xnanosleep.
14785         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
14786         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
14787         (TIME_T_MAX): Remove.
14788         (xnanosleep): Rewrite in terms of dtotimespec.
14789         * modules/xnanosleep (Depends-on): Add dtotimespec.
14790         Remove intprops, stdbool.
14791
14792         timespec-add, timespec-sub: new modules
14793         * lib/timespec.h (timespec_add, timespec_sub): New decls.
14794         * lib/timespec-add.c, lib/timespec-sub.c:
14795         * modules/timespec-add, modules/timespec-sub: New files.
14796
14797         dtotimespec: new module
14798         * lib/timespec.h (dtotimespec): New decl.
14799         * lib/dtotimespec.c, modules/dtotimespec: New files.
14800
14801         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
14802
14803         pselect: new module
14804         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
14805         (pselect): New decls.
14806         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
14807         since the standard pselect decl uses 'restrict'.
14808         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
14809         HAVE_PSELECT, REPLACE_PSELECT.
14810         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
14811         HAVE_PSELECT, REPLACE_PSELECT.
14812         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
14813
14814         sys_select: don't depend on sys_socket
14815         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
14816         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
14817         This fix works on GNU and GNU-like platforms, but has not been tested
14818         on native Windows.
14819         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
14820         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
14821         gl_HEADER_SYS_SOCKET.
14822         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
14823         gl_PREREQ_SYS_H_WINSOCK2.
14824
14825 2011-06-29  Eric Blake  <eblake@redhat.com>
14826
14827         pipe2: fix C89 compile problem
14828         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
14829         Reported by Bruno Haible.
14830
14831         pipe, pipe2: don't corrupt fd on error
14832         * lib/pipe.c (pipe): Leave fd unchanged on error.
14833         * lib/pipe2.c (pipe2): Likewise.
14834         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
14835         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
14836
14837 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
14838
14839         mmap-anon: do not use regular expressions inadvertently
14840         * m4/mmap-anon.m4: Remove trailing period from strings sought
14841         in the output.
14842
14843 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
14844
14845         nanosleep: fix integer overflow problem
14846         * lib/nanosleep.c (my_usleep): Don't assume signed integer
14847         arithmetic wraps around on overflow.
14848
14849         nanosleep: simplify carrying
14850         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
14851         first call to the underyling nanosleep, not for the last one.
14852         This doesn't fix any bugs, but it simplifies the computation of
14853         the remaining delay.  Found while auditing integer overflow issues.
14854
14855         dup2: remove test for existence of fcntl
14856         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
14857         "#if HAVE_FCNTL", in the configure-time test program.
14858         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
14859         and therefore speeds up "configure" a bit.  Found while
14860         adding the dup2 module to Emacs.
14861
14862 2011-06-24  Eric Blake  <eblake@redhat.com>
14863
14864         maint.mk: enhance useless header checks
14865         * top/maint.mk (_sc_header_without_use): Check both include
14866         styles.
14867         (sc_prohibit_assert_without_use)
14868         (sc_prohibit_close_stream_without_use)
14869         (sc_prohibit_getopt_without_use)
14870         (sc_prohibit_quotearg_without_use)
14871         (sc_prohibit_quote_without_use)
14872         (sc_prohibit_long_options_without_use)
14873         (sc_prohibit_inttostr_without_use)
14874         (sc_prohibit_ignore_value_without_use)
14875         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
14876         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
14877         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
14878         (sc_prohibit_hash_pjw_without_use)
14879         (sc_prohibit_safe_read_without_use)
14880         (sc_prohibit_argmatch_without_use)
14881         (sc_prohibit_canonicalize_without_use)
14882         (sc_prohibit_root_dev_ino_without_use)
14883         (sc_prohibit_openat_without_use)
14884         (sc_prohibit_c_ctype_without_use)
14885         (sc_prohibit_signal_without_use)
14886         (sc_prohibit_stdio--_without_use)
14887         (sc_prohibit_stdio-safer_without_use)
14888         (sc_prohibit_strings_without_use)
14889         (sc_prohibit_intprops_without_use)
14890         (sc_prohibit_stddef_without_use)
14891         (sc_prohibit_xfreopen_without_use): Update clients.
14892
14893 2011-06-24  Jim Meyering  <meyering@redhat.com>
14894
14895         syntax-check: keep one maint.mk rule in sync with its header
14896         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
14897         of the bug Eric has just fixed, with today's commit 25e4c2ec.
14898         I prefer to avoid temporary files here, so use <(...), but that
14899         is not supported by /bin/sh, so...
14900         (SHELL): Define to /bin/bash.
14901
14902 2011-06-24  Eric Blake  <eblake@redhat.com>
14903
14904         maint.mk: update sc_prohibit_intprops_without_use
14905         * top/maint.mk (_intprops_names): Match recent changes.
14906
14907 2011-06-24  Bruno Haible  <bruno@clisp.org>
14908
14909         strerror-override: No-op tweak.
14910         * lib/strerror-override.h (strerror_override): Reorder conditions,
14911         for consistency with lib/strerror-override.c.
14912
14913 2011-06-23  Eric Blake  <eblake@redhat.com>
14914
14915         maint.mk: test further PATH_MAX issues
14916         * top/maint.mk (sc_prohibit_path_max_array): Rename...
14917         (sc_prohibit_path_max_allocation): ...and also test alloca.
14918         Suggested by Jim Meyering.
14919
14920 2011-06-22  Eric Blake  <eblake@redhat.com>
14921
14922         maint.mk: add syntax-check to avoid char[PATH_MAX]
14923         * top/maint.mk (sc_prohibit_path_max_array): New rule.
14924
14925         stat: be robust to PATH_MAX definition
14926         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
14927         * modules/stat (Depends-on): Add verify.
14928
14929         link: work around IRIX bug
14930         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
14931         * lib/link.c (rpl_link): Work around it.
14932         * tests/test-link.h (test_link): Enhance test.
14933         * doc/posix-functions/link.texi (link): Document the bug.
14934
14935         getopt: silence clang warning
14936         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
14937         dereference.
14938         Reported by Gustavo Martin Domato.
14939
14940 2011-06-22  Jim Meyering  <meyering@redhat.com>
14941
14942         bootstrap: do not insert a blank line into each .gitignore file
14943         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
14944
14945 2011-06-21  Eric Blake  <eblake@redhat.com>
14946
14947         perror: test for output mismatch
14948         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
14949         perror on IRIX.
14950
14951         strerror_r: fix OpenBSD behavior on out-of-range
14952         * lib/strerror_r.c (strerror_r): Always use maximal string.
14953         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
14954
14955         strerror_r: fix OpenBSD behavior on 0
14956         * lib/strerror-override.c (strerror_override): Also override 0
14957         when needed.
14958         * lib/strerror-override.h (strerror_override): Likewise.
14959         * lib/strerror.c (strerror): Simplify, now that 0 override is done
14960         earlier.
14961         * lib/strerror_r.c (strerror_r): Likewise.
14962         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
14963         behavior...
14964         (gl_FUNC_STRERROR_0): ...into new macro.
14965         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
14966         is overridden.
14967         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
14968         * modules/strerror-override (Files): Add strerror.m4.
14969         (configure.ac): Also provide override for 0 when needed.
14970         * doc/posix-functions/strerror.texi (strerror): Document this.
14971         * doc/posix-functions/perror.texi (perror): Likewise.
14972
14973         perror: adjust array size
14974         * modules/perror (Depends-on): Add strerror-override.
14975         * lib/perror.c (perror): Use it to avoid magic number.
14976
14977         strerror-override: reduce size
14978         * lib/strerror-override.c (strerror_override): Use fewer lines.
14979
14980 2011-06-20  Bruno Haible  <bruno@clisp.org>
14981
14982         pathmax: Ensure correct value for PATH_MAX on HP-UX.
14983         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
14984
14985 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
14986
14987         alloca: port to compilers that can optimize like GCC 4.6.0
14988         * lib/alloca.c (find_stack_direction): New signature, taken from
14989         Autoconf git.  This works with GCC 4.6.0.  This code should never
14990         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
14991         be used with other compilers that optimize as well as GCC 4.6.0 does.
14992         (alloca): Adjust to new signature.
14993         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
14994         New macro, which patches Autoconf in a similar way.
14995
14996         c-stack: stop worrying about stack direction
14997         * lib/c-stack.c (find_stack_direction): Remove.
14998         (segv_handler): Don't worry about stack direction growth, as it's
14999         too much of a pain to configure this correctly, given how compilers
15000         are optimizing-away our stack-growth detection code.  Instead, assume
15001         that any access to just before or just after the stack is OK.
15002         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
15003         Don't require AC_FUNC_ALLOCA; no longer needed.
15004
15005 2011-06-20  Eric Blake  <eblake@redhat.com>
15006
15007         test-stat: don't allocate PATH_MAX bytes
15008         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
15009         PATH_MAX-sized buffer.
15010         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
15011         * modules/stat-tests (Depends-on): Likewise.
15012         * tests/test-fstatat.c (includes): Drop pathmax.h.
15013         * tests/test-stat.c (includes): Likewise.
15014         Reported by Bruno Haible.
15015
15016 2011-06-20  Bruno Haible  <bruno@clisp.org>
15017
15018         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
15019         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
15020         * lib/float.c: New file.
15021         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
15022         REPLACE_FLOAT_LDBL.
15023         * modules/float (Files): Add lib/float.c.
15024         (configure.ac): Invoke AC_LIBOBJ.
15025         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
15026
15027 2011-06-20  Bruno Haible  <bruno@clisp.org>
15028
15029         Tests for module 'float'.
15030         * modules/float-tests: New file.
15031         * tests/test-float.c: New file.
15032
15033 2011-06-19  Bruno Haible  <bruno@clisp.org>
15034
15035         isinf: Coding style.
15036         * lib/isinf.c: Use GNU coding style.
15037
15038 2011-06-19  Bruno Haible  <bruno@clisp.org>
15039
15040         linkat test: Avoid test failure on AIX 7.1.
15041         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
15042         * tests/test-link.h (test_link): Likewise.
15043
15044 2011-06-19  Bruno Haible  <bruno@clisp.org>
15045
15046         pread test: Avoid test failure on OpenBSD 4.9.
15047         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
15048
15049 2011-06-19  Bruno Haible  <bruno@clisp.org>
15050
15051         sprintf-posix: Fix test failure on AIX 7.1.
15052         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
15053         * doc/posix-functions/dprintf.texi: Mention limited precision problem
15054         on AIX.
15055         * doc/posix-functions/fprintf.texi: Likewise.
15056         * doc/posix-functions/printf.texi: Likewise.
15057         * doc/posix-functions/snprintf.texi: Likewise.
15058         * doc/posix-functions/sprintf.texi: Likewise.
15059         * doc/posix-functions/vdprintf.texi: Likewise.
15060         * doc/posix-functions/vfprintf.texi: Likewise.
15061         * doc/posix-functions/vprintf.texi: Likewise.
15062         * doc/posix-functions/vsnprintf.texi: Likewise.
15063         * doc/posix-functions/vsprintf.texi: Likewise.
15064
15065 2011-06-19  Bruno Haible  <bruno@clisp.org>
15066
15067         roundl-ieee: Fix test failure on AIX 7.1.
15068         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
15069         * doc/posix-functions/roundl.texi: Mention problem with negative
15070         arguments.
15071
15072 2011-06-19  Bruno Haible  <bruno@clisp.org>
15073
15074         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
15075         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
15076         * doc/posix-functions/round.texi: Mention problem with negative
15077         arguments.
15078         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
15079
15080 2011-06-19  Bruno Haible  <bruno@clisp.org>
15081
15082         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
15083         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
15084         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
15085         * doc/posix-functions/roundf.texi: Mention problem with negative
15086         arguments.
15087         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
15088
15089 2011-06-19  Bruno Haible  <bruno@clisp.org>
15090
15091         ceilf-ieee: Work around bug on MacOS X 10.5.
15092         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
15093
15094         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
15095         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
15096         IEEE compliant, avoid compiler optimizations.
15097         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
15098         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
15099         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
15100         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
15101         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
15102         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
15103         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
15104         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
15105         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
15106         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
15107
15108 2011-06-19  Bruno Haible  <bruno@clisp.org>
15109
15110         ceilf-ieee: Work around bug on AIX 7.1.
15111         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
15112         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
15113
15114 2011-06-19  Bruno Haible  <bruno@clisp.org>
15115
15116         ceil-ieee: Work around bug on AIX 7.1.
15117         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
15118         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
15119
15120 2011-06-18  Bruno Haible  <bruno@clisp.org>
15121
15122         fsync test: Avoid test failure on MacOS X and AIX.
15123         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
15124         EINVAL.
15125
15126 2011-06-18  Bruno Haible  <bruno@clisp.org>
15127
15128         openat, fdopendir tests: Fix link errors.
15129         * modules/openat-tests (Depends-on): Add progname.
15130         * modules/fdopendir-tests (Depends-on): Likewise.
15131         * tests/test-fchownat.c: Include progname.h.
15132         (main): Call set_program_name.
15133         * tests/test-fstatat.c: Include progname.h.
15134         (main): Call set_program_name.
15135         * tests/test-mkdirat.c: Include progname.h.
15136         (main): Call set_program_name.
15137         * tests/test-openat.c: Include progname.h.
15138         (main): Call set_program_name.
15139         * tests/test-unlinkat.c: Include progname.h.
15140         (main): Call set_program_name.
15141         * tests/test-fdopendir.c: Include progname.h.
15142         (main): Call set_program_name.
15143
15144 2011-06-18  Bruno Haible  <bruno@clisp.org>
15145
15146         Doc update.
15147         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
15148         HP-UX.
15149         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
15150
15151 2011-06-18  Bruno Haible  <bruno@clisp.org>
15152
15153         getcwd tests: Avoid compilation error on HP-UX 11.31.
15154         * modules/getcwd-tests (Depends-on): Add pathmax.
15155         * tests/test-getcwd.c: Include pathmax.h.
15156
15157 2011-06-18  Bruno Haible  <bruno@clisp.org>
15158
15159         isfinite, isinf: Fix link error on AIX 6 and 7.
15160         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
15161         needed, also test the macro with a 'float' argument.
15162         * m4/isinf.m4 (gl_ISINF): Likewise.
15163
15164 2011-06-18  Bruno Haible  <bruno@clisp.org>
15165
15166         getloadavg: Don't clobber LIBS. Regression from previous commit.
15167         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
15168         AC_CHECK_LIB from here...
15169         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
15170         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
15171         gl_func_getloadavg_done.
15172         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15173
15174 2011-06-18  Bruno Haible  <bruno@clisp.org>
15175
15176         clean-temp: Improve documentation.
15177         * lib/clean-temp.h: Explain better how to use this module.
15178         Reported by John Darrington <john@darrington.wattle.id.au>.
15179
15180 2011-06-17  Bruno Haible  <bruno@clisp.org>
15181
15182         pread, pwrite: Avoid cc warning on AIX.
15183         * lib/unistd.in.h (pread): Undefine before defining as a macro.
15184         (pwrite): Likewise.
15185
15186 2011-06-17  Bruno Haible  <bruno@clisp.org>
15187
15188         spawn-pipe tests: Fix link error.
15189         * tests/test-spawn-pipe-child.c: Undefine fprintf.
15190         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15191
15192 2011-06-17  Bruno Haible  <bruno@clisp.org>
15193
15194         Tests: Remove unnecessary dependency.
15195         * modules/canonicalize-tests (Depends-on): Remove progname.
15196         * modules/chown-tests (Depends-on): Likewise.
15197         * modules/dirname-tests (Depends-on): Likewise.
15198         * modules/fdopendir-tests (Depends-on): Likewise.
15199         * modules/fdutimensat-tests (Depends-on): Likewise.
15200         * modules/hash-tests (Depends-on): Likewise.
15201         * modules/lchown-tests (Depends-on): Likewise.
15202         * modules/linkat-tests (Depends-on): Likewise.
15203         * modules/renameat-tests (Depends-on): Likewise.
15204         * modules/spawn-pipe-tests (Depends-on): Likewise.
15205         * modules/utimensat-tests (Depends-on): Likewise.
15206
15207 2011-06-17  Bruno Haible  <bruno@clisp.org>
15208
15209         spawn-pipe tests: Fix link error.
15210         * tests/test-spawn-pipe-child.c: Undefine fflush.
15211
15212 2011-06-17  Bruno Haible  <bruno@clisp.org>
15213
15214         Fix tests link errors.
15215         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
15216         * modules/chown-tests (Makefile.am): Don't link test-chown with
15217         LIBINTL.
15218         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
15219         LIBINTL.
15220         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
15221         LIBINTL.
15222         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
15223         LIBINTL.
15224
15225 2011-06-16  Bruno Haible  <bruno@clisp.org>
15226
15227         crypto/gc-sha1: Fix recent regression.
15228         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
15229         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
15230
15231         crypto/gc-md5: Fix recent regression.
15232         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
15233
15234         crypto/gc-md4: Fix recent regression.
15235         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
15236         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
15237
15238         crypto/gc-arctwo: Fix recent regression.
15239         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
15240         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
15241
15242         crypto/gc-rijndael: Fix recent regression.
15243         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
15244         (configure.ac): Invoke AC_LIBOBJ here.
15245         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
15246         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15247
15248         crypto/gc-hmac-sha1: Fix recent regression.
15249         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
15250         (configure.ac): Invoke AC_LIBOBJ here.
15251         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
15252         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15253
15254         crypto/gc-hmac-md5: Fix recent regression.
15255         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
15256         (configure.ac): Invoke AC_LIBOBJ here.
15257         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
15258         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15259
15260         crypto/gc-des: Fix recent regression.
15261         * modules/crypto/gc-des (Files): Remove m4/des.m4.
15262         (configure.ac): Invoke AC_LIBOBJ here.
15263         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
15264         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15265
15266         crypto/gc-arcfour: Fix recent regression.
15267         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
15268         (configure.ac): Invoke AC_LIBOBJ here.
15269         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
15270         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15271
15272 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
15273
15274         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
15275         After the 2011-05-21 change, this macro requires
15276         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
15277         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
15278
15279 2011-06-16  Bruno Haible  <bruno@clisp.org>
15280
15281         fprintftime: Move AC_LIBOBJ invocations to module description.
15282         * m4/fprintftime.m4: Remove file.
15283         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
15284         (configure.ac): Remove gl_FPRINTFTIME call.
15285         (Makefile.am): Augment lib_SOURCES.
15286         Reported by Jim Meyering.
15287
15288 2011-06-16  Bruno Haible  <bruno@clisp.org>
15289
15290         tmpfile-safer: Finish 2011-05-23 commit.
15291         * m4/stdio-safer.m4: Really remove file.
15292         Reported by Jim Meyering.
15293
15294 2011-06-16  Bruno Haible  <bruno@clisp.org>
15295
15296         syntax-check: Fix typo.
15297         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
15298         printf-posix.m4.
15299         Reported by Jim Meyering.
15300
15301 2011-06-13  Jim Meyering  <meyering@redhat.com>
15302
15303         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
15304         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
15305
15306 2011-05-23  Bruno Haible  <bruno@clisp.org>
15307
15308         yesno: Move AC_LIBOBJ invocations to module description.
15309         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
15310         * modules/yesno (Makefile.am): Augment lib_SOURCES.
15311
15312 2011-05-23  Bruno Haible  <bruno@clisp.org>
15313
15314         xstrtol: Move AC_LIBOBJ invocations to module description.
15315         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
15316         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
15317
15318 2011-05-23  Bruno Haible  <bruno@clisp.org>
15319
15320         xstrtold: Move AC_LIBOBJ invocations to module description.
15321         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
15322         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
15323
15324 2011-05-23  Bruno Haible  <bruno@clisp.org>
15325
15326         xstrtod: Move AC_LIBOBJ invocations to module description.
15327         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
15328         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
15329
15330 2011-05-23  Bruno Haible  <bruno@clisp.org>
15331
15332         xnanosleep: Move AC_LIBOBJ invocations to module description.
15333         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
15334         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
15335
15336 2011-05-23  Bruno Haible  <bruno@clisp.org>
15337
15338         xgetcwd: Move AC_LIBOBJ invocations to module description.
15339         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
15340         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
15341
15342 2011-05-23  Bruno Haible  <bruno@clisp.org>
15343
15344         xalloc: Move AC_LIBOBJ invocations to module description.
15345         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
15346         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
15347
15348 2011-05-23  Bruno Haible  <bruno@clisp.org>
15349
15350         write-any-file: Move AC_LIBOBJ invocations to module description.
15351         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
15352         invocation.
15353         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
15354
15355 2011-05-23  Bruno Haible  <bruno@clisp.org>
15356
15357         utimens: Move AC_LIBOBJ invocations to module description.
15358         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
15359         * modules/utimens (Makefile.am): Augment lib_SOURCES.
15360
15361 2011-05-23  Bruno Haible  <bruno@clisp.org>
15362
15363         utimecmp: Move AC_LIBOBJ invocations to module description.
15364         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
15365         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
15366
15367 2011-05-23  Bruno Haible  <bruno@clisp.org>
15368
15369         userspec: Move AC_LIBOBJ invocations to module description.
15370         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
15371         * modules/userspec (Makefile.am): Augment lib_SOURCES.
15372
15373 2011-05-23  Bruno Haible  <bruno@clisp.org>
15374
15375         unlinkdir: Move AC_LIBOBJ invocations to module description.
15376         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
15377         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
15378
15379 2011-05-23  Bruno Haible  <bruno@clisp.org>
15380
15381         unistd-safer: Move AC_LIBOBJ invocations to module description.
15382         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
15383         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
15384
15385 2011-05-23  Bruno Haible  <bruno@clisp.org>
15386
15387         tempname: Move AC_LIBOBJ invocations to module description.
15388         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
15389         * modules/tempname (Makefile.am): Augment lib_SOURCES.
15390
15391 2011-05-23  Bruno Haible  <bruno@clisp.org>
15392
15393         strftime: Move AC_LIBOBJ invocations to module description.
15394         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
15395         * modules/strftime (Makefile.am): Augment lib_SOURCES.
15396
15397 2011-05-23  Bruno Haible  <bruno@clisp.org>
15398
15399         stdlib-safer: Move AC_LIBOBJ invocations to module description.
15400         * m4/stdlib-safer.m4: Remove file.
15401         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
15402         (configure.ac): Remove gl_STDLIB_SAFER call.
15403         (Makefile.am): Augment lib_SOURCES.
15404
15405 2011-05-23  Bruno Haible  <bruno@clisp.org>
15406
15407         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
15408         * m4/stdio-safer.m4: Remove file.
15409         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
15410         (configure.ac): Remove gl_TMPFILE_SAFER call.
15411         (Makefile.am): Augment lib_SOURCES.
15412
15413 2011-05-23  Bruno Haible  <bruno@clisp.org>
15414
15415         popen-safer: Move AC_LIBOBJ invocations to module description.
15416         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
15417         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
15418         (configure.ac): Remove gl_POPEN_SAFER call.
15419         (Makefile.am): Augment lib_SOURCES.
15420
15421 2011-05-23  Bruno Haible  <bruno@clisp.org>
15422
15423         freopen-safer: Move AC_LIBOBJ invocations to module description.
15424         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
15425         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
15426         (configure.ac): Remove gl_FREOPEN_SAFER call.
15427         (Makefile.am): Augment lib_SOURCES.
15428
15429 2011-05-23  Bruno Haible  <bruno@clisp.org>
15430
15431         fopen-safer: Move AC_LIBOBJ invocations to module description.
15432         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
15433         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
15434         (configure.ac): Remove gl_FOPEN_SAFER call.
15435         (Makefile.am): Augment lib_SOURCES.
15436
15437 2011-05-23  Bruno Haible  <bruno@clisp.org>
15438
15439         crypto/sha512: Move AC_LIBOBJ invocations to module description.
15440         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
15441         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
15442
15443 2011-05-23  Bruno Haible  <bruno@clisp.org>
15444
15445         crypto/sha256: Move AC_LIBOBJ invocations to module description.
15446         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
15447         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
15448
15449 2011-05-23  Bruno Haible  <bruno@clisp.org>
15450
15451         crypto/sha1: Move AC_LIBOBJ invocations to module description.
15452         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
15453         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
15454
15455 2011-05-23  Bruno Haible  <bruno@clisp.org>
15456
15457         settime: Move AC_LIBOBJ invocations to module description.
15458         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
15459         * modules/settime (Makefile.am): Augment lib_SOURCES.
15460
15461 2011-05-23  Bruno Haible  <bruno@clisp.org>
15462
15463         savedir: Move AC_LIBOBJ invocations to module description.
15464         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
15465         * modules/savedir (Makefile.am): Augment lib_SOURCES.
15466
15467 2011-05-23  Bruno Haible  <bruno@clisp.org>
15468
15469         save-cwd: Move AC_LIBOBJ invocations to module description.
15470         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
15471         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
15472
15473 2011-05-23  Bruno Haible  <bruno@clisp.org>
15474
15475         same: Move AC_LIBOBJ invocations to module description.
15476         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
15477         * modules/same (Makefile.am): Augment lib_SOURCES.
15478
15479 2011-05-23  Bruno Haible  <bruno@clisp.org>
15480
15481         safe-write: Move AC_LIBOBJ invocations to module description.
15482         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
15483         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
15484         instead of gl_SAFE_WRITE.
15485         (Makefile.am): Augment lib_SOURCES.
15486
15487 2011-05-23  Bruno Haible  <bruno@clisp.org>
15488
15489         safe-read: Move AC_LIBOBJ invocations to module description.
15490         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
15491         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
15492         of gl_SAFE_READ.
15493         (Makefile.am): Augment lib_SOURCES.
15494
15495 2011-05-23  Bruno Haible  <bruno@clisp.org>
15496
15497         safe-alloc: Move AC_LIBOBJ invocations to module description.
15498         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
15499         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
15500
15501 2011-05-23  Bruno Haible  <bruno@clisp.org>
15502
15503         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
15504         * m4/rijndael.m4: Remove file.
15505         * modules/crypto/rijndael (Files): Remove it.
15506         (configure.ac): Remove gl_RIJNDAEL call.
15507         (Makefile.am): Augment lib_SOURCES.
15508
15509 2011-05-23  Bruno Haible  <bruno@clisp.org>
15510
15511         readtokens: Move AC_LIBOBJ invocations to module description.
15512         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
15513         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
15514
15515 2011-05-23  Bruno Haible  <bruno@clisp.org>
15516
15517         read-file: Move AC_LIBOBJ invocations to module description.
15518         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
15519         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
15520         of gl_FUNC_READ_FILE.
15521         (Makefile.am): Augment lib_SOURCES.
15522
15523 2011-05-23  Bruno Haible  <bruno@clisp.org>
15524
15525         quotearg: Move AC_LIBOBJ invocations to module description.
15526         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
15527         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
15528
15529 2011-05-23  Bruno Haible  <bruno@clisp.org>
15530
15531         quote: Move AC_LIBOBJ invocations to module description.
15532         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
15533         * modules/quote (Makefile.am): Augment lib_SOURCES.
15534
15535 2011-05-23  Bruno Haible  <bruno@clisp.org>
15536
15537         posixver: Move AC_LIBOBJ invocations to module description.
15538         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
15539         * modules/posixver (Makefile.am): Augment lib_SOURCES.
15540
15541 2011-05-23  Bruno Haible  <bruno@clisp.org>
15542
15543         posixtm: Move AC_LIBOBJ invocations to module description.
15544         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
15545         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
15546
15547 2011-05-23  Bruno Haible  <bruno@clisp.org>
15548
15549         physmem: Move AC_LIBOBJ invocations to module description.
15550         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
15551         * modules/physmem (Makefile.am): Augment lib_SOURCES.
15552
15553 2011-05-23  Bruno Haible  <bruno@clisp.org>
15554
15555         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
15556         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
15557         invocation.
15558         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
15559
15560 2011-05-23  Bruno Haible  <bruno@clisp.org>
15561
15562         mpsort: Move AC_LIBOBJ invocations to module description.
15563         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
15564         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
15565
15566 2011-05-23  Bruno Haible  <bruno@clisp.org>
15567
15568         modechange: Move AC_LIBOBJ invocations to module description.
15569         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
15570         * modules/modechange (Makefile.am): Augment lib_SOURCES.
15571
15572 2011-05-23  Bruno Haible  <bruno@clisp.org>
15573
15574         mkdir-p: Move AC_LIBOBJ invocations to module description.
15575         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
15576         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
15577
15578 2011-05-23  Bruno Haible  <bruno@clisp.org>
15579
15580         mkancesdirs: Move AC_LIBOBJ invocations to module description.
15581         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
15582         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
15583
15584 2011-05-23  Bruno Haible  <bruno@clisp.org>
15585
15586         mgetgroups: Move AC_LIBOBJ invocations to module description.
15587         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
15588         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
15589
15590 2011-05-23  Bruno Haible  <bruno@clisp.org>
15591
15592         memxor: Move AC_LIBOBJ invocations to module description.
15593         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
15594         * modules/memxor (Makefile.am): Augment lib_SOURCES.
15595
15596 2011-05-23  Bruno Haible  <bruno@clisp.org>
15597
15598         memcoll: Move AC_LIBOBJ invocations to module description.
15599         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
15600         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
15601
15602 2011-05-23  Bruno Haible  <bruno@clisp.org>
15603
15604         memcasecmp: Move AC_LIBOBJ invocations to module description.
15605         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
15606         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
15607
15608 2011-05-23  Bruno Haible  <bruno@clisp.org>
15609
15610         crypto/md5: Move AC_LIBOBJ invocations to module description.
15611         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
15612         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
15613
15614 2011-05-23  Bruno Haible  <bruno@clisp.org>
15615
15616         crypto/md4: Move AC_LIBOBJ invocations to module description.
15617         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
15618         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
15619
15620 2011-05-23  Bruno Haible  <bruno@clisp.org>
15621
15622         crypto/md2: Move AC_LIBOBJ invocations to module description.
15623         * m4/md2.m4: Remove file.
15624         * modules/crypto/md2 (Files): Remove it.
15625         (configure.ac): Remove gl_MD2 call.
15626         (Makefile.am): Augment lib_SOURCES.
15627
15628 2011-05-23  Bruno Haible  <bruno@clisp.org>
15629
15630         long-options: Move AC_LIBOBJ invocations to module description.
15631         * m4/long-options.m4: Remove file.
15632         * modules/long-options (Files): Remove it.
15633         (configure.ac): Remove gl_LONG_OPTIONS call.
15634         (Makefile.am): Augment lib_SOURCES.
15635
15636 2011-05-23  Bruno Haible  <bruno@clisp.org>
15637
15638         i-ring: Move AC_LIBOBJ invocations to module description.
15639         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
15640         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
15641
15642 2011-05-23  Bruno Haible  <bruno@clisp.org>
15643
15644         idcache: Move AC_LIBOBJ invocations to module description.
15645         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
15646         * modules/idcache (Makefile.am): Augment lib_SOURCES.
15647
15648 2011-05-23  Bruno Haible  <bruno@clisp.org>
15649
15650         human: Move AC_LIBOBJ invocations to module description.
15651         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
15652         * modules/human (Makefile.am): Augment lib_SOURCES.
15653
15654 2011-05-23  Bruno Haible  <bruno@clisp.org>
15655
15656         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
15657         * m4/hmac-sha1.m4: Remove file.
15658         * modules/crypto/hmac-sha1 (Files): Remove it.
15659         (configure.ac): Remove gl_HMAC_SHA1 call.
15660         (Makefile.am): Augment lib_SOURCES.
15661
15662 2011-05-23  Bruno Haible  <bruno@clisp.org>
15663
15664         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
15665         * m4/hmac-md5.m4: Remove file.
15666         * modules/crypto/hmac-md5 (Files): Remove it.
15667         (configure.ac): Remove gl_HMAC_MD5 call.
15668         (Makefile.am): Augment lib_SOURCES.
15669
15670 2011-05-23  Bruno Haible  <bruno@clisp.org>
15671
15672         hash: Move AC_LIBOBJ invocations to module description.
15673         * m4/hash.m4: Remove file.
15674         * modules/hash (Files): Remove it.
15675         (configure.ac): Remove gl_HASH call.
15676         (Makefile.am): Augment lib_SOURCES.
15677
15678 2011-05-23  Bruno Haible  <bruno@clisp.org>
15679
15680         hard-locale: Move AC_LIBOBJ invocations to module description.
15681         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
15682         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
15683
15684 2011-05-23  Bruno Haible  <bruno@clisp.org>
15685
15686         getugroups: Move AC_LIBOBJ invocations to module description.
15687         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
15688         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
15689
15690 2011-05-23  Bruno Haible  <bruno@clisp.org>
15691
15692         gettime: Move AC_LIBOBJ invocations to module description.
15693         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
15694         * modules/gettime (Makefile.am): Augment lib_SOURCES.
15695
15696 2011-05-23  Bruno Haible  <bruno@clisp.org>
15697
15698         getndelim2: Move AC_LIBOBJ invocations to module description.
15699         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
15700         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
15701
15702 2011-05-23  Bruno Haible  <bruno@clisp.org>
15703
15704         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
15705         * m4/gc-pbkdf2-sha1.m4: Remove file.
15706         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
15707         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
15708         (Makefile.am): Augment lib_SOURCES.
15709
15710 2011-05-23  Bruno Haible  <bruno@clisp.org>
15711
15712         fts: Move AC_LIBOBJ invocations to module description.
15713         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
15714         * modules/fts (configure.ac): ... to here.
15715
15716 2011-05-23  Bruno Haible  <bruno@clisp.org>
15717
15718         file-type: Move AC_LIBOBJ invocations to module description.
15719         * m4/file-type.m4: Remove file.
15720         * modules/file-type (Files): Remove it.
15721         (configure.ac): Remove gl_FILE_TYPE call.
15722         (Makefile.am): Augment lib_SOURCES.
15723
15724 2011-05-23  Bruno Haible  <bruno@clisp.org>
15725
15726         filenamecat*: Respect rules for use of AC_LIBOBJ.
15727         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
15728         Remove AC_LIBOBJ invocation.
15729         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
15730         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
15731
15732 2011-05-23  Bruno Haible  <bruno@clisp.org>
15733
15734         filemode: Move AC_LIBOBJ invocations to module description.
15735         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
15736         * modules/filemode (Makefile.am): Augment lib_SOURCES.
15737
15738 2011-05-23  Bruno Haible  <bruno@clisp.org>
15739
15740         openat-safer: Move AC_LIBOBJ invocations to module description.
15741         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
15742         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
15743
15744 2011-05-23  Bruno Haible  <bruno@clisp.org>
15745
15746         fcntl-safer: Move AC_LIBOBJ invocations to module description.
15747         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
15748         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
15749
15750 2011-05-23  Bruno Haible  <bruno@clisp.org>
15751
15752         exclude: Move AC_LIBOBJ invocations to module description.
15753         * m4/exclude.m4: Remove file.
15754         * modules/exclude (Files): Remove it.
15755         (configure.ac): Remove gl_EXCLUDE call.
15756         (Makefile.am): Augment lib_SOURCES.
15757
15758 2011-05-23  Bruno Haible  <bruno@clisp.org>
15759
15760         dirname*: Respect rules for use of AC_LIBOBJ.
15761         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
15762         invocations.
15763         * modules/dirname (Makefile.am): Augment lib_SOURCES.
15764         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
15765
15766 2011-05-23  Bruno Haible  <bruno@clisp.org>
15767
15768         dirent-safer: Move AC_LIBOBJ invocations to module description.
15769         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
15770         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
15771
15772 2011-05-23  Bruno Haible  <bruno@clisp.org>
15773
15774         crypto/des: Move AC_LIBOBJ invocations to module description.
15775         * m4/des.m4: Remove file.
15776         * modules/crypto/des (Files): Remove it.
15777         (configure.ac): Remove gl_DES call.
15778         (Makefile.am): Augment lib_SOURCES.
15779
15780 2011-05-23  Bruno Haible  <bruno@clisp.org>
15781
15782         cycle-check: Move AC_LIBOBJ invocations to module description.
15783         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
15784         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
15785
15786 2011-05-23  Bruno Haible  <bruno@clisp.org>
15787
15788         c-strtold: Move AC_LIBOBJ invocations to module description.
15789         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
15790         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
15791
15792 2011-05-23  Bruno Haible  <bruno@clisp.org>
15793
15794         c-strtod: Move AC_LIBOBJ invocations to module description.
15795         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
15796         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
15797
15798 2011-05-23  Bruno Haible  <bruno@clisp.org>
15799
15800         crc: Move AC_LIBOBJ invocations to module description.
15801         * m4/crc.m4: Remove file.
15802         * modules/crc (Files): Remove it.
15803         (configure.ac): Remove gl_CRC call.
15804         (Makefile.am): Augment lib_SOURCES.
15805
15806 2011-05-23  Bruno Haible  <bruno@clisp.org>
15807
15808         close-stream: Move AC_LIBOBJ invocations to module description.
15809         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
15810         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
15811
15812 2011-05-23  Bruno Haible  <bruno@clisp.org>
15813
15814         closeout: Move AC_LIBOBJ invocations to module description.
15815         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
15816         * modules/closeout (Makefile.am): Augment lib_SOURCES.
15817
15818 2011-05-23  Bruno Haible  <bruno@clisp.org>
15819
15820         closein: Move AC_LIBOBJ invocations to module description.
15821         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
15822         * modules/closein (Makefile.am): Augment lib_SOURCES.
15823
15824 2011-05-23  Bruno Haible  <bruno@clisp.org>
15825
15826         cloexec: Move AC_LIBOBJ invocations to module description.
15827         * m4/cloexec.m4: Remove file.
15828         * modules/cloexec (Files): Remove it.
15829         (configure.ac): Remove gl_CLOEXEC call.
15830         (Makefile.am): Augment lib_SOURCES.
15831
15832 2011-05-23  Bruno Haible  <bruno@clisp.org>
15833
15834         check-version: Move AC_LIBOBJ invocations to module description.
15835         * m4/check-version.m4: Remove file.
15836         * modules/check-version (Files): Remove it.
15837         (configure.ac): Remove gl_CHECK_VERSION call.
15838         (Makefile.am): Augment lib_SOURCES.
15839
15840 2011-05-23  Bruno Haible  <bruno@clisp.org>
15841
15842         chdir-safer: Move AC_LIBOBJ invocations to module description.
15843         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
15844         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
15845
15846 2011-05-23  Bruno Haible  <bruno@clisp.org>
15847
15848         canonicalize: Move AC_LIBOBJ invocations to module description.
15849         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
15850         AC_LIBOBJ invocation.
15851         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
15852
15853 2011-05-23  Bruno Haible  <bruno@clisp.org>
15854
15855         canon-host: Move AC_LIBOBJ invocations to module description.
15856         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
15857         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
15858         instead of gl_CANON_HOST.
15859         (Makefile.am): Augment lib_SOURCES.
15860
15861 2011-05-23  Bruno Haible  <bruno@clisp.org>
15862
15863         backupfile: Move AC_LIBOBJ invocations to module description.
15864         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
15865         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
15866
15867 2011-05-23  Bruno Haible  <bruno@clisp.org>
15868
15869         argmatch: Move AC_LIBOBJ invocations to module description.
15870         * m4/argmatch.m4: Remove file.
15871         * modules/argmatch (Files): Remove it.
15872         (configure.ac): Remove gl_ARGMATCH call.
15873         (Makefile.am): Augment lib_SOURCES.
15874
15875 2011-05-23  Bruno Haible  <bruno@clisp.org>
15876
15877         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
15878         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
15879         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
15880
15881 2011-05-23  Bruno Haible  <bruno@clisp.org>
15882
15883         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
15884         * m4/arcfour.m4: Remove file.
15885         * modules/crypto/arcfour (Files): Remove it.
15886         (configure.ac): Remove gl_ARCFOUR call.
15887         (Makefile.am): Augment lib_SOURCES.
15888
15889 2011-05-22  Bruno Haible  <bruno@clisp.org>
15890
15891         write: Move AC_LIBOBJ invocations to module description.
15892         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
15893         * modules/write (configure.ac): ... to here.
15894
15895 2011-05-22  Bruno Haible  <bruno@clisp.org>
15896
15897         wmemset: Move AC_LIBOBJ invocations to module description.
15898         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
15899         here...
15900         * modules/wmemset (configure.ac): ... to here.
15901
15902 2011-05-22  Bruno Haible  <bruno@clisp.org>
15903
15904         wmemmove: Move AC_LIBOBJ invocations to module description.
15905         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
15906         here...
15907         * modules/wmemmove (configure.ac): ... to here.
15908
15909 2011-05-22  Bruno Haible  <bruno@clisp.org>
15910
15911         wmemcpy: Move AC_LIBOBJ invocations to module description.
15912         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
15913         here...
15914         * modules/wmemcpy (configure.ac): ... to here.
15915
15916 2011-05-22  Bruno Haible  <bruno@clisp.org>
15917
15918         wmemcmp: Move AC_LIBOBJ invocations to module description.
15919         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
15920         here...
15921         * modules/wmemcmp (configure.ac): ... to here.
15922
15923 2011-05-22  Bruno Haible  <bruno@clisp.org>
15924
15925         wmemchr: Move AC_LIBOBJ invocations to module description.
15926         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
15927         here...
15928         * modules/wmemchr (configure.ac): ... to here.
15929
15930 2011-05-22  Bruno Haible  <bruno@clisp.org>
15931
15932         wcswidth: Move AC_LIBOBJ invocations to module description.
15933         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
15934         here...
15935         * modules/wcswidth (configure.ac): ... to here.
15936
15937 2011-05-22  Bruno Haible  <bruno@clisp.org>
15938
15939         wcwidth: Respect rules for use of AC_LIBOBJ.
15940         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
15941         invocation from here...
15942         * modules/wcwidth (configure.ac): ... to here.
15943         (Depends-on): Update conditions.
15944
15945 2011-05-22  Bruno Haible  <bruno@clisp.org>
15946
15947         wctype: Move AC_LIBOBJ invocations to module description.
15948         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
15949         invocation from here...
15950         * modules/wctype (configure.ac): ... to here.
15951         (Depends-on): Update conditions.
15952
15953 2011-05-22  Bruno Haible  <bruno@clisp.org>
15954
15955         wctrans: Move AC_LIBOBJ invocations to module description.
15956         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
15957         invocation from here...
15958         * modules/wctrans (configure.ac): ... to here.
15959
15960 2011-05-22  Bruno Haible  <bruno@clisp.org>
15961
15962         wctomb: Move AC_LIBOBJ invocations to module description.
15963         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
15964         invocations from here...
15965         * modules/wctomb (configure.ac): ... to here.
15966
15967 2011-05-22  Bruno Haible  <bruno@clisp.org>
15968
15969         wctob: Move AC_LIBOBJ invocations to module description.
15970         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
15971         gl_PREREQ_WCTOB invocations from here...
15972         * modules/wctob (configure.ac): ... to here.
15973         (Depends-on): Update conditions.
15974
15975 2011-05-22  Bruno Haible  <bruno@clisp.org>
15976
15977         wcsxfrm: Move AC_LIBOBJ invocations to module description.
15978         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
15979         here...
15980         * modules/wcsxfrm (configure.ac): ... to here.
15981
15982 2011-05-22  Bruno Haible  <bruno@clisp.org>
15983
15984         wcstok: Move AC_LIBOBJ invocations to module description.
15985         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
15986         * modules/wcstok (configure.ac): ... to here.
15987
15988 2011-05-22  Bruno Haible  <bruno@clisp.org>
15989
15990         wcsstr: Move AC_LIBOBJ invocations to module description.
15991         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
15992         * modules/wcsstr (configure.ac): ... to here.
15993
15994 2011-05-22  Bruno Haible  <bruno@clisp.org>
15995
15996         wcsspn: Move AC_LIBOBJ invocations to module description.
15997         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
15998         * modules/wcsspn (configure.ac): ... to here.
15999
16000 2011-05-22  Bruno Haible  <bruno@clisp.org>
16001
16002         wcsrtombs: Move AC_LIBOBJ invocations to module description.
16003         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
16004         gl_PREREQ_WCSRTOMBS invocations from here...
16005         * modules/wcsrtombs (configure.ac): ... to here.
16006
16007 2011-05-22  Bruno Haible  <bruno@clisp.org>
16008
16009         wcsrchr: Move AC_LIBOBJ invocations to module description.
16010         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
16011         here...
16012         * modules/wcsrchr (configure.ac): ... to here.
16013
16014 2011-05-22  Bruno Haible  <bruno@clisp.org>
16015
16016         wcspbrk: Move AC_LIBOBJ invocations to module description.
16017         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
16018         here...
16019         * modules/wcspbrk (configure.ac): ... to here.
16020
16021 2011-05-22  Bruno Haible  <bruno@clisp.org>
16022
16023         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
16024         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
16025         gl_PREREQ_WCSNRTOMBS invocations from here...
16026         * modules/wcsnrtombs (configure.ac): ... to here.
16027
16028 2011-05-22  Bruno Haible  <bruno@clisp.org>
16029
16030         wcsnlen: Move AC_LIBOBJ invocations to module description.
16031         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
16032         here...
16033         * modules/wcsnlen (configure.ac): ... to here.
16034
16035 2011-05-22  Bruno Haible  <bruno@clisp.org>
16036
16037         wcsncpy: Move AC_LIBOBJ invocations to module description.
16038         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
16039         here...
16040         * modules/wcsncpy (configure.ac): ... to here.
16041
16042 2011-05-22  Bruno Haible  <bruno@clisp.org>
16043
16044         wcsncmp: Move AC_LIBOBJ invocations to module description.
16045         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
16046         here...
16047         * modules/wcsncmp (configure.ac): ... to here.
16048
16049 2011-05-22  Bruno Haible  <bruno@clisp.org>
16050
16051         wcsncat: Move AC_LIBOBJ invocations to module description.
16052         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
16053         here...
16054         * modules/wcsncat (configure.ac): ... to here.
16055
16056 2011-05-22  Bruno Haible  <bruno@clisp.org>
16057
16058         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
16059         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
16060         from here...
16061         * modules/wcsncasecmp (configure.ac): ... to here.
16062
16063 2011-05-22  Bruno Haible  <bruno@clisp.org>
16064
16065         wcslen: Move AC_LIBOBJ invocations to module description.
16066         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
16067         * modules/wcslen (configure.ac): ... to here.
16068
16069 2011-05-22  Bruno Haible  <bruno@clisp.org>
16070
16071         wcsdup: Move AC_LIBOBJ invocations to module description.
16072         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
16073         * modules/wcsdup (configure.ac): ... to here.
16074
16075 2011-05-22  Bruno Haible  <bruno@clisp.org>
16076
16077         wcscspn: Move AC_LIBOBJ invocations to module description.
16078         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
16079         here...
16080         * modules/wcscspn (configure.ac): ... to here.
16081
16082 2011-05-22  Bruno Haible  <bruno@clisp.org>
16083
16084         wcscpy: Move AC_LIBOBJ invocations to module description.
16085         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
16086         * modules/wcscpy (configure.ac): ... to here.
16087
16088 2011-05-22  Bruno Haible  <bruno@clisp.org>
16089
16090         wcscoll: Move AC_LIBOBJ invocations to module description.
16091         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
16092         here...
16093         * modules/wcscoll (configure.ac): ... to here.
16094
16095 2011-05-22  Bruno Haible  <bruno@clisp.org>
16096
16097         wcscmp: Move AC_LIBOBJ invocations to module description.
16098         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
16099         * modules/wcscmp (configure.ac): ... to here.
16100
16101 2011-05-22  Bruno Haible  <bruno@clisp.org>
16102
16103         wcschr: Move AC_LIBOBJ invocations to module description.
16104         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
16105         * modules/wcschr (configure.ac): ... to here.
16106
16107 2011-05-22  Bruno Haible  <bruno@clisp.org>
16108
16109         wcscat: Move AC_LIBOBJ invocations to module description.
16110         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
16111         * modules/wcscat (configure.ac): ... to here.
16112
16113 2011-05-22  Bruno Haible  <bruno@clisp.org>
16114
16115         wcscasecmp: Move AC_LIBOBJ invocations to module description.
16116         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
16117         here...
16118         * modules/wcscasecmp (configure.ac): ... to here.
16119
16120 2011-05-22  Bruno Haible  <bruno@clisp.org>
16121
16122         wcrtomb: Move AC_LIBOBJ invocations to module description.
16123         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
16124         invocations from here...
16125         * modules/wcrtomb (configure.ac): ... to here.
16126
16127 2011-05-22  Bruno Haible  <bruno@clisp.org>
16128
16129         wcpncpy: Move AC_LIBOBJ invocations to module description.
16130         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
16131         here...
16132         * modules/wcpncpy (configure.ac): ... to here.
16133
16134 2011-05-22  Bruno Haible  <bruno@clisp.org>
16135
16136         wcpcpy: Move AC_LIBOBJ invocations to module description.
16137         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
16138         * modules/wcpcpy (configure.ac): ... to here.
16139
16140 2011-05-22  Bruno Haible  <bruno@clisp.org>
16141
16142         waitpid: Move AC_LIBOBJ invocations to module description.
16143         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
16144         invocation from here...
16145         * modules/waitpid (configure.ac): ... to here.
16146
16147 2011-05-22  Bruno Haible  <bruno@clisp.org>
16148
16149         utimensat: Move AC_LIBOBJ invocations to module description.
16150         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
16151         here...
16152         * modules/utimensat (configure.ac): ... to here.
16153
16154 2011-05-22  Bruno Haible  <bruno@clisp.org>
16155
16156         usleep: Move AC_LIBOBJ invocations to module description.
16157         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
16158         here...
16159         * modules/usleep (configure.ac): ... to here.
16160
16161 2011-05-22  Bruno Haible  <bruno@clisp.org>
16162
16163         unlockpt: Move AC_LIBOBJ invocations to module description.
16164         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
16165         gl_PREREQ_UNLOCKPT invocations from here...
16166         * modules/unlockpt (configure.ac): ... to here.
16167
16168 2011-05-22  Bruno Haible  <bruno@clisp.org>
16169
16170         unlink: Respect rules for use of AC_LIBOBJ.
16171         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
16172         * modules/unlink (configure.ac): ... to here.
16173
16174 2011-05-22  Bruno Haible  <bruno@clisp.org>
16175
16176         uname: Move AC_LIBOBJ invocations to module description.
16177         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
16178         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
16179         here...
16180         * modules/uname (configure.ac): ... to here.
16181
16182 2011-05-22  Bruno Haible  <bruno@clisp.org>
16183
16184         ttyname_r: Move AC_LIBOBJ invocations to module description.
16185         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
16186         gl_PREREQ_TTYNAME_R invocations from here...
16187         * modules/ttyname_r (configure.ac): ... to here.
16188
16189 2011-05-22  Bruno Haible  <bruno@clisp.org>
16190
16191         tsearch: Move AC_LIBOBJ invocations to module description.
16192         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
16193         invocations from here...
16194         * modules/tsearch (configure.ac): ... to here.
16195
16196 2011-05-22  Bruno Haible  <bruno@clisp.org>
16197
16198         towctrans: Move AC_LIBOBJ invocations to module description.
16199         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
16200         AC_LIBOBJ invocation from here...
16201         * modules/towctrans (configure.ac): ... to here.
16202
16203 2011-05-22  Bruno Haible  <bruno@clisp.org>
16204
16205         tmpfile: Move AC_LIBOBJ invocations to module description.
16206         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
16207         invocations from here...
16208         * modules/tmpfile (configure.ac): ... to here.
16209
16210 2011-05-22  Bruno Haible  <bruno@clisp.org>
16211
16212         times: Move AC_LIBOBJ invocations to module description.
16213         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
16214         * modules/times (configure.ac): ... to here.
16215
16216 2011-05-22  Bruno Haible  <bruno@clisp.org>
16217
16218         time_r: Move AC_LIBOBJ invocations to module description.
16219         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
16220         invocations from here...
16221         * modules/time_r (configure.ac): ... to here.
16222
16223 2011-05-22  Bruno Haible  <bruno@clisp.org>
16224
16225         timegm: Move AC_LIBOBJ invocations to module description.
16226         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
16227         invocations from here...
16228         * modules/timegm (configure.ac): ... to here.
16229
16230 2011-05-22  Bruno Haible  <bruno@clisp.org>
16231
16232         tcgetsid: Move AC_LIBOBJ invocations to module description.
16233         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
16234         and gl_PREREQ_TCGETSID invocations from here...
16235         * modules/tcgetsid (configure.ac): ... to here.
16236         (Depends-on): Update conditions.
16237
16238 2011-05-22  Bruno Haible  <bruno@clisp.org>
16239
16240         symlinkat: Move AC_LIBOBJ invocations to module description.
16241         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
16242         here...
16243         * modules/symlinkat (configure.ac): ... to here.
16244
16245 2011-05-22  Bruno Haible  <bruno@clisp.org>
16246
16247         symlink: Move AC_LIBOBJ invocations to module description.
16248         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
16249         here...
16250         * modules/symlink (configure.ac): ... to here.
16251
16252 2011-05-22  Bruno Haible  <bruno@clisp.org>
16253
16254         strverscmp: Move AC_LIBOBJ invocations to module description.
16255         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
16256         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
16257         from here...
16258         * modules/strverscmp (configure.ac): ... to here.
16259
16260 2011-05-22  Bruno Haible  <bruno@clisp.org>
16261
16262         strtok_r: Move AC_LIBOBJ invocations to module description.
16263         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
16264         and gl_PREREQ_STRTOK_R invocations from here...
16265         * modules/strtok_r (configure.ac): ... to here.
16266         (Depends-on): Update conditions.
16267
16268 2011-05-22  Bruno Haible  <bruno@clisp.org>
16269
16270         strtoumax: Move AC_LIBOBJ invocations to module description.
16271         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
16272         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
16273         from here...
16274         * modules/strtoumax (configure.ac): ... to here.
16275
16276 2011-05-22  Bruno Haible  <bruno@clisp.org>
16277
16278         strtoimax: Move AC_LIBOBJ invocations to module description.
16279         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
16280         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
16281         from here...
16282         * modules/strtoimax (configure.ac): ... to here.
16283
16284 2011-05-22  Bruno Haible  <bruno@clisp.org>
16285
16286         strtoull: Move AC_LIBOBJ invocations to module description.
16287         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
16288         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
16289         from here...
16290         * modules/strtoull (configure.ac): ... to here.
16291
16292 2011-05-22  Bruno Haible  <bruno@clisp.org>
16293
16294         strtoll: Move AC_LIBOBJ invocations to module description.
16295         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
16296         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
16297         here...
16298         * modules/strtoll (configure.ac): ... to here.
16299
16300 2011-05-22  Bruno Haible  <bruno@clisp.org>
16301
16302         strtoul: Move AC_LIBOBJ invocations to module description.
16303         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
16304         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
16305         * modules/strtoul (configure.ac): ... to here.
16306
16307 2011-05-22  Bruno Haible  <bruno@clisp.org>
16308
16309         strtol: Move AC_LIBOBJ invocations to module description.
16310         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
16311         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
16312         * modules/strtol (configure.ac): ... to here.
16313
16314 2011-05-22  Bruno Haible  <bruno@clisp.org>
16315
16316         strtod: Move AC_LIBOBJ invocations to module description.
16317         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
16318         invocations from here...
16319         * modules/strtod (configure.ac): ... to here.
16320
16321 2011-05-22  Bruno Haible  <bruno@clisp.org>
16322
16323         strstr*: Move AC_LIBOBJ invocations to module description.
16324         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
16325         invocations from here...
16326         * modules/strstr-simple (configure.ac): ... to here.
16327         * modules/strstr (configure.ac): ... and here.
16328
16329 2011-05-22  Bruno Haible  <bruno@clisp.org>
16330
16331         strsignal: Move AC_LIBOBJ invocations to module description.
16332         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
16333         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
16334         * modules/strsignal (configure.ac): ... to here.
16335         (Depends-on): Update conditions.
16336
16337 2011-05-22  Bruno Haible  <bruno@clisp.org>
16338
16339         strsep: Move AC_LIBOBJ invocations to module description.
16340         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
16341         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
16342         here...
16343         * modules/strsep (configure.ac): ... to here.
16344
16345 2011-05-22  Bruno Haible  <bruno@clisp.org>
16346
16347         strptime: Move AC_LIBOBJ invocations to module description.
16348         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
16349         gl_PREREQ_STRPTIME invocations from here...
16350         * modules/strptime (configure.ac): ... to here.
16351
16352 2011-05-22  Bruno Haible  <bruno@clisp.org>
16353
16354         strpbrk: Move AC_LIBOBJ invocations to module description.
16355         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
16356         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
16357         here...
16358         * modules/strpbrk (configure.ac): ... to here.
16359
16360 2011-05-22  Bruno Haible  <bruno@clisp.org>
16361
16362         strnlen: Move AC_LIBOBJ invocations to module description.
16363         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
16364         invocations from here...
16365         * modules/strnlen (configure.ac): ... to here.
16366
16367 2011-05-22  Bruno Haible  <bruno@clisp.org>
16368
16369         strndup: Move AC_LIBOBJ invocations to module description.
16370         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
16371         invocations from here...
16372         * modules/strndup (configure.ac): ... to here.
16373         (Depends-on): Update conditions.
16374
16375 2011-05-22  Bruno Haible  <bruno@clisp.org>
16376
16377         strncat: Move AC_LIBOBJ invocations to module description.
16378         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
16379         invocations from here...
16380         * modules/strncat (configure.ac): ... to here.
16381
16382 2011-05-22  Bruno Haible  <bruno@clisp.org>
16383
16384         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
16385         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
16386         invocations from here...
16387         * modules/strdup (configure.ac): ... to here.
16388         * modules/strdup-posix (configure.ac): ... and here.
16389
16390 2011-05-22  Bruno Haible  <bruno@clisp.org>
16391
16392         strcspn: Move AC_LIBOBJ invocations to module description.
16393         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
16394         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
16395         here...
16396         * modules/strcspn (configure.ac): ... to here.
16397
16398 2011-05-22  Bruno Haible  <bruno@clisp.org>
16399
16400         strchrnul: Move AC_LIBOBJ invocations to module description.
16401         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
16402         gl_PREREQ_STRCHRNUL invocations from here...
16403         * modules/strchrnul (configure.ac): ... to here.
16404
16405 2011-05-22  Bruno Haible  <bruno@clisp.org>
16406
16407         strcasestr*: Move AC_LIBOBJ invocations to module description.
16408         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
16409         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
16410         * modules/strcasestr-simple (configure.ac): ... to here.
16411         * modules/strcasestr (configure.ac): ... and here.
16412
16413 2011-05-22  Bruno Haible  <bruno@clisp.org>
16414
16415         strcase: Move AC_LIBOBJ invocations to module description.
16416         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
16417         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
16418         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
16419         gl_PREREQ_STRNCASECMP invocations from here...
16420         * modules/strcase (configure.ac): ... to here.
16421
16422 2011-05-22  Bruno Haible  <bruno@clisp.org>
16423
16424         stpncpy: Move AC_LIBOBJ invocations to module description.
16425         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
16426         here...
16427         * modules/stpncpy (configure.ac): ... to here.
16428
16429 2011-05-22  Bruno Haible  <bruno@clisp.org>
16430
16431         stpcpy: Move AC_LIBOBJ invocations to module description.
16432         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
16433         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
16434         here...
16435         * modules/stpcpy (configure.ac): ... to here.
16436
16437 2011-05-21  Bruno Haible  <bruno@clisp.org>
16438
16439         stat: Move AC_LIBOBJ invocations to module description.
16440         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
16441         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
16442         here...
16443         * modules/stat (configure.ac): ... to here.
16444
16445 2011-05-21  Bruno Haible  <bruno@clisp.org>
16446
16447         sleep: Move AC_LIBOBJ invocations to module description.
16448         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
16449         * modules/sleep (configure.ac): ... to here.
16450
16451 2011-05-21  Bruno Haible  <bruno@clisp.org>
16452
16453         signbit: Move AC_LIBOBJ invocations to module description.
16454         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
16455         * modules/signbit (configure.ac): ... to here.
16456
16457 2011-05-21  Bruno Haible  <bruno@clisp.org>
16458
16459         sigprocmask: Move AC_LIBOBJ invocations to module description.
16460         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
16461         gl_PREREQ_SIGPROMASK invocations from here...
16462         * modules/sigprocmask (configure.ac): ... to here.
16463
16464 2011-05-21  Bruno Haible  <bruno@clisp.org>
16465
16466         sigaction: Move AC_LIBOBJ invocations to module description.
16467         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
16468         gl_PREREQ_SIGACTION invocations from here...
16469         * modules/sigaction (configure.ac): ... to here.
16470
16471 2011-05-21  Bruno Haible  <bruno@clisp.org>
16472
16473         sig2str: Move AC_LIBOBJ invocations to module description.
16474         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
16475         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
16476         here...
16477         * modules/sig2str (configure.ac): ... to here.
16478
16479 2011-05-21  Bruno Haible  <bruno@clisp.org>
16480
16481         setlocale: Move AC_LIBOBJ invocations to module description.
16482         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
16483         gl_PREREQ_SETLOCALE invocations from here...
16484         * modules/setlocale (configure.ac): ... to here.
16485
16486 2011-05-21  Bruno Haible  <bruno@clisp.org>
16487
16488         unsetenv: Move AC_LIBOBJ invocations to module description.
16489         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
16490         and gl_PREREQ_UNSETENV invocations from here...
16491         * modules/unsetenv (configure.ac): ... to here.
16492         (Depends-on): Update.
16493
16494 2011-05-21  Bruno Haible  <bruno@clisp.org>
16495
16496         setenv: Move AC_LIBOBJ invocations to module description.
16497         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
16498         here...
16499         * modules/setenv (configure.ac): ... to here.
16500
16501 2011-05-21  Bruno Haible  <bruno@clisp.org>
16502
16503         selinux-h: Move AC_LIBOBJ invocations to module description.
16504         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
16505         AC_LIBOBJ invocation from here...
16506         * modules/selinux-h (configure.ac): ... to here.
16507
16508 2011-05-21  Bruno Haible  <bruno@clisp.org>
16509
16510         select: Respect rules for use of AC_LIBOBJ.
16511         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
16512         here...
16513         * modules/select (configure.ac): ... to here.
16514
16515 2011-05-21  Bruno Haible  <bruno@clisp.org>
16516
16517         scandir: Move AC_LIBOBJ invocations to module description.
16518         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
16519         invocations from here...
16520         * modules/scandir (configure.ac): ... to here.
16521
16522 2011-05-21  Bruno Haible  <bruno@clisp.org>
16523
16524         rpmatch: Move AC_LIBOBJ invocations to module description.
16525         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
16526         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
16527         here...
16528         * modules/rpmatch (configure.ac): ... to here.
16529
16530 2011-05-21  Bruno Haible  <bruno@clisp.org>
16531
16532         rmdir: Respect rules for use of AC_LIBOBJ.
16533         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
16534         * modules/rmdir (configure.ac): ... to here.
16535
16536 2011-05-21  Bruno Haible  <bruno@clisp.org>
16537
16538         renameat: Move AC_LIBOBJ invocations to module description.
16539         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
16540         here...
16541         * modules/renameat (configure.ac): ... to here.
16542
16543 2011-05-21  Bruno Haible  <bruno@clisp.org>
16544
16545         rename: Respect rules for use of AC_LIBOBJ.
16546         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
16547         here...
16548         * modules/rename (configure.ac): ... to here.
16549
16550 2011-05-21  Bruno Haible  <bruno@clisp.org>
16551
16552         remove: Move AC_LIBOBJ invocations to module description.
16553         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
16554         here...
16555         * modules/remove (configure.ac): ... to here.
16556
16557 2011-05-21  Bruno Haible  <bruno@clisp.org>
16558
16559         relocatable-lib: Move AC_LIBOBJ invocations to module description.
16560         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
16561         macro.
16562         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
16563         * modules/relocatable-lib (configure.ac): ... to here.
16564         * modules/relocatable-prog-wrapper (configure.ac): Invoke
16565         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
16566
16567 2011-05-21  Bruno Haible  <bruno@clisp.org>
16568
16569         relocatable-prog: Move AC_LIBOBJ invocations to module description.
16570         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
16571         here...
16572         * modules/relocatable-prog (configure.ac): ... to here.
16573
16574 2011-05-21  Bruno Haible  <bruno@clisp.org>
16575
16576         regex: Move AC_LIBOBJ invocations to module description.
16577         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
16578         invocations from here...
16579         * modules/regex (configure.ac): ... to here.
16580
16581 2011-05-21  Bruno Haible  <bruno@clisp.org>
16582
16583         realloc-*: Move AC_LIBOBJ invocations to module description.
16584         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
16585         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
16586         AC_LIBOBJ invocations from here...
16587         * modules/realloc-gnu (configure.ac): ... to here.
16588         * modules/realloc-posix (configure.ac): ... and here.
16589
16590 2011-05-21  Bruno Haible  <bruno@clisp.org>
16591
16592         readutmp: Move AC_LIBOBJ invocations to module description.
16593         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
16594         * modules/readutmp (configure.ac): ... to here.
16595
16596 2011-05-21  Bruno Haible  <bruno@clisp.org>
16597
16598         readlinkat: Move AC_LIBOBJ invocations to module description.
16599         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
16600         here...
16601         * modules/readlinkat (configure.ac): ... to here.
16602
16603 2011-05-21  Bruno Haible  <bruno@clisp.org>
16604
16605         readlink: Move AC_LIBOBJ invocations to module description.
16606         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
16607         gl_PREREQ_READLINK invocations from here...
16608         * modules/readlink (configure.ac): ... to here.
16609
16610 2011-05-21  Bruno Haible  <bruno@clisp.org>
16611
16612         readline: Move AC_LIBOBJ invocations to module description.
16613         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
16614         gl_PREREQ_READLINE invocations from here...
16615         * modules/readline (configure.ac): ... to here.
16616
16617 2011-05-21  Bruno Haible  <bruno@clisp.org>
16618
16619         read: Move AC_LIBOBJ invocations to module description.
16620         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
16621         * modules/read (configure.ac): ... to here.
16622
16623 2011-05-21  Bruno Haible  <bruno@clisp.org>
16624
16625         rawmemchr: Move AC_LIBOBJ invocations to module description.
16626         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
16627         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
16628         from here...
16629         * modules/rawmemchr (configure.ac): ... to here.
16630
16631 2011-05-21  Bruno Haible  <bruno@clisp.org>
16632
16633         random_r: Move AC_LIBOBJ invocations to module description.
16634         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
16635         gl_PREREQ_RANDOM_R invocations from here...
16636         * modules/random_r (configure.ac): ... to here.
16637
16638 2011-05-21  Bruno Haible  <bruno@clisp.org>
16639
16640         pwrite: Move AC_LIBOBJ invocations to module description.
16641         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
16642         * modules/pwrite (configure.ac): ... to here.
16643
16644 2011-05-21  Bruno Haible  <bruno@clisp.org>
16645
16646         putenv: Move AC_LIBOBJ invocations to module description.
16647         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
16648         * modules/putenv (configure.ac): ... to here.
16649
16650 2011-05-21  Bruno Haible  <bruno@clisp.org>
16651
16652         login_tty: Move AC_LIBOBJ invocations to module description.
16653         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
16654         * modules/login_tty (configure.ac): ... to here.
16655
16656 2011-05-21  Bruno Haible  <bruno@clisp.org>
16657
16658         openpty: Move AC_LIBOBJ invocations to module description.
16659         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
16660         * modules/openpty (configure.ac): ... to here.
16661
16662 2011-05-21  Bruno Haible  <bruno@clisp.org>
16663
16664         forkpty: Move AC_LIBOBJ invocations to module description.
16665         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
16666         * modules/forkpty (configure.ac): ... to here.
16667
16668 2011-05-21  Bruno Haible  <bruno@clisp.org>
16669
16670         ptsname: Move AC_LIBOBJ invocations to module description.
16671         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
16672         invocations from here...
16673         * modules/ptsname (configure.ac): ... to here.
16674
16675 2011-05-21  Bruno Haible  <bruno@clisp.org>
16676
16677         pread: Move AC_LIBOBJ invocations to module description.
16678         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
16679         * modules/pread (configure.ac): ... to here.
16680
16681 2011-05-21  Bruno Haible  <bruno@clisp.org>
16682
16683         posix_spawn*: Move AC_LIBOBJ invocations to module description.
16684         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
16685         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
16686         * modules/posix_spawn (configure.ac): ... to here.
16687         * modules/posix_spawnp (configure.ac): ... and here.
16688
16689 2011-05-21  Bruno Haible  <bruno@clisp.org>
16690
16691         popen: Move AC_LIBOBJ invocations to module description.
16692         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
16693         invocations from here...
16694         * modules/popen (configure.ac): ... to here.
16695
16696 2011-05-21  Bruno Haible  <bruno@clisp.org>
16697
16698         poll: Move AC_LIBOBJ invocations to module description.
16699         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
16700         invocations from here...
16701         * modules/poll (configure.ac): ... to here.
16702
16703 2011-05-21  Bruno Haible  <bruno@clisp.org>
16704
16705         pipe-posix: Move AC_LIBOBJ invocations to module description.
16706         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
16707         * modules/pipe-posix (configure.ac): ... to here.
16708
16709 2011-05-21  Bruno Haible  <bruno@clisp.org>
16710
16711         openat: Respect rules for use of AC_LIBOBJ.
16712         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
16713         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
16714         * modules/openat (configure.ac): ... to here.
16715
16716 2011-05-21  Bruno Haible  <bruno@clisp.org>
16717
16718         obstack-printf*: Move AC_LIBOBJ invocations to module description.
16719         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
16720         invocation from here...
16721         * modules/obstack-printf (configure.ac): ... to here.
16722         * modules/obstack-printf-posix (configure.ac): ... and here.
16723
16724 2011-05-21  Bruno Haible  <bruno@clisp.org>
16725
16726         nl_langinfo: Move AC_LIBOBJ invocations to module description.
16727         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
16728         from here...
16729         * modules/nl_langinfo (configure.ac): ... to here.
16730
16731 2011-05-21  Bruno Haible  <bruno@clisp.org>
16732
16733         nanosleep: Move AC_LIBOBJ invocations to module description.
16734         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
16735         gl_PREREQ_NANOSLEEP invocations from here...
16736         * modules/nanosleep (configure.ac): ... to here.
16737
16738 2011-05-21  Bruno Haible  <bruno@clisp.org>
16739
16740         mountlist: Move AC_LIBOBJ invocations to module description.
16741         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
16742         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
16743         * modules/mountlist (configure.ac): ... to here.
16744
16745 2011-05-21  Bruno Haible  <bruno@clisp.org>
16746
16747         mktime: Respect rules for use of AC_LIBOBJ.
16748         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
16749         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
16750         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
16751         (gl_FUNC_MKTIME_INTERNAL): ... and here...
16752         * modules/mktime (configure.ac): ... to here.
16753         * modules/mktime-internal (configure.ac): ... and here.
16754         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
16755
16756 2011-05-21  Bruno Haible  <bruno@clisp.org>
16757
16758         mkstemps: Move AC_LIBOBJ invocations to module description.
16759         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
16760         here...
16761         * modules/mkstemps (configure.ac): ... to here.
16762
16763 2011-05-21  Bruno Haible  <bruno@clisp.org>
16764
16765         mkstemp: Move AC_LIBOBJ invocations to module description.
16766         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
16767         gl_PREREQ_MKSTEMP invocations from here...
16768         * modules/mkstemp (configure.ac): ... to here.
16769
16770 2011-05-21  Bruno Haible  <bruno@clisp.org>
16771
16772         mkostemps: Move AC_LIBOBJ invocations to module description.
16773         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
16774         here...
16775         * modules/mkostemps (configure.ac): ... to here.
16776
16777 2011-05-21  Bruno Haible  <bruno@clisp.org>
16778
16779         mkostemp: Move AC_LIBOBJ invocations to module description.
16780         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
16781         gl_PREREQ_MKOSTEMP invocations from here...
16782         * modules/mkostemp (configure.ac): ... to here.
16783
16784 2011-05-21  Bruno Haible  <bruno@clisp.org>
16785
16786         mknod: Move AC_LIBOBJ invocations to module description.
16787         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
16788         * modules/mknod (configure.ac): ... to here.
16789
16790 2011-05-21  Bruno Haible  <bruno@clisp.org>
16791
16792         mkfifoat: Move AC_LIBOBJ invocations to module description.
16793         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
16794         here...
16795         * modules/mkfifoat (configure.ac): ... to here.
16796
16797 2011-05-21  Bruno Haible  <bruno@clisp.org>
16798
16799         mkfifo: Respect rules for use of AC_LIBOBJ.
16800         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
16801         here...
16802         * modules/mkfifo (configure.ac): ... to here.
16803
16804 2011-05-21  Bruno Haible  <bruno@clisp.org>
16805
16806         mkdtemp: Move AC_LIBOBJ invocations to module description.
16807         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
16808         invocations from here...
16809         * modules/mkdtemp (configure.ac): ... to here.
16810
16811 2011-05-21  Bruno Haible  <bruno@clisp.org>
16812
16813         mkdir: Move AC_LIBOBJ invocations to module description.
16814         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
16815         * modules/mkdir (configure.ac): ... to here.
16816
16817 2011-05-21  Bruno Haible  <bruno@clisp.org>
16818
16819         memset: Move AC_LIBOBJ invocations to module description.
16820         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
16821         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
16822         here...
16823         * modules/memset (configure.ac): ... to here.
16824
16825 2011-05-21  Bruno Haible  <bruno@clisp.org>
16826
16827         memrchr: Move AC_LIBOBJ invocations to module description.
16828         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
16829         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
16830         here...
16831         * modules/memrchr (configure.ac): ... to here.
16832
16833 2011-05-21  Bruno Haible  <bruno@clisp.org>
16834
16835         mempcpy: Move AC_LIBOBJ invocations to module description.
16836         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
16837         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
16838         here...
16839         * modules/mempcpy (configure.ac): ... to here.
16840
16841 2011-05-21  Bruno Haible  <bruno@clisp.org>
16842
16843         memmove: Move AC_LIBOBJ invocations to module description.
16844         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
16845         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
16846         here...
16847         * modules/memmove (configure.ac): ... to here.
16848
16849 2011-05-21  Bruno Haible  <bruno@clisp.org>
16850
16851         memmem*: Move AC_LIBOBJ invocations to module description.
16852         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
16853         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
16854         here...
16855         (gl_FUNC_MEMMEM): ... and here...
16856         * modules/memmem-simple (configure.ac): ... to here.
16857         * modules/memmem (configure.ac): ... and here.
16858
16859 2011-05-21  Bruno Haible  <bruno@clisp.org>
16860
16861         memcpy: Move AC_LIBOBJ invocations to module description.
16862         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
16863         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
16864         here...
16865         * modules/memcpy (configure.ac): ... to here.
16866
16867 2011-05-21  Bruno Haible  <bruno@clisp.org>
16868
16869         memcmp: Simplify autoconf macro.
16870         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
16871         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
16872         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
16873
16874 2011-05-21  Bruno Haible  <bruno@clisp.org>
16875
16876         memcmp: Move AC_LIBOBJ invocations to module description.
16877         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
16878         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
16879         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
16880         * modules/memcmp (configure.ac): ... to here.
16881         (Depends-on): Update conditions.
16882
16883 2011-05-21  Bruno Haible  <bruno@clisp.org>
16884
16885         memchr: Respect rules for use of AC_LIBOBJ.
16886         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
16887         invocations from here...
16888         * modules/memchr (configure.ac): ... to here.
16889
16890 2011-05-21  Bruno Haible  <bruno@clisp.org>
16891
16892         mbtowc: Move AC_LIBOBJ invocations to module description.
16893         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
16894         invocations from here...
16895         * modules/mbtowc (configure.ac): ... to here.
16896
16897 2011-05-21  Bruno Haible  <bruno@clisp.org>
16898
16899         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
16900         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
16901         gl_PREREQ_MBSRTOWCS invocations from here...
16902         * modules/mbsrtowcs (configure.ac): ... to here.
16903
16904 2011-05-21  Bruno Haible  <bruno@clisp.org>
16905
16906         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
16907         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
16908         gl_PREREQ_MBSNRTOWCS invocations from here...
16909         * modules/mbsnrtowcs (configure.ac): ... to here.
16910
16911 2011-05-21  Bruno Haible  <bruno@clisp.org>
16912
16913         mbsinit: Move AC_LIBOBJ invocations to module description.
16914         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
16915         invocations from here...
16916         * modules/mbsinit (configure.ac): ... to here.
16917
16918 2011-05-21  Bruno Haible  <bruno@clisp.org>
16919
16920         mbrlen: Move AC_LIBOBJ invocations to module description.
16921         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
16922         invocations from here...
16923         * modules/mbrlen (configure.ac): ... to here.
16924
16925 2011-05-21  Bruno Haible  <bruno@clisp.org>
16926
16927         mbrtowc: Respect rules for use of AC_LIBOBJ.
16928         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
16929         invocations from here...
16930         * modules/mbrtowc (configure.ac): ... to here.
16931
16932 2011-05-21  Bruno Haible  <bruno@clisp.org>
16933
16934         malloc-*: Move AC_LIBOBJ invocations to module description.
16935         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
16936         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
16937         AC_LIBOBJ invocations from here...
16938         * modules/malloc-gnu (configure.ac): ... to here.
16939         * modules/malloc-posix (configure.ac): ... and here.
16940
16941 2011-05-21  Bruno Haible  <bruno@clisp.org>
16942
16943         lstat, openat: Respect rules for use of AC_LIBOBJ.
16944         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
16945         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
16946         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
16947         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
16948         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
16949         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
16950         here.
16951         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
16952
16953 2011-05-21  Bruno Haible  <bruno@clisp.org>
16954
16955         lseek: Move AC_LIBOBJ invocations to module description.
16956         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
16957         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
16958         * modules/lseek (configure.ac): ... to here.
16959
16960 2011-05-21  Bruno Haible  <bruno@clisp.org>
16961
16962         linkat: Move AC_LIBOBJ invocations to module description.
16963         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
16964         here...
16965         * modules/linkat (configure.ac): ... to here.
16966
16967 2011-05-21  Bruno Haible  <bruno@clisp.org>
16968
16969         link: Respect rules for use of AC_LIBOBJ.
16970         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
16971         * modules/link (configure.ac): ... to here.
16972
16973 2011-05-21  Bruno Haible  <bruno@clisp.org>
16974
16975         lchown: Move AC_LIBOBJ invocations to module description.
16976         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
16977         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
16978         * modules/lchown (configure.ac): ... to here.
16979
16980 2011-05-21  Bruno Haible  <bruno@clisp.org>
16981
16982         iswctype: Move AC_LIBOBJ invocations to module description.
16983         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
16984         here...
16985         * modules/iswctype (configure.ac): ... to here.
16986
16987 2011-05-21  Bruno Haible  <bruno@clisp.org>
16988
16989         iswblank: Move AC_LIBOBJ invocations to module description.
16990         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
16991         here...
16992         * modules/iswblank (configure.ac): ... to here.
16993
16994 2011-05-21  Bruno Haible  <bruno@clisp.org>
16995
16996         atanl: Move AC_LIBOBJ invocations to module description.
16997         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
16998         * modules/atanl (configure.ac): ... to here.
16999
17000 2011-05-21  Bruno Haible  <bruno@clisp.org>
17001
17002         acosl: Move AC_LIBOBJ invocations to module description.
17003         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
17004         * modules/acosl (configure.ac): ... to here.
17005
17006 2011-05-21  Bruno Haible  <bruno@clisp.org>
17007
17008         asinl: Respect rules for use of AC_LIBOBJ.
17009         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
17010         * modules/asinl (configure.ac): ... to here.
17011
17012 2011-05-21  Bruno Haible  <bruno@clisp.org>
17013
17014         tanl: Move AC_LIBOBJ invocations to module description.
17015         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
17016         * modules/tanl (configure.ac): ... to here.
17017
17018 2011-05-21  Bruno Haible  <bruno@clisp.org>
17019
17020         cosl: Move AC_LIBOBJ invocations to module description.
17021         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
17022         * modules/cosl (configure.ac): ... to here.
17023
17024 2011-05-21  Bruno Haible  <bruno@clisp.org>
17025
17026         sinl: Move AC_LIBOBJ invocations to module description.
17027         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
17028         * modules/sinl (configure.ac): ... to here.
17029
17030 2011-05-21  Bruno Haible  <bruno@clisp.org>
17031
17032         logl: Move AC_LIBOBJ invocations to module description.
17033         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
17034         * modules/logl (configure.ac): ... to here.
17035
17036 2011-05-21  Bruno Haible  <bruno@clisp.org>
17037
17038         expl: Move AC_LIBOBJ invocations to module description.
17039         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
17040         * modules/expl (configure.ac): ... to here.
17041
17042 2011-05-21  Bruno Haible  <bruno@clisp.org>
17043
17044         roundl: Move AC_LIBOBJ invocations to module description.
17045         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
17046         * modules/roundl (configure.ac): ... to here.
17047
17048 2011-05-21  Bruno Haible  <bruno@clisp.org>
17049
17050         round: Move AC_LIBOBJ invocations to module description.
17051         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
17052         * modules/round (configure.ac): ... to here.
17053
17054 2011-05-21  Bruno Haible  <bruno@clisp.org>
17055
17056         roundf: Move AC_LIBOBJ invocations to module description.
17057         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
17058         * modules/roundf (configure.ac): ... to here.
17059
17060 2011-05-21  Bruno Haible  <bruno@clisp.org>
17061
17062         truncl: Move AC_LIBOBJ invocations to module description.
17063         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
17064         * modules/truncl (configure.ac): ... to here.
17065
17066 2011-05-21  Bruno Haible  <bruno@clisp.org>
17067
17068         trunc: Move AC_LIBOBJ invocations to module description.
17069         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
17070         * modules/trunc (configure.ac): ... to here.
17071
17072 2011-05-21  Bruno Haible  <bruno@clisp.org>
17073
17074         truncf: Move AC_LIBOBJ invocations to module description.
17075         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
17076         * modules/truncf (configure.ac): ... to here.
17077
17078 2011-05-21  Bruno Haible  <bruno@clisp.org>
17079
17080         ceill: Move AC_LIBOBJ invocations to module description.
17081         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
17082         * modules/ceill (configure.ac): ... to here.
17083
17084 2011-05-21  Bruno Haible  <bruno@clisp.org>
17085
17086         ceil: Move AC_LIBOBJ invocations to module description.
17087         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
17088         * modules/ceil (configure.ac): ... to here.
17089
17090 2011-05-21  Bruno Haible  <bruno@clisp.org>
17091
17092         ceilf: Move AC_LIBOBJ invocations to module description.
17093         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
17094         * modules/ceilf (configure.ac): ... to here.
17095
17096 2011-05-21  Bruno Haible  <bruno@clisp.org>
17097
17098         floorl: Respect rules for use of AC_LIBOBJ.
17099         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
17100         * modules/floorl (configure.ac): ... to here.
17101
17102 2011-05-21  Bruno Haible  <bruno@clisp.org>
17103
17104         floor: Respect rules for use of AC_LIBOBJ.
17105         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
17106         * modules/floor (configure.ac): ... to here.
17107
17108 2011-05-21  Bruno Haible  <bruno@clisp.org>
17109
17110         floorf: Move AC_LIBOBJ invocations to module description.
17111         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
17112         * modules/floorf (configure.ac): ... to here.
17113
17114 2011-05-20  Bruno Haible  <bruno@clisp.org>
17115
17116         sqrtl: Respect rules for use of AC_LIBOBJ.
17117         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
17118         * modules/sqrtl (configure.ac): ... to here.
17119
17120 2011-05-20  Bruno Haible  <bruno@clisp.org>
17121
17122         ldexpl: Respect rules for use of AC_LIBOBJ.
17123         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
17124         * modules/ldexpl (configure.ac): ... to here.
17125
17126 2011-05-20  Bruno Haible  <bruno@clisp.org>
17127
17128         frexpl*: Respect rules for use of AC_LIBOBJ.
17129         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
17130         invocation from here...
17131         * modules/frexpl (configure.ac): ... to here.
17132         * modules/frexpl-nolibm (configure.ac): ... and here.
17133
17134 2011-05-20  Bruno Haible  <bruno@clisp.org>
17135
17136         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
17137         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
17138         invocation from here...
17139         * modules/frexp (configure.ac): ... to here.
17140         * modules/frexp-nolibm (configure.ac): ... and here.
17141
17142 2011-05-20  Bruno Haible  <bruno@clisp.org>
17143
17144         isnan: Respect rules for use of AC_LIBOBJ.
17145         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
17146         invocations here.
17147         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
17148         REPLACE_ISNAN.
17149         * modules/isnand (configure.ac): Likewise.
17150         * modules/isnanl (configure.ac): Likewise.
17151
17152 2011-05-20  Bruno Haible  <bruno@clisp.org>
17153
17154         isnanl*: Respect rules for use of AC_LIBOBJ.
17155         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
17156         invocation from here...
17157         * modules/isnanl (configure.ac): ... to here.
17158         * modules/isnanl-nolibm (configure.ac): ... and here.
17159
17160 2011-05-20  Bruno Haible  <bruno@clisp.org>
17161
17162         isnand*: Move AC_LIBOBJ invocations to module description.
17163         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
17164         invocation from here...
17165         * modules/isnand (configure.ac): ... to here.
17166         * modules/isnand-nolibm (configure.ac): ... and here.
17167
17168 2011-05-20  Bruno Haible  <bruno@clisp.org>
17169
17170         isnanf*: Move AC_LIBOBJ invocations to module description.
17171         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
17172         invocation from here...
17173         * modules/isnanf (configure.ac): ... to here.
17174         * modules/isnanf-nolibm (configure.ac): ... and here.
17175
17176 2011-05-20  Bruno Haible  <bruno@clisp.org>
17177
17178         isnan*: Separate the AC_LIBOBJ invocations.
17179         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
17180         AC_LIBOBJ invocation.
17181         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
17182         here.
17183         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
17184         AC_LIBOBJ invocation.
17185         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
17186         here.
17187         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
17188         AC_LIBOBJ invocation.
17189         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
17190         here.
17191         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
17192
17193 2011-05-08  Bruno Haible  <bruno@clisp.org>
17194
17195         isinf: Move AC_LIBOBJ invocations to module description.
17196         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
17197         * modules/isinf (configure.ac): ... to here.
17198
17199 2011-05-08  Bruno Haible  <bruno@clisp.org>
17200
17201         isfinite: Move AC_LIBOBJ invocations to module description.
17202         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
17203         * modules/isfinite (configure.ac): ... to here.
17204
17205 2011-05-08  Bruno Haible  <bruno@clisp.org>
17206
17207         isblank: Move AC_LIBOBJ invocations to module description.
17208         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
17209         here...
17210         * modules/isblank (configure.ac): ... to here.
17211
17212 2011-05-08  Bruno Haible  <bruno@clisp.org>
17213
17214         isapipe: Move AC_LIBOBJ invocations to module description.
17215         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
17216         gl_PREREQ_ISAPIPE invocations from here...
17217         * modules/isapipe (configure.ac): ... to here.
17218         (Depends-on): Update condition.
17219
17220 2011-05-08  Bruno Haible  <bruno@clisp.org>
17221
17222         ioctl: Move AC_LIBOBJ invocations to module description.
17223         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
17224         invocations from here...
17225         * modules/ioctl (configure.ac): ... to here.
17226         (Depends-on): Update condition.
17227
17228 2011-05-08  Bruno Haible  <bruno@clisp.org>
17229
17230         imaxdiv: Move AC_LIBOBJ invocations to module description.
17231         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
17232         invocations from here...
17233         * modules/imaxdiv (configure.ac): ... to here.
17234
17235 2011-05-08  Bruno Haible  <bruno@clisp.org>
17236
17237         imaxabs: Move AC_LIBOBJ invocations to module description.
17238         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
17239         invocations from here...
17240         * modules/imaxabs (configure.ac): ... to here.
17241
17242 2011-05-08  Bruno Haible  <bruno@clisp.org>
17243
17244         getaddrinfo: Move AC_LIBOBJ invocations to module description.
17245         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
17246         AC_LIBOBJ invocations from here...
17247         * modules/getaddrinfo (configure.ac): ... to here.
17248         (Depends-on): Add conditions.
17249
17250 2011-05-08  Bruno Haible  <bruno@clisp.org>
17251
17252         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
17253         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
17254         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
17255         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
17256         (gl_PREREQ_INET_PTON): ... from here.
17257         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
17258         gl_PREREQ_INET_PTON here.
17259         (Depends-on): Update condition.
17260
17261 2011-05-08  Bruno Haible  <bruno@clisp.org>
17262
17263         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
17264         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
17265         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
17266         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
17267         (gl_PREREQ_INET_NTOP): ... from here.
17268         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
17269         gl_PREREQ_INET_NTOP here.
17270         (Depends-on): Update condition.
17271
17272 2011-05-08  Bruno Haible  <bruno@clisp.org>
17273
17274         iconv_open: Move AC_LIBOBJ invocations to module description.
17275         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
17276         AC_LIBOBJ invocations from here...
17277         * modules/iconv_open (configure.ac): ... to here.
17278
17279 2011-05-08  Bruno Haible  <bruno@clisp.org>
17280
17281         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
17282         If module 'iconv_open' is among the main modules and module
17283         'iconv_open-utf' is among the tests dependencies, then
17284         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
17285         return the special iconv_t values. Therefore iconv() and iconv_close()
17286         must support these special iconv_t values, already in lib, not only in
17287         tests.
17288         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
17289         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
17290         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
17291         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
17292         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
17293         (Depends-on): Add the dependencies of iconv_open-utf.
17294         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
17295         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
17296         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
17297
17298 2011-05-08  Bruno Haible  <bruno@clisp.org>
17299
17300         group-member: Move AC_LIBOBJ invocations to module description.
17301         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
17302         gl_PREREQ_GROUP_MEMBER invocations from here...
17303         * modules/group-member (configure.ac): ... to here.
17304
17305 2011-05-08  Bruno Haible  <bruno@clisp.org>
17306
17307         grantpt: Move AC_LIBOBJ invocations to module description.
17308         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
17309         invocations from here...
17310         * modules/grantpt (configure.ac): ... to here.
17311
17312 2011-05-08  Bruno Haible  <bruno@clisp.org>
17313
17314         glob: Move AC_LIBOBJ invocations to module description.
17315         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
17316         from here...
17317         * modules/glob (configure.ac): ... to here.
17318
17319 2011-05-08  Bruno Haible  <bruno@clisp.org>
17320
17321         getusershell: Move AC_LIBOBJ invocations to module description.
17322         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
17323         Move AC_LIBOBJ invocation from here...
17324         * modules/getusershell (configure.ac): ... to here.
17325         (Depends-on): Update condition.
17326
17327 2011-05-08  Bruno Haible  <bruno@clisp.org>
17328
17329         gettimeofday: Move AC_LIBOBJ invocations to module description.
17330         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
17331         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
17332         gl_PREREQ_GETTIMEOFDAY invocations from here...
17333         * modules/gettimeofday (configure.ac): ... to here.
17334
17335 2011-05-08  Bruno Haible  <bruno@clisp.org>
17336
17337         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
17338         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
17339         just gl_FUNC_TZSET.
17340         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
17341         (gl_FUNC_TZSET_CLOBBER): Remove actions.
17342         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
17343         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
17344
17345 2011-05-08  Bruno Haible  <bruno@clisp.org>
17346
17347         getsubopt: Move AC_LIBOBJ invocations to module description.
17348         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
17349         gl_PREREQ_GETSUBOPT invocations from here...
17350         * modules/getsubopt (configure.ac): ... to here.
17351
17352 2011-05-08  Bruno Haible  <bruno@clisp.org>
17353
17354         getpass-gnu: Move AC_LIBOBJ invocations to module description.
17355         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
17356         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
17357         * modules/getpass-gnu (configure.ac): ... to here.
17358
17359 2011-05-08  Bruno Haible  <bruno@clisp.org>
17360
17361         getpass: Move AC_LIBOBJ invocations to module description.
17362         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
17363         gl_PREREQ_GETPASS invocations from here...
17364         * modules/getpass (configure.ac): ... to here.
17365
17366 2011-05-08  Bruno Haible  <bruno@clisp.org>
17367
17368         getpagesize: Move AC_LIBOBJ invocations to module description.
17369         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
17370         from here...
17371         * modules/getpagesize (configure.ac): ... to here.
17372
17373 2011-05-08  Bruno Haible  <bruno@clisp.org>
17374
17375         getopt: Move AC_LIBOBJ invocations to module description.
17376         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
17377         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
17378         invocations from here...
17379         * modules/getopt-gnu (configure.ac): ... to here.
17380         * modules/getopt-posix (configure.ac): ... and here.
17381         (Depends-on): Update condition.
17382
17383 2011-05-08  Bruno Haible  <bruno@clisp.org>
17384
17385         getopt, argp: Respect rules for use of AC_LIBOBJ.
17386         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
17387         (gl_REPLACE_GETOPT_ALWAYS): New macro.
17388         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
17389         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
17390
17391 2011-05-08  Bruno Haible  <bruno@clisp.org>
17392
17393         getlogin_r: Move AC_LIBOBJ invocations to module description.
17394         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
17395         gl_PREREQ_GETLOGIN_R invocations from here...
17396         * modules/getlogin_r (configure.ac): ... to here.
17397
17398 2011-05-08  Bruno Haible  <bruno@clisp.org>
17399
17400         getlogin: Move AC_LIBOBJ invocations to module description.
17401         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
17402         here...
17403         * modules/getlogin (configure.ac): ... to here.
17404
17405 2011-05-08  Bruno Haible  <bruno@clisp.org>
17406
17407         getloadavg: Move AC_LIBOBJ invocations to module description.
17408         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
17409         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
17410         * modules/getloadavg (configure.ac): ... to here.
17411
17412 2011-05-08  Bruno Haible  <bruno@clisp.org>
17413
17414         gethrxtime: Move AC_LIBOBJ invocations to module description.
17415         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
17416         LIB_GETHRXTIME from here...
17417         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
17418         invocations from here...
17419         * modules/gethrxtime (configure.ac): ... to here.
17420
17421 2011-05-08  Bruno Haible  <bruno@clisp.org>
17422
17423         gethostname: Move AC_LIBOBJ invocations to module description.
17424         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
17425         gl_PREREQ_GETHOSTNAME invocations from here...
17426         * modules/gethostname (configure.ac): ... to here.
17427
17428 2011-05-08  Bruno Haible  <bruno@clisp.org>
17429
17430         getgroups: Move AC_LIBOBJ invocations to module description.
17431         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
17432         here...
17433         * modules/getgroups (configure.ac): ... to here.
17434
17435 2011-05-08  Bruno Haible  <bruno@clisp.org>
17436
17437         getdtablesize: Move AC_LIBOBJ invocations to module description.
17438         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
17439         invocation from here...
17440         * modules/getdtablesize (configure.ac): ... to here.
17441
17442 2011-05-08  Bruno Haible  <bruno@clisp.org>
17443
17444         getdomainname: Move AC_LIBOBJ invocations to module description.
17445         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
17446         gl_PREREQ_GETDOMAINNAME invocations from here...
17447         * modules/getdomainname (configure.ac): ... to here.
17448
17449 2011-05-08  Bruno Haible  <bruno@clisp.org>
17450
17451         getline: Move AC_LIBOBJ invocations to module description.
17452         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
17453         invocations from here...
17454         * modules/getline (configure.ac): ... to here.
17455
17456 2011-05-08  Bruno Haible  <bruno@clisp.org>
17457
17458         getline: Simplify.
17459         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
17460         It's already handled through the module dependency.
17461
17462 2011-05-08  Bruno Haible  <bruno@clisp.org>
17463
17464         getdelim: Move AC_LIBOBJ invocations to module description.
17465         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
17466         and gl_PREREQ_GETDELIM invocations from here...
17467         * modules/getdelim (configure.ac): ... to here.
17468         (Depends-on): Fix condition.
17469
17470 2011-05-08  Bruno Haible  <bruno@clisp.org>
17471
17472         getcwd: Move AC_LIBOBJ invocations to module description.
17473         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
17474         invocations from here...
17475         * modules/getcwd (configure.ac): ... to here.
17476
17477 2011-05-08  Bruno Haible  <bruno@clisp.org>
17478
17479         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
17480         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
17481         here...
17482         * modules/getcwd-lgpl (configure.ac): ... to here.
17483
17484 2011-05-07  Bruno Haible  <bruno@clisp.org>
17485
17486         crypto/gc: Move AC_LIBOBJ invocations to module description.
17487         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
17488         * modules/crypto/gc (configure.ac): ... to here.
17489
17490 2011-05-07  Bruno Haible  <bruno@clisp.org>
17491
17492         fwriting: Move AC_LIBOBJ invocations to module description.
17493         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
17494         here...
17495         * modules/fwriting (configure.ac): ... to here.
17496
17497 2011-05-07  Bruno Haible  <bruno@clisp.org>
17498
17499         fwritable: Move AC_LIBOBJ invocations to module description.
17500         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
17501         here...
17502         * modules/fwritable (configure.ac): ... to here.
17503
17504 2011-05-07  Bruno Haible  <bruno@clisp.org>
17505
17506         futimens: Move AC_LIBOBJ invocations to module description.
17507         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
17508         here...
17509         * modules/futimens (configure.ac): ... to here.
17510
17511 2011-05-07  Bruno Haible  <bruno@clisp.org>
17512
17513         ftruncate: Move AC_LIBOBJ invocations to module description.
17514         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
17515         gl_PREREQ_FTRUNCATE invocations from here...
17516         * modules/ftruncate (configure.ac): ... to here.
17517
17518 2011-05-07  Bruno Haible  <bruno@clisp.org>
17519
17520         fsync: Move AC_LIBOBJ invocations to module description.
17521         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
17522         invocations from here...
17523         * modules/fsync (configure.ac): ... to here.
17524
17525 2011-05-07  Bruno Haible  <bruno@clisp.org>
17526
17527         fsusage: Move AC_LIBOBJ invocations to module description.
17528         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
17529         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
17530         * modules/fsusage (configure.ac): ... to here.
17531
17532 2011-05-07  Bruno Haible  <bruno@clisp.org>
17533
17534         freopen: Move AC_LIBOBJ invocations to module description.
17535         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
17536         invocations from here...
17537         * modules/freopen (configure.ac): ... to here.
17538
17539 2011-05-07  Bruno Haible  <bruno@clisp.org>
17540
17541         free: Move AC_LIBOBJ invocations to module description.
17542         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
17543         invocations from here...
17544         * modules/free (configure.ac): ... to here.
17545
17546 2011-05-07  Bruno Haible  <bruno@clisp.org>
17547
17548         freadable: Move AC_LIBOBJ invocations to module description.
17549         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
17550         here...
17551         * modules/freadable (configure.ac): ... to here.
17552
17553 2011-05-07  Bruno Haible  <bruno@clisp.org>
17554
17555         fpurge: Move AC_LIBOBJ invocations to module description.
17556         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
17557         invocations from here...
17558         * modules/fpurge (configure.ac): ... to here.
17559
17560 2011-05-07  Bruno Haible  <bruno@clisp.org>
17561
17562         fpending: Move AC_LIBOBJ invocations to module description.
17563         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
17564         gl_FUNC_FPENDING.
17565         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
17566         invocations from here...
17567         * modules/fpending (configure.ac): ... to here.
17568
17569 2011-05-07  Bruno Haible  <bruno@clisp.org>
17570
17571         fopen: Move AC_LIBOBJ invocations to module description.
17572         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
17573         invocations from here...
17574         * modules/fopen (configure.ac): ... to here.
17575
17576 2011-05-07  Bruno Haible  <bruno@clisp.org>
17577
17578         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
17579         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
17580         gl_FUNC_FNMATCH_POSIX.
17581         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
17582         invocations from here...
17583         * modules/fnmatch (configure.ac): ... to here.
17584         * modules/fnmatch-gnu (configure.ac): ... and here.
17585
17586 2011-05-07  Bruno Haible  <bruno@clisp.org>
17587
17588         flock: Move AC_LIBOBJ invocations to module description.
17589         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
17590         invocations from here...
17591         * modules/flock (configure.ac): ... to here.
17592
17593 2011-05-07  Bruno Haible  <bruno@clisp.org>
17594
17595         fileblocks: Move AC_LIBOBJ invocations to module description.
17596         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
17597         gl_PREREQ_FILEBLOCKS invocations from here...
17598         * modules/fileblocks (configure.ac): ... to here.
17599
17600 2011-05-06  Bruno Haible  <bruno@clisp.org>
17601
17602         fflush: Move AC_LIBOBJ invocations to module description.
17603         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
17604         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
17605         invocations from here...
17606         * modules/fflush (configure.ac): ... to here.
17607
17608 2011-05-06  Bruno Haible  <bruno@clisp.org>
17609
17610         fdopendir: Move AC_LIBOBJ invocations to module description.
17611         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
17612         here...
17613         * modules/fdopendir (configure.ac): ... to here.
17614         (Depends-on): Improve conditions.
17615
17616 2011-05-06  Bruno Haible  <bruno@clisp.org>
17617
17618         _Exit: Move AC_LIBOBJ invocations to module description.
17619         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
17620         invocations from here...
17621         * modules/_Exit (configure.ac): ... to here.
17622
17623 2011-05-21  Bruno Haible  <bruno@clisp.org>
17624
17625         euidaccess: Respect rules for use of AC_LIBOBJ.
17626         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
17627         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
17628         from here...
17629         * modules/euidaccess (configure.ac): ... to here.
17630
17631 2011-05-06  Bruno Haible  <bruno@clisp.org>
17632
17633         error: Move AC_LIBOBJ invocations to module description.
17634         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
17635         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
17636         invocations from here...
17637         * modules/error (configure.ac): ... to here.
17638
17639 2011-05-06  Bruno Haible  <bruno@clisp.org>
17640
17641         duplocale: Move AC_LIBOBJ invocations to module description.
17642         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
17643         gl_PREREQ_DUPLOCALE invocations from here...
17644         * modules/duplocale (configure.ac): ... to here.
17645
17646 2011-05-05  Bruno Haible  <bruno@clisp.org>
17647
17648         dirfd: Move AC_LIBOBJ invocations to module description.
17649         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
17650         gl_FUNC_DIRFD.
17651         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
17652         here...
17653         * modules/dirfd (configure.ac): ... to here.
17654         (Depends-on): Fix condition.
17655
17656 2011-05-05  Bruno Haible  <bruno@clisp.org>
17657
17658         chown: Respect rules for use of AC_LIBOBJ.
17659         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
17660         * modules/chown (configure.ac): ... to here.
17661
17662 2011-05-05  Bruno Haible  <bruno@clisp.org>
17663
17664         chdir-long: Move AC_LIBOBJ invocations to module description.
17665         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
17666         gl_PREREQ_CHDIR_LONG invocations from here...
17667         * modules/chdir-long (configure.ac): ... to here.
17668
17669 2011-05-05  Bruno Haible  <bruno@clisp.org>
17670
17671         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
17672         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
17673         from here...
17674         * modules/canonicalize-lgpl (configure.ac): ... to here.
17675
17676 2011-05-05  Bruno Haible  <bruno@clisp.org>
17677
17678         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
17679         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
17680         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
17681         REPLACE_CALLOC.
17682         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
17683         * modules/calloc-gnu (configure.ac): Likewise.
17684
17685 2011-05-05  Bruno Haible  <bruno@clisp.org>
17686
17687         btowc: Move AC_LIBOBJ invocations to module description.
17688         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
17689         invocations from here...
17690         * modules/btowc (configure.ac): ... to here.
17691
17692 2011-05-21  Bruno Haible  <bruno@clisp.org>
17693
17694         atexit: Move AC_LIBOBJ invocations to module description.
17695         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
17696         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
17697         here...
17698         * modules/atexit (configure.ac): ... to here.
17699
17700 2011-05-05  Bruno Haible  <bruno@clisp.org>
17701
17702         atoll: Move AC_LIBOBJ invocations to module description.
17703         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
17704         invocations from here...
17705         * modules/atoll (configure.ac): ... to here.
17706
17707 2011-05-05  Bruno Haible  <bruno@clisp.org>
17708
17709         argz: Move AC_LIBOBJ invocations to module description.
17710         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
17711         * modules/argz (configure.ac): ... to here.
17712
17713 2011-05-05  Bruno Haible  <bruno@clisp.org>
17714
17715         alphasort: Move AC_LIBOBJ invocations to module description.
17716         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
17717         gl_PREREQ_ALPHASORT invocations from here...
17718         * modules/alphasort (configure.ac): ... to here.
17719
17720 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
17721
17722         verify: new macro verify_expr; verify_true deprecated
17723         * NEWS: Mention this.
17724         * doc/verify.texi (Compile-time Assertions): Document this.
17725         * lib/verify.h (verify_true): Deprecate.
17726         (verify_expr): New macro.
17727         * tests/test-verify.c (function): Test verify_expr.
17728
17729 2011-06-14  Jim Meyering  <meyering@redhat.com>
17730
17731         init.sh: give more portable redirection-related advice in a comment
17732         * tests/init.sh (stderr_fileno_): Update the advice in comments.
17733         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
17734         for lots of discussion.  Stefano Lattarini suggested the solution
17735         of putting "9>&2" after the command.  Reported by Bruno Haible.
17736
17737 2011-06-13  Bruno Haible  <bruno@clisp.org>
17738
17739         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
17740         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
17741         'none'.
17742
17743 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
17744
17745         ftoastr: use strtof only if HAVE_STRTOF
17746         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
17747         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
17748         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
17749         * modules/ftoastr (configure.ac): Check for strtof.
17750
17751 2011-06-13  Bruno Haible  <bruno@clisp.org>
17752
17753         gnulib-tool: Addendum to 2011-06-08 commit.
17754         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
17755         and --witness-c-macro have been given, augment AM_CPPFLAGS.
17756
17757 2011-06-13  Bruno Haible  <bruno@clisp.org>
17758
17759         fseeko: Provide a non-inline replacement of fseek().
17760         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
17761         * modules/fseeko (Depends-on): Add fseek.
17762         * modules/fseek (License): Change to LGPLv2+.
17763
17764 2011-06-13  Bruno Haible  <bruno@clisp.org>
17765
17766         ftello: Provide a non-inline replacement of ftell().
17767         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
17768         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
17769         not have ftello() (such as on mingw).
17770         * modules/ftello (Depends-on): Add ftell.
17771         * modules/ftell (License): Change to LGPLv2+.
17772
17773 2011-05-07  Bruno Haible  <bruno@clisp.org>
17774
17775         ftell: Move AC_LIBOBJ invocations to module description.
17776         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
17777         * modules/ftell (configure.ac): ... to here.
17778
17779 2011-05-07  Bruno Haible  <bruno@clisp.org>
17780
17781         ftello: Respect rules for use of AC_LIBOBJ.
17782         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
17783         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
17784         here...
17785         * modules/ftello (configure.ac): ... to here.
17786
17787 2011-05-07  Bruno Haible  <bruno@clisp.org>
17788
17789         fseeko: Simplify.
17790         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
17791         (gl_FUNC_FSEEKO): Inline it here.
17792
17793 2011-05-07  Bruno Haible  <bruno@clisp.org>
17794
17795         fseek: Move AC_LIBOBJ invocations to module description.
17796         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
17797         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
17798         * modules/fseek (configure.ac): ... to here.
17799
17800 2011-05-07  Bruno Haible  <bruno@clisp.org>
17801
17802         fseek: Respect rules for use of AC_LIBOBJ.
17803         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
17804         here...
17805         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
17806
17807 2011-05-07  Bruno Haible  <bruno@clisp.org>
17808
17809         fseeko: Respect rules for use of AC_LIBOBJ.
17810         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
17811         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
17812         here...
17813         * modules/fseeko (configure.ac): ... to here.
17814
17815 2011-06-13  Bruno Haible  <bruno@clisp.org>
17816
17817         gnulib-tool: Allow comments in the 'Depends-on' section.
17818         * doc/gnulib.texi (Module description): Mention comment syntax in the
17819         Depends-on section.
17820         * gnulib-tool (func_get_dependencies): Filter out comment lines.
17821
17822 2011-06-13  Bruno Haible  <bruno@clisp.org>
17823
17824         file-set.h: guard __attibute__ use, now that it's not always defined
17825         * lib/file-set.h (record_file): Use __attribute__ only with compiler
17826         versions that support it.  This fixes a coreutils build failure with
17827         the vendor cc on HP-UX 11.31.
17828
17829 2011-06-12  Bruno Haible  <bruno@clisp.org>
17830
17831         acl: Add support for HP-UX >= 11.11 JFS ACLs.
17832         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
17833         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
17834         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
17835         (acl, aclsort): New declarations.
17836         (aclv_nontrivial): New declaration.
17837         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
17838         (file_has_acl): Read also the second kind of HP-UX ACLs.
17839         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
17840         kind of HP-UX ACLs if the first kind fails.
17841         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
17842         second kind of HP-UX ACLs.
17843         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
17844         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
17845         agree.
17846         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
17847         hpuxjfs.
17848         Handle hpuxjfs.
17849         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
17850         hpuxjfs.
17851         Handle hpuxjfs.
17852         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
17853         (func_test_same_acls): Use both lsacl and getacl.
17854         Handle hpuxjfs.
17855         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
17856         (func_test_same_acls): Use both lsacl and getacl.
17857         Handle hpuxjfs.
17858
17859 2011-06-12  Bruno Haible  <bruno@clisp.org>
17860
17861         acl: Complete the 2010-08-10 fix.
17862         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
17863         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
17864         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
17865         explicitly.
17866         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
17867         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
17868
17869 2011-06-12  Bruno Haible  <bruno@clisp.org>
17870
17871         spawn-pipe tests: Comments.
17872         * tests/test-spawn-pipe-child.c (main): Update comment.
17873         Reported by James Youngman <jay@gnu.org>.
17874
17875 2011-06-11  James Youngman  <jay@gnu.org>
17876
17877         New module 'stat-size'.
17878         * modules/stat-size: New module.  Provides macros for accessing
17879         file size information in instances of struct stat.  Depends on the
17880         fileblocks module because it calls st_blocks.
17881         * lib/stat-size.h: New file, adapted from coreutils' system.h.
17882         * doc/gnulib.texi: Include stat-size.texi.
17883         * doc/stat-size.texi: Documentation for this module.
17884         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
17885         * m4/fileblocks.m4: Mention that stat-size depends on the call to
17886         AC_STRUCT_ST_BLOCKS.
17887
17888 2011-06-09  Bruno Haible  <bruno@clisp.org>
17889
17890         thread: Support pthreads-win32.
17891         * lib/glthread/thread.h (gl_thread_self): Define differently on
17892         pthreads-win32.
17893         (gl_null_thread): New declaration.
17894         (gl_thread_self_pointer): New macro.
17895         * lib/glthread/thread.c (gl_null_thread): New constant.
17896         * tests/test-lock.c: Use gl_thread_self_pointer instead of
17897         gl_thread_self.
17898         * tests/test-tls.c: Likewise.
17899         Suggested by Paul Eggert. Reported by Eric Blake.
17900
17901 2011-06-09  Bruno Haible  <bruno@clisp.org>
17902
17903         thread: Fix confusion between NULL and 0.
17904         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
17905         Reported by Paul Eggert.
17906
17907 2011-06-09  Bruno Haible  <bruno@clisp.org>
17908
17909         spawn-pipe tests: Avoid test failure on HP-UX 11.
17910         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
17911         is closed.
17912
17913 2011-06-09  Bruno Haible  <bruno@clisp.org>
17914
17915         acl tests: Fix compilation error on HP-UX 11.
17916         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
17917
17918 2011-06-09  Bruno Haible  <bruno@clisp.org>
17919
17920         rmdir: Avoid test failure on HP-UX 10.20.
17921         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
17922         EEXIST.
17923
17924 2011-06-08  Eric Blake  <eblake@redhat.com>
17925
17926         perror: fix test on mingw
17927         * modules/perror-tests (Depends-on): Add dup2.
17928
17929         strerror_r-posix: fix on MacOS
17930         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
17931         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
17932         logic bug.
17933         * lib/strerror_r.c (strerror_r): Fix the bug.
17934         * lib/strerror.c (strerror): Likewise.
17935         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
17936         problem.
17937         * doc/posix-functions/strerror.texi (strerror): Likewise.
17938         * doc/posix-functions/perror.texi (perror): Likewise.
17939         * tests/test-strerror.c (main): Enhance test.
17940         * tests/test-strerror_r.c (main): Likewise.
17941
17942 2011-06-08  Bruno Haible  <bruno@clisp.org>
17943
17944         gnulib-tool: Better isolation between different gnulib-tool invocations.
17945         * gnulib-tool: New option --witness-c-macro.
17946         (witness_c_macro): New variable.
17947         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
17948         AM_CPPFLAGS define it as a C macro.
17949         (func_emit_tests_Makefile_am): Likewise.
17950         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
17951         read it from there.
17952         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
17953         m4_define, not AC_DEFUN.
17954         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
17955         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
17956         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
17957         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
17958         s|...|...|, to substitute the values of the GNULIB_* module indicator
17959         variables.
17960         * modules/dirent (Makefile.am): Likewise.
17961         * modules/fcntl-h (Makefile.am): Likewise.
17962         * modules/iconv-h (Makefile.am): Likewise.
17963         * modules/langinfo (Makefile.am): Likewise.
17964         * modules/locale (Makefile.am): Likewise.
17965         * modules/math (Makefile.am): Likewise.
17966         * modules/netdb (Makefile.am): Likewise.
17967         * modules/poll-h (Makefile.am): Likewise.
17968         * modules/pty (Makefile.am): Likewise.
17969         * modules/search (Makefile.am): Likewise.
17970         * modules/signal (Makefile.am): Likewise.
17971         * modules/spawn (Makefile.am): Likewise.
17972         * modules/stdio (Makefile.am): Likewise.
17973         * modules/stdlib (Makefile.am): Likewise.
17974         * modules/string (Makefile.am): Likewise.
17975         * modules/sys_ioctl (Makefile.am): Likewise.
17976         * modules/sys_select (Makefile.am): Likewise.
17977         * modules/sys_socket (Makefile.am): Likewise.
17978         * modules/sys_stat (Makefile.am): Likewise.
17979         * modules/sys_times (Makefile.am): Likewise.
17980         * modules/sys_utsname (Makefile.am): Likewise.
17981         * modules/sys_wait (Makefile.am): Likewise.
17982         * modules/termios (Makefile.am): Likewise.
17983         * modules/time (Makefile.am): Likewise.
17984         * modules/unistd (Makefile.am): Likewise.
17985         * modules/wchar (Makefile.am): Likewise.
17986
17987 2011-06-08  Eric Blake  <eblake@redhat.com>
17988
17989         strerror: simplify replacement
17990         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
17991         * modules/strerror (configure.ac): No prereqs needed here...
17992         * modules/strerror-override (configure.ac): ...but this needs it.
17993         (Files): Add file for needed prereq macro.
17994
17995 2011-06-08  Bruno Haible  <bruno@clisp.org>
17996
17997         strerror_r-posix: Tweaks.
17998         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
17999         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
18000         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
18001         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
18002         (gl_FUNC_STRERROR_R): ... to here.
18003         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
18004
18005 2011-06-07  Eric Blake  <eblake@redhat.com>
18006
18007         perror: document fixed bugs
18008         * doc/posix-functions/perror.texi (perror): Document recent
18009         patches.
18010
18011 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
18012
18013         stat-time: get_stat_birthtime failure is better-defined
18014         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
18015         return a timestamp whose tv_sec and tv_nsec values are both -1.
18016         Previously, the spec said only that the tv_nsec value was negative.
18017         This upward-compatible change simplifies GNU tar a bit.
18018
18019 2011-06-07  Eric Blake  <eblake@redhat.com>
18020
18021         strerror_r-posix: work around cygwin 1.7.9
18022         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
18023         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
18024         bug without replacing strerror_r.
18025         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
18026         strerror_r is buggy, but without requiring strerror_r compilation.
18027         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
18028
18029         test-perror: relax test to ignore cygwin bug
18030         * tests/test-perror2.c (main): Relax test on requiring detection
18031         of stream errors, and use unbuffered stream.
18032         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
18033         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
18034         * doc/posix-functions/fputc.texi (fputc): Likewise.
18035         * doc/posix-functions/fputs.texi (fputs): Likewise.
18036         * doc/posix-functions/fputws.texi (fputws): Likewise.
18037         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
18038         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
18039         * doc/posix-functions/getopt.texi (getopt): Likewise.
18040         * doc/posix-functions/perror.texi (perror): Likewise.
18041         * doc/posix-functions/printf.texi (printf): Likewise.
18042         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
18043         * doc/posix-functions/psignal.texi (psignal): Likewise.
18044         * doc/posix-functions/putc.texi (putc): Likewise.
18045         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
18046         Likewise.
18047         * doc/posix-functions/putchar.texi (putchar): Likewise.
18048         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
18049         Likewise.
18050         * doc/posix-functions/puts.texi (puts): Likewise.
18051         * doc/posix-functions/putwc.texi (putwc): Likewise.
18052         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
18053         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
18054         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
18055         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
18056         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
18057         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
18058         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
18059         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
18060
18061 2011-05-22  Bruno Haible  <bruno@clisp.org>
18062
18063         strerror: Move AC_LIBOBJ invocations to module description.
18064         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
18065         gl_PREREQ_STRERROR invocations from here...
18066         * modules/strerror (configure.ac): ... to here.
18067
18068 2011-05-21  Bruno Haible  <bruno@clisp.org>
18069
18070         perror: Use common idiom.
18071         * modules/perror (configure.ac): Reorder statements.
18072
18073 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
18074
18075         tests: fix usage message in 'mktempd_'
18076         * tests/init.sh (mktempd_): In the usage message, use literal
18077         'mktempd_', not '$ME' (which is even undefined), as the name of
18078         the subroutine.
18079
18080 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
18081
18082         tests init: new function 'fatal_', for hard errors
18083         Before this patch, the only way offered by tests/init.sh to
18084         properly signal a hard error was the `framework_failure_'
18085         function.  But the error message issued by that function,
18086         as its name would suggest, refers to a set-up failure in the
18087         testsuite, while hard errors can obviously also be due to
18088         other reasons.  The best way to fix this inconsistency is to
18089         introduce a new function with a more general error message.
18090         * tests/init.sh (fatal_): New function.
18091
18092 2011-06-06  Eric Blake  <eblake@redhat.com>
18093
18094         canonicalize-lgpl: use common idiom
18095         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
18096         over newer POSIX -Rf.
18097         Reported by Bruno Haible.
18098
18099         canonicalize-lgpl: work around AIX realpath bug
18100         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
18101         * doc/posix-functions/realpath.texi (realpath): Document it.
18102         Reported by Bruno Haible.
18103
18104         strerror: work around FreeBSD bug
18105         * lib/strerror.c (strerror): Special case 0.
18106         Reported by Bruno Haible.
18107
18108         strerror-override: avoid bloating errno module
18109         * modules/errno (Files, configure.ac): Move replacement strings...
18110         * modules/strerror-override: ...to new module.
18111         * modules/strerror (Depends-on): Add strerror-override.
18112         * modules/strerror_r-posix (Depends-on): Likewise.
18113         * MODULES.html.sh: Document new module.
18114         Reported by Bruno Haible.
18115
18116 2011-06-06  Bruno Haible  <bruno@clisp.org>
18117
18118         spawn-pipe tests: Rename program.
18119         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
18120         * tests/test-spawn-pipe-child.c: Update comment.
18121         * tests/test-spawn-pipe.sh: Update.
18122         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
18123
18124         spawn-pipe tests: Link the child program only against libc.
18125         * tests/test-spawn-pipe-child.c: New file, extracted from
18126         tests/test-spawn-pipe.c.
18127         (main): Expect only one argument.
18128         (is_open): New function, copied from tests/test-pipe.c.
18129         * tests/test-spawn-pipe.c: Don't include <errno.h>.
18130         (child_main): Remove function.
18131         (test_pipe): Pass only one argument to the child program.
18132         (main): Remove child process code. Expect the child program's name as
18133         first argument.
18134         * tests/test-spawn-pipe.sh: Pass the child program's name as first
18135         argument.
18136         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
18137         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
18138         test-spawn-pipe-child against no libraries.
18139
18140 2011-06-06  Bruno Haible  <bruno@clisp.org>
18141
18142         careadlinkat: Avoid mismatch between ssize_t and int.
18143         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
18144         * lib/careadlinkat.c (careadlinkatcwd): Define always.
18145
18146 2011-06-06  Jim Meyering  <meyering@redhat.com>
18147
18148         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
18149         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
18150         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
18151
18152 2011-06-05  Bruno Haible  <bruno@clisp.org>
18153
18154         ansi-c++-opt: Interoperability with libtool.
18155         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
18156         set the variable to "no", not to ":".
18157         * NEWS: Mention the change.
18158
18159 2011-06-05  Bruno Haible  <bruno@clisp.org>
18160
18161         acl: Fix test failure on AIX 7.
18162         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
18163         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
18164
18165 2011-06-05  Bruno Haible  <bruno@clisp.org>
18166
18167         pipe-filter-ii: Fix test failure on AIX and IRIX.
18168         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
18169         with EAGAIN, retry with a smaller buffer size.
18170
18171 2011-06-05  Bruno Haible  <bruno@clisp.org>
18172
18173         localename: Fix link dependencies.
18174         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
18175         * modules/localename-tests (Makefile.am): Link test-localename with
18176         $(LIBTHREAD).
18177
18178 2011-06-05  Bruno Haible  <bruno@clisp.org>
18179
18180         error: Avoid gcc warning.
18181         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
18182
18183 2011-06-05  Bruno Haible  <bruno@clisp.org>
18184
18185         unsetenv: Avoid gcc warning.
18186         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
18187
18188 2011-06-05  Bruno Haible  <bruno@clisp.org>
18189
18190         setenv: Avoid gcc warning.
18191         * lib/setenv.c (setenv): Provide declaration if system lacks it.
18192
18193 2011-06-05  Bruno Haible  <bruno@clisp.org>
18194
18195         sys_select: Ensure memset is declared also on AIX 7.
18196         * lib/sys_select.in.h: Include <string.h> also on AIX.
18197         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
18198         self-contained also on AIX 7.1.
18199
18200 2011-06-04  Jim Meyering  <meyering@redhat.com>
18201
18202         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
18203         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
18204         function name, "error".
18205         (_gl_translatable_diag_func_re): New configurable variable.
18206
18207 2011-06-04  Bruno Haible  <bruno@clisp.org>
18208
18209         getopt: Avoid gcc warning.
18210         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
18211
18212 2011-06-04  Bruno Haible  <bruno@clisp.org>
18213
18214         strerror_r: Fix comments.
18215         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
18216         commit.
18217
18218 2011-06-04  Bruno Haible  <bruno@clisp.org>
18219
18220         perror: Fix compilation error.
18221         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
18222         Undefine fprintf, not sprintf.
18223         * modules/perror (Depends-on): Remove intprops, verify.
18224
18225 2011-06-04  Bruno Haible  <bruno@clisp.org>
18226
18227         setlocale: Enable replacement on Cygwin 1.5.
18228         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
18229         Cygwin 1.5.x.
18230         * doc/posix-functions/setlocale.texi: Mention that the problem with the
18231         LC_CTYPE category also exists on Cygwin 1.5.x.
18232
18233 2011-06-04  Bruno Haible  <bruno@clisp.org>
18234
18235         strerror-override: Don't disable symbol renamings.
18236         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
18237         * lib/strerror-override.c: Include config.h.
18238         (strerror_override): Don't undefine.
18239
18240 2011-06-03  Bruno Haible  <bruno@clisp.org>
18241
18242         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
18243         * lib/localename.h: Update copyright header.
18244         * lib/localename.c: Likewise.
18245         * lib/relocatable.h: Likewise.
18246         * lib/relocatable.c: Likewise.
18247
18248 2011-06-02  Bruno Haible  <bruno@clisp.org>
18249
18250         doc: Fix a module name.
18251         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
18252
18253 2011-06-02  Bruno Haible  <bruno@clisp.org>
18254
18255         pipe2: Remove dependency on 'nonblocking' module.
18256         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
18257         O_NONBLOCK is defined by gnulib.
18258         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
18259         is zero.
18260         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
18261         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
18262         defined by gnulib.
18263         (get_nonblocking_flag): New function.
18264         (main): Test O_NONBLOCK flag only if it is nonzero.
18265         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
18266
18267 2011-06-03  Jim Meyering  <meyering@redhat.com>
18268
18269         maint: three new prohibit-header-without-use rules
18270         Prohibit use of cloexec.h, posixver.h, same.h without use.
18271         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
18272         (sc_prohibit_posixver_without_use): Likewise.
18273         (sc_prohibit_same_without_use): Likewise.
18274
18275 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
18276
18277         allocator: 'die' routine is now given requested size
18278         * lib/allocator.h (struct allocator.die): New size arg.
18279         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
18280         If the actual problem is an ssize_t limitation, not a size_t or
18281         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
18282
18283 2011-06-01  Eric Blake  <eblake@redhat.com>
18284
18285         strerror: drop strerror_r dependency
18286         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
18287         * lib/strerror-override.c (strerror_override): ...to new file.
18288         * lib/strerror-override.h: Add prototype.
18289         * lib/strerror-impl.h: Delete.
18290         * lib/strerror.c (strerror): New implementation.
18291         * modules/errno (Files): Add new files.
18292         (configure.ac): Compile new file as appropriate.
18293         * modules/strerror (Files): Drop unused file.
18294         (Depends-on): Drop strerror_r-posix.
18295         * MODULES.html.sh: Document strerror_r-posix.
18296         Requested by Sam Steingold.
18297
18298         perror: call strerror_r directly
18299         * modules/perror (Files): Drop strerror-impl.h.
18300         * lib/perror.c (perror): Use our own stack buffer, rather than
18301         calling a wrapper that uses static storage.
18302         * doc/posix-functions/perror.texi (perror): Document a limitation
18303         of our replacement.
18304
18305         strerror_r: fix includes for FreeBSD
18306         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
18307         since we use abort on some platforms.
18308         Reported by Matthias Bolte.
18309
18310 2011-05-31  Bruno Haible  <bruno@clisp.org>
18311
18312         Fix link errors in tests: openat-die uses gettext-h.
18313         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
18314         against $(LIBINTL).
18315         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
18316         against $(LIBINTL).
18317         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
18318         $(LIBINTL).
18319         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
18320         against $(LIBINTL).
18321         * modules/linkat-tests (Makefile.am): Link test-linkat against
18322         $(LIBINTL).
18323         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
18324         $(LIBINTL).
18325         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
18326         against $(LIBINTL).
18327         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
18328         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
18329         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
18330         $(LIBINTL).
18331         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
18332         $(LIBINTL).
18333         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
18334         $(LIBINTL).
18335         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18336
18337 2011-05-31  Bruno Haible  <bruno@clisp.org>
18338
18339         Fix link errors in tests: wait-process uses gettext-h.
18340         * modules/nonblocking-pipe-tests (Makefile.am): Set
18341         test_nonblocking_pipe_main_LDADD.
18342         * modules/nonblocking-socket-tests (Makefile.am): Link
18343         test-nonblocking-socket-main against $(LIBINTL).
18344         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18345
18346 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
18347
18348         assert-h: work around 'verify' incompatibility
18349         * lib/verify.h: Use @...@ directives, not ifdef.
18350         * modules/assert-h (assert.h): Implement the directives.
18351         (assert.h): Substitute the symbol-prefix more consistently.
18352
18353 2011-05-29  Jim Meyering  <meyering@redhat.com>
18354
18355         trim: remove three superfluous assignments
18356         * lib/trim.c (trim2): Remove three superfluous assignments
18357         and correct brace positioning.
18358
18359 2011-05-29  Bruno Haible  <bruno@clisp.org>
18360
18361         wctype-h: Avoid namespace pollution on Solaris 2.6.
18362         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
18363         identifiers.
18364         * doc/posix-headers/wctype.texi: Mention the problem.
18365         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18366
18367 2011-05-28  Jim Meyering  <meyering@redhat.com>
18368
18369         parse-datetime.y: accommodate -Wstrict-overflow
18370         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
18371         placate -Wstrict-overflow.
18372
18373         trim: avoid a warning from -O2 -Wstrict-overflow
18374         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
18375
18376 2011-05-29  Bruno Haible  <bruno@clisp.org>
18377
18378         gnulib-tool: Fix bug in yesterday's commit.
18379         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
18380         twice.
18381
18382 2011-05-29  Bruno Haible  <bruno@clisp.org>
18383
18384         Allow multiple gnulib generated include files to be combined.
18385         * gnulib-tool (func_compute_include_guard_prefix): New function.
18386         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
18387         ${gl_include_guard_prefix} references.
18388         (func_import, func_create_testdir): Invoke
18389         func_compute_include_guard_prefix.
18390         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
18391         * lib/ctype.in.h: Likewise.
18392         * lib/dirent.in.h: Likewise.
18393         * lib/errno.in.h: Likewise.
18394         * lib/fcntl.in.h: Likewise.
18395         * lib/float.in.h: Likewise.
18396         * lib/getopt.in.h: Likewise.
18397         * lib/iconv.in.h: Likewise.
18398         * lib/langinfo.in.h: Likewise.
18399         * lib/locale.in.h: Likewise.
18400         * lib/math.in.h: Likewise.
18401         * lib/netdb.in.h: Likewise.
18402         * lib/netinet_in.in.h: Likewise.
18403         * lib/poll.in.h: Likewise.
18404         * lib/pthread.in.h: Likewise.
18405         * lib/pty.in.h: Likewise.
18406         * lib/sched.in.h: Likewise.
18407         * lib/se-selinux.in.h: Likewise.
18408         * lib/search.in.h: Likewise.
18409         * lib/signal.in.h: Likewise.
18410         * lib/spawn.in.h: Likewise.
18411         * lib/stdarg.in.h: Likewise.
18412         * lib/stddef.in.h: Likewise.
18413         * lib/stdint.in.h: Likewise.
18414         * lib/stdio.in.h: Likewise.
18415         * lib/stdlib.in.h: Likewise.
18416         * lib/string.in.h: Likewise.
18417         * lib/strings.in.h: Likewise.
18418         * lib/sys_file.in.h: Likewise.
18419         * lib/sys_ioctl.in.h: Likewise.
18420         * lib/sys_select.in.h: Likewise.
18421         * lib/sys_socket.in.h: Likewise.
18422         * lib/sys_stat.in.h: Likewise.
18423         * lib/sys_time.in.h: Likewise.
18424         * lib/sys_times.in.h: Likewise.
18425         * lib/sys_uio.in.h: Likewise.
18426         * lib/sys_utsname.in.h: Likewise.
18427         * lib/sys_wait.in.h: Likewise.
18428         * lib/sysexits.in.h: Likewise.
18429         * lib/termios.in.h: Likewise.
18430         * lib/time.in.h: Likewise.
18431         * lib/unistd.in.h: Likewise.
18432         * lib/wchar.in.h: Likewise.
18433         * lib/wctype.in.h: Likewise.
18434         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
18435         * modules/ctype (Makefile.am): Likewise.
18436         * modules/dirent (Makefile.am): Likewise.
18437         * modules/errno (Makefile.am): Likewise.
18438         * modules/fcntl-h (Makefile.am): Likewise.
18439         * modules/float (Makefile.am): Likewise.
18440         * modules/getopt-posix (Makefile.am): Likewise.
18441         * modules/iconv-h (Makefile.am): Likewise.
18442         * modules/langinfo (Makefile.am): Likewise.
18443         * modules/locale (Makefile.am): Likewise.
18444         * modules/math (Makefile.am): Likewise.
18445         * modules/netdb (Makefile.am): Likewise.
18446         * modules/netinet_in (Makefile.am): Likewise.
18447         * modules/poll-h (Makefile.am): Likewise.
18448         * modules/pthread (Makefile.am): Likewise.
18449         * modules/pty (Makefile.am): Likewise.
18450         * modules/sched (Makefile.am): Likewise.
18451         * modules/search (Makefile.am): Likewise.
18452         * modules/selinux-h (Makefile.am): Likewise.
18453         * modules/signal (Makefile.am): Likewise.
18454         * modules/spawn (Makefile.am): Likewise.
18455         * modules/stdarg (Makefile.am): Likewise.
18456         * modules/stddef (Makefile.am): Likewise.
18457         * modules/stdint (Makefile.am): Likewise.
18458         * modules/stdio (Makefile.am): Likewise.
18459         * modules/stdlib (Makefile.am): Likewise.
18460         * modules/string (Makefile.am): Likewise.
18461         * modules/strings (Makefile.am): Likewise.
18462         * modules/sys_file (Makefile.am): Likewise.
18463         * modules/sys_ioctl (Makefile.am): Likewise.
18464         * modules/sys_select (Makefile.am): Likewise.
18465         * modules/sys_socket (Makefile.am): Likewise.
18466         * modules/sys_stat (Makefile.am): Likewise.
18467         * modules/sys_time (Makefile.am): Likewise.
18468         * modules/sys_times (Makefile.am): Likewise.
18469         * modules/sys_uio (Makefile.am): Likewise.
18470         * modules/sys_utsname (Makefile.am): Likewise.
18471         * modules/sys_wait (Makefile.am): Likewise.
18472         * modules/sysexits (Makefile.am): Likewise.
18473         * modules/termios (Makefile.am): Likewise.
18474         * modules/time (Makefile.am): Likewise.
18475         * modules/unistd (Makefile.am): Likewise.
18476         * modules/wchar (Makefile.am): Likewise.
18477         * modules/wctype-h (Makefile.am): Likewise.
18478         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
18479
18480 2011-05-29  Bruno Haible  <bruno@clisp.org>
18481
18482         assert-h: Allow multiple gnulib generated replacements to coexist.
18483         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
18484
18485 2011-05-29  Bruno Haible  <bruno@clisp.org>
18486
18487         argp: Allow coexistence with strerror_r-posix module.
18488         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
18489         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
18490         by gnulib's <string.h> replacement), assume it has the POSIX signature,
18491         not the glibc signature.
18492
18493 2011-05-28  Bruno Haible  <bruno@clisp.org>
18494
18495         gnulib-tool: Alternative structure of testdirs, similar to --import.
18496         * gnulib-tool: New option --single-configure.
18497         (func_usage): Document it.
18498         (single_configure): New variable.
18499         (func_modules_transitive_closure_separately,
18500         func_modules_transitive_closure_separately,
18501         func_determine_use_libtests, func_modules_add_dummy_separately,
18502         func_modules_to_filelist_separately): New functions, extracted from
18503         func_import.
18504         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
18505         (func_import): Use the new functions.
18506         (func_create_testdir): Set final_modules. Handle $single_configure =
18507         true case.
18508
18509 2011-05-28  Bruno Haible  <bruno@clisp.org>
18510
18511         getloadavg: Remove an unreliable safety check.
18512         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
18513         getloadavg.c is in place.
18514         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
18515         Reported by Sam Steingold <sds@gnu.org>.
18516
18517 2011-05-28  Bruno Haible  <bruno@clisp.org>
18518
18519         doc: Cleanup yet another file produced by texinfo.tex.
18520         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
18521
18522 2011-05-28  Bruno Haible  <bruno@clisp.org>
18523
18524         Finish the conditional dependencies mechanism.
18525         * gnulib-tool: New option --no-conditional-dependencies.
18526         (func_usage): Document it. Don't mark --conditional-dependencies as
18527         experimental.
18528         (cond_dependencies): The possible values can now be true, false, empty.
18529         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
18530         (func_import): Store setting in gnulib-cache.m4 and read it from there.
18531         * doc/gnulib-tool.texi (Conditional dependencies): New section.
18532
18533 2011-05-28  Bruno Haible  <bruno@clisp.org>
18534
18535         doc: Use a recent texinfo.tex.
18536         * doc/Makefile (tex_opts): New variable.
18537         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
18538
18539 2011-05-28  Jim Meyering  <meyering@redhat.com>
18540
18541         intprops.h: adjust comment to match code change
18542         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
18543         only once, it *may* have side effects.  Also fix an unrelated typo.
18544         (_GL_INT_SIGNED): Likewise.
18545
18546 2011-05-26  Simon Josefsson  <simon@josefsson.org>
18547
18548         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
18549
18550 2011-05-26  Bruno Haible  <bruno@clisp.org>
18551
18552         mbsrchr: Avoid collision with system function on Interix.
18553         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
18554         Reported by Markus Duft <mduft@gentoo.org>.
18555
18556 2011-05-15  James Youngman  <jay@gnu.org>
18557
18558         getopt: for ambiguous options, enumerate the possibilities.
18559         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
18560         the ambiguous options when an ambiguous prefix is given. This was
18561         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
18562         glibc change was
18563         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
18564
18565 2011-05-25  Eric Blake  <eblake@redhat.com>
18566
18567         getcwd: work around mingw bug
18568         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
18569         * doc/posix-functions/getcwd.texi (getcwd): Document it.
18570         Reported by Matthias Bolte.
18571
18572 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
18573
18574         test-intprops: disable -Wtype-limits diagnostics
18575         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
18576         diagnostics.  Otherwise, the integer overflow macros generate many
18577         diagnostics.  Reported by Jim Meyering in
18578         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
18579
18580         intprops: shorten, to pacify gcc -Woverlength-strings
18581         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
18582         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
18583         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
18584         likely to run afoul of C compiler limits for string constant lengths.
18585         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
18586
18587 2011-05-24  Eric Blake  <eblake@redhat.com>
18588
18589         docs: document recently fixed glibc printf bug
18590         * doc/posix-functions/fprintf.texi (fprintf): Document it.
18591         * doc/posix-functions/printf.texi (printf): Likewise.
18592         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
18593         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
18594
18595         closein-tests: convert to init.sh
18596         * modules/closein-tests (Files): Add init.sh
18597         * tests/test-closein.sh Use it.
18598
18599         yesno-tests: convert to init.sh
18600         * modules/yesno-tests (Files): Add init.sh.
18601         * tests/test-yesno.sh: Use it.
18602
18603         atexit-tests: ensure reliable exit status
18604         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
18605         Reported by Bruno Haible.
18606
18607 2011-05-24  Bruno Haible  <bruno@clisp.org>
18608
18609         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
18610         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
18611         gl_PREREQ_STRERROR_R invocations from here...
18612         * modules/strerror_r-posix (configure.ac): ... to here.
18613
18614 2011-05-24  Eric Blake  <eblake@redhat.com>
18615
18616         strerror_r: fix missing header
18617         * lib/strerror_r.c: Avoid compiler warning about snprintf.
18618
18619         strerror_r: fix AIX test failures
18620         * lib/strerror_r.c (strerror_r): Convert silent truncation to
18621         ERANGE failure.
18622
18623         strerror_r: fix Solaris test failures
18624         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
18625         failures.
18626         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
18627
18628         strerror_r: enforce POSIX recommendations
18629         * lib/strerror_r.c (safe_copy): New helper method.
18630         (strerror_r): Guarantee a non-empty string.
18631         * tests/test-strerror_r.c (main): Enhance tests to incorporate
18632         recent POSIX rulings and to match our strerror guarantees.
18633         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
18634
18635 2011-05-24  Jim Meyering  <meyering@redhat.com>
18636
18637         test-perror2.c: avoid warning about unused variable
18638         * tests/test-perror2.c (main): Remove declaration of unused "fp".
18639
18640 2011-05-24  Eric Blake  <eblake@redhat.com>
18641
18642         perror: avoid spurious test failure on HP-UX
18643         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
18644
18645         tests: fix logic bug in init.sh
18646         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
18647         shell.
18648
18649 2011-05-24  Jim Meyering  <meyering@redhat.com>
18650
18651         utimensat: do not reference an out-of-scope buffer
18652         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
18653         declared in an inner scope, yet "times" would be dereferenced outside
18654         the scope in which "ts" was valid.
18655         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
18656         of ts[2] "out/up", so that the use of aliased "times" (via
18657         "times = ts;") does not end up referencing an out-of-scope "ts"
18658
18659         opendir-safer.c: don't clobber errno; don't close negative FD
18660         * lib/opendir-safer.c (opendir_safer):
18661         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
18662         file descriptor, and more importantly, don't clobber the
18663         offending errno value with EINVAL.  Before, upon failure
18664         of dup_safer, we would pass the negative file descriptor to
18665         fdopendir, which would clobber errno.
18666
18667 2011-05-23  Bruno Haible  <bruno@clisp.org>
18668
18669         idcache: Fix module description.
18670         * modules/idcache (Include): Set to "idcache.h".
18671
18672 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
18673
18674         gnulib-tool: fix portability problem with MacOS sed
18675         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
18676         before the "}".  Problem reported by Leo in
18677         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
18678         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
18679         sed_extract_condition1, sed_extract_condition2.
18680
18681 2011-05-23  Bruno Haible  <bruno@clisp.org>
18682
18683         hash: Simplify autoconf macro.
18684         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
18685
18686 2011-05-23  Bruno Haible  <bruno@clisp.org>
18687
18688         getugroups: Fix module description.
18689         * modules/getugroups (Include): Set to "getugroups.h".
18690
18691 2011-05-23  Bruno Haible  <bruno@clisp.org>
18692
18693         linkat: Simplify autoconf macro.
18694         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
18695
18696 2011-05-23  Bruno Haible  <bruno@clisp.org>
18697             Eric Blake  <eblake@redhat.com>
18698
18699         linkat, renameat: Update dependencies.
18700         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
18701         * modules/linkat (Depends-on): Likewise. Remove also readlink,
18702         symlinkat.
18703
18704 2011-05-23  Jim Meyering  <meyering@redhat.com>
18705
18706         maint.mk: more tight_scope improvements
18707         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
18708         (_gl_TS_headers): Define only in if-0'd block.
18709         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
18710         sometimes we must *not* use it.  Adjust uses accordingly.
18711         (sc_tight_scope): Use much simpler grep-based test to determine
18712         whether we skip this rule.
18713
18714         maint.mk: generalize/improve the tight-scope rule
18715         * top/maint.mk: Emit a warning when the test is skipped.
18716         (_gl_TS_dir): Add $(srcdir)/ prefix.
18717         (_gl_TS_function_match): Simplify, rather than trying
18718         to enumerate common types.  Otherwise, it would fail to match an
18719         "extern unsigned char const *" declaration in idutils.
18720         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
18721         a way to support use of that type of macro.
18722         (_gl_TS_var_match): Simplify regexp.
18723         (_gl_TS_obj_files): New configurable variable.
18724         (_gl_TS_headers): Likewise.
18725
18726 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
18727
18728         verify: fix bug when gnulib <assert.h> is also included
18729         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
18730         is defined, not if _GL_STATIC_ASSERT_H is not defined.
18731         Perhaps there's a better way, but this fixes the immediate problem.
18732         Problem reported by Bruno Haible in
18733         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
18734
18735 2011-05-22  Bruno Haible  <bruno@clisp.org>
18736
18737         xgetcwd: Simplify autoconf macro.
18738         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
18739
18740 2011-05-22  Bruno Haible  <bruno@clisp.org>
18741
18742         New module 'mktime-internal'.
18743         * modules/mktime-internal: New file.
18744         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
18745         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
18746         mktime_internal as a C macro if libc has __mktime_internal.
18747         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
18748         conditions.
18749         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
18750
18751 2011-05-22  Bruno Haible  <bruno@clisp.org>
18752
18753         timegm: Correct mktime replacement statements.
18754         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
18755         defining mktime as a C macro. This completes a 2009-07-28 commit.
18756
18757 2011-05-22  Bruno Haible  <bruno@clisp.org>
18758
18759         timegm: Simplify autoconf macro.
18760         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
18761
18762 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
18763
18764         clock-time: change to LGPLv2+.
18765         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
18766         BSD-like but we have no mark for that; this is good enough for now.
18767
18768 2011-05-21  Bruno Haible  <bruno@clisp.org>
18769
18770         strerror_r: Fix comments.
18771         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
18772
18773 2011-05-21  Bruno Haible  <bruno@clisp.org>
18774
18775         relocatable-prog-wrapper: Fix possible link error.
18776         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
18777         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
18778         (gl_FUNC_SETENV): ... to here.
18779         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
18780         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
18781
18782 2011-05-21  Bruno Haible  <bruno@clisp.org>
18783
18784         relocatable-prog-wrapper: Assume strerror() exists.
18785         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
18786         m4/strerror.m4.
18787         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
18788         * lib/relocwrapper.c: Remove mention of strerror module.
18789         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
18790         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
18791         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
18792         C macro.
18793
18794 2011-05-21  Bruno Haible  <bruno@clisp.org>
18795
18796         select: Simplify replacement idiom.
18797         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
18798         Win32 platforms.
18799         * lib/sys_select.in.h (select): Simplify accordingly.
18800         * modules/select (Depends-on): Likewise.
18801
18802 2011-05-21  Bruno Haible  <bruno@clisp.org>
18803
18804         mkdir-p: Simplify autoconf macro.
18805         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
18806         gl_FUNC_LCHOWN.
18807
18808 2011-05-21  Eric Blake  <eblake@redhat.com>
18809
18810         strerror_r: avoid clobbering strerror on cygwin
18811         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
18812         fall back instead to sys_errlist.
18813         * modules/strerror (configure.ac): Add witness.
18814         * tests/test-strerror_r.c (main): Enhance test.
18815         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
18816         * tests/test-perror2.c (main): Free memory before exit.
18817
18818 2011-05-21  Bruno Haible  <bruno@clisp.org>
18819
18820         mkdtemp: Use gnulib naming conventions.
18821         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
18822         * modules/mkdtemp (configure.ac): Update.
18823
18824 2011-05-20  Eric Blake  <eblake@redhat.com>
18825
18826         strerror_r: avoid corrupting errno on Solaris
18827         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
18828         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
18829
18830         strerror_r: avoid compiler warning
18831         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
18832
18833         strerror_r: simplify AIX code
18834         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
18835
18836         test-perror: avoid spurious failure on FreeBSD
18837         * modules/perror-tests (Depends-on): Add strerror, now that
18838         strerror_r no longer pulls it in.
18839
18840 2011-05-20  Bruno Haible  <bruno@clisp.org>
18841
18842         strerror_r-posix: Remove unused dependencies.
18843         * modules/strerror_r-posix (Depends-on): Remove strerror.
18844         Reported by Eric Blake.
18845
18846 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
18847
18848         intprops: remove assumption about A|B representation
18849         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
18850         is a valid integer if both A and B are.  Although this is true for
18851         all known practical hosts, the C standard doesn't guarantee it,
18852         and the code need not assume it.  Also, this change may work around
18853         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
18854         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
18855
18856 2011-05-20  Eric Blake  <eblake@redhat.com>
18857
18858         perror: work around FreeBSD bug
18859         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
18860         is broken.  Move AC_LIBOBJ...
18861         * modules/perror (configure.ac): Here.
18862         * doc/posix-functions/perror.texi (perror): Document this.
18863         * tests/test-perror2.c (main): Enhance test.
18864
18865         test-perror: check for strerror interactions
18866         * tests/macros.h (STREQ): Add macro.
18867         * modules/perror-tests (Files): Add second test.
18868         * tests/test-perror2.c (main): New file.
18869         * doc/posix-functions/perror.texi (perror): Document glibc bug.
18870
18871         test-perror: rewrite to use init script
18872         * modules/perror-tests (Files): Add init.sh.
18873         * tests/test-perror.sh: Use temporary directory.
18874
18875 2011-05-20  Jim Meyering  <meyering@redhat.com>
18876
18877         maint: replace misused "a" with "an"
18878         * doc/intprops.texi: "a integer"
18879         * doc/regex.texi: "a explanation"
18880         * lib/alignof.h: "a object"
18881         * lib/argmatch.h: "a explanation"
18882         * lib/argp-help.c: "a option" and "a OPTION_DOC"
18883         * lib/stdint.in.h: "a integer"
18884         * lib/userspec.c: "a owner"
18885         * doc/gnulib.texi: Fix "a idea", and reword.
18886
18887 2011-05-19  Jim Meyering  <meyering@redhat.com>
18888
18889         maint: correct misuse of "a" and "an"
18890         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
18891         * lib/argp-help.c: "an docum...": s/an/a/
18892         * lib/argp-parse.c: "An vector": s/An/A/
18893         * lib/execute.c: "an native": s/an/a/
18894         * lib/spawn-pipe.c: Likewise.
18895         * lib/gc.h: "an Gc_rc": s/an/a/
18896         * lib/unigbrk.in.h: "an grapheme": s/an/a/
18897         * lib/fts.c: "an stat.st_dev": s/an/a/
18898
18899 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
18900
18901         intprops-tests: work around HP-UX 11.23 cc bug with constants
18902         * tests/test-intprops.c (VERIFY): New macro.
18903         (main): Use it, instead of verify, to work around the compiler bug; see
18904         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
18905
18906         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
18907         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
18908         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
18909         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
18910         (_GL_REMAINDER_OVERFLOW): Use it.
18911
18912         intprops-tests: revert unsigned part of previous change
18913         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
18914         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
18915         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
18916         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
18917
18918 2011-05-19  Bruno Haible  <bruno@clisp.org>
18919
18920         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
18921         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
18922         strerror_r() returned without filling the buffer.
18923         Reported by Eric Blake.
18924
18925 2011-05-19  Eric Blake  <eblake@redhat.com>
18926
18927         strerror_r: guarantee unchanged errno
18928         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
18929         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
18930         failure.
18931         * tests/test-strerror_r.c (main): Enhance test.
18932
18933 2011-05-19  Bruno Haible  <bruno@clisp.org>
18934
18935         strerror_r: Reorder #if blocks.
18936         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
18937         for consistency with the previous commit.
18938
18939 2011-05-19  Bruno Haible  <bruno@clisp.org>
18940
18941         perror: Avoid clobbering the strerror buffer when possible.
18942         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
18943         * lib/strerror.c: Include it.
18944         * modules/strerror (Files): Add lib/strerror-impl.h.
18945         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
18946         (my_strerror): New function, defined through lib/strerror-impl.h.
18947         (perror): Use it instead of strerror.
18948         * modules/perror (Files): Add lib/strerror-impl.h.
18949         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
18950
18951 2011-05-19  Eric Blake  <eblake@redhat.com>
18952
18953         strerror_r: fix on newer cygwin
18954         * lib/strerror_r.c (strerror_r): Cygwin now has
18955         __xpg_strerror_r, use it.
18956
18957 2011-05-19  Bruno Haible  <bruno@clisp.org>
18958
18959         strerror_r: Avoid clobbering the strerror buffer when possible.
18960         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
18961         (sys_nerr, sys_errlist): New declarations.
18962         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
18963         HP-UX, native Win32, IRIX, and 32-bit Solaris.
18964         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
18965
18966 2011-05-19  Bruno Haible  <bruno@clisp.org>
18967
18968         strerror_r: Fix test failure on mingw.
18969         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
18970         EXTEND_STRERROR_R.
18971         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
18972         macros from errno.in.h instead.
18973
18974 2011-05-19  Eric Blake  <eblake@redhat.com>
18975
18976         strerror: relax test for Solaris
18977         * tests/test-strerror.c (main): Permit Solaris behavior.
18978         * tests/test-strerror_r.c (main): Likewise.
18979
18980         strerror: enforce POSIX ruling on strerror(0)
18981         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
18982         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
18983         * lib/strerror_r.c (rpl_strerror_r): Work around it.
18984         * doc/posix-functions/strerror.texi (strerror): Document it.
18985         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
18986         * tests/test-strerror.c (main): Strengthen test.
18987         * tests/test-strerror_r.c (main): Likewise.
18988
18989 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
18990
18991         intprop-tests: port to older and more-pedantic compilers
18992         * modules/intprops-tests (Files): Add tests/macros.h.
18993         * tests/test-intprops.c: Include macros.h.
18994         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
18995         it's no longer documented to expand to an integer constant expression.
18996         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
18997         argument is floating point, as it's no longer documented to expand
18998         to an integer constant expression in that case.
18999         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
19000         compiler bugs reported by Bruno Haible.  See
19001         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
19002         (U0, U1): New constants, to work around the same bugs.  Also,
19003         in tests, use e.g., "(unsigned int) 39" rather than "39u".
19004
19005         intprops: work around C compiler bugs
19006         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
19007         bug in Sun C 5.11 2010/08/13 and other compilers; see
19008         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
19009
19010         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
19011         * doc/intprops.texi (Integer Type Determination): Fix
19012         documentation for TYPE_IS_INTEGER: it returns an constant
19013         expression, not an integer constant expression.  Fix doc for
19014         TYPE_SIGNED: it returns an integer constant expression only if its
19015         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
19016         hardly worth documented that way....)
19017
19018 2011-05-18  Bruno Haible  <bruno@clisp.org>
19019
19020         strerror_r: Avoid clobbering the strerror buffer when possible.
19021         * lib/strerror_r.c (strerror_r): Merge the three implementations.
19022         Handle gnulib defined errno values here. When strerror() returns NULL
19023         or an empty string, return EINVAL.
19024         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
19025         gnulib defined errno values here.
19026         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
19027
19028 2011-05-18  Eric Blake  <eblake@redhat.com>
19029
19030         fnmatch: avoid compiler warning
19031         * lib/fnmatch_loop.c (FCT): Use correct type.
19032         Reported by Matthias Bolte.
19033
19034 2011-05-13  Jim Meyering  <meyering@redhat.com>
19035
19036         maint.mk: three new prohibit_<HDR>_without_use rules
19037         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
19038         (sc_prohibit_stdio-safer_without_use): Likewise.
19039         (sc_prohibit_xfreopen_without_use): Likewise.
19040
19041 2011-05-17  Jim Meyering  <meyering@redhat.com>
19042
19043         announce-gen: fail if the NEWS delta is empty
19044         If there's nothing noteworthy in NEWS, then either you forgot
19045         or you shouldn't be releasing.
19046         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
19047
19048 2011-05-17  Pádraig Brady <P@draigBrady.com>
19049
19050         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
19051         reserved symbols starting with double underscore from the check.
19052
19053 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
19054
19055         intprops: add doc
19056         * doc/intprops.texi: New file, documenting intprops.
19057         * doc/gnulib.texi (Particular Modules): Include it.
19058
19059         verify: add doc to gnulib manual and fix example
19060         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
19061         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
19062         (Compile-time Assertions): Fix example so it can't overflow.
19063
19064 2011-05-17  Jim Meyering  <meyering@redhat.com>
19065
19066         warnings.m4: don't usurp save_CPPFLAGS variable name
19067         * m4/warnings.m4: Prefix local temporary variable name with gl_.
19068
19069         doc: fix typo
19070         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
19071
19072 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
19073             Bruno Haible  <bruno@clisp.org>
19074
19075         doc: Tweak recent change.
19076         * README (Portability guidelines): Tweak new text.
19077         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
19078         Interix 6.1.
19079
19080 2011-05-16  Eric Blake  <eblake@redhat.com>
19081
19082         inttypes: avoid autoconf warning
19083         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
19084         * m4/stdint.m4 (gl_STDINT_H): Likewise.
19085
19086 2011-05-16  Sam Steingold <sds@gnu.org>
19087         and Eric Blake  <eblake@redhat.com>
19088
19089         vc-list-files: accept multiple directory operands
19090         * build-aux/vc-list-files: Iterate over all remaining operands.
19091
19092 2011-05-16  Bruno Haible  <bruno@clisp.org>
19093
19094         Fix confusion regarding deprecated modules.
19095         * modules/calloc (Status, Notice): Mark module as deprecated, not
19096         obsolete.
19097         * modules/fnmatch-posix (Status, Notice): Likewise.
19098         * modules/getdate (Status, Notice): Likewise.
19099         * modules/getopt (Status, Notice): Likewise.
19100         * modules/malloc (Status, Notice): Likewise.
19101         * modules/pipe (Status, Notice): Likewise.
19102         * modules/realloc (Status, Notice): Likewise.
19103         * modules/rename-dest-slash (Status, Notice): Likewise.
19104         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
19105         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
19106         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
19107         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
19108         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
19109
19110 2011-05-16  Bruno Haible  <bruno@clisp.org>
19111
19112         doc: List the target platforms.
19113         * doc/gnulib-intro.texi (Target Platforms): New section.
19114         * doc/gnulib.texi (Introduction): Update menu.
19115         * README (Portability guidelines): Refer to the new section. Update
19116         statement about oldest supported environment. Remove rationale why
19117         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
19118         unportable C89 function.
19119         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
19120         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
19121
19122 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
19123
19124         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
19125
19126 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
19127
19128         intprops-tests: new module
19129         * modules/intprops-tests, tests/test-intprops.c: New files.
19130
19131         intprops: add safe, portable integer overflow checking
19132         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
19133         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
19134         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
19135         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
19136         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
19137         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
19138         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
19139         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
19140         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
19141         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
19142         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
19143
19144 2011-05-12  James Youngman  <jay@gnu.org>
19145
19146         Add a test for glibc's Bugzilla bug #12378.
19147         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
19148         doesn't allow the literal matching of a lone "[" (which is
19149         required by POSIX).
19150         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
19151
19152 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
19153
19154         Sync glibc change fixing Bugzilla bug #12378.
19155         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
19156         beginning and fall back to matching as normal character if the
19157         string ends before the matching ']' is found.  This is what POSIX
19158         requires.
19159
19160 2011-05-13  Eric Blake  <eblake@redhat.com>
19161
19162         getcwd-lgpl: relax test for FreeBSD
19163         * doc/posix-functions/getcwd.texi (getcwd): Document portability
19164         issue.
19165         * tests/test-getcwd-lgpl.c (main): Relax test.
19166         Reported by Matthias Bolte.
19167
19168 2011-05-11  Eric Blake  <eblake@redhat.com>
19169
19170         test-fflush: silence compiler warning
19171         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
19172
19173 2011-05-11  Bruno Haible  <bruno@clisp.org>
19174
19175         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
19176         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
19177         * modules/canonicalize (Depends-on): Add 'nocrash'.
19178         * modules/canonicalize-lgpl (Depends-on): Likewise.
19179         * doc/posix-functions/realpath.texi: Update platforms list.
19180         Reported by Ryan Schmidt <ryandesign@macports.org>.
19181
19182 2011-05-11  Bruno Haible  <bruno@clisp.org>
19183
19184         group-member: Declare function in <unistd.h>.
19185         * lib/unistd.in.h (group_member): New declaration.
19186         * lib/group-member.h: Remove file.
19187         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
19188         * tests/test-unistd-c++.cc: Check signature of group_member.
19189         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
19190         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
19191         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
19192         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
19193         HAVE_GROUP_MEMBER.
19194         * modules/group-member (Files): Remove lib/group-member.h.
19195         (Depends-on): Add unistd. Specify conditions.
19196         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19197         (Include): Change to <unistd.h>.
19198         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
19199         HAVE_GROUP_MEMBER.
19200         * NEWS: Mention the change.
19201         * lib/euidaccess.c: Don't include group-member.h.
19202
19203 2011-05-11  Bruno Haible  <bruno@clisp.org>
19204
19205         group-member: Document module.
19206         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
19207         module.
19208
19209 2011-05-11  Bruno Haible  <bruno@clisp.org>
19210
19211         fclose: Fix mistake earlier today.
19212         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
19213
19214 2011-05-11  Eric Blake  <eblake@redhat.com>
19215
19216         fclose: preserve fflush errors
19217         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
19218         Reported by Jim Meyering.
19219
19220         bootstrap: support a prereq of 'rpcgen -' on RHEL5
19221         * build-aux/bootstrap (check_versions): When no specific version
19222         is required, merely check that the app produces an exit status
19223         that indicates its existence.
19224
19225         maint.mk: drop redundant check
19226         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
19227         the same but better.
19228
19229 2011-05-11  Bruno Haible  <bruno@clisp.org>
19230
19231         fclose: Fix possible link error.
19232         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
19233         unregister_shadow_fd. Improve comments.
19234         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
19235         Eric Blake.
19236
19237 2011-05-11  Jim Meyering  <meyering@redhat.com>
19238
19239         maint.mk: improve "can not" detection and generalize rule name
19240         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
19241         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
19242         Use the same technique as in sc_prohibit_doubled_word, so that
19243         we recognize "can not" also when the words are separated by a newline.
19244         Suggested by Eric Blake.
19245         (perl_filename_lineno_text_): Define.  Factored out of...
19246         (prohibit_doubled_word_): ...here.  Use the new definition.
19247         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
19248         (prohibit_undesirable_word_seq_RE_): New overridable variable.
19249         (ignore_undesirable_word_sequence_RE_): New overridable variable.
19250
19251 2011-05-10  Eric Blake  <eblake@redhat.com>
19252
19253         fclose: avoid double close race when possible
19254         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
19255         all but WINDOWS_SOCKETS.
19256
19257 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
19258
19259         openat: correct new comment
19260         * lib/openat-proc.c (openat_proc_name): Correct the comment.
19261
19262 2011-05-10  Jim Meyering  <meyering@redhat.com>
19263
19264         openat: add comments
19265         * lib/openat-proc.c (openat_proc_name): Add comments,
19266         mostly from Eric Blake.
19267
19268 2011-05-09  Eric Blake  <eblake@redhat.com>
19269
19270         openat: reduce syscalls in first probe of /proc
19271         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
19272         be a directory.  Simplify the probe for .. bugs.
19273         * modules/openat (Depends-on): Drop same-inode.
19274         Reported by Bastien ROUCARIES.
19275
19276 2011-05-09  Jim Meyering  <meyering@redhat.com>
19277
19278         maint.mk: change semantics/name of tight_scope variables
19279         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
19280         Rename variables to align with semantics that make them more useful.
19281
19282         maint.mk: tweak new rule's name not to impinge
19283         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
19284         (sc_tight_scope): Use new rule name rather than $@-0.
19285
19286         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
19287         * top/maint.mk (sc_tight_scope): New rule.
19288         (sc_tight_scope-0): New rule, ifdef'd out.
19289         (_gl_TS_dir): Default.
19290         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
19291         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
19292
19293 2011-05-09  Simon Josefsson  <simon@josefsson.org>
19294
19295         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
19296         Haible <bruno@clisp.org>.
19297
19298 2011-05-08  Bruno Haible  <bruno@clisp.org>
19299
19300         Comments.
19301         * m4/isnanf.m4: Add comment.
19302         * m4/isnanl.m4: Likewise.
19303
19304 2011-05-08  Bruno Haible  <bruno@clisp.org>
19305
19306         glob: Remove obsolete macro.
19307         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
19308
19309 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
19310
19311         intprops: Sun C 5.11 supports __typeof__
19312         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
19313         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
19314         which is new.
19315         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
19316
19317         intprops: switch to usual gnulib indenting and naming
19318         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
19319         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
19320
19321         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
19322
19323 2011-05-08  Jim Meyering  <meyering@redhat.com>
19324
19325         maint.mk: suppress "Entering/Leaving directory" diag in announcement
19326         * top/maint.mk (release-prep): Use make's --no-print-directory
19327         option when generating the announcement.  This eliminates the
19328         pesky "make[2]: Entering/Leaving directory" diagnostics in the
19329         generated announcement template.
19330
19331 2011-05-08  Bruno Haible  <bruno@clisp.org>
19332
19333         tzset: Fix gettimeofday wrapper on Solaris 2.6.
19334         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
19335         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
19336
19337 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
19338
19339         ignore-value, verify: Omit include files from lib_SOURCES.
19340         * modules/ignore-value, modules/verify (Makefile.am):
19341         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
19342         that leads Automake to duplicate use of am__objects_... variables
19343         in Makefile.in.  See
19344         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
19345
19346 2011-05-07  Bruno Haible  <bruno@clisp.org>
19347
19348         fclose: Simplify autoconf macro.
19349         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
19350         defined.
19351
19352 2011-05-07  Bruno Haible  <bruno@clisp.org>
19353
19354         canonicalize-lgpl: Fix autoconf macro ordering bug.
19355         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
19356         gl_STDLIB_H_DEFAULTS.
19357
19358 2011-05-06  Eric Blake  <eblake@redhat.com>
19359
19360         maintainer-makefile: make sc_po_check easier to tune
19361         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
19362         to probe for strings, such as an alternate location for gnulib.
19363
19364         fclose: guarantee behavior on seekable stdin
19365         * modules/fclose (Depends-on): Add fflush.
19366         * doc/posix-functions/fclose.texi (fclose): Document this.
19367         * tests/test-fclose.c (main): Make test for this unconditional.
19368
19369 2011-05-06  Bruno Haible  <bruno@clisp.org>
19370
19371         fflush, fpurge: Relicense under LGPLv2+.
19372         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
19373         * modules/fpurge (License): Likewise.
19374         With permission from Eric Blake and Jim Meyering.
19375         Suggested by Eric Blake.
19376
19377 2011-05-06  Karl Berry  <karl@gnu.org>
19378
19379         * MODULES.html.sh (func_all_modules): remove exit.
19380
19381 2011-05-06  Jim Meyering  <meyering@redhat.com>
19382
19383         maint.mk: use info-gnu@ as the default only for a stable release
19384         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
19385         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
19386         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
19387         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
19388
19389 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
19390
19391         assert-h: new module, which supports C1X-style static_assert
19392         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
19393         * lib/verify.h: Revamp so that this can be copied into assert.h,
19394         while retaining the ability to use it standalone as before.
19395         Rename private identifiers so as not to encroach on the
19396         standard C namespace, since this is now used by assert.h.
19397         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
19398         the old verify_true.
19399         (_GL_VERIFY_TRUE): New macro, with much of the contents of
19400         the old verify_true.  Use _GL_VERIFY_TYPE.
19401         (_GL_VERIFY): New macro, with much of the contents of the old verify.
19402         (static_assert): New macro, if _GL_STATIC_ASSERT_H
19403         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
19404         defined when this file is copied into the replacement assert.h.
19405         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
19406         and _Static_assert is not built in.
19407         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
19408         defined, and use the new macros mentioned above.
19409         * doc/posix-headers/assert.texi: Document this.
19410
19411 2011-05-05  Bruno Haible  <bruno@clisp.org>
19412
19413         fclose, fflush: Respect rules for use of AC_LIBOBJ.
19414         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
19415         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
19416         gl_REPLACE_FCLOSE here.
19417         * modules/fflush (Depends-on): Remove fclose.
19418         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
19419         combination with module 'fclose'.
19420
19421 2011-05-05  Bruno Haible  <bruno@clisp.org>
19422
19423         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
19424         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
19425         gl_FUNC_FFLUSH.
19426         (gl_FUNC_FFLUSH): Use it.
19427         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
19428         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
19429         gl_REPLACE_FSEEKO here.
19430
19431 2011-05-05  Bruno Haible  <bruno@clisp.org>
19432
19433         tzset: Relicense under LGPL.
19434         * modules/tzset (License): Change to LGPL.
19435         No agreement needed; it's a no-op.
19436
19437         strtoimax, strtoumax: Relicense under LGPL.
19438         * modules/strtoimax (License): Change to LGPL.
19439         * modules/strtoumax (License): Likewise.
19440         With permission from Jim Meyering, Paul Eggert:
19441         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
19442         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
19443
19444         getgroups: Relicense under LGPL.
19445         * modules/getgroups (License): Change to LGPL.
19446         With permission from Jim Meyering, Paul Eggert, Eric Blake:
19447         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
19448         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
19449         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
19450
19451         nanosleep: Relicense under LGPL.
19452         * modules/nanosleep (License): Change to LGPL.
19453         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
19454         Haible:
19455         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
19456         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
19457         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
19458         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
19459
19460         futimens: Relicense under LGPL.
19461         * modules/futimens (License): Change to LGPL.
19462         With permission from Eric Blake:
19463         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
19464
19465         fflush: Relicense under LGPL.
19466         * modules/fflush (License): Change to LGPL.
19467         With permission from Eric Blake, Bruno Haible, Jim Meyering:
19468         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
19469         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
19470         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
19471
19472         tmpfile: Relicense under LGPL.
19473         * modules/tmpfile (License): Change to LGPL.
19474         With permission from Ben Pfaff:
19475         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
19476
19477         isfinite: Relicense under LGPL.
19478         * modules/isfinite (License): Change to LGPL.
19479         With permission from Ben Pfaff, Bruno Haible:
19480         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
19481         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
19482
19483         acosl..tanl: Relicense under LGPL.
19484         * modules/acosl (License): Change to LGPL.
19485         * modules/asinl (License): Likewise.
19486         * modules/atanl (License): Likewise.
19487         * modules/cosl (License): Likewise.
19488         * modules/expl (License): Likewise.
19489         * modules/logl (License): Likewise.
19490         * modules/sinl (License): Likewise.
19491         * modules/sqrtl (License): Likewise.
19492         * modules/tanl (License): Likewise.
19493         Source code originally from glibc and Paolo Bonzini. Agreements:
19494         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
19495         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
19496
19497 2011-05-05  Bruno Haible  <bruno@clisp.org>
19498
19499         signal: Define sighandler_t.
19500         * lib/signal.in.h (sighandler_t): New type.
19501         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
19502         whether sighandler_t is defined.
19503         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
19504         * modules/signal (Depends-on): Add extensions.
19505         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
19506         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
19507         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
19508
19509 2011-05-05  Eric Blake  <eblake@redhat.com>
19510
19511         maint: remove useless REPLACE_*_H macros
19512         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
19513         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
19514         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
19515         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
19516         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
19517         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
19518         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
19519         * m4/btowc.m4: Update callers.
19520         * m4/dirfd.m4: Likewise.
19521         * m4/duplocale.m4: Likewise.
19522         * m4/fchdir.m4: Likewise.
19523         * m4/fdopendir.m4: Likewise.
19524         * m4/inet_ntop.m4: Likewise.
19525         * m4/inet_pton.m4: Likewise.
19526         * m4/ioctl.m4: Likewise.
19527         * m4/mbrlen.m4: Likewise.
19528         * m4/mbrtowc.m4: Likewise.
19529         * m4/mbsinit.m4: Likewise.
19530         * m4/mbsnrtowcs.m4: Likewise.
19531         * m4/mbsrtowcs.m4: Likewise.
19532         * m4/poll.m4: Likewise.
19533         * m4/setlocale.m4: Likewise.
19534         * m4/wcrtomb.m4: Likewise.
19535         * m4/wcsnrtombs.m4: Likewise.
19536         * m4/wcsrtombs.m4: Likewise.
19537         * m4/wctob.m4: Likewise.
19538         * m4/wcwidth.m4: Likewise.
19539         * modules/posix_spawn: Likewise.
19540         * modules/posix_spawn_file_actions_addclose: Likewise.
19541         * modules/posix_spawn_file_actions_adddup2: Likewise.
19542         * modules/posix_spawn_file_actions_addopen: Likewise.
19543         * modules/posix_spawn_file_actions_destroy: Likewise.
19544         * modules/posix_spawn_file_actions_init: Likewise.
19545         * modules/posix_spawnattr_destroy: Likewise.
19546         * modules/posix_spawnattr_getflags: Likewise.
19547         * modules/posix_spawnattr_getpgroup: Likewise.
19548         * modules/posix_spawnattr_getschedparam: Likewise.
19549         * modules/posix_spawnattr_getschedpolicy: Likewise.
19550         * modules/posix_spawnattr_getsigdefault: Likewise.
19551         * modules/posix_spawnattr_getsigmask: Likewise.
19552         * modules/posix_spawnattr_init: Likewise.
19553         * modules/posix_spawnattr_setflags: Likewise.
19554         * modules/posix_spawnattr_setpgroup: Likewise.
19555         * modules/posix_spawnattr_setschedparam: Likewise.
19556         * modules/posix_spawnattr_setschedpolicy: Likewise.
19557         * modules/posix_spawnattr_setsigdefault: Likewise.
19558         * modules/posix_spawnattr_setsigmask: Likewise.
19559         * modules/posix_spawnp: Likewise.
19560
19561 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
19562
19563         Add option to do-release-commit-and-tag to specify branch.
19564         * build-aux/do-release-commit-and-tag: Add --branch.
19565
19566 2011-05-03  Bruno Haible  <bruno@clisp.org>
19567
19568         Avoid unnecessary compilation units, through conditional dependencies.
19569         * modules/accept (Depends-on): Add conditions to the dependencies.
19570         * modules/acosl (Depends-on): Likewise.
19571         * modules/argz (Depends-on): Likewise.
19572         * modules/asinl (Depends-on): Likewise.
19573         * modules/atanl (Depends-on): Likewise.
19574         * modules/atoll (Depends-on): Likewise.
19575         * modules/bind (Depends-on): Likewise.
19576         * modules/btowc (Depends-on): Likewise.
19577         * modules/canonicalize-lgpl (Depends-on): Likewise.
19578         * modules/ceil (Depends-on): Likewise.
19579         * modules/ceilf (Depends-on): Likewise.
19580         * modules/ceill (Depends-on): Likewise.
19581         * modules/chdir-long (Depends-on): Likewise.
19582         * modules/chown (Depends-on): Likewise.
19583         * modules/close (Depends-on): Likewise.
19584         * modules/connect (Depends-on): Likewise.
19585         * modules/cosl (Depends-on): Likewise.
19586         * modules/dirfd (Depends-on): Likewise.
19587         * modules/dprintf (Depends-on): Likewise.
19588         * modules/dprintf-posix (Depends-on): Likewise.
19589         * modules/error (Depends-on): Likewise.
19590         * modules/euidaccess (Depends-on): Likewise.
19591         * modules/expl (Depends-on): Likewise.
19592         * modules/faccessat (Depends-on): Likewise.
19593         * modules/fchdir (Depends-on): Likewise.
19594         * modules/fclose (Depends-on): Likewise.
19595         * modules/fcntl (Depends-on): Likewise.
19596         * modules/fdopendir (Depends-on): Likewise.
19597         * modules/fflush (Depends-on): Likewise.
19598         * modules/floor (Depends-on): Likewise.
19599         * modules/floorf (Depends-on): Likewise.
19600         * modules/floorl (Depends-on): Likewise.
19601         * modules/fnmatch (Depends-on): Likewise.
19602         * modules/fopen (Depends-on): Likewise.
19603         * modules/fprintf-posix (Depends-on): Likewise.
19604         * modules/frexp (Depends-on): Likewise.
19605         * modules/frexp-nolibm (Depends-on): Likewise.
19606         * modules/frexpl (Depends-on): Likewise.
19607         * modules/frexpl-nolibm (Depends-on): Likewise.
19608         * modules/fseek (Depends-on): Likewise.
19609         * modules/fsusage (Depends-on): Likewise.
19610         * modules/ftell (Depends-on): Likewise.
19611         * modules/ftello (Depends-on): Likewise.
19612         * modules/futimens (Depends-on): Likewise.
19613         * modules/getcwd (Depends-on): Likewise.
19614         * modules/getcwd-lgpl (Depends-on): Likewise.
19615         * modules/getdelim (Depends-on): Likewise.
19616         * modules/getdomainname (Depends-on): Likewise.
19617         * modules/getgroups (Depends-on): Likewise.
19618         * modules/gethostname (Depends-on): Likewise.
19619         * modules/getline (Depends-on): Likewise.
19620         * modules/getlogin_r (Depends-on): Likewise.
19621         * modules/getopt-posix (Depends-on): Likewise.
19622         * modules/getpeername (Depends-on): Likewise.
19623         * modules/getsockname (Depends-on): Likewise.
19624         * modules/getsockopt (Depends-on): Likewise.
19625         * modules/getsubopt (Depends-on): Likewise.
19626         * modules/getusershell (Depends-on): Likewise.
19627         * modules/glob (Depends-on): Likewise.
19628         * modules/grantpt (Depends-on): Likewise.
19629         * modules/iconv_open (Depends-on): Likewise.
19630         * modules/iconv_open-utf (Depends-on): Likewise.
19631         * modules/inet_ntop (Depends-on): Likewise.
19632         * modules/inet_pton (Depends-on): Likewise.
19633         * modules/ioctl (Depends-on): Likewise.
19634         * modules/isapipe (Depends-on): Likewise.
19635         * modules/isfinite (Depends-on): Likewise.
19636         * modules/isinf (Depends-on): Likewise.
19637         * modules/lchown (Depends-on): Likewise.
19638         * modules/ldexpl (Depends-on): Likewise.
19639         * modules/link (Depends-on): Likewise.
19640         * modules/linkat (Depends-on): Likewise.
19641         * modules/listen (Depends-on): Likewise.
19642         * modules/logl (Depends-on): Likewise.
19643         * modules/lstat (Depends-on): Likewise.
19644         * modules/mbrlen (Depends-on): Likewise.
19645         * modules/mbrtowc (Depends-on): Likewise.
19646         * modules/mbsinit (Depends-on): Likewise.
19647         * modules/mbsnrtowcs (Depends-on): Likewise.
19648         * modules/mbsrtowcs (Depends-on): Likewise.
19649         * modules/mbtowc (Depends-on): Likewise.
19650         * modules/memcmp (Depends-on): Likewise.
19651         * modules/mkdir (Depends-on): Likewise.
19652         * modules/mkdtemp (Depends-on): Likewise.
19653         * modules/mkfifo (Depends-on): Likewise.
19654         * modules/mkfifoat (Depends-on): Likewise.
19655         * modules/mknod (Depends-on): Likewise.
19656         * modules/mkostemp (Depends-on): Likewise.
19657         * modules/mkostemps (Depends-on): Likewise.
19658         * modules/mkstemp (Depends-on): Likewise.
19659         * modules/mkstemps (Depends-on): Likewise.
19660         * modules/mktime (Depends-on): Likewise.
19661         * modules/nanosleep (Depends-on): Likewise.
19662         * modules/open (Depends-on): Likewise.
19663         * modules/openat (Depends-on): Likewise.
19664         * modules/perror (Depends-on): Likewise.
19665         * modules/poll (Depends-on): Likewise.
19666         * modules/popen (Depends-on): Likewise.
19667         * modules/posix_spawn (Depends-on): Likewise.
19668         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
19669         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
19670         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
19671         * modules/posix_spawnp (Depends-on): Likewise.
19672         * modules/pread (Depends-on): Likewise.
19673         * modules/printf-posix (Depends-on): Likewise.
19674         * modules/ptsname (Depends-on): Likewise.
19675         * modules/putenv (Depends-on): Likewise.
19676         * modules/pwrite (Depends-on): Likewise.
19677         * modules/readline (Depends-on): Likewise.
19678         * modules/readlink (Depends-on): Likewise.
19679         * modules/readlinkat (Depends-on): Likewise.
19680         * modules/recv (Depends-on): Likewise.
19681         * modules/recvfrom (Depends-on): Likewise.
19682         * modules/regex (Depends-on): Likewise.
19683         * modules/remove (Depends-on): Likewise.
19684         * modules/rename (Depends-on): Likewise.
19685         * modules/renameat (Depends-on): Likewise.
19686         * modules/rmdir (Depends-on): Likewise.
19687         * modules/round (Depends-on): Likewise.
19688         * modules/roundf (Depends-on): Likewise.
19689         * modules/roundl (Depends-on): Likewise.
19690         * modules/rpmatch (Depends-on): Likewise.
19691         * modules/select (Depends-on): Likewise.
19692         * modules/send (Depends-on): Likewise.
19693         * modules/sendto (Depends-on): Likewise.
19694         * modules/setenv (Depends-on): Likewise.
19695         * modules/setlocale (Depends-on): Likewise.
19696         * modules/setsockopt (Depends-on): Likewise.
19697         * modules/shutdown (Depends-on): Likewise.
19698         * modules/sigaction (Depends-on): Likewise.
19699         * modules/signbit (Depends-on): Likewise.
19700         * modules/sigprocmask (Depends-on): Likewise.
19701         * modules/sinl (Depends-on): Likewise.
19702         * modules/sleep (Depends-on): Likewise.
19703         * modules/snprintf (Depends-on): Likewise.
19704         * modules/snprintf-posix (Depends-on): Likewise.
19705         * modules/socket (Depends-on): Likewise.
19706         * modules/sprintf-posix (Depends-on): Likewise.
19707         * modules/sqrtl (Depends-on): Likewise.
19708         * modules/stat (Depends-on): Likewise.
19709         * modules/strchrnul (Depends-on): Likewise.
19710         * modules/strdup-posix (Depends-on): Likewise.
19711         * modules/strerror (Depends-on): Likewise.
19712         * modules/strerror_r-posix (Depends-on): Likewise.
19713         * modules/strndup (Depends-on): Likewise.
19714         * modules/strnlen (Depends-on): Likewise.
19715         * modules/strptime (Depends-on): Likewise.
19716         * modules/strsep (Depends-on): Likewise.
19717         * modules/strsignal (Depends-on): Likewise.
19718         * modules/strstr-simple (Depends-on): Likewise.
19719         * modules/strtod (Depends-on): Likewise.
19720         * modules/strtoimax (Depends-on): Likewise.
19721         * modules/strtok_r (Depends-on): Likewise.
19722         * modules/strtoumax (Depends-on): Likewise.
19723         * modules/symlink (Depends-on): Likewise.
19724         * modules/symlinkat (Depends-on): Likewise.
19725         * modules/tanl (Depends-on): Likewise.
19726         * modules/tcgetsid (Depends-on): Likewise.
19727         * modules/tmpfile (Depends-on): Likewise.
19728         * modules/trunc (Depends-on): Likewise.
19729         * modules/truncf (Depends-on): Likewise.
19730         * modules/truncl (Depends-on): Likewise.
19731         * modules/uname (Depends-on): Likewise.
19732         * modules/unlink (Depends-on): Likewise.
19733         * modules/unlockpt (Depends-on): Likewise.
19734         * modules/unsetenv (Depends-on): Likewise.
19735         * modules/usleep (Depends-on): Likewise.
19736         * modules/utimensat (Depends-on): Likewise.
19737         * modules/vasprintf (Depends-on): Likewise.
19738         * modules/vdprintf (Depends-on): Likewise.
19739         * modules/vdprintf-posix (Depends-on): Likewise.
19740         * modules/vfprintf-posix (Depends-on): Likewise.
19741         * modules/vprintf-posix (Depends-on): Likewise.
19742         * modules/vsnprintf (Depends-on): Likewise.
19743         * modules/vsnprintf-posix (Depends-on): Likewise.
19744         * modules/vsprintf-posix (Depends-on): Likewise.
19745         * modules/wcrtomb (Depends-on): Likewise.
19746         * modules/wcscasecmp (Depends-on): Likewise.
19747         * modules/wcscspn (Depends-on): Likewise.
19748         * modules/wcsdup (Depends-on): Likewise.
19749         * modules/wcsncasecmp (Depends-on): Likewise.
19750         * modules/wcsnrtombs (Depends-on): Likewise.
19751         * modules/wcspbrk (Depends-on): Likewise.
19752         * modules/wcsrtombs (Depends-on): Likewise.
19753         * modules/wcsspn (Depends-on): Likewise.
19754         * modules/wcsstr (Depends-on): Likewise.
19755         * modules/wcstok (Depends-on): Likewise.
19756         * modules/wcswidth (Depends-on): Likewise.
19757         * modules/wctob (Depends-on): Likewise.
19758         * modules/wctomb (Depends-on): Likewise.
19759         * modules/wctype (Depends-on): Likewise.
19760         * modules/wcwidth (Depends-on): Likewise.
19761         * modules/write (Depends-on): Likewise.
19762
19763 2011-05-03  Bruno Haible  <bruno@clisp.org>
19764
19765         Support for conditional dependencies.
19766         * doc/gnulib.texi (Module description): Document the syntax of
19767         conditional dependencies.
19768         * gnulib-tool: New option --conditional-dependencies.
19769         (func_usage): Document it.
19770         (cond_dependencies): New variable.
19771         (func_get_automake_snippet_conditional,
19772         func_get_automake_snippet_unconditional): New functions, extracted from
19773         func_get_automake_snippet.
19774         (func_get_automake_snippet): Use them.
19775         (sed_first_32_chars): New variable.
19776         (func_module_shellfunc_name): New function.
19777         (func_module_shellvar_name): New function.
19778         (func_module_conditional_name): New function.
19779         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
19780         func_cond_module_condition): New functions.
19781         (func_modules_transitive_closure): Add support for conditional
19782         dependencies.
19783         (func_emit_lib_Makefile_am): For a conditional module, enclose the
19784         conditional automake snippet in an automake conditional.
19785         (func_emit_autoconf_snippets): Emit shell functions that contain the
19786         code for conditional modules.
19787         (func_import, func_create_testdir): Update specification.
19788
19789 2011-05-03  Eric Blake  <eblake@redhat.com>
19790
19791         test-getaddrinfo: report error information
19792         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
19793
19794 2011-05-03  Jim Meyering  <meyering@redhat.com>
19795
19796         bootstrap: avoid build failure when $GZIP is set
19797         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
19798         program name.  If defined at all, it is supposed to list gzip options.
19799         Reported by Alan Curry in http://debbugs.gnu.org/8609
19800
19801 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
19802
19803         readme-release: new module with release instructions
19804         * modules/readme-release: New module.
19805         * top/README-release: New file, from coreutils, grep, diffutils.
19806         * MODULES.html.sh (Support for maintaining and releasing): Add it.
19807
19808 2011-05-02  Eric Blake  <eblake@redhat.com>
19809
19810         fflush: also replace fclose when fixing fflush
19811         * modules/fflush (Depends-on): Add fclose.
19812         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
19813         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
19814         memstreams with no backing fd.
19815         * doc/posix-functions/fclose.texi (fclose): Document the use of
19816         fflush module to fix the bug.
19817         * tests/test-fclose.c (main): Relax test when fclose is used in
19818         isolation.
19819
19820         fclose: add some tests
19821         * modules/fclose-tests: New test module.
19822         * tests/test-fclose.c: New file.
19823         * doc/posix-functions/fclose.texi (fclose): Document the bug.
19824
19825         fclose: reduced dependencies
19826         * modules/fclose (Depends-on): Switch from fflush/fseeko to
19827         simpler lseek.
19828         * lib/fclose.c (rpl_fclose): Likewise.
19829         Reported by Simon Josefsson.
19830
19831         exit: drop remaining clients
19832         * modules/argmatch (Depends-on): Replace exit with stdlib.
19833         * modules/copy-file (Depends-on): Likewise.
19834         * modules/execute (Depends-on): Likewise.
19835         * modules/exitfail (Depends-on): Likewise.
19836         * modules/obstack (Depends-on): Likewise.
19837         * modules/pagealign_alloc (Depends-on): Likewise.
19838         * modules/pipe-filter-gi (Depends-on): Likewise.
19839         * modules/pipe-filter-ii (Depends-on): Likewise.
19840         * modules/savewd (Depends-on): Likewise.
19841         * modules/spawn-pipe (Depends-on): Likewise.
19842         * modules/wait-process (Depends-on): Likewise.
19843         * modules/xsetenv (Depends-on): Likewise.
19844         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
19845         * modules/git-merge-changelog (Depends-on): Likewise.
19846         * modules/long-options (Depends-on): Likewise.
19847         * modules/pt_chown (Depends-on): Likewise.
19848         * modules/sysexits (Depends-on): Likewise.
19849
19850         freading: relax license from LGPLv3+ to LGPLv2+
19851         * modules/freading (License): Relax LGPL version.
19852
19853 2011-05-02  Bruno Haible  <bruno@clisp.org>
19854
19855         fchdir: Remove unused dependencies.
19856         * modules/fchdir (Depends-on): Remove include_next.
19857
19858 2011-05-02  Bruno Haible  <bruno@clisp.org>
19859
19860         gnulib-tool: Refactor.
19861         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
19862         from func_emit_autoconf_snippets.
19863         (func_emit_autoconf_snippets): Use it.
19864
19865 2011-05-02  Simon Josefsson  <simon@josefsson.org>
19866
19867         * NEWS: Document removal of 'exit'.
19868         * modules/exit: Remove file.
19869
19870 2011-05-01  Bruno Haible  <bruno@clisp.org>
19871
19872         Update DEPENDENCIES.
19873         * DEPENDENCIES (gettext): Recommend the newest release.
19874         Reported by Simon Josefsson.
19875
19876 2011-05-01  Bruno Haible  <bruno@clisp.org>
19877
19878         gnulib-tool: Reduce code duplication.
19879         * gnulib-tool (func_emit_autoconf_snippets): New function.
19880         (func_import, func_create_testdir): Use it.
19881
19882 2011-04-30  Eric Blake  <eblake@redhat.com>
19883
19884         fclose: don't fail on non-seekable input stream
19885         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
19886         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
19887         since fflush is allowed to fail in that case.
19888
19889 2011-04-30  Bruno Haible  <bruno@clisp.org>
19890
19891         dup3: cleanup
19892         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
19893
19894 2011-04-30  Bruno Haible  <bruno@clisp.org>
19895
19896         netdb: Make it work in C++ mode.
19897         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
19898         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
19899         module.
19900         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
19901         gl_MODULE_INDICATOR_FOR_TESTS.
19902         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
19903         * modules/netdb-c++-tests: New file.
19904         * tests/test-netdb-c++.cc: New file.
19905
19906 2011-04-30  Bruno Haible  <bruno@clisp.org>
19907
19908         New modules 'vfscanf', 'vscanf'.
19909         * modules/vfscanf: New file.
19910         * modules/vscanf: New file.
19911         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
19912         here.
19913         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
19914         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
19915
19916 2011-04-30  Bruno Haible  <bruno@clisp.org>
19917
19918         passfd: Add comments.
19919         * lib/passfd.c: Add comments about platforms.
19920
19921 2011-04-30  Bruno Haible  <bruno@clisp.org>
19922
19923         sys_uio: Make <sys/uio.h> self-contained.
19924         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
19925         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
19926
19927 2011-04-30  Bruno Haible  <bruno@clisp.org>
19928
19929         sys_socket: Ensure 'struct iovec' definition.
19930         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
19931         <sys/socket.h>.
19932         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
19933
19934 2011-04-30  Bruno Haible  <bruno@clisp.org>
19935
19936         sys_uio: Protect definition of 'struct iovec'.
19937         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
19938         it as a C struct.
19939
19940 2011-04-30  Bruno Haible  <bruno@clisp.org>
19941
19942         manywarnings: fix indentation
19943         * m4/manywarnings.m4: Indent by 2 spaces consistently.
19944
19945 2011-04-30  Pádraig Brady <P@draigBrady.com>
19946
19947         manywarnings: add -Wno-missing-field-initializers if needed.
19948         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
19949         option if it's needed to allow initialization with { 0, }
19950
19951 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
19952
19953         announce-gen: cosmetic improvement
19954         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
19955
19956 2011-04-29  Jim Meyering  <meyering@redhat.com>
19957
19958         vc-list-files: indent with spaces, not TABs
19959         * build-aux/vc-list-files: Convert leading TABs to spaces,
19960         to match the style of most other files in gnulib.
19961
19962         announce-gen: indent with spaces, not TABs
19963         * build-aux/announce-gen: Convert all TABs to spaces, to match
19964         the style of most other files in gnulib.
19965
19966 2011-04-29  Eric Blake  <eblake@redhat.com>
19967
19968         quotearg: avoid uninitialized variable use
19969         * lib/quotearg.c (quoting_options_from_style): Initialize
19970         remaining fields, and ensure that custom styles are only used via
19971         quoting_options rather than quoting_style.
19972
19973 2011-04-29  Jim Meyering  <meyering@redhat.com>
19974
19975         maint.mk: remove unused VC-tag variable
19976         * top/maint.mk (VC-tag): Remove unused variable.
19977
19978 2011-04-29  Bruno Haible  <bruno@clisp.org>
19979
19980         netdb: fix gai_strerror replacements
19981         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
19982         * modules/netdb: Substitute it.
19983
19984 2011-04-29  Jim Meyering  <meyering@redhat.com>
19985
19986         test-getcwd.c: avoid new set-but-not-used warning
19987         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
19988         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
19989         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
19990         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
19991
19992         test-hash.c: avoid a new shadowing warning
19993         * tests/test-hash.c (main): Don't shadow "dup".
19994
19995 2011-04-28  Eric Blake  <eblake@redhat.com>
19996
19997         getaddrinfo: fix gai_strerror signature
19998         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
19999         and work around mingw with UNICODE defined.
20000         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
20001         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
20002         * modules/netdb (Makefile.am): Substitute it.
20003         * lib/netdb.in.h (gai_strerror): Declare replacement.
20004         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
20005         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
20006         the fix.
20007
20008         getsockopt: avoid compiler warning
20009         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
20010         Reported by Matthias Bolte.
20011
20012         tests: drop unused link dependency
20013         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
20014         * modules/dirent-safer-tests (Makefile.am): Likewise.
20015         * modules/fdopendir-tests (Makefile.am): Likewise.
20016         * modules/mkfifoat-tests (Makefile.am): Likewise.
20017         * modules/openat-safer-tests (Makefile.am): Likewise.
20018         * modules/openat-tests (Makefile.am): Likewise.
20019         * modules/readlinkat-tests (Makefile.am): Likewise.
20020         * modules/symlinkat-tests (Makefile.am): Likewise.
20021         * modules/linkat-tests (Makefile.am): Likewise.
20022         (Depends-on): Switch to filenamecat-lgpl.
20023         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
20024         LIBINTL.
20025         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
20026         * tests/test-linkat.c (main): Don't require xalloc.
20027
20028         hash, mgetgroups: drop xalloc dependency
20029         * lib/hash.c (includes): Adjust includes.
20030         * lib/mgetgroups.c (includes): Likewise.
20031         (xgetgroups): Move...
20032         * lib/xgetgroups.c: ...to new file.
20033         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
20034         * modules/xgetgroups: New file, split from...
20035         * modules/mgetgroups: ...here.
20036         (Depends-on): Add xalloc-oversized.
20037         * modules/hash (Depends-on): Likewise.
20038         * modules/hash-tests (Depends-on): Drop xalloc.
20039         (test_hash_LDADD): Drop unused library.
20040         * tests/test-hash.c (main): Break xalloc dependency.
20041         (includes): Drop unused include.
20042
20043         xalloc-oversized: new module
20044         * modules/xalloc-oversized: New module.
20045         * modules/xalloc (Depends-on): Add it.
20046         * lib/xalloc.h (xalloc_oversized): Move...
20047         * lib/xalloc-oversized.h: ...into new file.
20048
20049         utimecmp: drop dependency on xmalloc
20050         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
20051         due to memory pressure.
20052         * modules/utimecmp (Depends-on): Drop xalloc.
20053
20054 2011-04-27  Eric Blake  <eblake@redhat.com>
20055
20056         getcwd: fix mingw bugs
20057         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
20058         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
20059         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
20060
20061 2011-04-27  Bruno Haible  <bruno@clisp.org>
20062
20063         mkstemps: Ensure declaration on MacOS X 10.5.
20064         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
20065         * doc/glibc-functions/mkstemps.texi: Document header file problem on
20066         MacOS X.
20067
20068 2011-04-27  Bruno Haible  <bruno@clisp.org>
20069
20070         mkstemp: More documentation.
20071         * doc/posix-functions/mkstemp.texi: Document header file problem on
20072         MacOS X.
20073
20074 2011-04-27  Bruno Haible  <bruno@clisp.org>
20075
20076         mkstemp: Tweak configure message when cross-compiling.
20077         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
20078         result as a guess.
20079
20080 2011-04-27  Bruno Haible  <bruno@clisp.org>
20081
20082         clean-temp: Clarify what it does.
20083         * lib/clean-temp.h: Add more comments.
20084         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
20085         module.
20086         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
20087         * doc/glibc-functions/mkstemps.texi: Likewise.
20088         * doc/glibc-functions/mkostemps.texi: Likewise.
20089
20090 2011-04-27  Eric Blake  <eblake@redhat.com>
20091
20092         fchdir: avoid extra chdir and fix test
20093         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
20094         getcwd-lgpl.
20095         * lib/fchdir.c (get_name): Any absolute name will do; it does not
20096         have to be canonical.
20097         (canonicalize_file_name): Drop unused macro.
20098         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
20099
20100         filenamecat-lgpl: fix licence
20101         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
20102         when it was first created.
20103
20104         linkat, renameat: add missing dependency
20105         * modules/linkat (Depends-on): Require getcwd-lgpl.
20106         * modules/renameat (Depends-on): Likewise.
20107
20108         tests: reduce dependencies
20109         * tests/test-linkat.c (main): Use lighter-weight getcwd.
20110         * tests/test-renameat.c (main): Likewise.
20111         * modules/linkat-tests (Depends-on): Relax dependency.
20112         * modules/renameat-tests (Depends-on): Likewise.
20113         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
20114         dependency explicit.
20115
20116         save-cwd: reduce default dependency
20117         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
20118         * lib/save-cwd.c: Update comments.
20119         * NEWS: Document the semantic change.
20120
20121         getcwd: enhance tests
20122         * tests/test-getcwd-lgpl.c: New file, taken from...
20123         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
20124         repeat long path stress tests from m4 probe.
20125         * modules/getcwd-lgpl-tests: New module.
20126         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
20127         * m4/getcwd-abort-bug.m4: Update comment.
20128         * m4/getcwd-path-max.m4: Likewise.
20129
20130         getcwd-lgpl: new module
20131         * modules/getcwd-lgpl: New module.
20132         * lib/getcwd-lgpl.c: New file.
20133         * doc/posix-functions/getcwd.texi (getcwd): Document it.
20134         * MODULES.html.sh (lacking POSIX:2008): Likewise.
20135         * modules/getcwd (configure.ac): Set C witness.
20136         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
20137
20138         getcwd: tweak comments
20139         * m4/getcwd-abort-bug.m4: Fix comments.
20140         * m4/getcwd-path-max.m4: Likewise.
20141         * m4/getcwd.m4: Likewise.
20142
20143 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
20144         and Eric Blake  <eblake@redhat.com>
20145
20146         mkstemp: replace if system version uses wrong permissions
20147         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
20148         read/write mode bits set in file created by mkstemp.
20149         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
20150
20151 2011-04-27  Eric Blake  <eblake@redhat.com>
20152
20153         passfd: avoid compiler warning
20154         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
20155         Reported by Laine Stump.
20156
20157 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
20158
20159         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
20160         required by the NetBSD (and perhaps other 4.4BSD derived) join.
20161
20162 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
20163         and Eric Blake  <eblake@redhat.com>
20164
20165         mkstemp: mention clean-temp module
20166         * lib/mkstemp.c: Add comment.
20167         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
20168
20169 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
20170
20171         inttypes: also provide default values for 32-bit tests
20172         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
20173         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
20174
20175 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
20176
20177         strtoumax: remove dependency on strtoimax
20178         This is like the strtoull change of yesterday.
20179         * modules/strtoumax (Files): Add lib/strtoimax.c.
20180         (Depends-on): Remove strtoimax and add verify.
20181
20182         inttypes-incomplete: new module
20183         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
20184         all but the PRI* and SCN* parts of gl_INTTYPES_H.
20185         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
20186         of gl_INTTYPES_H.
20187         (gl_INTTYPES_H): Rewrite in terms of these new macros.
20188         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
20189         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
20190         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
20191         * modules/strtoumax, modules/xstrtol (Depends-on):
20192         Depend on inttypes-incomplete, not inttypes.
20193         * modules/inttypes-incomplete: New module, containing the contents
20194         of the old modules/inttypes module, except that the Files: section
20195         omits m4/inttypes-pri.m4, and the configure.ac section invokes
20196         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
20197         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
20198         (Depends-on): Depend only on inttypes-incomplete.
20199         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
20200
20201         inttypes: omit now-redundant strtoimax and strtoumax work
20202         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
20203         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
20204
20205         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
20206         This supports apps that need pointers to strtoimax and strtoumax,
20207         and ports to HP-UX 11.00 64.bit, which has macros that expand to
20208         nonexistent functions.  See
20209         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
20210         et seq.
20211         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
20212         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
20213         a macro.
20214         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
20215
20216 2011-04-25  Simon Josefsson  <simon@josefsson.org>
20217
20218         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
20219
20220 2011-04-25  Bruno Haible  <bruno@clisp.org>
20221
20222         strtol, strtoul: Mark modules as obsolete.
20223         * modules/strtol (Status, Notice): New sections.
20224         * modules/strtoul (Status, Notice): New sections.
20225
20226 2011-04-25  Bruno Haible  <bruno@clisp.org>
20227
20228         strtod: Remove check for strtod, unless supporting old platforms.
20229         * modules/strtod-obsolete: New file.
20230         * m4/strtod-obsolete.m4: New file.
20231         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
20232         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
20233         * modules/strtod (Depends-on): Add strtod-obsolete.
20234         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
20235
20236 2011-04-25  Bruno Haible  <bruno@clisp.org>
20237
20238         strcase: Make module obsolete.
20239         * modules/strcase (Status, Notice): New sections.
20240
20241 2011-04-25  Bruno Haible  <bruno@clisp.org>
20242
20243         dup2: Remove check for dup2, unless supporting old obsolete platforms.
20244         * modules/dup2-obsolete: New file.
20245         * m4/dup2-obsolete.m4: New file.
20246         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
20247         gl_FUNC_DUP2_OBSOLETE is not also defined.
20248         * modules/dup2 (Depends-on): Add dup2-obsolete.
20249         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
20250
20251 2011-04-25  Bruno Haible  <bruno@clisp.org>
20252
20253         strnlen: Avoid memchr related link error on old obsolete platforms.
20254         * modules/memchr-obsolete: New file.
20255         * m4/memchr-obsolete.m4: New file.
20256         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
20257         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
20258         * modules/memchr (Depends-on): Add memchr-obsolete.
20259         * modules/strnlen (Depends-on): Likewise.
20260         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
20261
20262 2011-04-25  Jim Meyering  <meyering@redhat.com>
20263
20264         maint.mk: makefile_at_at_check extend and clean up
20265         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
20266         in addition to */Makefile.am.
20267         Exempt legitimate uses of @VAR@ notation, e.g.,
20268         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
20269         Remove obsolete coreutils-specific comment.
20270         Prompted by discussion here:
20271         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
20272
20273 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
20274
20275         strtoul: remove dependency on strtol
20276         This is so that 'configure' need not check for strtol merely because
20277         the application needs strtoul.
20278         * modules/strtoul (Files): Add lib/strtol.c.
20279         (Depends-on): Remove strtol.
20280
20281         strtoull: remove dependency on strtoul
20282         This is like the strtoll change.
20283         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
20284         (Depends-on): Remove strtoul.
20285
20286         strtoll: remove dependency on strtol
20287         This is so that 'configure' need not check for strtol merely because
20288         the application needs strtoll.
20289         * modules/strtoll (Files): Add lib/strtol.c.
20290         (Depends-on): Remove strtol.
20291
20292 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
20293
20294         inttypes: Move some configure check to module 'imaxdiv'.
20295         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
20296         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
20297         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
20298
20299 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
20300
20301         inttypes: Move some configure check to module 'imaxabs'.
20302         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
20303         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
20304         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
20305
20306 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
20307
20308         inttypes: Remove configure tests that are not needed since 2009-12-31.
20309         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
20310         gl_cv_header_working_inttypes_h.
20311
20312 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
20313
20314         * modules/strnlen (Depends-on): Remove memchr.
20315         The strnlen implementation doesn't need the memchr module's fixes; see
20316         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
20317
20318         strtol: remove dependency on wchar
20319         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
20320         * modules/strtol (Depends-on): Remove wchar.
20321
20322 2011-04-21  Eric Blake  <eblake@redhat.com>
20323
20324         passfd: fix test regression on Linux
20325         * modules/passfd-tests (configure.ac): Correct socketpair check.
20326
20327         passfd: speed up configure and drop unused code
20328         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
20329         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
20330         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
20331         Instead of probing at configure for unix_scm_rights_bsd44_way,
20332         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
20333         check to a struct member probe.
20334         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
20335         (sendfd, recvfd): Update preprocessor checks.
20336         * modules/passfd (Files): Reflect rename, and drop unused file.
20337         (Depends-on): Drop unused dependency.
20338
20339         passfd: allow compilation on mingw
20340         * modules/sys_socket (Depends-on): Add sys_uio.
20341         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
20342         iovec and a minimal struct msghdr.
20343         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
20344         * tests/test-sys_socket.c (main): Enhance test.
20345         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
20346         guaranteed to provide what we need.
20347         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
20348         * modules/passfd-tests (Depends-on): Add sys_wait.
20349         * tests/test-passfd.c (main): Skip test on mingw, for now.
20350         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
20351         partial 'struct msghdr' implementation.
20352
20353         sys_uio: new module
20354         * modules/sys_uio: New module.
20355         * modules/sys_uio-tests: Likewise.
20356         * lib/sys_uio.in.h: New file.
20357         * m4/sys_uio_h.m4: Likewise.
20358         * tests/test-sys_uio.c: Likewise.
20359         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
20360         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
20361
20362 2011-04-20  Jim Meyering  <meyering@redhat.com>
20363
20364         useless-if-before-free: avoid false-positive
20365         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
20366         disjunct so that it too requires a terminating ";".  Without that,
20367         this script would identify as useless one statement from gcc that
20368         was not:
20369           if (aligned_ptr)
20370             free (((void **) aligned_ptr) [-1]);
20371
20372 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
20373
20374         doc: update users.txt.
20375         * users.txt: Add barcode.
20376
20377 2011-04-19  Bruno Haible  <bruno@clisp.org>
20378
20379         ioctl: Remove link dependency on native Windows.
20380         * lib/fd-hook.h: Renamed from lib/close-hook.h.
20381         (gl_close_fn, gl_ioctl_fn): New types.
20382         (struct fd_hook): Renamed from struct close_hook. Change type of
20383         private_close_fn field. Add private_ioctl_fn field.
20384         (close_hook_fn): Add parameter for primary close method.
20385         (execute_close_hooks, execute_all_close_hooks): Likewise.
20386         (ioctl_hook_fn): New type.
20387         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
20388         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
20389         argument.
20390         (unregister_fd_hook): Renamed from unregister_close_hook.
20391         * lib/fd-hook.c: Renamed from lib/close-hook.c.
20392         Don't include <unistd.h>.
20393         (close): Remove undef.
20394         (anchor): Update.
20395         (execute_close_hooks): Add argument for primary close method.
20396         (execute_all_close_hooks): Likewise.
20397         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
20398         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
20399         argument. Allow each argument to be NULL.
20400         (unregister_fd_hook): Renamed from unregister_close_hook.
20401         * lib/close.c (rpl_close): Pass 'close' function pointer to
20402         execute_all_close_hooks.
20403         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
20404         (primary_ioctl): New function.
20405         (ioctl): Don't call ioctlsocket here. Instead, call
20406         execute_all_ioctl_hooks.
20407         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
20408         close method.
20409         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
20410         (fd_sockets_hook): Renamed from close_sockets_hook.
20411         (gl_sockets_startup, gl_sockets_cleanup): Update.
20412         * modules/fd-hook: Renamed from modules/close-hook. Update.
20413         * modules/close (Depends-on): Add fd-hook, remove close-hook.
20414         * modules/sockets (Depends-on): Likewise.
20415         * modules/ioctl (Depends-on): Add fd-hook.
20416         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
20417         GNULIB_SOCKET.
20418
20419 2011-04-19  Bruno Haible  <bruno@clisp.org>
20420
20421         Move the support of O_NONBLOCK in open() to the 'open' module.
20422         * modules/nonblocking (Depends-on): Remove 'open'.
20423         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
20424         gl_cv_have_open_O_NONBLOCK.
20425         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
20426         O_NONBLOCK support.
20427         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
20428
20429 2011-04-17  Bruno Haible  <bruno@clisp.org>
20430
20431         pipe2: Simplify code.
20432         * lib/pipe2.c (pipe2): Reduce code duplication.
20433
20434 2011-04-17  Bruno Haible  <bruno@clisp.org>
20435
20436         nonblocking: Add comment.
20437         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
20438
20439 2011-04-17  Bruno Haible  <bruno@clisp.org>
20440
20441         nonblocking: Add tests for sockets.
20442         * tests/test-nonblocking-socket.sh: New file.
20443         * tests/test-nonblocking-socket-main.c: New file.
20444         * tests/test-nonblocking-socket-child.c: New file.
20445         * tests/test-nonblocking-socket.h: New file.
20446         * tests/socket-server.h: New file.
20447         * tests/socket-client.h: New file.
20448         * modules/nonblocking-socket-tests: New file.
20449         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
20450
20451 2011-04-17  Bruno Haible  <bruno@clisp.org>
20452
20453         nonblocking: Add tests for pipes.
20454         * tests/test-nonblocking-pipe.sh: New file.
20455         * tests/test-nonblocking-pipe-main.c: New file.
20456         * tests/test-nonblocking-pipe-child.c: New file.
20457         * tests/test-nonblocking-pipe.h: New file.
20458         * tests/test-nonblocking-writer.h: New file.
20459         * tests/test-nonblocking-reader.h: New file.
20460         * tests/test-nonblocking-misc.h: New file.
20461         * modules/nonblocking-pipe-tests: New file.
20462         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
20463
20464 2011-04-16  Bruno Haible  <bruno@clisp.org>
20465
20466         gettext: Clarify the needed programmer actions.
20467         * modules/gettext (Notice): New field.
20468         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
20469
20470 2011-04-16  Bruno Haible  <bruno@clisp.org>
20471
20472         strchrnul: Tweak last commit.
20473         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
20474         bug.
20475         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
20476         as in _GL_FUNCDECL_SYS.
20477         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
20478         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
20479
20480 2011-04-15  Eric Blake  <eblake@redhat.com>
20481
20482         strchrnul: work around cygwin bug
20483         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
20484         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
20485         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
20486         * modules/string (Makefile.am): Substitute it.
20487         * lib/string.in.h (strchrnul): Use it.
20488
20489 2011-04-15  Bruno Haible  <bruno@clisp.org>
20490
20491         Don't require lib/stdio-write.c when only module 'stdio' is used.
20492         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
20493         invocation.
20494         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
20495
20496 2011-04-14  Bruno Haible  <bruno@clisp.org>
20497
20498         Support non-blocking pipe I/O in read() on native Windows.
20499         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
20500         (read): New declaration.
20501         * lib/read.c: New file.
20502         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
20503         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
20504         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
20505         vscanf): New declarations.
20506         * lib/stdio-read.c: New file.
20507         * m4/read.m4: New file.
20508         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
20509         REPLACE_READ.
20510         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
20511         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
20512         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
20513         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
20514         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
20515         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
20516         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
20517         * modules/read: New file.
20518         * modules/nonblocking (Files): Add lib/stdio-read.c.
20519         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
20520         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
20521         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
20522         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
20523         * modules/pread (Depends-on): Add read.
20524         * modules/safe-read (Depends-on): Likewise.
20525         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
20526         gets, scanf, vfscanf, vscanf): Verify signatures.
20527         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
20528         problem with non-blocking pipes.
20529         * doc/posix-functions/fgetc.texi: Likewise.
20530         * doc/posix-functions/fgets.texi: Likewise.
20531         * doc/posix-functions/fread.texi: Likewise.
20532         * doc/posix-functions/fscanf.texi: Likewise.
20533         * doc/posix-functions/getc.texi: Likewise.
20534         * doc/posix-functions/getchar.texi: Likewise.
20535         * doc/posix-functions/gets.texi: Likewise.
20536         * doc/posix-functions/scanf.texi: Likewise.
20537         * doc/posix-functions/vfscanf.texi: Likewise.
20538         * doc/posix-functions/vscanf.texi: Likewise.
20539
20540 2011-04-14  Bruno Haible  <bruno@clisp.org>
20541
20542         Support non-blocking pipe I/O in write() on native Windows.
20543         * lib/write.c (rpl_write): Split a write request that failed merely
20544         because the byte count was larger than the pipe buffer's size.
20545         * doc/posix-functions/write.texi: Mention the problem with large byte
20546         counts.
20547
20548 2011-04-14  Bruno Haible  <bruno@clisp.org>
20549
20550         wchar: Ensure that wchar_t gets defined on uClibc.
20551         * lib/wchar.in.h: On uClibc, include <stddef.h>.
20552         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
20553
20554 2011-04-13  Bruno Haible  <bruno@clisp.org>
20555
20556         safe-write, full-read: Avoid unnecessary compilation units.
20557         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
20558         (Depends-on): Remove safe-read. Add ssize_t.
20559         * modules/full-read (Files): Add lib/full-write.c.
20560         (Depends-on): Add full-write.
20561
20562 2011-04-13  Bruno Haible  <bruno@clisp.org>
20563
20564         Support non-blocking pipe I/O and SIGPIPE in pwrite().
20565         * modules/pwrite (Depends-on): Add 'write'.
20566
20567 2011-04-13  Bruno Haible  <bruno@clisp.org>
20568
20569         Support non-blocking pipe I/O in write() on native Windows.
20570         * lib/unistd.in.h (write): Enable replacement also if
20571         GNULIB_UNISTD_H_NONBLOCKING is 1.
20572         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
20573         (rpl_write): When failing to write on a non-blocking pipe, change
20574         errno from ENOSPC to EAGAIN.
20575         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
20576         putchar, puts, vfprintf, vprintf): Enable replacement also if
20577         GNULIB_STDIO_H_NONBLOCKING is 1.
20578         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
20579         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
20580         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
20581         CALL_WITH_SIGPIPE_EMULATION.
20582         (CALL_WITH_SIGPIPE_EMULATION): Use them.
20583         * m4/nonblocking.m4: New file.
20584         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
20585         for non-blocking I/O support.
20586         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20587         GNULIB_UNISTD_H_NONBLOCKING.
20588         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
20589         required for non-blocking I/O support.
20590         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
20591         * modules/nonblocking (Files): Add m4/nonblocking.m4,
20592         lib/stdio-write.c, m4/asm-underscore.m4.
20593         (Depends-on): Add stdio, unistd.
20594         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
20595         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
20596         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
20597         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
20598         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
20599         problem with non-blocking pipes.
20600         * doc/posix-functions/fputc.texi: Likewise.
20601         * doc/posix-functions/fputs.texi: Likewise.
20602         * doc/posix-functions/fwrite.texi: Likewise.
20603         * doc/posix-functions/printf.texi: Likewise.
20604         * doc/posix-functions/putc.texi: Likewise.
20605         * doc/posix-functions/putchar.texi: Likewise.
20606         * doc/posix-functions/puts.texi: Likewise.
20607         * doc/posix-functions/vfprintf.texi: Likewise.
20608         * doc/posix-functions/vprintf.texi: Likewise.
20609         * doc/posix-functions/write.texi: Likewise.
20610
20611 2011-04-10  Jim Meyering  <meyering@redhat.com>
20612
20613         maint.mk: prohibit doubled words
20614         Detect them also when they're separated by a newline.
20615         There are 3 ways to customize it:
20616           - disable the test on a per file basis, as usual with rules using
20617             $(VC_LIST_EXCEPT)
20618           - replace the default doubled-word-selecting regexp (affects all files)
20619           - ignore a particular file-vs-doubled-word match
20620         I nearly used that last one to ignore the "is is" match in
20621         coreutils' NEWS file, since the text was "ls -is is ..."
20622         To do that, I would have added this line to cfg.mk:
20623           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
20624         but it would have ignored any "is is" match in NEWS.
20625         Low probability, but still...
20626         Instead, I changed the text, slightly:
20627           -  ls -is is now consistent with ls -lis in ignoring values returned
20628           +  "ls -is" is now consistent with ls -lis in ignoring values returned
20629         * top/maint.mk (prohibit_double_word_RE_): Provide default.
20630         (prohibit_doubled_word_): Define.
20631         (sc_prohibit_doubled_word): New rule.
20632         (sc_prohibit_the_the): Remove.  Subsumed by the above.
20633
20634 2011-04-10  Jim Meyering  <meyering@redhat.com>
20635
20636         maint: fix doubled-word typo in comment
20637         * m4/gethostname.m4: s/is is/it is/
20638         * m4/getdomainname.m4: Likewise.
20639
20640 2011-04-10  Jim Meyering  <meyering@redhat.com>
20641
20642         maint: remove doubled word: s/it it/it/
20643         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
20644
20645 2011-04-10  Jim Meyering  <meyering@redhat.com>
20646
20647         maint.mk: remove useless semicolon and backslash
20648         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
20649         semicolon and backslash.
20650
20651 2011-04-10  Bruno Haible  <bruno@clisp.org>
20652
20653         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
20654         * modules/stdint-tests (Depends-on): Add wchar.
20655
20656 2011-04-10  Jim Meyering  <meyering@redhat.com>
20657
20658         maint: remove doubled words in comments, e.g., s/a a/a/
20659         * lib/strptime.c (day_of_the_week): s/the the/the/
20660         * tests/test-chown.h (test_chown): s/a a/a/
20661
20662         test-chown.h: correct a cast
20663         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
20664         when the destination is a stat.st_gid.
20665
20666 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
20667
20668         getaddrinfo: Fix test for sa_len member.
20669         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
20670         include <sys/types.h> before <sys/socket.h>.
20671
20672 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
20673
20674         maint: change "can not" to "cannot"
20675         * doc/posix-functions/iconv.texi (iconv): This one crossed line
20676         boundaries.
20677
20678 2011-04-09  Jim Meyering  <meyering@redhat.com>
20679
20680         maint: change "a a" to "a"
20681         * tests/test-lchown.h (test_lchown): s/a a/a/
20682
20683         maint.mk: prohibit \<the the\>
20684         * top/maint.mk (sc_prohibit_the_the): New rule.
20685
20686         maint: fix "the the" in comment
20687         * lib/count-one-bits.h: s/the the/the/
20688
20689         maint: change "can not" to "cannot"
20690         But do not change the occurrences in maintain.texi or in
20691         build-aux/po/Makefile.in.in, which I presume comes from gettext.
20692         * doc/gnulib-tool.texi: s/can not/cannot/
20693         * doc/posix-functions/accept.texi (accept): Likewise.
20694         * doc/posix-functions/socket.texi (socket): Likewise.
20695         * lib/mbrtowc.c: Likewise.
20696
20697         maint.mk: prohibit use of "can not"
20698         * top/maint.mk (sc_prohibit_can_not): New rule.
20699         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
20700
20701 2011-04-09  Bruno Haible  <bruno@clisp.org>
20702
20703         careadlinkat: Guard against misuse of careadlinkatcwd.
20704         * lib/careadlinkat.c: Include <stdlib.h>.
20705         (careadlinkatcwd): Check that the fd argument is as expected.
20706
20707 2011-04-09  Bruno Haible  <bruno@clisp.org>
20708
20709         careadlinkat: Use common coding style.
20710         * lib/careadlinkat.c: Move gnulib includes after system includes.
20711
20712 2011-04-09  Bruno Haible  <bruno@clisp.org>
20713
20714         careadlinkat: Clarify specification.
20715         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
20716         (careadlinkatcwd): Add comment.
20717         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
20718
20719 2011-04-09  Bruno Haible  <bruno@clisp.org>
20720
20721         areadlinkat: Avoid link error on many platforms.
20722         * modules/areadlinkat (Depends-on): Add areadlink.
20723
20724 2011-04-09  Bruno Haible  <bruno@clisp.org>
20725
20726         allocator, careadlinkat: Fix double-inclusion guard.
20727         * lib/allocator.h: Fix double-inclusion guard.
20728         * lib/careadlinkat.h: Likewise.
20729
20730 2011-04-09  Bruno Haible  <bruno@clisp.org>
20731
20732         relocatable-prog-wrapper: Update after module 'areadlink' changed.
20733         * lib/relocwrapper.c: Update dependencies hierarchy.
20734         * build-aux/install-reloc: Update list of files to be compiled.
20735         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
20736         lib/allocator.[hc].
20737
20738 2011-04-08  Eric Blake  <eblake@redhat.com>
20739
20740         strftime: silence gnulib-tool warning
20741         * modules/strftime-tests (Depends-on): Drop automatic dependency.
20742
20743 2011-04-08  Bruno Haible  <bruno@clisp.org>
20744
20745         verify: Fix syntax error with GCC 4.6 in C++ mode.
20746         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
20747         (HAVE_STATIC_ASSERT): New macro.
20748         (verify_true, verify): Use 'static_assert' if it is supported and
20749         '_Static_assert' is not supported.
20750
20751 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
20752
20753         allocator: New module.
20754         * modules/allocator, lib/allocator.c: New files.
20755         * lib/allocator.h (stdlib_allocator): New decl.
20756         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
20757         Remove.  Do not include <stdlib.h>.
20758         (careadlinkat): Use stdlib_allocator instead of rolling our own.
20759         * modules/careadlinkat (Files): Remove lib/allocator.h.
20760         (Depends-on): Add allocator.
20761
20762         stdlib: let modules use system malloc, realloc
20763         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
20764         if !_GL_USE_STDLIB_ALLOC.
20765         (malloc, realloc): Limit this change to a smaller scope.
20766
20767         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
20768         (malloc, realloc): Don't #undef; no longer needed.
20769         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
20770         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
20771         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
20772         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
20773         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
20774         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
20775         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
20776         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
20777
20778         careadlinkat: rename members to avoid problem
20779         * lib/allocator.h (struct allocator): Rename members from
20780         malloc/realloc to allocate/reallocate, to avoid problems if malloc
20781         and realloc are #define'd.  Reported by Eric Blake in
20782         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
20783         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
20784
20785 2011-04-08  Eric Blake  <eblake@redhat.com>
20786
20787         nonblocking: reduce dependency
20788         * tests/test-nonblocking.c: Only test sockets when in use.
20789         * modules/nonblocking-tests (Depends-on): Drop socket.
20790         (Makefile.am): Link even if sockets are not present.
20791         * modules/pipe2-tests (Makefile.am): Likewise.
20792         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
20793
20794         pipe2: fix O_NONBLOCK support on mingw
20795         * modules/pipe2 (Depends-on): Add nonblocking.
20796         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
20797         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
20798         * tests/test-nonblocking.c (main): Likewise.
20799         * modules/pipe2-tests (Makefile.am): Avoid link failure.
20800
20801         fcntl-h: fix O_ACCMODE on cygwin
20802         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
20803         * lib/fcntl.in.h (O_ACCMODE): Fix it.
20804
20805         pipe-filter: drop O_NONBLOCK workarounds
20806         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
20807         * modules/pipe-filter-ii (Depends-on): Likewise.
20808         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
20809
20810         nonblocking: provide O_NONBLOCK for mingw
20811         * modules/nonblocking (Depends-on): Add open.
20812         (configure.ac): Set new witness macro.
20813         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
20814         * modules/fcntl-h (Makefile.am): Substitute it.
20815         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
20816         nonblocking module is in use.
20817         * lib/nonblocking.c: Adjust portability test.
20818         * lib/open.c (open): Don't let native open see gnulib flag.
20819         * tests/test-fcntl-h.c (main): Enhance test.
20820         * tests/test-open.h (test_open): Likewise.
20821         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
20822
20823         careadlinkat: fix compilation error on mingw
20824         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
20825         within struct allocator.
20826
20827 2011-04-06  Eric Blake  <eblake@redhat.com>
20828
20829         binary-io: relicense under LGPLv2+
20830         * modules/binary-io (License): Relax to LGPLv2+.
20831         Requested for libvirt, and required by pipe2.
20832
20833 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
20834
20835         verify: use _Static_assert if available
20836         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
20837         (verify_true, verify): Use it if available.  This generates better
20838         diagnostics with GCC 4.6.0 and later.
20839
20840 2011-04-05  Bruno Haible  <bruno@clisp.org>
20841
20842         Remove leftover generated .h files after config.status changed.
20843
20844         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
20845         GL_GENERATE_ALLOCA_H.
20846         * modules/alloca-opt (Makefile.am): Remove alloca.h if
20847         GL_GENERATE_ALLOCA_H evaluates to false.
20848
20849         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
20850         GL_GENERATE_ARGZ_H.
20851         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
20852         evaluates to false.
20853
20854         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
20855         GL_GENERATE_BYTESWAP_H.
20856         * modules/byteswap (Makefile.am): Remove byteswap.h if
20857         GL_GENERATE_BYTESWAP_H evaluates to false.
20858
20859         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
20860         GL_GENERATE_ERRNO_H.
20861         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
20862         evaluates to false.
20863
20864         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
20865         GL_GENERATE_FLOAT_H.
20866         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
20867         evaluates to false.
20868
20869         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
20870         GL_GENERATE_FNMATCH_H.
20871         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
20872         GL_GENERATE_FNMATCH_H evaluates to false.
20873
20874         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
20875         GL_GENERATE_GLOB_H.
20876         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
20877         evaluates to false.
20878
20879         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
20880         automake conditional GL_GENERATE_ICONV_H.
20881         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
20882         evaluates to false.
20883
20884         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
20885         GL_GENERATE_NETINET_IN_H.
20886         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
20887         GL_GENERATE_NETINET_IN_H evaluates to false.
20888
20889         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
20890         conditional GL_GENERATE_PTHREAD_H.
20891         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
20892         * modules/pthread (Makefile.am): Remove pthread.h if
20893         GL_GENERATE_PTHREAD_H evaluates to false.
20894
20895         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
20896         GL_GENERATE_SCHED_H.
20897         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
20898         evaluates to false.
20899
20900         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
20901         conditional GL_GENERATE_SELINUX_CONTEXT_H.
20902         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
20903         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
20904
20905         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
20906         GL_GENERATE_STDARG_H.
20907         * modules/stdarg (Makefile.am): Remove stdarg.h if
20908         GL_GENERATE_STDARG_H evaluates to false.
20909
20910         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
20911         GL_GENERATE_STDBOOL_H.
20912         * modules/stdbool (Makefile.am): Remove stdbool.h if
20913         GL_GENERATE_STDBOOL_H evaluates to false.
20914
20915         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
20916         conditional GL_GENERATE_STDDEF_H.
20917         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
20918         * modules/stddef (Makefile.am): Remove stddef.h if
20919         GL_GENERATE_STDDEF_H evaluates to false.
20920
20921         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
20922         GL_GENERATE_STDINT_H.
20923         * modules/stdint (Makefile.am): Remove stdint.h if
20924         GL_GENERATE_STDINT_H evaluates to false.
20925
20926         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
20927         GL_GENERATE_SYSEXITS_H.
20928         * modules/sysexits (Makefile.am): Remove sysexits.h if
20929         GL_GENERATE_SYSEXITS_H evaluates to false.
20930
20931         Reported by Karl Berry and Ralf Wildenhues.
20932
20933 2011-04-05  Bruno Haible  <bruno@clisp.org>
20934
20935         Ensure to rebuild generated .h files when config.status has changed.
20936         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
20937         config.status.
20938         * modules/ctype (Makefile.am): Likewise.
20939         * modules/dirent (Makefile.am): Likewise.
20940         * modules/errno (Makefile.am): Likewise.
20941         * modules/fcntl-h (Makefile.am): Likewise.
20942         * modules/float (Makefile.am): Likewise.
20943         * modules/getopt-posix (Makefile.am): Likewise.
20944         * modules/glob (Makefile.am): Likewise.
20945         * modules/iconv-h (Makefile.am): Likewise.
20946         * modules/inttypes (Makefile.am): Likewise.
20947         * modules/langinfo (Makefile.am): Likewise.
20948         * modules/locale (Makefile.am): Likewise.
20949         * modules/math (Makefile.am): Likewise.
20950         * modules/netdb (Makefile.am): Likewise.
20951         * modules/netinet_in (Makefile.am): Likewise.
20952         * modules/poll-h (Makefile.am): Likewise.
20953         * modules/pthread (Makefile.am): Likewise.
20954         * modules/pty (Makefile.am): Likewise.
20955         * modules/sched (Makefile.am): Likewise.
20956         * modules/search (Makefile.am): Likewise.
20957         * modules/selinux-h (Makefile.am): Likewise.
20958         * modules/signal (Makefile.am): Likewise.
20959         * modules/spawn (Makefile.am): Likewise.
20960         * modules/stdarg (Makefile.am): Likewise.
20961         * modules/stdbool (Makefile.am): Likewise.
20962         * modules/stddef (Makefile.am): Likewise.
20963         * modules/stdint (Makefile.am): Likewise.
20964         * modules/stdio (Makefile.am): Likewise.
20965         * modules/stdlib (Makefile.am): Likewise.
20966         * modules/string (Makefile.am): Likewise.
20967         * modules/strings (Makefile.am): Likewise.
20968         * modules/sys_file (Makefile.am): Likewise.
20969         * modules/sys_ioctl (Makefile.am): Likewise.
20970         * modules/sys_select (Makefile.am): Likewise.
20971         * modules/sys_socket (Makefile.am): Likewise.
20972         * modules/sys_stat (Makefile.am): Likewise.
20973         * modules/sys_time (Makefile.am): Likewise.
20974         * modules/sys_times (Makefile.am): Likewise.
20975         * modules/sys_utsname (Makefile.am): Likewise.
20976         * modules/sys_wait (Makefile.am): Likewise.
20977         * modules/sysexits (Makefile.am): Likewise.
20978         * modules/termios (Makefile.am): Likewise.
20979         * modules/time (Makefile.am): Likewise.
20980         * modules/unistd (Makefile.am): Likewise.
20981         * modules/wchar (Makefile.am): Likewise.
20982         * modules/wctype-h (Makefile.am): Likewise.
20983         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
20984
20985 2011-04-05  Bruno Haible  <bruno@clisp.org>
20986
20987         pipe2: Relicense under LGPLv2+.
20988         * modules/pipe2 (License): Change to LGPLv2+.
20989         Requested by Eric Blake, for libvirt.
20990
20991 2011-04-05  Bruce Korb  <bkorb@gnu.org>
20992
20993         bootstrap: compute gnulib_extra_files after updating build_aux
20994         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
20995         change build_aux or also supply gnulib_extra_files.  Handle correctly.
20996
20997 2011-04-05  Eric Blake  <eblake@redhat.com>
20998
20999         bootstrap: preserve git whitelist item sorting
21000         * build-aux/bootstrap (sort_patterns): New function.
21001         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
21002
21003 2011-04-05  Simon Josefsson  <simon@josefsson.org>
21004
21005         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
21006         sc_space_tab check.
21007
21008 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
21009
21010         areadlink, areadlinkat: rewrite in terms of careadlinkat
21011         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
21012         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
21013         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
21014         (malloc, realloc): Remove #undefs.
21015         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
21016         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
21017         readlink, ssize_t, stdint, unistd.
21018         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
21019         areadlink, stdint.
21020
21021         careadlinkat: new module
21022         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
21023         * modules/careadlinkat: New files, written by me with
21024         a review and feedback from Ben Pfaff in
21025         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
21026
21027 2011-04-01  Bruno Haible  <bruno@clisp.org>
21028
21029         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
21030         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
21031         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
21032         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
21033         Reported by Bruce Korb <bruce.korb@gmail.com>.
21034
21035 2011-04-01  Bruno Haible  <bruno@clisp.org>
21036
21037         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
21038         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
21039         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
21040         * modules/wcpcpy (Depends-on): Add extensions.
21041         * modules/wcpncpy (Depends-on): Likewise.
21042         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
21043         systems.
21044         * doc/posix-functions/wcpncpy.texi: Likewise.
21045         * doc/posix-functions/wcwidth.texi: Likewise.
21046
21047 2011-03-31  Eric Blake  <eblake@redhat.com>
21048
21049         nonblocking: fix mingw test failures
21050         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
21051         non-blocking flag on regular file.
21052         (get_nonblocking_flag): Set errno on invalid fd.
21053         * tests/test-nonblocking.c (main): Avoid test failure on
21054         directories if fchdir is not active.
21055         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
21056
21057 2011-03-31  Bruno Haible  <bruno@clisp.org>
21058
21059         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
21060         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
21061         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
21062         Reported by Simon Josefsson <simon@josefsson.org>.
21063
21064 2011-03-31  Bruno Haible  <bruno@clisp.org>
21065         and Eric Blake  <eblake@redhat.com>
21066
21067         nonblocking: new module
21068         * modules/nonblocking: New module.
21069         * modules/nonblocking-tests: Likewise.
21070         * lib/nonblocking.h: New file.
21071         * lib/nonblocking.c: Likewise.
21072         * tests/test-nonblocking.c: New test.
21073         * lib/ioctl.c (ioctl) [mingw]: Update comment.
21074
21075 2011-03-30  Bruno Haible  <bruno@clisp.org>
21076
21077         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
21078         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
21079         instead of 'printf' format for GCC >= 4.4.
21080         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
21081         (fprintf, printf, vfprintf, vprintf): Declare with
21082         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
21083         the system's vfprintf() function.
21084         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
21085
21086 2011-03-30  Eric Blake  <eblake@redhat.com>
21087
21088         passfd: fix scoping bug
21089         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
21090         before sendmsg/recvmsg.
21091
21092         passfd: standardize coding conventions
21093         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
21094         can be learned at compile time.
21095         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
21096         ifdefs.
21097         (sendfd, recvfd): Follow gnulib code conventions.
21098
21099         passfd: fix incorrect sendmsg arguments
21100         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
21101         incorrect msg_controllen value.
21102         * modules/passfd-tests (Depends-on): Check for alarm.
21103         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
21104         Reported by Bastien ROUCARIES.
21105
21106 2011-03-30  Bruno Haible  <bruno@clisp.org>
21107
21108         c-strcasestr: Relicense under LGPLv2+.
21109         * modules/c-strcasestr (License): Change to LGPLv2+.
21110         Requested by Eric Blake, for libvirt.
21111
21112 2011-03-30  Simon Josefsson  <simon@josefsson.org>
21113
21114         * users.txt: Add libidn2.  Fix libtasn1 link.
21115
21116 2011-03-30  Jim Meyering  <meyering@redhat.com>
21117
21118         tests: readlink* ("",... fails with EINVAL on newer kernels
21119         readlink and readlinkat have typically failed with ENOENT for
21120         the invalid, empty file name,  "".  However, with the advent
21121         of linux-2.6.39, they fail with EINVAL.
21122         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
21123         when operating on the empty file name.
21124         * tests/test-readlink.h (test_readlink): Likewise.
21125
21126 2011-03-29  Bruno Haible  <bruno@clisp.org>
21127
21128         Relicense some modules under LGPLv2+, for libidn2.
21129         * modules/array-mergesort (License): Change to LGPLv2+.
21130         * modules/c-strcaseeq (License): Likewise.
21131         * modules/striconveh (License): Likewise.
21132         * modules/striconveha (License): Likewise.
21133         * modules/uniconv/base (License): Likewise.
21134         * modules/uniconv/u8-conv-from-enc (License): Likewise.
21135         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
21136         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
21137         * modules/unictype/base (License): Likewise.
21138         * modules/unictype/bidiclass-of (License): Likewise.
21139         * modules/unictype/category-M (License): Likewise.
21140         * modules/unictype/category-none (License): Likewise.
21141         * modules/unictype/category-of (License): Likewise.
21142         * modules/unictype/category-test (License): Likewise.
21143         * modules/unictype/category-test-withtable (License): Likewise.
21144         * modules/unictype/combining-class (License): Likewise.
21145         * modules/unictype/joiningtype-of (License): Likewise.
21146         * modules/unictype/scripts (License): Likewise.
21147         * modules/uninorm/base (License): Likewise.
21148         * modules/uninorm/canonical-decomposition (License): Likewise.
21149         * modules/uninorm/composition (License): Likewise.
21150         * modules/uninorm/decompose-internal (License): Likewise.
21151         * modules/uninorm/decomposition-table (License): Likewise.
21152         * modules/uninorm/nfc (License): Likewise.
21153         * modules/uninorm/nfd (License): Likewise.
21154         * modules/uninorm/u32-normalize (License): Likewise.
21155         * modules/unistr/base (License): Likewise.
21156         * modules/unistr/u32-cpy (License): Likewise.
21157         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
21158         * modules/unistr/u32-to-u8 (License): Likewise.
21159         * modules/unistr/u32-uctomb (License): Likewise.
21160         * modules/unistr/u8-check (License): Likewise.
21161         * modules/unistr/u8-mblen (License): Likewise.
21162         * modules/unistr/u8-mbtouc (License): Likewise.
21163         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
21164         * modules/unistr/u8-mbtoucr (License): Likewise.
21165         * modules/unistr/u8-prev (License): Likewise.
21166         * modules/unistr/u8-strlen (License): Likewise.
21167         * modules/unistr/u8-to-u32 (License): Likewise.
21168         * modules/unistr/u8-uctomb (License): Likewise.
21169         * modules/unitypes (License): Likewise.
21170         Requested by Simon Josefsson.
21171
21172 2011-03-29  Simon Josefsson  <simon@josefsson.org>
21173
21174         lib-symbol-visibility: Add a notice.
21175         * modules/lib-symbol-visibility (Notice): New field.
21176
21177 2011-03-29  Bruno Haible  <bruno@clisp.org>
21178
21179         getaddrinfo: Doc fix.
21180         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
21181         section "fixed in Gnulib".
21182
21183 2011-03-28  Simon Josefsson  <simon@josefsson.org>
21184
21185         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
21186         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
21187
21188 2011-03-26  Bruno Haible  <bruno@clisp.org>
21189
21190         unictype/property-byname: Reduce the number of load-time relocations.
21191         * lib/unictype/pr_byname.c: Include <stdlib.h>.
21192         (UC_PROPERTY_INDEX_*): New enumeration values.
21193         (uc_property_byname): Convert an index from the lookup table to an
21194         uc_property_t.
21195         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
21196         values.
21197
21198 2011-03-26  Bruno Haible  <bruno@clisp.org>
21199
21200         unictype/property-byname: Allow omitted word separators and aliases.
21201         * lib/unictype/pr_byname.gperf: Add property names without word
21202         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
21203         for 'space'.
21204
21205 2011-03-26  Bruno Haible  <bruno@clisp.org>
21206
21207         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
21208         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
21209         also hyphens to space.
21210         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
21211         without spaces.
21212         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
21213
21214 2011-03-26  Bruno Haible  <bruno@clisp.org>
21215
21216         unictype/joiningtype-byname: Recognize long names as well.
21217         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
21218         a long name.
21219         * lib/unictype/joiningtype_byname.c: Include <string.h>,
21220         unictype/joiningtype_byname.h.
21221         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
21222         * lib/unictype/joiningtype_byname.gperf: New file.
21223         * modules/unictype/joiningtype-byname (Files): Add
21224         lib/unictype/joiningtype_byname.gperf.
21225         (Depends-on): Add gperf.
21226         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
21227         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
21228         long names.
21229
21230         Tests for module 'unictype/joiningtype-longname'.
21231         * modules/unictype/joiningtype-longname-tests: New file.
21232         * tests/unictype/test-joiningtype_longname.c: New file.
21233
21234         New module 'unictype/joiningtype-longname'.
21235         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
21236         * lib/unictype/joiningtype_longname.c: New file.
21237         * modules/unictype/joiningtype-longname: New file.
21238         * modules/unictype/joiningtype-all (Depends-on): Add
21239         unictype/joiningtype-longname.
21240
21241 2011-03-26  Bruno Haible  <bruno@clisp.org>
21242
21243         unictype/bidiclass-byname: Recognize long names as well.
21244         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
21245         name.
21246         * lib/unictype/bidi_byname.c: Include <string.h>,
21247         unictype/bidi_byname.h.
21248         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
21249         * lib/unictype/bidi_byname.gperf: New file.
21250         * modules/unictype/bidiclass-byname (Files): Add
21251         lib/unictype/bidi_byname.gperf.
21252         (Depends-on): Add gperf.
21253         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
21254         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
21255         long names.
21256
21257         Tests for module 'unictype/bidiclass-longname'.
21258         * modules/unictype/bidiclass-longname-tests: New file.
21259         * tests/unictype/test-bidi_longname.c: New file.
21260
21261         New module 'unictype/bidiclass-longname'.
21262         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
21263         * lib/unictype/bidi_longname.c: New file.
21264         * modules/unictype/bidiclass-longname: New file.
21265         * modules/unictype/bidiclass-all (Depends-on): Add
21266         unictype/bidiclass-longname.
21267
21268 2011-03-26  Bruno Haible  <bruno@clisp.org>
21269
21270         unictype/bidi*: Rename modules.
21271         * modules/unictype/bidiclass-all: Renamed from
21272         modules/unictype/bidicategory-all.
21273         * modules/unictype/bidiclass-name: Renamed from
21274         modules/unictype/bidiclass-name.
21275         (Description): Update.
21276         * modules/unictype/bidiclass-name-tests: Renamed from
21277         modules/unictype/bidicategory-name-tests.
21278         * modules/unictype/bidiclass-byname: Renamed from
21279         modules/unictype/bidicategory-byname.
21280         (Description): Update.
21281         * modules/unictype/bidiclass-byname-tests: Renamed from
21282         modules/unictype/bidicategory-byname-tests.
21283         * modules/unictype/bidiclass-of: Renamed from
21284         modules/unictype/bidicategory-of.
21285         (Description): Update.
21286         * modules/unictype/bidiclass-of-tests: Renamed from
21287         modules/unictype/bidicategory-of-tests.
21288         * modules/unictype/bidiclass-test: Renamed from
21289         modules/unictype/bidicategory-test.
21290         (Description): Update.
21291         * modules/unictype/bidiclass-test-tests: Renamed from
21292         modules/unictype/bidicategory-test-tests.
21293         * modules/unictype/bidicategory-all: New file, a simple redirection.
21294         * modules/unictype/bidicategory-name: Likewise.
21295         * modules/unictype/bidicategory-byname: Likewise.
21296         * modules/unictype/bidicategory-of: Likewise.
21297         * modules/unictype/bidicategory-test: Likewise.
21298         * modules/unictype/property-bidi-* (Dependencies): Update.
21299         * lib/unictype/bidi_*.c: Update comment.
21300
21301 2011-03-26  Bruno Haible  <bruno@clisp.org>
21302
21303         unictype/bidi*: Rename functions, part 2.
21304         * modules/unictype/bidicategory-name (configure.ac): Update required
21305         libunistring version.
21306         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
21307
21308 2011-03-25  Bruno Haible  <bruno@clisp.org>
21309
21310         New module 'unictype/combining-class-all'.
21311         * modules/unictype/combining-class-all: New file.
21312
21313         Tests for module 'unictype/combining-class-byname'.
21314         * modules/unictype/combining-class-byname-tests: New file.
21315         * tests/unictype/test-combiningclass_byname.c: New file.
21316
21317         New module 'unictype/combining-class-byname'.
21318         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
21319         * lib/unictype/combiningclass_byname.c: New file.
21320         * lib/unictype/combiningclass_byname.gperf: New file.
21321         * modules/unictype/combining-class-byname: New file.
21322
21323         Tests for module 'unictype/combining-class-longname'.
21324         * modules/unictype/combining-class-longname-tests: New file.
21325         * tests/unictype/test-combiningclass_longname.c: New file.
21326
21327         New module 'unictype/combining-class-longname'.
21328         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
21329         * lib/unictype/combiningclass_longname.c: New file.
21330         * modules/unictype/combining-class-longname: New file.
21331
21332         Tests for module 'unictype/combining-class-name'.
21333         * modules/unictype/combining-class-name-tests: New file.
21334         * tests/unictype/test-combiningclass_name.c: New file.
21335
21336         New module 'unictype/combining-class-name'.
21337         * lib/unictype.in.h (uc_combining_class_name): New declaration.
21338         * lib/unictype/combiningclass_name.c: New file.
21339         * modules/unictype/combining-class-name: New file.
21340
21341 2011-03-25  Bruno Haible  <bruno@clisp.org>
21342
21343         unictype/combining-class: Rename source files.
21344         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
21345         of unictype/combining.h.
21346         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
21347         Update.
21348         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
21349         * modules/unictype/combining-class (Description): Fix.
21350         (Files, Makefile.am): Update.
21351         * tests/unictype/test-combiningclass.c: Renamed from
21352         tests/unictype/test-combining.c.
21353         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
21354
21355 2011-03-25  Bruno Haible  <bruno@clisp.org>
21356
21357         unictype: Update list of canonical combining classes.
21358         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
21359
21360 2011-03-25  Bruno Haible  <bruno@clisp.org>
21361
21362         unictype/category-byname: Recognize long names as well.
21363         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
21364         a long name.
21365         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
21366         unictype/categ_byname.h.
21367         (UC_CATEGORY_INDEX_*): New enumeration values.
21368         (uc_general_category_byname): Use uc_general_category_lookup and
21369         convert from index to value.
21370         * lib/unictype/categ_byname.gperf: New file.
21371         * modules/unictype/category-byname (Files): Add
21372         lib/unictype/categ_byname.gperf.
21373         (Depends-on): Add gperf.
21374         (Makefile.am): Add rule for generating unictype/categ_byname.h.
21375         * tests/unictype/test-categ_byname.c (main): Test the recognition of
21376         long names.
21377
21378         Tests for module 'unictype/category-longname'.
21379         * modules/unictype/category-longname-tests: New file.
21380         * tests/unictype/test-categ_longname.c: New file.
21381
21382         New module 'unictype/category-longname'.
21383         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
21384         * lib/unictype/categ_longname.c: New file.
21385         * modules/unictype/category-longname: New file.
21386         * modules/unictype/category-all (Depends-on): Add it.
21387
21388 2011-03-25  Bruno Haible  <bruno@clisp.org>
21389
21390         Tests for module 'unictype/category-LC'.
21391         * modules/unictype/category-LC-tests: New file.
21392         * tests/unictype/test-categ_LC.c: New file, automatically generated.
21393
21394         New module 'unictype/category-LC'.
21395         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
21396         (UC_CATEGORY_LC): New declaration.
21397         (UC_CASED_LETTER): New macro.
21398         * lib/gen-uni-tables.c (is_category_LC): New function.
21399         (output_categories): Also handle category LC.
21400         (UC_CATEGORY_MASK_LC): New enumeration value.
21401         (general_category_byname): Also handle category LC.
21402         * lib/unictype/categ_LC.c: New file.
21403         * lib/unictype/categ_LC.h: New file, automatically generated.
21404         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
21405         category LC.
21406         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
21407         * modules/unictype/category-LC: New file.
21408         * modules/unictype/category-byname (Depends-on): Add
21409         unictype/category-LC.
21410         * modules/unictype/category-all (Depends-on): Likewise.
21411
21412 2011-03-25  Eric Blake  <eblake@redhat.com>
21413
21414         xmalloc: revert yesterday's regression
21415         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
21416         realloc's underlying behavior (allowing allocation of zero-size
21417         objects, especially if malloc-gnu is also in use).
21418
21419 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
21420
21421         maint.mk: add missing version to VC-tag
21422         * top/maint.mk: git tag was missing actual tag name; add it.
21423
21424         valgrind: do leak checking, and exit with code 1 on error (not 0)
21425         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
21426         to VALGRIND.
21427
21428 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
21429
21430         posix-modules: say what it does.
21431         * posix-modules: Add a line to the --help output saying what it does.
21432
21433 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
21434
21435         xmalloc: Do not leak if underlying realloc is C99 compatible.
21436         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
21437         This avoids a leak on C99-based systems.  See
21438         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
21439
21440 2011-03-24  Eric Blake  <eblake@redhat.com>
21441
21442         realloc: document portability problem
21443         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
21444         passing 0 size to realloc.
21445
21446 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
21447
21448         doc: update users.txt
21449         * users.txt: Add cvsps, tmpwatch
21450
21451 2011-03-23  Matt Rice  <ratmice@gmail.com>
21452
21453         doc: update users.txt
21454         * users.txt: Add gdb.
21455
21456 2011-03-23  Jim Meyering  <meyering@redhat.com>
21457
21458         doc: update users.txt
21459         Looking through matches up to the following URL (there are still
21460         several more pages), I found several projects that use gnulib:
21461         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
21462         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
21463         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
21464
21465 2011-03-22  Bruno Haible  <bruno@clisp.org>
21466
21467         unictype/bidi*: Rename functions.
21468         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
21469         uc_bidi_class, uc_is_bidi_class): New declarations.
21470         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
21471         uc_bidi_category_byname.
21472         (uc_bidi_category_byname): New function.
21473         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
21474         u_bidi_category_name.
21475         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
21476         (uc_bidi_category_name): New function.
21477         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
21478         uc_bidi_category.
21479         (uc_bidi_category): New function.
21480         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
21481         uc_is_bidi_category. Invoke uc_bidi_class.
21482         (uc_is_bidi_category): New function.
21483         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
21484         instead of uc_bidi_category_byname.
21485         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
21486         instead of uc_bidi_category_name.
21487         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
21488         uc_bidi_category.
21489         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
21490         instead of uc_is_bidi_category.
21491
21492 2011-03-21  Bruno Haible  <bruno@clisp.org>
21493
21494         New module 'unictype/joininggroup-all'.
21495         * modules/unictype/joininggroup-all: New file.
21496
21497         Tests for module 'unictype/joininggroup-of'.
21498         * modules/unictype/joininggroup-of-tests: New file.
21499         * tests/unictype/test-joininggroup_of.c: New file.
21500         * tests/unictype/test-joininggroup_of.h: New file, automatically
21501         generated by gen-uni-tables.
21502
21503         New module 'unictype/joininggroup-of'.
21504         * modules/unictype/joininggroup-of: New file.
21505         * lib/unictype/joininggroup_of.c: New file.
21506         * lib/unictype/joininggroup_of.h: New file, automatically generated by
21507         gen-uni-tables.
21508
21509         Tests for module 'unictype/joininggroup-byname'.
21510         * modules/unictype/joininggroup-byname-tests: New file.
21511         * tests/unictype/test-joininggroup_byname.c: New file.
21512
21513         New module 'unictype/joininggroup-byname'.
21514         * modules/unictype/joininggroup-byname: New file.
21515         * lib/unictype/joininggroup_byname.c: New file.
21516         * lib/unictype/joininggroup_byname.gperf: New file.
21517
21518         Tests for module 'unictype/joininggroup-name'.
21519         * modules/unictype/joininggroup-name-tests: New file.
21520         * tests/unictype/test-joininggroup_name.c: New file.
21521
21522         New module 'unictype/joininggroup-name'.
21523         * modules/unictype/joininggroup-name: New file.
21524         * lib/unictype/joininggroup_name.c: New file.
21525         * lib/unictype/joininggroup_name.h: New file.
21526
21527         New module 'unictype/joiningtype-all'.
21528         * modules/unictype/joiningtype-all: New file.
21529
21530         Tests for module 'unictype/joiningtype-of'.
21531         * modules/unictype/joiningtype-of-tests: New file.
21532         * tests/unictype/test-joiningtype_of.c: New file.
21533         * tests/unictype/test-joiningtype_of.h: New file, automatically
21534         generated by gen-uni-tables.
21535
21536         New module 'unictype/joiningtype-of'.
21537         * modules/unictype/joiningtype-of: New file.
21538         * lib/unictype/joiningtype_of.c: New file.
21539         * lib/unictype/joiningtype_of.h: New file, automatically generated by
21540         gen-uni-tables.
21541
21542         Tests for module 'unictype/joiningtype-byname'.
21543         * modules/unictype/joiningtype-byname-tests: New file.
21544         * tests/unictype/test-joiningtype_byname.c: New file.
21545
21546         New module 'unictype/joiningtype-byname'.
21547         * modules/unictype/joiningtype-byname: New file.
21548         * lib/unictype/joiningtype_byname.c: New file.
21549
21550         Tests for module 'unictype/joiningtype-name'.
21551         * modules/unictype/joiningtype-name-tests: New file.
21552         * tests/unictype/test-joiningtype_name.c: New file.
21553
21554         New module 'unictype/joiningtype-name'.
21555         * modules/unictype/joiningtype-name: New file.
21556         * lib/unictype/joiningtype_name.c: New file.
21557
21558         unictype: Add support for Arabic shaping properties.
21559         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
21560         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
21561         declarations.
21562         (UC_JOINING_GROUP_*): New enumeration values.
21563         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
21564         declarations.
21565         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
21566         (unicode_joining_type): New variable.
21567         (UC_JOINING_GROUP_*): New enumeration values.
21568         (unicode_joining_group): New variable.
21569         (fill_arabicshaping, joining_type_as_c_identifier,
21570         output_joining_type_test, output_joining_type,
21571         joining_group_as_c_identifier, output_joining_group_test,
21572         output_joining_group): New functions.
21573         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
21574         fill_arabicshaping and output_joining_type_test, output_joining_type,
21575         output_joining_group_test, output_joining_group.
21576         Reported by Simon Josefsson.
21577
21578 2011-03-21  Jim Meyering  <meyering@redhat.com>
21579
21580         strftime: fix a bug in yesterday's change
21581         * lib/strftime.c (add): Accommodate width's initial value of -1.
21582         Otherwise, nstrftime would copy uninitialized data into
21583         the result buffer.
21584
21585 2011-03-21  Jim Meyering  <meyering@redhat.com>
21586
21587         tests: add strftime-tests module
21588         * tests/test-strftime.c: New file.
21589         * modules/strftime-tests: New module.
21590
21591 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
21592
21593         strftime: don't assume a byte count fits in 'int'
21594         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
21595         found this problem by static analysis, using gcc -Wstrict-overflow
21596         (GCC 4.5.2, x86-64).  This reported an optimization that depended
21597         on an integer overflow having undefined behavior, but it turns out
21598         that the argument is a size, which might not fit in 'int' anyway,
21599
21600 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
21601
21602         stdio: don't require ignore_value around fwrite
21603
21604         This patch works around libc bug 11959
21605         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
21606         Without this patch, applications must often write
21607         ignore_value (fwrite (...)) even though the ignore_value is
21608         not helpful here.  It's common to write many objects, using
21609         fwrite/printf/etc., and then use ferror to detect output error.
21610
21611         I considered making this patch optional, but decided against it,
21612         because libc is obviously being inconsistent here: there is no
21613         reason libc should insist that user code must inspect fwrite
21614         return's value without also insisting that it inspect printf's,
21615         putchar's, etc.  If user code wants to have a strict style where
21616         all these functions' values are checked (so that ferror need not
21617         be checked), we could add support for that style in a new gnulib
21618         module, but in the meantime it's better to be consistent and to
21619         support common usage.
21620
21621         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
21622         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
21623         that we are compiling in checking mode, and if not C++, and
21624         if not already wrapping fwrite for some other reason.
21625         (fwrite): #define to rpl_fwrite if the latter is defined.
21626
21627 2011-03-20  Bruno Haible  <bruno@clisp.org>
21628
21629         verror: Fix compilation error introduced on 2011-02-13.
21630         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
21631         instead of __attribute__.
21632         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21633
21634 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
21635             Bruno Haible  <bruno@clisp.org>
21636
21637         socklen: do not depend on sys_socket
21638         While trying to modify Emacs to use gnulib's socklen module,
21639         I discovered a circular dependency: socklen depends on sys_socket
21640         and vice versa.  Emacs can use socklen, but it does not need
21641         sys_socket because it has its own substitute for sys/socket.h.
21642         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
21643         gl_TYPE_SOCKLEN_T.
21644         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
21645         gl_PREREQ_SYS_H_SOCKET.
21646         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
21647         gl_PREREQ_SYS_H_SOCKET.
21648         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
21649         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
21650         * modules/socklen (Depends-on): Do not depend on sys_socket.
21651         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
21652
21653 2011-03-20  Jim Meyering  <meyering@redhat.com>
21654
21655         maint.mk: sort file names *after* new transformation
21656         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
21657         prefix would have led to an unwarranted failure in GNU parted.
21658         Sort after that transformation.
21659
21660 2011-03-19  Jim Meyering  <meyering@redhat.com>
21661
21662         maint.mk: fix po-file syntax-check rule
21663         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
21664         Patch by Bruno Haible.
21665
21666 2011-03-19  Bruno Haible  <bruno@clisp.org>
21667
21668         socklen: Update comment.
21669         * m4/socklen.m4: Update comment about platforms.
21670
21671 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
21672             Bruno Haible  <bruno@clisp.org>
21673
21674         inet_ntop, inet_pton: Simplify.
21675         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
21676         documented to provide socklen_t and we already depend on sys_socket.
21677         * modules/inet_pton (Depends-on): Likewise.
21678         * lib/arpa_inet.in.h: Adjust comment.
21679
21680 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
21681             Bruno Haible  <bruno@clisp.org>
21682
21683         netdb: Simplify.
21684         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
21685         documented to provide socklen_t and we already depend on sys_socket.
21686         * lib/netdb.in.h: Adjust comment.
21687
21688 2011-03-19  Bruno Haible  <bruno@clisp.org>
21689
21690         sys_socket, netdb: Document problem with socklen_t.
21691         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
21692         platforms.
21693         * doc/posix-headers/netdb.texi: Likewise.
21694
21695 2011-03-18  Eric Blake  <eblake@redhat.com>
21696
21697         maint.mk: let po check work in VPATH build
21698         * top/maint.mk (po_file): Allow cfg.mk override.
21699         (sc_po_check): Allow VPATH use.
21700         Reported by Jiri Denemark.
21701
21702 2011-03-16  Jim Meyering  <meyering@redhat.com>
21703
21704         maint.mk: allow fine-grained syntax-check exclusion via Make variables
21705         Before, you would have had to create one .x-sc_ file per rule in order
21706         to exempt offending files.  Now, you may instead use a Make variable --
21707         usually defined in cfg.mk -- whose name identifies the affected rule.
21708         * top/maint.mk (_sc_excl): Define.
21709         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
21710         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
21711
21712 2011-03-13  Bruno Haible  <bruno@clisp.org>
21713
21714         ignore-value tests: Avoid warnings.
21715         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
21716         empty for gcc < 3.4.
21717
21718 2011-03-13  Bruno Haible  <bruno@clisp.org>
21719
21720         passfd: Fix link error on Solaris.
21721         * modules/passfd (Description): Correct.
21722         (Depends-on): Add socketlib.
21723         (Link): New section.
21724         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
21725
21726 2011-03-13  Bruno Haible  <bruno@clisp.org>
21727
21728         passfd: Fix link error on AIX 5.2.
21729         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
21730
21731 2011-03-13  Bruno Haible  <bruno@clisp.org>
21732
21733         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
21734         * lib/sys_socket.in.h: Include <stddef.h>.
21735         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
21736         CMSG_FIRSTHDR. Remove unused variable.
21737
21738 2011-03-13  Bruno Haible  <bruno@clisp.org>
21739
21740         passfd: Fix compilation error on OpenBSD.
21741         * lib/passfd.c: Include <sys/uio.h>.
21742
21743 2011-03-13  Bruno Haible  <bruno@clisp.org>
21744
21745         passfd test: Fix warnings.
21746         * tests/test-passfd.c: Include <sys/wait.h>.
21747         (main): Fix typo.
21748
21749 2011-03-13  Bruno Haible  <bruno@clisp.org>
21750
21751         passfd module, part 4, tweaks.
21752         * tests/test-passfd.c: Reorder includes.
21753         (main): Fix perror and printf calls.
21754
21755 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
21756
21757         passfd module, part 4.
21758         * modules/passfd-tests: New file.
21759         * tests/test-passfd.c: New file.
21760
21761 2011-03-13  Jim Meyering  <meyering@redhat.com>
21762
21763         Makefile: rely on GNU make; derive syntax-check rule names
21764         Rather than requiring that each sc_ rule be listed as a dependent
21765         of "check", use features of GNU make to derive the list.
21766         * Makefile (syntax-check-rules): Define.
21767         (check): Depend on the new variable, not the hard-coded list.
21768
21769 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
21770             Bruno Haible  <bruno@clisp.org>
21771
21772         passfd module, part 3.
21773         * lib/passfd.h (recvfd): Add a flags argument.
21774         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
21775         (recvfd): Add a flags argument.
21776         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
21777         exists.
21778         * modules/passfd (Depends-on): Add cloexec.
21779         Suggested by Eric Blake.
21780
21781 2011-03-13  Bruno Haible  <bruno@clisp.org>
21782
21783         passfd module, part 2, tweaks.
21784         * modules/passfd (Files): Reorder.
21785         (Depends-on): Remove errno.
21786         (Include): Remove <sys/socket.h>, <sys/un.h>.
21787         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
21788         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
21789         specification header. Include <sys/socket.h> always. Don't include
21790         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
21791         (sendfd): Clarify that it sets errno when it fails.
21792         (recvfd): Fix specification.
21793
21794 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
21795
21796         passfd module, part 2.
21797         * modules/passfd: New file.
21798         * lib/passfd.h: New file.
21799         * lib/passfd.c: New file.
21800
21801 2011-03-12  Bruno Haible  <bruno@clisp.org>
21802
21803         wcswidth, mbswidth: Avoid integer overflow.
21804         * lib/wcswidth.c: Include <limits.h>.
21805         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
21806         * lib/mbswidth.c: Include <limits.h>.
21807         (mbsnwidth): Avoid 'int' overflow.
21808         Reported by Jim Meyering.
21809
21810 2011-03-12  Bruno Haible  <bruno@clisp.org>
21811
21812         futimens, utimensat: Avoid endless recursion on Solaris 10.
21813         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
21814         Solaris.
21815         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
21816         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
21817
21818 2011-03-11  Jim Meyering  <meyering@redhat.com>
21819
21820         maint.mk: relax a regexp to accommodate other formatting styles
21821         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
21822         between "ngettext" and the following "(".
21823
21824 2011-03-11  Pádraig Brady <P@draigBrady.com>
21825
21826         maint.mk: suppress a false positive warning
21827         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
21828         diagnostics are marked with ngettext.
21829
21830 2011-03-10  Eric Blake  <eblake@redhat.com>
21831
21832         wchar: add explicit dependencies, for Tru64
21833         * modules/mbmemcasecoll (Depends-on): Add wchar.
21834         * modules/mbtowc (Depends-on): Likewise.
21835         * modules/vasnprintf (Depends-on): Likewise.
21836         * modules/unistdio/u-printf-args (Depends-on): Likewise.
21837         * modules/wctomb (Depends-on): Likewise.
21838         Reported by Peter O'Gorman.
21839
21840 2011-03-08  Bruno Haible  <bruno@clisp.org>
21841
21842         passfd module, part 1, tweaks.
21843         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
21844         Improve indentation. Improve AC_MSG_CHECKING messages.
21845         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
21846         gl_SOCKET_FAMILIES.
21847
21848 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
21849
21850         passfd module, part 1.
21851         * m4/afunix.m4: New file.
21852         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
21853         sockets.
21854
21855 2011-03-08  Bruno Haible  <bruno@clisp.org>
21856
21857         regex-quote: New API.
21858         * lib/regex-quote.h: Include <stdbool.h>.
21859         (struct regex_quote_spec): New type.
21860         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
21861         New declarations.
21862         (regex_quote_length, regex_quote_copy, regex_quote): Take a
21863         'const struct regex_quote_spec *' argument.
21864         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
21865         (pcre_special): New constant.
21866         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
21867         New functions.
21868         (regex_quote_length, regex_quote_copy, regex_quote): Take a
21869         'const struct regex_quote_spec *' argument.
21870         * modules/regex-quote (Depends-on): Add stdbool.
21871         * tests/test-regex-quote.c (check): Update for new API. Add test for
21872         anchored results.
21873         * NEWS: Mention the API change.
21874         Reported by Reuben Thomas and Eric Blake.
21875
21876 2011-03-06  Bruno Haible  <bruno@clisp.org>
21877
21878         regex-quote: Fix creation of POSIX extended regular expressions.
21879         * lib/regex-quote.c (ere_special): Add grouping and alternation
21880         operators.
21881
21882 2011-03-05  Bruno Haible  <bruno@clisp.org>
21883
21884         doc: Improve doc regarding autopoint vs. gnulib.
21885         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
21886         disable autopoint while running autoreconf.
21887         Suggested by Ralf Wildenhues.
21888
21889 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21890
21891         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
21892         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
21893
21894 2011-03-03  Bruce Korb  <bkorb@gnu.org>
21895
21896         parse-duration: remove xalloc.h dependency
21897         * lib/parse-duration.c (parse_period): handle NULL return from
21898         strdup instead of calling xstrdup().
21899         * modules/parse-duration: remove "xalloc" dependency
21900
21901 2011-03-03  Matthew Booth  <mbooth@redhat.com>
21902
21903         bootstrap: honor m4_base when running aclocal
21904         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
21905
21906 2011-03-02  Jim Meyering  <meyering@redhat.com>
21907
21908         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
21909         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
21910         on request from Matt Booth.
21911
21912 2011-03-01  Eric Blake  <eblake@redhat.com>
21913
21914         test-link: work on Hurd
21915         * tests/test-link.h (test_link): Hurd rejects linking directories
21916         with EISDIR instead of the POSIX-mandated EPERM.
21917
21918 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
21919
21920         stdio: simplify by moving files to printf-posix, sigpipe
21921         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
21922         since this symbol is needed only if printf is replaced.
21923         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
21924         Require gl_ASM_SYMBOL_PREFIX.
21925         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
21926         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
21927         (Depends-on): Add 'raise'.
21928         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
21929         * modules/stdio (Files): Remove lib/stdio-write.c,
21930         m4/asm-underscore.m4.
21931         (Depends-on): Remove 'raise'.
21932
21933         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
21934         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
21935         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
21936         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
21937
21938 2011-02-28  Bruno Haible  <bruno@clisp.org>
21939
21940         localcharset: Assume ANSI C behaviour of free().
21941         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
21942         calling free().
21943         Suggested by Simon Josefsson <simon@josefsson.org>.
21944
21945 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
21946             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
21947             Bruno Haible  <bruno@clisp.org>  (tiny change)
21948
21949         On Cygwin, use /proc file system instead of win32 API.
21950         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
21951         Win32 file names.
21952         (DllMain): Simplify by removing Cygwin specific code.
21953         (find_shared_library_fullname): Use Linux specific implementation also
21954         for Cygwin.
21955         (get_shared_library_fullname): Update accordingly.
21956         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
21957         Win32 file names.
21958         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
21959         Cygwin specific code.
21960
21961 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
21962             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
21963
21964         Fix OpenMP flag detection for various Fortran compilers.
21965         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
21966         OpenMP-conditional compilation construct, to force compile
21967         failure with missing OpenMP flag.
21968         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
21969
21970 2011-02-25  Eric Blake  <eblake@redhat.com>
21971
21972         strstr: expand test coverage
21973         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
21974         compilation.
21975         * tests/test-memmem.c (main): Duplicate tests.
21976         * tests/test-strcasestr.c (main): Likewise.
21977         * tests/test-c-strcasestr.c (main): Likewise.
21978
21979 2011-02-25  Jim Meyering  <meyering@redhat.com>
21980
21981         maint.mk: detect missing-NL-at-EOF, too
21982         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
21983         it also detects when a file lacks a newline at EOF.
21984         (require_exactly_one_NL_at_EOF_): Renamed from
21985         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
21986         since people may well have .x-sc_... file names tied to the
21987         existing name.  Suggested by Eric Blake.
21988
21989 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
21990
21991         dirname: move m4/dos.m4 functionality into lib/dosname.h
21992
21993         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
21994         extracts symbols from it, puts them into config.h; but it's much
21995         easier to use the symbols directly.  filename.h already does this,
21996         but it disagrees with dos.m4 in some respects.  This patch
21997         introduces a different include file dosname.h that packages up
21998         dos.m4, and then later we can work on merging filename.h and
21999         dosname.h.  Applications that need only the easy-to-configure
22000         symbols should consider including dosname.h rather than dirname.h.
22001         * NEWS: Mention incompatible changes.
22002         * m4/dos.m4: Remove.
22003         * lib/dosname.h, modules/dosname: New files.
22004         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
22005         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
22006         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
22007         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
22008         Include dosname.h, not dirname.h.
22009         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
22010         Include dosname.h, for definitions of symbols like ISSLASH
22011         that used to be in config.h.
22012         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
22013         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
22014         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
22015         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
22016         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
22017         * modules/rmdir (Files): Likewise.
22018         * modules/stat (Files): Likewise.
22019         * modules/unlink (Files): Likewise.
22020         * modules/dirname-lgpl (Depends-on): Add dosname.
22021         * modules/lstat (Depends-on): Likewise.
22022         * modules/openat (Depends-on): Likewise.
22023         * modules/rmdir (Depends-on): Likewise.
22024         * modules/savewd (Depends-on): Likewise.
22025         * modules/stat (Depends-on): Likewise.
22026         * modules/unlink (Depends-on): Likewise.
22027         * modules/openat (Depends-on): Remove dirname-lgpl.
22028         * modules/savewd (Depends-on): Likewise.
22029         * tests/test-dirname.c: Do not use removed symbols like
22030         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
22031         the remaining symbols, e.g., ISSLASH ('\\').
22032
22033 2011-02-25  Eric Blake  <eblake@redhat.com>
22034
22035         strstr: revert patches that introduced bug and pessimization
22036         * lib/str-two-way.h: Add another reference.
22037         (two_way_short_needle, two_way_long_needle): Revert changes from
22038         2011-02-24; they pessimize search speed.
22039         (critical_factorization): Partially revert changes from
22040         2010-06-22; they violate the requirement that the left half of the
22041         needle be smaller than the period of the needle.
22042
22043 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
22044
22045         filenamecat: remove unnecessary dependency on dirname-lgpl
22046         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
22047         is no direct dependency, just an indirect one via filenamecat-lgpl.
22048
22049         remove: remove unnecessary use of m4/dos.m4
22050         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
22051         * modules/remove (FILES): Remove m4/dos.m4.
22052
22053         * lib/openat-proc.c: Don't include dirname.h; not needed.
22054
22055         backupfile: remove unnecessary use of m4/dos.m4
22056         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
22057         of its symbols are used by the backupfile code.  backupfile.c does
22058         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
22059         for the rare case of programs that want all their backup file
22060         names to live within 8+3 limits, and dos.m4 doesn't address that.
22061         * modules/backupfile (Files): Remove m4/dos.m4.
22062
22063 2011-02-24  Jim Meyering  <meyering@redhat.com>
22064
22065         strstr: fix a bug whereby strstr would mistakenly return NULL
22066         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
22067         in period calculation.
22068         (two_way_long_needle): Likewise.
22069         The original problem was reported by Mike Stump in
22070         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
22071         Ralf Wildenhues provided the short needle and haystack.
22072         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
22073         Add a more involved test to trigger the bug in two_way_long_needle.
22074
22075 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
22076
22077         gnulib-tool: remove use of bold display in help screen
22078         * gnulib-tool (func_usage): Do not use bold display anymore in the
22079         help screen.  That was just meant to be a temporary emphasis for a
22080         backward-incompatible change.
22081
22082 2011-02-23  Bruno Haible  <bruno@clisp.org>
22083
22084         Fix misindentation of preprocessor directives.
22085         * lib/argp-namefrob.h: Reindent preprocessor directives.
22086         * lib/getopt_int.h (struct _getopt_data): Likewise.
22087         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
22088         * lib/vasnprintf.c (decode_long_double): Likewise.
22089         * tests/test-argmatch.c: Insert blank lines, for clarity.
22090         * tests/test-exclude.c: Likewise.
22091
22092 2011-02-22  Bruno Haible  <bruno@clisp.org>
22093
22094         ioctl: Fix for MacOS X in 64-bit mode.
22095         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
22096         value.
22097         Suggested by Eric Blake.
22098         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
22099
22100 2011-02-22  Jim Meyering  <meyering@redhat.com>
22101
22102         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
22103         * Makefile (sc_cpp_indent_check): Don't limit the check to files
22104         in lib/.
22105
22106 2011-02-22  Eric Blake  <eblake@redhat.com>
22107
22108         maint: avoid any CDPATH issue
22109         * Makefile (sc_cpp_indent_check): Anchor cd argument.
22110
22111         maint: adjust cpp indentation for my modules, as well
22112         * Makefile (sc_cpp_indent_check): Add my name.
22113         * lib/fbufmode.c: Filter through cppi.
22114         * lib/fpurge.c: Likewise.
22115         * lib/freadable.c: Likewise.
22116         * lib/freading.c: Likewise.
22117         * lib/fwritable.c: Likewise.
22118         * lib/fwriting.c: Likewise.
22119         * lib/sigaction.c: Likewise.
22120
22121 2011-02-22  Jim Meyering  <meyering@redhat.com>
22122
22123         maint: adjust cpp indentation to reflect nesting depth
22124         I.e., in a block of code that begins with an unnested "#if",
22125         put one space between the "#" in column 1 and following token.
22126         For example,
22127         -#include <sys/vfs.h>
22128         +# include <sys/vfs.h>
22129         Do this only in .c files that are part of a module I maintain.
22130         * lib/linkat.c: Filter through cppi.
22131         * lib/nanosleep.c: Likewise.
22132         * lib/openat.c: Likewise.
22133         * lib/openat-die.c: Likewise.
22134         * lib/dup3.c: Likewise.
22135         * lib/fchownat.c: Likewise.
22136         * lib/flock.c: Likewise.
22137         * lib/fsync.c: Likewise.
22138         * lib/fts.c: Likewise.
22139         * lib/getpass.c: Likewise.
22140         * lib/gettimeofday.c: Likewise.
22141         * lib/userspec.c: Likewise.
22142         * Makefile (sc_cpp_indent_check): New rule, to check this.
22143
22144 2011-02-22  Bruno Haible  <bruno@clisp.org>
22145
22146         New module 'wctomb'.
22147         * lib/stdlib.in.h (wctomb): New declaration.
22148         * lib/wctomb.c: New file.
22149         * lib/wctomb-impl.h: New file.
22150         * m4/wctomb.m4: New file.
22151         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
22152         REPLACE_WCTOMB.
22153         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
22154         REPLACE_WCTOMB.
22155         * modules/wctomb: New file.
22156         * tests/test-stdlib-c++.cc: Test signature of wctomb.
22157         * doc/posix-functions/wctomb.texi: Mention the new module.
22158         * modules/wctob (Depends-on): Add wctomb.
22159
22160 2011-02-22  Bruno Haible  <bruno@clisp.org>
22161
22162         New module 'mbtowc'.
22163         * lib/stdlib.in.h (mbtowc): New declaration.
22164         * lib/mbtowc.c: New file.
22165         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
22166         * m4/mbtowc.m4: New file.
22167         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
22168         REPLACE_MBTOWC.
22169         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
22170         REPLACE_MBTOWC.
22171         * modules/mbtowc: New file.
22172         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
22173         * doc/posix-functions/mbtowc.texi: Mention the new module.
22174         * modules/btowc (Depends-on): Add mbtowc.
22175
22176 2011-02-22  Bruno Haible  <bruno@clisp.org>
22177
22178         wcrtomb: Add more tests for native Windows platforms.
22179         * tests/test-wcrtomb-w32-1.sh: New file.
22180         * tests/test-wcrtomb-w32-2.sh: New file.
22181         * tests/test-wcrtomb-w32-3.sh: New file.
22182         * tests/test-wcrtomb-w32-4.sh: New file.
22183         * tests/test-wcrtomb-w32-5.sh: New file.
22184         * tests/test-wcrtomb-w32.c: New file.
22185         * modules/wcrtomb-tests (Files): Add them.
22186         (Makefile.am): Arrange to run these tests.
22187         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
22188         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
22189
22190 2011-02-20  Bruno Haible  <bruno@clisp.org>
22191
22192         wcrtomb: Enhance test.
22193         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
22194
22195 2011-02-20  Bruno Haible  <bruno@clisp.org>
22196
22197         mbrtowc: Tiny optimization.
22198         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
22199
22200 2011-02-20  Jim Meyering  <meyering@redhat.com>
22201
22202         test-exclude.c: remove unmatched #endif
22203         * tests/test-exclude.c: Remove stray #endif, left over from
22204         the change of a week ago.
22205
22206 2011-02-19  Jim Meyering  <meyering@redhat.com>
22207
22208         git-version-gen: skip "-dirty" check when appropriate
22209         * build-aux/git-version-gen: Don't run any git commands when the
22210         version string comes from .tarball-version.  Prior to this, we
22211         would run git update-index --refresh even from a just-unpacked
22212         tarball directory, and that could affect a .git/ directory in a
22213         parent of the build directory.  Reported by Mike Frysinger.
22214
22215 2011-02-19  Bruno Haible  <bruno@clisp.org>
22216
22217         unictype/property-byname: Reduce the size of the 'data' segment.
22218         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
22219
22220 2011-02-19  Bruno Haible  <bruno@clisp.org>
22221
22222         unictype/scripts: Reduce the size of the 'data' segment.
22223         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
22224         '%pic'.
22225         * lib/unictype/scripts_byname.gperf: Regenerated.
22226
22227 2011-02-19  Bruno Haible  <bruno@clisp.org>
22228
22229         stdint: Update documentation.
22230         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
22231
22232 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
22233
22234         stdint: omit redundant check for wchar.h
22235         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
22236         always tests whether wchar.h exists, so remove the now-redundant test.
22237
22238 2011-02-18  Bruno Haible  <bruno@clisp.org>
22239
22240         stdint: Cut dependency to module 'wchar'.
22241         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
22242         include the necessary prerequisites.
22243         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
22244         * modules/stdint (Depends-on): Remove wchar.
22245         (Makefile.am): Substitute HAVE_WCHAR_H.
22246         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
22247
22248 2011-02-18  Eric Blake  <eblake@redhat.com>
22249
22250         longlong: skip, rather than fail, on cross-compilation
22251         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
22252         when cross-compiling; regression from 2011-02-16.
22253
22254 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
22255
22256         * NEWS: Mention 2011-02-08 change to stdlib.
22257
22258 2011-02-17  Bruno Haible  <bruno@clisp.org>
22259
22260         getloadavg: Add comments about platforms.
22261         * m4/getloadavg.m4: Add comment.
22262         * lib/getloadavg.c: Likewise.
22263
22264 2011-02-17  Bruno Haible  <bruno@clisp.org>
22265
22266         getloadavg: Fix link error on Solaris 2.6.
22267         * modules/getloadavg (Link): New section.
22268         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
22269         linking test-getloadavg.
22270         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
22271         getloadavg.
22272
22273 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
22274
22275         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
22276         It was 'int', but this doesn't match the IRIX 6.5 manual.
22277         Suggested by Bruno Haible in
22278         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
22279
22280 2011-02-17  Bruno Haible  <bruno@clisp.org>
22281
22282         havelib: Fix comments.
22283         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
22284         change.
22285
22286 2011-02-17  Bruno Haible  <bruno@clisp.org>
22287
22288         havelib: Update config.rpath.
22289         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
22290
22291 2011-02-17  Bruno Haible  <bruno@clisp.org>
22292
22293         getloadavg test: Add some plausibility checks.
22294         * tests/test-getloadavg.c (check_avg): Print a warning when the value
22295         is improbable.
22296
22297 2011-02-16  Eric Blake  <eblake@redhat.com>
22298
22299         maintainer-makefile: make syntax-check a no-op from tarballs
22300         * top/maint.mk (no-vc-detected): New rule.
22301         (local-checks-available): Use it to avoid hanging if someone tries
22302         'make syntax-check' from a tarball.  Also append to any non-syntax
22303         checks already defined in cfg.mk.
22304
22305 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
22306
22307         longlong: tune, particularly for common case of c99
22308
22309         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
22310         or running anything if c99, or if unsigned long long int does not
22311         work.  In either case, we know the answer without further tests.
22312         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
22313         it at most once, and use its results for both long long int and
22314         unsigned long long int.  This is more likely to be efficient in
22315         the common case where the program wants to check for both long
22316         long int and unsigned long long int.
22317         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
22318         since the answer is already known.
22319
22320 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
22321
22322         getloadavg: set errno
22323         * lib/getloadavg.c: Set errno when returning -1.  If no other
22324         error number looks appropriate, set it to ENOSYS if the getloadavg
22325         looks like it can't possibly ever work, ENOTSUP otherwise.
22326         Suggested by Bruno Haible in
22327         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
22328
22329         getloadavg: trim unused parts and speed up 'configure'
22330         * NEWS: Document this.
22331         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
22332         always compiled if getloadavg is absent.
22333         Move test code to ...
22334         * tests/test-getloadavg.c: New file, containing previous
22335         contents of test from lib/getloadavg.c.  It also contains
22336         suggestions by Bruno Haible in
22337         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
22338         * modules/getloadavg-tests: New file.
22339         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
22340         Do tests in the same order as they're needed for getloadavg.c.
22341         Omit setgid-related tests that generate symbols KMEM_GROUP,
22342         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
22343         Do only the tests that are needed to see whether the system has
22344         getloadavg, moving the other tests into ...
22345         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
22346         NLIST_NAME_UNION; nobody should be using it.  Do not define
22347         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
22348         relevant, as the user of this module shouldn't care how getloadavg
22349         is implemented.
22350
22351         getloadavg: omit unused var
22352         * lib/getloadavg.c (getloadavg): Omit unused local variable.
22353
22354 2011-02-15  Jim Meyering  <meyering@redhat.com>
22355
22356         doc: update users.txt
22357         * users.txt: Update iwhd's URL.
22358
22359 2011-02-13  Bruno Haible  <bruno@clisp.org>
22360
22361         Consistent macro naming for macros that use GCC __attribute__.
22362         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
22363         _ATTRIBUTE_NONNULL_.
22364         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
22365         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
22366         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
22367         ATTRIBUTE_DEPRECATED.
22368         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
22369         ATTRIBUTE_NORETURN.
22370         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
22371         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
22372         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
22373         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
22374         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
22375         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
22376         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
22377         ATTRIBUTE_SENTINEL.
22378         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
22379         ATTRIBUTE_RETURN_CHECK.
22380         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
22381         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
22382         ATTRIBUTE_NORETURN.
22383         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
22384         Reported by Paul Eggert.
22385
22386 2011-02-13  Bruno Haible  <bruno@clisp.org>
22387
22388         Don't interfere with a program's definition of __attribute__.
22389         * lib/argp.h (__attribute__): Remove definition.
22390         (_GL_ATTRIBUTE_FORMAT): New macro.
22391         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
22392         * lib/argp-fmtstream.h (__attribute__): Remove definition.
22393         (_GL_ATTRIBUTE_FORMAT): New macro.
22394         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
22395         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
22396         GCC 3 or newer.
22397         * lib/error.h (__attribute__): Remove definition.
22398         (_GL_ATTRIBUTE_FORMAT): New macro.
22399         (error, error_at_line): Use it.
22400         * lib/hash.h (__attribute__): Remove definition.
22401         (ATTRIBUTE_WUR): Update definition. Define always.
22402         * lib/openat.h (__attribute__): Remove definition.
22403         (ATTRIBUTE_NORETURN): Update definition. Define always.
22404         * lib/sigpipe-die.h (__attribute__): Remove definition.
22405         (ATTRIBUTE_NORETURN): Update definition. Define always.
22406         * lib/vasnprintf.h (__attribute__): Remove definition.
22407         (_GL_ATTRIBUTE_FORMAT): New macro.
22408         (asnprintf, vasnprintf): Use it.
22409         * lib/xalloc.h (__attribute__): Remove definition.
22410         (ATTRIBUTE_NORETURN): Update definition. Define always.
22411         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
22412         * lib/xmemdup0.h (__attribute__): Remove definition.
22413         (ATTRIBUTE_NORETURN): Update definition. Define always.
22414         * lib/xprintf.h (__attribute__): Remove definition.
22415         (_GL_ATTRIBUTE_FORMAT): New macro.
22416         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
22417         * lib/xstrtol.h (__attribute__): Remove definition.
22418         (ATTRIBUTE_NORETURN): Update definition. Define always.
22419         * lib/xvasprintf.h (__attribute__): Remove definition.
22420         (_GL_ATTRIBUTE_FORMAT): New macro.
22421         (xasprintf, xvasprintf): Use it.
22422         * tests/test-argmatch.c (__attribute__): Remove definition.
22423         (ATTRIBUTE_NORETURN): Update definition. Define always.
22424         * tests/test-exclude.c (__attribute__): Remove definition.
22425         (ATTRIBUTE_NORETURN): Update definition. Define always.
22426         Reported by Paul Eggert.
22427
22428 2011-02-13  Bruno Haible  <bruno@clisp.org>
22429
22430         mbrtowc: Add more tests for native Windows platforms.
22431         * tests/test-mbrtowc-w32-1.sh: New file.
22432         * tests/test-mbrtowc-w32-2.sh: New file.
22433         * tests/test-mbrtowc-w32-3.sh: New file.
22434         * tests/test-mbrtowc-w32-4.sh: New file.
22435         * tests/test-mbrtowc-w32-5.sh: New file.
22436         * tests/test-mbrtowc-w32.c: New file.
22437         * modules/mbrtowc-tests (Files): Add them.
22438         (Makefile.am): Arrange to run these tests.
22439         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
22440         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
22441
22442 2011-02-13  Bruno Haible  <bruno@clisp.org>
22443
22444         mbrtowc: Work around native Windows bug.
22445         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
22446         guess when no suitable locale for testing was found.
22447         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
22448
22449 2011-02-13  Bruno Haible  <bruno@clisp.org>
22450
22451         mbsinit: Work around mingw bug.
22452         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
22453         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
22454         Windows.
22455         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
22456
22457 2011-02-13  Bruno Haible  <bruno@clisp.org>
22458
22459         mbsinit: Don't crash for a NULL argument.
22460         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
22461         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
22462
22463 2011-02-13  Bruno Haible  <bruno@clisp.org>
22464
22465         Don't interfere with a program's definition of __attribute__.
22466         * lib/stdio.in.h (__attribute__): Remove definition.
22467         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
22468         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
22469         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
22470         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
22471         * lib/string.in.h (__attribute__): Remove definition.
22472         Reported by Paul Eggert.
22473
22474 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
22475
22476         stdlib: don't get in the way of non-GCC __attribute__
22477         See thread starting at
22478         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
22479         Revert previous stdlib change, installing the following instead:
22480         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
22481         to get in the way of a non-GCC compiler that supports __attribute__.
22482         (_GL_ATTRIBUTE_RETURN): New macro.
22483         (_Exit): Use it instead of __attribute__.
22484
22485 2011-02-12  Bruno Haible  <bruno@clisp.org>
22486
22487         quotearg test: Avoid test failure on mingw.
22488         * tests/test-quotearg.sh: Convert the locale identifier from native
22489         Windows syntax to Unix syntax.
22490
22491 2011-02-12  Bruno Haible  <bruno@clisp.org>
22492
22493         setlocale: Prefer gnulib's override over libintl's override.
22494         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
22495         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
22496         GNULIB_defined_setlocale is set.
22497
22498 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
22499
22500         stdlib: support non-GCC __attribute__
22501
22502         Fix a serious and tricky problem encountered when attempting to
22503         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
22504         5.5, but it crashed due to memory corruption on Solaris 10 with
22505         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
22506         bits that are otherwise zero.  This tagging is optional inside
22507         Emacs but is preferred and is used when __attribute__ ((__aligned
22508         (8))) works, as it does with both recent-enough GCC and with Sun C
22509         5.11.  However, Sun C 5.11 is not GCC and does not #define
22510         __GNUC__ and __GNUC_MINOR__.
22511
22512         When I added the getloadavg module to Emacs, it brought in
22513         stdlib.in.h, which contained this fragment:
22514
22515            #ifndef __attribute__
22516            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
22517            #  define __attribute__(Spec)   /* empty */
22518            # endif
22519            #endif
22520
22521         When files that include <stdlib.h> were compiled with Sun C 5.11,
22522         the above code disabled __attribute__ ((__aligned (8))), which
22523         caused variables to not be properly aligned, which eventually led
22524         to the pointer corruption mentioned above.  (This was a bit hard
22525         to diagnose, unfortunately.)
22526
22527         Several "#define __attribute__(X) /* empty */" code snippets need
22528         to be eradicated from Gnulib to work with non-GCC compilers that
22529         support __attribute__.  The Autoconf way to do this is to test for
22530         each kind of attribute that we want support for, and selectively
22531         enable that in source code.
22532
22533         Fix this problem just for stdlib.h, by adding a test for the
22534         __noreturn__ attribute, and change stdlib.in.h to use that test
22535         when needed.  This technique can be easily generalized to the
22536         other *.in.h files and attributes, and a similar technique can be
22537         used for *.h and *.c files.  This patch is enough to solve the
22538         problem for Emacs + getloadavg, and I thought I'd publish it for
22539         feedback before undertaking further, similar fixes in other
22540         modules.
22541
22542         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
22543         because it's not needed for stdlib.h.  It merely substitutes the
22544         value directly into stdlib.h.  We may well need to #define it, or
22545         similar symbols, for other modules, but it's nice to also have an
22546         option to not #define it for applications like Emacs that do not
22547         need it.
22548
22549         * lib/stdlib.in.h (__attribute__): Do not #define.
22550         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
22551         be defined only if the _Exit module is also used.
22552         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
22553         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
22554         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
22555         platforms.
22556         * modules/_Exit (Files): Add m4/attribute.m4.
22557         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
22558         * m4/attribute.m4: New file.
22559
22560 2011-02-12  Bruno Haible  <bruno@clisp.org>
22561
22562         wcsrtombs: Work around bug on native Windows.
22563         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
22564         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
22565         instead of len.
22566         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
22567
22568 2011-02-12  Bruno Haible  <bruno@clisp.org>
22569
22570         mbsrtowcs: Work around bug on native Windows.
22571         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
22572         against mingw bug.
22573         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
22574
22575 2011-02-12  Bruno Haible  <bruno@clisp.org>
22576
22577         Avoid setlocale bugs in tests.
22578         * modules/btowc (Dependencies): Add setlocale.
22579         * modules/c-strcase (Dependencies): Likewise.
22580         * modules/mbmemcasecmp (Dependencies): Likewise.
22581         * modules/mbmemcasecoll (Dependencies): Likewise.
22582         * modules/mbrtowc (Dependencies): Likewise.
22583         * modules/mbscasecmp (Dependencies): Likewise.
22584         * modules/mbscasestr (Dependencies): Likewise.
22585         * modules/mbschr (Dependencies): Likewise.
22586         * modules/mbscspn (Dependencies): Likewise.
22587         * modules/mbsinit (Dependencies): Likewise.
22588         * modules/mbsncasecmp (Dependencies): Likewise.
22589         * modules/mbsnrtowcs (Dependencies): Likewise.
22590         * modules/mbspbrk (Dependencies): Likewise.
22591         * modules/mbspcasecmp (Dependencies): Likewise.
22592         * modules/mbsrchr (Dependencies): Likewise.
22593         * modules/mbsrtowcs (Dependencies): Likewise.
22594         * modules/mbsspn (Dependencies): Likewise.
22595         * modules/mbsstr (Dependencies): Likewise.
22596         * modules/nl_langinfo (Dependencies): Likewise.
22597         * modules/quotearg (Dependencies): Likewise.
22598         * modules/unicase/locale-language (Dependencies): Likewise.
22599         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
22600         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
22601         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
22602         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
22603         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
22604         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
22605         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
22606         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
22607         * modules/vasnprintf-posix (Dependencies): Likewise.
22608         * modules/wcrtomb (Dependencies): Likewise.
22609         * modules/wcsnrtombs (Dependencies): Likewise.
22610         * modules/wcsrtombs (Dependencies): Likewise.
22611
22612 2011-02-12  Bruno Haible  <bruno@clisp.org>
22613
22614         setlocale: Workaround native Windows bug.
22615         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
22616         succeeds but sets LC_CTYPE to "C", report a failure.
22617         * tests/test-setlocale2.sh: New file.
22618         * tests/test-setlocale2.c: New file.
22619         * modules/setlocale-tests (Files): Add the new files.
22620         (Makefile.am): Enable test-setlocale2.sh test.
22621         * doc/posix-functions/setlocale.texi: Mention workaround.
22622
22623 2011-02-11  Bruno Haible  <bruno@clisp.org>
22624
22625         Tests for module 'setlocale'.
22626         * modules/setlocale-tests: New file.
22627         * tests/test-setlocale1.sh: New file.
22628         * tests/test-setlocale1.c: New file.
22629
22630         New module 'setlocale'.
22631         * lib/locale.in.h (setlocale): New declaration.
22632         * lib/setlocale.c: New file, based on
22633         gettext/gettext-runtime/intl/setlocale.c.
22634         * m4/setlocale.m4: New file.
22635         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
22636         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
22637         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
22638         REPLACE_SETLOCALE.
22639         * modules/setlocale: New file.
22640         * tests/test-locale-c++.cc: Test the declaration of setlocale.
22641         * doc/posix-functions/setlocale.texi: Mention the new module.
22642
22643 2011-02-11  Bruno Haible  <bruno@clisp.org>
22644
22645         Prepare for locale dependent tests on mingw.
22646         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
22647         because it has the wrong locale encoding.
22648         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
22649         French_France.1252 instead of "fr".
22650         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
22651         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
22652         because it has the wrong locale encoding.
22653         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
22654         native Windows, try Turkish_Turkey.65001.
22655         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
22656         Chinese_China.54936.
22657
22658         Prepare for locale dependent tests on mingw.
22659         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
22660         differently.
22661         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
22662         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
22663         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
22664         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
22665
22666 2011-02-11  Eric Blake  <eblake@redhat.com>
22667
22668         strptime: avoid compiler warnings
22669         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
22670         compiler warnings about dead code.
22671         Reported by Daniel P. Berrange.
22672
22673 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
22674
22675         doc: update users.txt
22676         * users.txt: Add rcs.
22677
22678 2011-02-10  John W. Eaton  <jwe@gnu.org>
22679
22680         doc: update users.txt
22681         * users.txt: Add octave.
22682
22683 2011-02-10  Jim Meyering  <meyering@redhat.com>
22684
22685         doc: update users.txt
22686         * users.txt: Add iwhd.
22687
22688 2011-02-09  Bruno Haible  <bruno@clisp.org>
22689
22690         gnulib-tool: Make copyright notice adjustment more robust.
22691         * gnulib-tool (func_import): In sed_transform_main_lib_file,
22692         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
22693         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
22694         License".
22695         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
22696
22697 2011-02-06  Bruno Haible  <bruno@clisp.org>
22698
22699         New module 'towctrans'.
22700         * modules/towctrans: New file.
22701         * lib/wctype.in.h (towctrans): New declaration.
22702         * lib/towctrans.c: New file.
22703         * lib/towctrans-impl.h: New file.
22704         * m4/towctrans.m4: New file.
22705         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
22706         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
22707         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
22708         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
22709         * doc/posix-functions/towctrans.texi: Mention the new module.
22710
22711 2011-02-06  Bruno Haible  <bruno@clisp.org>
22712
22713         New module 'wctrans'.
22714         * modules/wctrans: New file.
22715         * lib/wctype.in.h (wctrans): New declaration.
22716         * lib/wctrans.c: New file.
22717         * lib/wctrans-impl.h: New file.
22718         * m4/wctrans.m4: New file.
22719         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
22720         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
22721         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
22722         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
22723         * doc/posix-functions/wctrans.texi: Mention the new module.
22724
22725 2011-02-06  Bruno Haible  <bruno@clisp.org>
22726
22727         New module 'iswctype'.
22728         * modules/iswctype: New file.
22729         * lib/wctype.in.h (iswctype): New declaration.
22730         * lib/iswctype.c: New file.
22731         * lib/iswctype-impl.h: New file.
22732         * m4/iswctype.m4: New file.
22733         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
22734         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
22735         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
22736         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
22737         * doc/posix-functions/iswctype.texi: Mention the new module and the
22738         HP-UX 11.00 problem.
22739
22740 2011-02-06  Bruno Haible  <bruno@clisp.org>
22741
22742         New module 'wctype'.
22743         * modules/wctype: Change to represent the wctype() substitute.
22744         * lib/wctype.in.h (wctype): New declaration.
22745         * lib/wctype.c: New file.
22746         * lib/wctype-impl.h: New file.
22747         * m4/wctype.m4: New file.
22748         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
22749         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
22750         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
22751         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
22752         * doc/posix-functions/wctype.texi: Mention the new module and the
22753         HP-UX 11.00 problem.
22754
22755 2011-02-06  Bruno Haible  <bruno@clisp.org>
22756
22757         wctype-h: Ensure wctype_t and wctrans_t are defined.
22758         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
22759         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
22760         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
22761         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
22762         HAVE_WCTRANS_T.
22763         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
22764
22765 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
22766
22767         flock: fix license typo
22768
22769         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
22770         omitted.
22771
22772 2011-02-08  Bruno Haible  <bruno@clisp.org>
22773
22774         Split large sed scripts, for HP-UX sed.
22775         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
22776         to avoid HP-UX limit of 99 commands, in the near future.
22777         * modules/stdlib (Makefile.am): Likewise.
22778         * modules/unistd (Makefile.am): Likewise.
22779         * modules/wchar (Makefile.am): Likewise.
22780         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22781         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
22782         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
22783
22784 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
22785             Bruno Haible  <bruno@clisp.org>
22786
22787         stdlib: improve random_r modularization
22788         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
22789         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
22790         you also need the random_r module to get this material right.
22791         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
22792         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
22793         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
22794
22795 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
22796
22797         stdlib: don't depend on stdint
22798         * lib/stdlib.in.h: Don't include <stdint.h> merely because
22799         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
22800         be independent of whether stdint.h is needed.
22801         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
22802         here, instead of ...
22803         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
22804         struct random_data should be using the random_r module, not just
22805         the stdlib module (which wouldn't make sense: what package needs
22806         just struct random_data without also needing random_r?).
22807         * modules/stdlib (Depends-on): Remove stdint.
22808
22809         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
22810         See the thread rooted at
22811         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
22812         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
22813         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
22814         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
22815         __VMS)); previously it was always included (via fcntl--.h).
22816         (getloadavg): Do not use c_strtod.  Instead, approximate it by
22817         hand; this is good enough for load averages.  Also, do not use
22818         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
22819         flags directly if available and don't bother otherwise.  (Packages
22820         that need the extra reliability should use the modules that define
22821         these flags on older platforms that lack them.)
22822         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
22823         fcntl-safer.
22824
22825 2011-02-08  Jim Meyering  <meyering@redhat.com>
22826
22827         di-set.h, ino-map.h: add multiple-inclusion guard
22828         Technically, the guard is required only for ino-map.h, due to its
22829         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
22830         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
22831         * lib/ino-map.h: Likewise.
22832
22833 2011-02-06  Bruno Haible  <bruno@clisp.org>
22834
22835         iswblank: Ensure declaration on glibc systems.
22836         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
22837         * modules/iswblank (Dependencies): Add 'extensions'.
22838         * doc/posix-functions/iswblank.texi: Document the glibc problem.
22839
22840 2011-02-06  Bruno Haible  <bruno@clisp.org>
22841
22842         New module 'iswblank'.
22843         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
22844         * modules/iswblank: New file.
22845         * modules/wctype-h (Files): Remove lib/iswblank.c.
22846         (Makefile.am): Substitute GNULIB_ISWBLANK.
22847         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
22848         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
22849         (gl_WCTYPE_H_DEFAULTS): New macro.
22850         (gl_WCTYPE_H): Require it. Remove iswblank related code.
22851         * modules/iswblank-tests: New file.
22852         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
22853         * tests/test-wctype-h.c (main): Remove iswblank tests.
22854         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
22855         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
22856         of 'wctype-h'.
22857         * NEWS: Mention the change.
22858         * modules/mbchar (Depends-on): Add iswblank.
22859
22860 2011-02-08  Bruno Haible  <bruno@clisp.org>
22861
22862         di-set tests: Refactor.
22863         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
22864         unnecessary includes.
22865         (ASSERT): Remove macro.
22866         (main): Make C90 compliant by avoiding variable declaration after
22867         statement.
22868         * modules/di-set-tests (Files): Add tests/macros.h.
22869
22870 2011-02-08  Bruno Haible  <bruno@clisp.org>
22871
22872         ino-map tests: Refactor.
22873         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
22874         unnecessary includes.
22875         (ASSERT): Remove macro.
22876         (main): Make C90 compliant by avoiding variable declaration after
22877         statement.
22878         * modules/ino-map-tests (Files): Add tests/macros.h.
22879
22880 2011-02-08  Jim Meyering  <meyering@redhat.com>
22881
22882         di-set: add "const" to a cast
22883         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
22884         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
22885
22886 2011-02-06  Bruno Haible  <bruno@clisp.org>
22887
22888         Rename module 'wctype' to 'wctype-h'.
22889         * modules/wctype-h: Renamed from modules/wctype.
22890         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
22891         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
22892         (Files, Depends-on, Makefile.am): Update.
22893         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
22894         (Files, Makefile.am): Update.
22895         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
22896         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
22897         * doc/posix-headers/wctype.texi: Update.
22898         * doc/posix-functions/iswalnum.texi: Update.
22899         * doc/posix-functions/iswalpha.texi: Update.
22900         * doc/posix-functions/iswblank.texi: Update.
22901         * doc/posix-functions/iswcntrl.texi: Update.
22902         * doc/posix-functions/iswdigit.texi: Update.
22903         * doc/posix-functions/iswgraph.texi: Update.
22904         * doc/posix-functions/iswlower.texi: Update.
22905         * doc/posix-functions/iswprint.texi: Update.
22906         * doc/posix-functions/iswpunct.texi: Update.
22907         * doc/posix-functions/iswspace.texi: Update.
22908         * doc/posix-functions/iswupper.texi: Update.
22909         * doc/posix-functions/iswxdigit.texi: Update.
22910         * doc/posix-functions/towlower.texi: Update.
22911         * doc/posix-functions/towupper.texi: Update.
22912         * NEWS: Mention the change.
22913         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
22914         * modules/mbchar (Dependencies): Likewise.
22915         * modules/mbswidth (Dependencies): Likewise.
22916         * modules/quotearg (Dependencies): Likewise.
22917         * modules/regex (Dependencies): Likewise.
22918         * modules/wcscasecmp (Dependencies): Likewise.
22919         * modules/wcsncasecmp (Dependencies): Likewise.
22920         * modules/wcwidth (Dependencies): Likewise.
22921
22922 2011-02-06  Bruno Haible  <bruno@clisp.org>
22923
22924         New module 'wcswidth'.
22925         * modules/wcswidth: New file.
22926         * lib/wchar.in.h (wcswidth): New declaration.
22927         * lib/wcswidth.c: New file.
22928         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
22929         * m4/wcswidth.m4: New file.
22930         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
22931         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
22932         REPLACE_WCSWIDTH.
22933         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
22934         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
22935         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
22936         * doc/posix-functions/wcswidth.texi: Mention the new module.
22937
22938 2011-02-06  Bruno Haible  <bruno@clisp.org>
22939
22940         New module 'wcstok'.
22941         * modules/wcstok: New file.
22942         * lib/wchar.in.h (wcstok): New declaration.
22943         * lib/wcstok.c: New file.
22944         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
22945         * m4/wcstok.m4: New file.
22946         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
22947         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
22948         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
22949         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
22950         * doc/posix-functions/wcstok.texi: Mention the new module.
22951
22952 2011-02-06  Bruno Haible  <bruno@clisp.org>
22953
22954         New module 'wcsstr'.
22955         * modules/wcsstr: New file.
22956         * lib/wchar.in.h (wcsstr): New declaration.
22957         * lib/wcsstr.c: New file.
22958         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
22959         * m4/wcsstr.m4: New file.
22960         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
22961         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
22962         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
22963         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
22964         * doc/posix-functions/wcsstr.texi: Mention the new module.
22965
22966 2011-02-06  Bruno Haible  <bruno@clisp.org>
22967
22968         New module 'wcspbrk'.
22969         * modules/wcspbrk: New file.
22970         * lib/wchar.in.h (wcspbrk): New declaration.
22971         * lib/wcspbrk.c: New file.
22972         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
22973         * m4/wcspbrk.m4: New file.
22974         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
22975         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
22976         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
22977         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
22978         * doc/posix-functions/wcspbrk.texi: Mention the new module.
22979
22980 2011-02-06  Bruno Haible  <bruno@clisp.org>
22981
22982         New module 'wcsspn'.
22983         * modules/wcsspn: New file.
22984         * lib/wchar.in.h (wcsspn): New declaration.
22985         * lib/wcsspn.c: New file.
22986         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
22987         * m4/wcsspn.m4: New file.
22988         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
22989         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
22990         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
22991         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
22992         * doc/posix-functions/wcsspn.texi: Mention the new module.
22993
22994 2011-02-06  Bruno Haible  <bruno@clisp.org>
22995
22996         New module 'wcscspn'.
22997         * modules/wcscspn: New file.
22998         * lib/wchar.in.h (wcscspn): New declaration.
22999         * lib/wcscspn.c: New file.
23000         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
23001         * m4/wcscspn.m4: New file.
23002         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
23003         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
23004         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
23005         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
23006         * doc/posix-functions/wcscspn.texi: Mention the new module.
23007
23008 2011-02-06  Bruno Haible  <bruno@clisp.org>
23009
23010         New module 'wcsrchr'.
23011         * modules/wcsrchr: New file.
23012         * lib/wchar.in.h (wcsrchr): New declaration.
23013         * lib/wcsrchr.c: New file.
23014         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
23015         * m4/wcsrchr.m4: New file.
23016         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
23017         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
23018         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
23019         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
23020         * doc/posix-functions/wcsrchr.texi: Mention the new module.
23021
23022 2011-02-06  Bruno Haible  <bruno@clisp.org>
23023
23024         New module 'wcschr'.
23025         * modules/wcschr: New file.
23026         * lib/wchar.in.h (wcschr): New declaration.
23027         * lib/wcschr.c: New file.
23028         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
23029         * m4/wcschr.m4: New file.
23030         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
23031         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
23032         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
23033         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
23034         * doc/posix-functions/wcschr.texi: Mention the new module.
23035
23036 2011-02-06  Bruno Haible  <bruno@clisp.org>
23037
23038         New module 'wcsdup'.
23039         * modules/wcsdup: New file.
23040         * lib/wchar.in.h (wcsdup): New declaration.
23041         * lib/wcsdup.c: New file.
23042         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
23043         * m4/wcsdup.m4: New file.
23044         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
23045         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
23046         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
23047         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
23048         * doc/posix-functions/wcsdup.texi: Mention the new module.
23049
23050 2011-02-06  Bruno Haible  <bruno@clisp.org>
23051
23052         New module 'wcsxfrm'.
23053         * modules/wcsxfrm: New file.
23054         * lib/wchar.in.h (wcsxfrm): New declaration.
23055         * lib/wcsxfrm.c: New file.
23056         * lib/wcsxfrm-impl.h: New file.
23057         * m4/wcsxfrm.m4: New file.
23058         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
23059         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
23060         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
23061         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
23062         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
23063
23064 2011-02-06  Bruno Haible  <bruno@clisp.org>
23065
23066         New module 'wcscoll'.
23067         * modules/wcscoll: New file.
23068         * lib/wchar.in.h (wcscoll): New declaration.
23069         * lib/wcscoll.c: New file.
23070         * lib/wcscoll-impl.h: New file.
23071         * m4/wcscoll.m4: New file.
23072         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
23073         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
23074         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
23075         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
23076         * doc/posix-functions/wcscoll.texi: Mention the new module.
23077
23078 2011-02-06  Bruno Haible  <bruno@clisp.org>
23079
23080         New module 'wcsncasecmp'.
23081         * modules/wcsncasecmp: New file.
23082         * lib/wchar.in.h (wcsncasecmp): New declaration.
23083         * lib/wcsncasecmp.c: New file.
23084         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
23085         * m4/wcsncasecmp.m4: New file.
23086         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
23087         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
23088         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
23089         HAVE_WCSNCASECMP.
23090         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
23091         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
23092
23093 2011-02-06  Bruno Haible  <bruno@clisp.org>
23094
23095         New module 'wcscasecmp'.
23096         * modules/wcscasecmp: New file.
23097         * lib/wchar.in.h (wcscasecmp): New declaration.
23098         * lib/wcscasecmp.c: New file.
23099         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
23100         * m4/wcscasecmp.m4: New file.
23101         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
23102         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
23103         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
23104         HAVE_WCSCASECMP.
23105         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
23106         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
23107
23108 2011-02-05  Bruno Haible  <bruno@clisp.org>
23109
23110         New module 'wcsncmp'.
23111         * modules/wcsncmp: New file.
23112         * lib/wchar.in.h (wcsncmp): New declaration.
23113         * lib/wcsncmp.c: New file.
23114         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
23115         * m4/wcsncmp.m4: New file.
23116         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
23117         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
23118         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
23119         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
23120         * doc/posix-functions/wcsncmp.texi: Mention the new module.
23121
23122 2011-02-05  Bruno Haible  <bruno@clisp.org>
23123
23124         New module 'wcscmp'.
23125         * modules/wcscmp: New file.
23126         * lib/wchar.in.h (wcscmp): New declaration.
23127         * lib/wcscmp.c: New file.
23128         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
23129         * m4/wcscmp.m4: New file.
23130         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
23131         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
23132         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
23133         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
23134         * doc/posix-functions/wcscmp.texi: Mention the new module.
23135
23136 2011-02-05  Bruno Haible  <bruno@clisp.org>
23137
23138         New module 'wcsncat'.
23139         * modules/wcsncat: New file.
23140         * lib/wchar.in.h (wcsncat): New declaration.
23141         * lib/wcsncat.c: New file.
23142         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
23143         * m4/wcsncat.m4: New file.
23144         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
23145         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
23146         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
23147         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
23148         * doc/posix-functions/wcsncat.texi: Mention the new module.
23149
23150 2011-02-05  Bruno Haible  <bruno@clisp.org>
23151
23152         New module 'wcscat'.
23153         * modules/wcscat: New file.
23154         * lib/wchar.in.h (wcscat): New declaration.
23155         * lib/wcscat.c: New file.
23156         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
23157         * m4/wcscat.m4: New file.
23158         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
23159         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
23160         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
23161         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
23162         * doc/posix-functions/wcscat.texi: Mention the new module.
23163
23164 2011-02-05  Bruno Haible  <bruno@clisp.org>
23165
23166         New module 'wcpncpy'.
23167         * modules/wcpncpy: New file.
23168         * lib/wchar.in.h (wcpncpy): New declaration.
23169         * lib/wcpncpy.c: New file.
23170         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
23171         * m4/wcpncpy.m4: New file.
23172         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
23173         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
23174         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
23175         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
23176         * doc/posix-functions/wcpncpy.texi: Mention the new module.
23177
23178 2011-02-05  Bruno Haible  <bruno@clisp.org>
23179
23180         New module 'wcsncpy'.
23181         * modules/wcsncpy: New file.
23182         * lib/wchar.in.h (wcsncpy): New declaration.
23183         * lib/wcsncpy.c: New file.
23184         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
23185         * m4/wcsncpy.m4: New file.
23186         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
23187         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
23188         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
23189         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
23190         * doc/posix-functions/wcsncpy.texi: Mention the new module.
23191
23192 2011-02-05  Bruno Haible  <bruno@clisp.org>
23193
23194         New module 'wcpcpy'.
23195         * modules/wcpcpy: New file.
23196         * lib/wchar.in.h (wcpcpy): New declaration.
23197         * lib/wcpcpy.c: New file.
23198         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
23199         * m4/wcpcpy.m4: New file.
23200         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
23201         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
23202         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
23203         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
23204         * doc/posix-functions/wcpcpy.texi: Mention the new module.
23205
23206 2011-02-05  Bruno Haible  <bruno@clisp.org>
23207
23208         New module 'wcscpy'.
23209         * modules/wcscpy: New file.
23210         * lib/wchar.in.h (wcscpy): New declaration.
23211         * lib/wcscpy.c: New file.
23212         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
23213         * m4/wcscpy.m4: New file.
23214         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
23215         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
23216         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
23217         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
23218         * doc/posix-functions/wcscpy.texi: Mention the new module.
23219
23220 2011-02-05  Bruno Haible  <bruno@clisp.org>
23221
23222         New module 'wcsnlen'.
23223         * modules/wcsnlen: New file.
23224         * lib/wchar.in.h (wcsnlen): New declaration.
23225         * lib/wcsnlen.c: New file.
23226         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
23227         * m4/wcsnlen.m4: New file.
23228         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
23229         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
23230         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
23231         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
23232         * doc/posix-functions/wcsnlen.texi: Mention the new module.
23233
23234 2011-02-05  Bruno Haible  <bruno@clisp.org>
23235
23236         New module 'wcslen'.
23237         * modules/wcslen: New file.
23238         * lib/wchar.in.h (wcslen): New declaration.
23239         * lib/wcslen.c: New file.
23240         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
23241         * m4/wcslen.m4: New file.
23242         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
23243         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
23244         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
23245         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
23246         * doc/posix-functions/wcslen.texi: Mention the new module.
23247
23248 2011-02-05  Bruno Haible  <bruno@clisp.org>
23249
23250         New module 'wmemset'.
23251         * modules/wmemset: New file.
23252         * lib/wchar.in.h (wmemset): New declaration.
23253         * lib/wmemset.c: New file.
23254         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
23255         * m4/wmemset.m4: New file.
23256         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
23257         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
23258         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
23259         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
23260         * doc/posix-functions/wmemset.texi: Mention the new module.
23261
23262 2011-02-05  Bruno Haible  <bruno@clisp.org>
23263
23264         New module 'wmemmove'.
23265         * modules/wmemmove: New file.
23266         * lib/wchar.in.h (wmemmove): New declaration.
23267         * lib/wmemmove.c: New file.
23268         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
23269         * m4/wmemmove.m4: New file.
23270         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
23271         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
23272         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
23273         HAVE_WMEMMOVE.
23274         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
23275         * doc/posix-functions/wmemmove.texi: Mention the new module.
23276
23277 2011-02-05  Bruno Haible  <bruno@clisp.org>
23278
23279         New module 'wmemcpy'.
23280         * modules/wmemcpy: New file.
23281         * lib/wchar.in.h (wmemcpy): New declaration.
23282         * lib/wmemcpy.c: New file.
23283         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
23284         * m4/wmemcpy.m4: New file.
23285         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
23286         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
23287         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
23288         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
23289         * doc/posix-functions/wmemcpy.texi: Mention the new module.
23290
23291 2011-02-05  Bruno Haible  <bruno@clisp.org>
23292
23293         New module 'wmemcmp'.
23294         * modules/wmemcmp: New file.
23295         * lib/wchar.in.h (wmemcmp): New declaration.
23296         * lib/wmemcmp.c: New file.
23297         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
23298         * m4/wmemcmp.m4: New file.
23299         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
23300         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
23301         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
23302         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
23303         * doc/posix-functions/wmemcmp.texi: Mention the new module.
23304
23305 2011-02-07  Jim Meyering  <meyering@redhat.com>
23306
23307         di-set, ino-map: new modules, from coreutils
23308         * lib/di-set.c: New file.
23309         * lib/di-set.h: Likewise.
23310         * lib/ino-map.c: Likewise.
23311         * lib/ino-map.h: Likewise.
23312         * modules/di-set: Likewise.
23313         * modules/di-set-tests: Likewise.
23314         * modules/ino-map: Likewise.
23315         * modules/ino-map-tests: Likewise.
23316         * tests/test-di-set.c: Likewise.
23317         * tests/test-ino-map.c: Likewise.
23318
23319 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
23320
23321         getloadavg: merge minor changes from Emacs
23322
23323         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
23324         (getloadavg): Use memset, not bzero.
23325
23326         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
23327         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
23328         clash (bug#86).
23329
23330 2010-11-14  Bruno Haible  <bruno@clisp.org>
23331
23332         Allow multiple gnulib generated replacements to coexist.
23333         * lib/getopt.in.h (struct option): Avoid identical redefinition.
23334         * lib/inttypes.in.h (imaxdiv_t): Likewise.
23335         * lib/langinfo.in.h (nl_item): Likewise.
23336         * lib/math.in.h (_NaN, NAN): Likewise.
23337         * lib/netdb.in.h (struct addrinfo): Likewise.
23338         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
23339         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
23340         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
23341         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
23342         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
23343         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
23344         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
23345         pthread_mutexattr_init, pthread_mutexattr_settype,
23346         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
23347         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
23348         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
23349         pthread_spin_trylock, pthread_spin_unlock): Likewise.
23350         * lib/sched.in.h (struct sched_param): Likewise.
23351         * lib/se-selinux.in.h (security_class_t, security_context_t,
23352         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
23353         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
23354         lsetfilecon, fsetfilecon, security_check_context,
23355         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
23356         Likewise.
23357         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
23358         Likewise.
23359         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
23360         _gl_function_taking_int_returning_void_t, union sigval,
23361         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
23362         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
23363         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
23364         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
23365         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
23366         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
23367         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
23368         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
23369         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
23370         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
23371         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
23372         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
23373         socklen_t, rpl_fd_isset): Likewise.
23374         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
23375         * lib/sys_time.in.h (struct timeval): Likewise.
23376         * lib/sys_times.in.h (struct tms): Likewise.
23377         * lib/sys_utsname.in.h (struct utsname):
23378         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
23379         * lib/unistd.in.h (getpagesize): Likewise.
23380         * lib/wchar.in.h (mbstate_t): Likewise.
23381         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
23382         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
23383         towlower, towupper): Likewise.
23384         Reported by Sam Steingold <sds@gnu.org>.
23385
23386 2011-02-05  Eric Blake  <eblake@redhat.com>
23387
23388         unsetenv: work around Haiku issues
23389         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
23390         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
23391
23392 2010-12-30  Bruce Korb  <bkorb@gnu.org>
23393
23394         libposix: avoid calling error() within libposix
23395         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
23396         is defined.
23397
23398 2011-02-05  Eric Blake  <eblake@redhat.com>
23399
23400         strerror_r-posix: port to cygwin
23401         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
23402         implementation.
23403         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
23404         * tests/test-strerror_r.c (main): Fix test.
23405         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
23406         issue.
23407
23408 2011-02-05  Bruno Haible  <bruno@clisp.org>
23409
23410         New module 'wmemchr'.
23411         * modules/wmemchr: New file.
23412         * lib/wchar.in.h (wmemchr): New declaration.
23413         * lib/wmemchr.c: New file.
23414         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
23415         * m4/wmemchr.m4: New file.
23416         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
23417         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
23418         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
23419         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
23420         * doc/posix-functions/wmemchr.texi: Mention the new module.
23421
23422 2011-02-04  Eric Blake  <eblake@redhat.com>
23423
23424         fdopendir: detect FreeBSD bug
23425         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
23426         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
23427
23428 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
23429
23430         stdbool: do not define HAVE_STDBOOL_H
23431         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
23432         AC_HEADER_STDBOOL.  All uses changed.  Do not define
23433         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
23434         imported from the latest Autoconf git.  It was motivated by Emacs,
23435         which uses gnulib but does not need HAVE_STDBOOL_H.
23436
23437 2011-02-04  Bruno Haible  <bruno@clisp.org>
23438
23439         wcsnrtombs: Prepare for new module wwcsnrtombs.
23440         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
23441         * lib/wcsnrtombs.c: Include it.
23442         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
23443
23444         wcsrtombs: Prepare for new module wwcsrtombs.
23445         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
23446         * lib/wcsrtombs.c: Include it.
23447         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
23448
23449         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
23450         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
23451         * lib/mbsnrtowcs.c: Include it.
23452         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
23453
23454         mbsrtowcs: Prepare for new module mbsrtowwcs.
23455         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
23456         * lib/mbsrtowcs.c: Include it.
23457         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
23458
23459 2011-02-04  Bruno Haible  <bruno@clisp.org>
23460
23461         vasnprintf: Reduce use of malloc for small format strings.
23462         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
23463         (arguments): Add room for the first 7 arguments.
23464         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
23465         (char_directives, u8_directives, u16_directives, u32_directives): Add
23466         room for the first 7 directives.
23467         * lib/printf-parse.c: Include <string.h>.
23468         (PRINTF_PARSE): Change memory handling code so that it uses the first
23469         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
23470         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
23471         Reported by Pádraig Brady <P@draigbrady.com>.
23472
23473 2011-01-31  Eric Blake  <eblake@redhat.com>
23474
23475         dup2: work around Haiku bug
23476         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
23477         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
23478         * doc/posix-functions/dup2.texi (dup2): Document the bug.
23479         * tests/test-dup2.c (main): Enhance test.
23480
23481 2011-01-31  Simon Josefsson  <simon@josefsson.org>
23482
23483         doc: off_t is not available in eglibc 2.11.2 stdio.h.
23484         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
23485         declared by eglibc 2.11.2.
23486         * lib/stdio.in.h: Likewise.
23487
23488 2011-01-31  Eric Blake  <eblake@redhat.com>
23489
23490         ignore-value: add missing test dependency
23491         * tests/test-ignore-value.c: Revert previous change; stdio.h
23492         provides off_t.
23493         * modules/ignore-value-tests (Depends-on): Add missing dependency.
23494
23495 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
23496
23497         mktime: clarify long_int width checking
23498         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
23499         the top level, to make it clearer that the assumption about
23500         long_int width is being checked.  See
23501         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
23502
23503 2011-01-30  Simon Josefsson  <simon@josefsson.org>
23504
23505         ignore-value: Fix self-test.
23506         * tests/test-ignore-value.c: Include sys/types.h for off_t.
23507
23508 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
23509
23510         TYPE_MAXIMUM: avoid theoretically undefined behavior
23511         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
23512         negative number, which the C Standard says has undefined behavior.
23513         In practice this is not a problem, but might as well do it by the book.
23514         Reported by Rich Felker and Eric Blake; see
23515         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
23516         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
23517         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
23518         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23519         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
23520         * m4/stdint.m4 (gl_STDINT_H): Likewise.
23521         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
23522
23523         mktime: #undef mktime before #defining it
23524         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
23525
23526         mktime: systematically normalize tm_isdst comparisons
23527         * lib/mktime.c (isdst_differ): New function.
23528         (__mktime_internal): Use it systematically for all isdst comparisons.
23529         This completes the fix for libc BZ #6723, and removes the need for
23530         normalizing tm_isdst.  See
23531         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
23532         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
23533
23534         mktime: fix some integer overflow issues and sidestep the rest
23535
23536         This was prompted by a bug report by Benjamin Lindner for MinGW
23537         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
23538         His bug is due to signed integer overflow (0 - INT_MIN), and I
23539         I scanned through mktime.c looking for other integer overflow
23540         problems, fixing all the bugs I found.
23541
23542         Although the C Standard says the resulting code is still not safe
23543         in the presence of integer overflow, in practice it should be good
23544         enough for all real-world two's-complement implementations, except
23545         for debugging environments that deliberately trap on integer
23546         overflow (e.g., gcc -ftrapv).
23547
23548         * lib/mktime.c (WRAPV): New macro.
23549         (SHR): Also check that long_int and time_t shift right in the
23550         usual way, before using the fast-but-unportable method.
23551         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
23552         used.  The code already assumed two's complement, so there's
23553         no need to test for alternatives.  All uses removed.
23554         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
23555         the C standard.  Problem reported by Rich Felker in
23556         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
23557         (twos_complement_arithmetic): Also check long_int and time_t.
23558         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
23559         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
23560         (__mktime_internal): Avoid integer overflow with unary subtraction
23561         in two instances where -1 - X is an adequate replacement for -X,
23562         since the calculations are approximate.
23563
23564 2011-01-29  Eric Blake  <eblake@redhat.com>
23565
23566         mktime: avoid infinite loop
23567         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
23568         type; behavior is still undefined but portable to all known targets.
23569         Reported by Rich Felker.
23570
23571 2011-01-29  Simon Josefsson  <simon@josefsson.org>
23572
23573         rename, unlink, same-inode: Relicense.
23574         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
23575         * modules/unlink (License): Likewise.
23576         * modules/same-inode (License): Likewise.
23577
23578 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
23579
23580         mktime: avoid problems on NetBSD 5 / i386
23581         * lib/mktime.c (long_int): New type.  This works around a problem
23582         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
23583         but time_t is 64 bits, and where I expect the existing code is
23584         wrong in some cases.
23585         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
23586         (ydhms_diff): Bring back the compile-time check for wide-enough
23587         year and yday.
23588
23589         mktime: fix misspelling in comment
23590         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
23591         This merges all recent glibc changes of importance.
23592
23593 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23594
23595         move-if-change: cope with concurrent mv of identical file.
23596         * build-aux/move-if-change (CMPPROG): Accept environment
23597         variable as an override for `cmp'.
23598         (usage): Document CMPPROG.
23599         Adjust comparison to drop stdout.  Cope with failure of mv if
23600         the target file exists and is identical to the source, for
23601         parallel builds.
23602         Report from H.J. Lu against binutils in PR binutils/12283.
23603
23604 2011-01-28  Bruce Korb  <bkorb@gnu.org>
23605
23606         * users.txt: Mention sharutils.
23607
23608 2011-01-28  Simon Josefsson  <simon@josefsson.org>
23609
23610         * users.txt: Mention OATH Toolkit.
23611
23612 2011-01-27  Bruno Haible  <bruno@clisp.org>
23613
23614         Prepare for supporting FreeBSD 10.
23615         * build-aux/config.libpath: Remove handling of freebsd1*.
23616
23617 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
23618
23619         Prepare for supporting FreeBSD 10.
23620         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
23621         match FreeBSD 10.0.
23622
23623 2011-01-27  Bruno Haible  <bruno@clisp.org>
23624
23625         vma-iter, get-rusage-as: Add OpenBSD support.
23626         * modules/vma-iter (configure.ac): Test for mquery.
23627         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
23628         * lib/vma-iter.c: Include <sys/mman.h>.
23629         (vma_iterate): Add an implementation based on mquery().
23630         * lib/resource-ext.h (get_rusage_as): Update comments.
23631         * lib/get-rusage-as.c: Likewise.
23632         * lib/get-rusage-data.c: Likewise.
23633
23634 2011-01-26  Karl Berry  <karl@gnu.org>
23635
23636         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
23637         variables to make it easier to override the makeinfo program used.
23638
23639 2011-01-26  Eric Blake  <eblake@redhat.com>
23640
23641         fcntl: work around Haiku F_DUPFD bugs
23642         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
23643         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
23644         cloexec bit on duplication.
23645         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
23646
23647 2011-01-26  Bruno Haible  <bruno@clisp.org>
23648
23649         Enable memory leak tests on AIX.
23650         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
23651         * tests/test-fprintf-posix3.c (main): Likewise.
23652
23653 2011-01-26  Bruno Haible  <bruno@clisp.org>
23654
23655         Tests for module 'get-rusage-data'.
23656         * modules/get-rusage-data-tests: New file.
23657         * tests/test-get-rusage-data.c: New file.
23658
23659         New module 'get-rusage-data'.
23660         * lib/resource-ext.h (get_rusage_data): New declaration.
23661         * lib/get-rusage-data.c: New file.
23662         * modules/get-rusage-data: New file.
23663
23664 2011-01-25  Bruno Haible  <bruno@clisp.org>
23665
23666         get-rusage-as: Allow for easier testing.
23667         * lib/resource-ext.h (get_rusage_as): Add comment.
23668         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
23669         (main): New function for interactive testing.
23670
23671 2011-01-25  Bruno Haible  <bruno@clisp.org>
23672
23673         vma-iter: Treat Haiku like BeOS.
23674         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
23675         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
23676
23677 2011-01-25  Eric Blake  <eblake@redhat.com>
23678
23679         c-stack: fix regression on cygwin when libsigsegv is present
23680         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
23681
23682 2011-01-24  Bruno Haible  <bruno@clisp.org>
23683
23684         vma-iter: Avoid empty intervals.
23685         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
23686         on an empty interval.
23687
23688 2011-01-24  Jim Meyering  <meyering@redhat.com>
23689
23690         u64: remove unnecessary #include
23691         * lib/u64.h: Don't include <stddef.h>.  It was not used.
23692
23693 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
23694
23695         Allow the user to avoid the HAVE_RAW_DECL_* macros.
23696         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
23697
23698 2011-01-23  Bruno Haible  <bruno@clisp.org>
23699
23700         New module 'vma-iter'.
23701         * lib/vma-iter.h: New file.
23702         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
23703         * modules/vma-iter: New file.
23704         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
23705         for get_rusage_as_via_iterator.
23706         (vma_iterate_callback): New function.
23707         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
23708         * modules/get-rusage-as (Depends-on): Add vma-iter.
23709
23710 2011-01-23  Bruno Haible  <bruno@clisp.org>
23711
23712         uninorm: Tweak includes.
23713         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
23714         Reported by Jim Meyering.
23715
23716 2011-01-23  Bruno Haible  <bruno@clisp.org>
23717
23718         get-rusage-as: Improve on NetBSD.
23719         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
23720         /proc, like on FreeBSD.
23721
23722 2011-01-23  Jim Meyering  <meyering@redhat.com>
23723
23724         xreadlink.h: remove unnecessary #include
23725         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
23726
23727         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
23728         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
23729
23730 2011-01-23  Bruno Haible  <bruno@clisp.org>
23731
23732         get-rusage-as: Fix bug.
23733         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
23734         original limit when aborting the first loop.
23735
23736 2011-01-23  Bruno Haible  <bruno@clisp.org>
23737
23738         wctype: Ensure valid C syntax.
23739         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
23740         unconditionally, instead of gl_NEXT_HEADERS conditionally.
23741
23742 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
23743
23744         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
23745         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
23746         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
23747         as they are needed only for configure's test case.
23748         This removes two unnecessary symbols from config.h.
23749
23750         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
23751         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
23752         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
23753         AC_CHECK_HEADERS_ONCE on a header that we also invoke
23754         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
23755         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
23756         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
23757         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
23758         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
23759         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
23760         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
23761         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
23762         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
23763         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
23764         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
23765         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
23766         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
23767         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
23768
23769 2011-01-21  Eric Blake  <eblake@redhat.com>
23770
23771         maintainer-makefile: work with older git for submodule check
23772         * top/maint.mk (public-submodule-commit): Rewrite to avoid
23773         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
23774         Reported by Matthias Bolte.
23775
23776         bootstrap: minor portability fixes
23777         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
23778         (usage): Omit leading capital and trailing . on help phrases, per
23779         GNU Coding Standards.
23780         (check_versions, top level): Prefix messages with script name.
23781
23782 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
23783
23784         bootstrap: support --no-git option
23785         * build-aux/bootstrap: Add --no-git option, to be used when
23786         --gnulib-srcdir points to the exact desired checkout.
23787
23788 2011-01-21  Eric Blake  <eblake@redhat.com>
23789
23790         strerror_r-posix: work with glibc 2.13
23791         * lib/strerror_r.c (strerror_r): Fix return type.
23792
23793 2011-01-21  Pádraig Brady  <P@draigBrady.com>
23794             Bruno Haible  <bruno@clisp.org>
23795
23796         uN_strstr: New unit tests.
23797         * modules/unistr/u8-strstr-tests: New file.
23798         * modules/unistr/u16-strstr-tests: New file.
23799         * modules/unistr/u32-strstr-tests: New file.
23800         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
23801         * tests/unistr/test-u8-strstr.c: New file.
23802         * tests/unistr/test-u16-strstr.c: New file.
23803         * tests/unistr/test-u32-strstr.c: New file.
23804
23805 2011-01-21  Pádraig Brady  <P@draigBrady.com>
23806             Bruno Haible  <bruno@clisp.org>
23807
23808         Make uN_strstr functions O(n) worst-case.
23809         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
23810         16-bit and 32-bit unit cases, use the unibyte algorithm from
23811         lib/mbsstr.c.
23812         * lib/unistr/u8-strstr.c: Include <string.h>.
23813         (UNIT_IS_UINT8_T): New macro.
23814         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
23815         (U_STRLEN, U_STRNLEN): New macros.
23816         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
23817         (U_STRLEN, U_STRNLEN): New macros.
23818         * modules/unistr/u8-strstr (Depends-on): Add strstr.
23819         (configure.ac): Update required libunistring version.
23820         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
23821         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
23822         malloca.
23823         (configure.ac): Update required libunistring version.
23824         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
23825         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
23826         malloca.
23827         (configure.ac): Update required libunistring version.
23828
23829 2011-01-21  Pádraig Brady  <P@draigBrady.com>
23830             Bruno Haible  <bruno@clisp.org>
23831
23832         Prepare for faster uN_strstr functions.
23833         * lib/str-kmp.h: Support definable UNITs.
23834         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
23835         needle_len argument.
23836         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
23837         * lib/mbscasestr.c (mbscasestr): Likewise.
23838
23839 2011-01-21  Pádraig Brady <P@draigBrady.com>
23840
23841         malloca-tests: make faster by unsetting MALLOC_PERTURB_
23842         * tests/test-malloca.c (main): Unset the environment variable
23843         to greatly speed up the test.
23844         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
23845         * modules/malloca-tests: Depend on unsetenv.
23846
23847 2011-01-21  Pádraig Brady <P@draigBrady.com>
23848
23849         ignore-value: remove stdint dependency
23850         * lib/ignore-value.h: Remove <stdint.h>
23851         * modules/ignore-value: Remove stdint dependency.
23852
23853 2011-01-21  Jim Meyering  <meyering@redhat.com>
23854
23855         maint.mk: adjust variable name to be consistent with other gl_ vars
23856         * top/maint.mk (gl_public_submodule_commit): Rename the variable
23857         to be lower case.
23858
23859 2011-01-20  Jim Meyering  <meyering@redhat.com>
23860
23861         maint.mk: make "check" depend on public-submodule-commit by default
23862         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
23863
23864 2011-01-20  Bruno Haible  <bruno@clisp.org>
23865
23866         mbfile, mbiter: Complete change from 2008-12-21.
23867         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
23868         * m4/mbiter.m4 (gl_MBITER): Likewise.
23869
23870 2011-01-20  Jim Meyering  <meyering@redhat.com>
23871
23872         init.sh: insert space between each function name and "()"
23873         * tests/init.sh: Make it a little easier to see that a function's
23874         name is "warn_", and not "warn" when looking at the first part of
23875         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
23876
23877 2011-01-20  Jim Meyering  <meyering@redhat.com>
23878
23879         mountlist: clean up code formatting
23880         * lib/mountlist.c (read_file_system_list): Split a long line,
23881         correct bracing style, use NULL in place of "(struct statfs *)0",
23882         don't parenthesize return value, add spaces around "=" and after
23883         ";-in-for-stmt".
23884
23885 2011-01-14  Markus Duft <mduft@gentoo.org>
23886
23887         mountlist: add support for Interix
23888         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
23889         Apply statvfs to all entries of /dev/fs.
23890         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
23891         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
23892
23893 2011-01-20  Jim Meyering  <meyering@redhat.com>
23894
23895         maint.mk: improve the public-submodule-commit rule
23896         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
23897         to suppress printing of its commands... unless V=1.
23898         Add git submodule's --quiet option to suppress printing of e.g.,
23899         "Entering gnulib" output.
23900         "cd" into $(srcdir) before running git submodule.
23901
23902 2011-01-20  Bruno Haible  <bruno@clisp.org>
23903
23904         include_next: Fix bug introduced on 2011-01-18.
23905         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
23906         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
23907         ac_cv_header_... variable if the second argument is not 'check'.
23908         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
23909         gl_NEXT_HEADERS_INTERNAL.
23910
23911 2011-01-20  Bruno Haible  <bruno@clisp.org>
23912
23913         Allow the user to avoid the GNULIB_TEST_* macros.
23914         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
23915         Suggested by Paul Eggert.
23916
23917 2011-01-14  Jim Meyering  <meyering@redhat.com>
23918
23919         bootstrap: avoid failure when there is no .gitmodules file
23920         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
23921         has been assigned to, even when its value is the empty string.
23922         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
23923         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
23924         Reported by John W. Eaton <jwe@gnu.org>.
23925
23926 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
23927
23928         assume <ctype.h>, ..., <time.h> exist
23929         For years gnulib has been assuming the existence of the headers
23930         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
23931         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
23932         them, since they don't appear to be needed.
23933         * README (Portability guidelines): Document this.
23934         * lib/flock.c: Assume <fcntl.h> exists.
23935         * lib/regex_internal.h: Assume <locale.h> exists.
23936         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
23937         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
23938         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
23939         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
23940         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
23941         * m4/regex.m4 (gl_REGEX): Likewise.
23942         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
23943         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
23944         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
23945         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
23946         * tests/test-argp.c: Likewise.
23947         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
23948
23949         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
23950         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
23951         AA_APPLE_UNIVERSAL_BUILD.  See
23952         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
23953         * NEWS: Document this.
23954
23955 2011-01-19  Eric Blake  <eblake@redhat.com>
23956
23957         c-stack: assume stack overflow if SA_SIGINFO unsupported
23958         * lib/c-stack.c (SIGACTION_WORKS): Rename...
23959         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
23960         sigaction will work.
23961         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
23962         behavior match Linux.
23963         * tests/test-c-stack.c (main): Prefer NULL for pointers.
23964
23965         stdbool-tests: accommodate Haiku
23966         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
23967
23968         binary-io: fix O_TEXT on Haiku
23969         * modules/binary-io (Depends-on): Add fcntl-h.
23970         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
23971         than blindly undefining O_TEXT.
23972         Reported by Scott McCreary.
23973
23974 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
23975
23976         include_next: do not check for standard headers like stddef.h
23977
23978         I found this problem when modifying Emacs to use gnulib.
23979         I noticed that it added HAVE_STDDEF_H to config.h, even though
23980         gnulib always assumes <stddef.h> exists as per README and this
23981         symbol is unnecessary.
23982         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
23983         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
23984         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
23985         faster for headers like stddef.h that are known to exist.
23986         (gl_CHECK_NEXT_HEADERS): Use it.
23987         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
23988         rather than gl_CHECK_NEXT_HEADERS.
23989         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
23990         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
23991
23992 2011-01-18  Eric Blake  <eblake@redhat.com>
23993
23994         ansi-c++-opt: skip C++ dependency style if C++ is unused
23995         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
23996         tests when we know C++ compilation is not desired.
23997         Reported by Scott McCreary.
23998
23999 2011-01-18  Bruno Haible  <bruno@clisp.org>
24000
24001         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
24002         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
24003         (main): Perform test also when getrlimit and setrlimit don't exist or
24004         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
24005         limiting the address space size using setrlimit, compare the address
24006         space size before and after the the test.
24007         * tests/test-dprintf-posix2.c: Likewise.
24008         * tests/test-fprintf-posix3.sh: Update skip messages.
24009         * tests/test-dprintf-posix2.sh: Likewise.
24010         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
24011         * modules/dprintf-posix-tests (Depends-on): Likewise.
24012         Reported by Bruce Korb <bkorb@gnu.org> and
24013         Gary V. Vaughan <gary@gnu.org>.
24014
24015 2011-01-18  Bruno Haible  <bruno@clisp.org>
24016
24017         get-rusage-as: Improvement for Cygwin.
24018         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
24019         areas that are merely reserved.
24020
24021 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
24022
24023         strftime: remove dependencies on multibyte modules
24024
24025         strftime depended on mbrlen, mbsinit, and wchar, but these modules
24026         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
24027         only if __osf__ is defined, and I suspect OSF doesn't need these
24028         other modules.  If my guess is wrong, we'll need to come up with a
24029         variant of strftime that doesn't need the multibyte modules.
24030
24031         I discovered this problem when attempting modify Emacs to use the
24032         strftime module.  With the previous gnulib, this caused Emacs to
24033         need 31 new files, ranging from lib/config.charset to
24034         m4/wint_t.m4.  This was overkill and I expect would be offputting
24035         to the Emacs maintainers.  After this change, only 6 new files are
24036         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
24037         stdbool.m4, and tm_gmtoff.m4.
24038
24039         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
24040         Suggested by Bruno Haible in
24041         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
24042         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
24043         and do not check for wchar.h.
24044         * modules/strftime (Files): Remove m4/mbstate_t.m4.
24045         (Depends-on): Remove mbrlen, mbsinit, wchar.
24046
24047 2011-01-18  Bruno Haible  <bruno@clisp.org>
24048
24049         Tests for module 'get-rusage-as'.
24050         * modules/get-rusage-as-tests: New file.
24051         * tests/test-get-rusage-as.c: New file.
24052
24053         New module 'get-rusage-as'.
24054         * modules/get-rusage-as: New file.
24055         * lib/resource-ext.h: New file.
24056         * lib/get-rusage-as.c: New file.
24057
24058 2011-01-17  Eric Blake  <eblake@redhat.com>
24059
24060         sigaction: relax license from LGPLv3+ to LGPLv2+
24061         * modules/sigaction (License): Relax to LGPLv2+.
24062
24063 2011-01-14  Bruno Haible  <bruno@clisp.org>
24064
24065         filemode: Make function declarations usable in C++ mode.
24066         * lib/filemode.h: Enclose function declarations in extern "C" block.
24067         Reported by John W. Eaton <jwe@gnu.org>.
24068
24069 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
24070
24071         save-cwd: no longer include "xgetcwd.h"
24072         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
24073         This avoids a compilation failure in projects that use save-cwd
24074         without also using the xgetcwd module.
24075
24076 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
24077
24078         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
24079         This is so that a program like Emacs, which needs only dtoastr,
24080         does not have to bother with distributing and compiling ftoastr
24081         and ldtoastr.
24082         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
24083         * modules/dtoastr, modules/ldtoastr: New files.
24084         * modules/ftoastr: Now works just for 'float'.
24085         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
24086         (Makefile.am): Remove ftoastr.h (not needed and no effect),
24087         dtoastr.c, ldtoastr.c.
24088
24089 2011-01-11  Jim Meyering  <meyering@redhat.com>
24090
24091         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
24092         There is no need to work around the lack of the fchdir function,
24093         since gnulib can now provide a replacement when required.
24094         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
24095         * modules/save-cwd (Depends-on): Add fchdir.
24096
24097 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
24098
24099         openat, save-cwd: avoid xmalloc
24100
24101         This removes a direct (but undocumented) dependency of openat on
24102         xalloc, along with an indirect dependency via save-cwd.  It also
24103         removes a dependency of save-cwd on xgetcwd, and thereby
24104         indirectly on xalloc.  This change causes the openat substitute
24105         to fall back on save_cwd when memory is tight, and for save_cwd to
24106         fail instead of dying when memory is tight, but that's good enough.
24107         Problem and initial idea for fix reported by Bastien Roucaries in
24108         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
24109
24110         * lib/openat-proc.c: Include stdlib.h (for malloc), not
24111         xalloc.h (for xmalloc).
24112         (openat_proc_name): Use malloc, not xmalloc.
24113         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
24114         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
24115
24116         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
24117         This avoids heap allocation for file names whose lengths are in
24118         the range 512..1023, with the upper bound increasing to at most
24119         4031 depending on the platform's PATH_MAX.  (We do not want
24120         pathmax.h here as it might supply a non-constant PATH_MAX.)
24121         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
24122         Perhaps they should be moved to malloca.h?
24123         (OPENAT_BUFFER_SIZE): Use them.
24124
24125 2011-01-10  Bruno Haible  <bruno@clisp.org>
24126
24127         doc: Update users.txt.
24128         * users.txt: Add recutils.
24129
24130 2011-01-09  Karl Berry  <karl@gnu.org>
24131
24132         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
24133
24134         * doc/configmake.texi: New file.
24135         * doc/gnulib.texi: Include it.
24136         * modules/configmake: Move documentation from here.
24137
24138 2011-01-09  Bruno Haible  <bruno@clisp.org>
24139
24140         Update to Unicode 6.0.0.
24141         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
24142         (get_lbp): Update for Unicode 6.0.0.
24143         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
24144         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
24145         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
24146         U+11001, U+11038..U+11046. Remove U+06DE.
24147         (uc_width): Fix bounds of planes.
24148         * tests/uniwidth/test-uc_width2.sh: Same updates as in
24149         lib/uniwidth/width.c.
24150         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
24151         trailing whitespace removed.
24152         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
24153         without comments, but with the original copyright notice.
24154         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
24155         * lib/unicase/ignorable.h: Likewise.
24156         * lib/unicase/tocasefold.h: Likewise.
24157         * lib/unicase/tolower.h: Likewise.
24158         * lib/unicase/totitle.h: Likewise.
24159         * lib/unicase/toupper.h: Likewise.
24160         * lib/unictype/bidi_of.h: Likewise.
24161         * lib/unictype/blocks.h: Likewise.
24162         * lib/unictype/categ_C.h: Likewise.
24163         * lib/unictype/categ_Cn.h: Likewise.
24164         * lib/unictype/categ_L.h: Likewise.
24165         * lib/unictype/categ_Ll.h: Likewise.
24166         * lib/unictype/categ_Lm.h: Likewise.
24167         * lib/unictype/categ_Lo.h: Likewise.
24168         * lib/unictype/categ_Lu.h: Likewise.
24169         * lib/unictype/categ_M.h: Likewise.
24170         * lib/unictype/categ_Mc.h: Likewise.
24171         * lib/unictype/categ_Me.h: Likewise.
24172         * lib/unictype/categ_Mn.h: Likewise.
24173         * lib/unictype/categ_N.h: Likewise.
24174         * lib/unictype/categ_Nd.h: Likewise.
24175         * lib/unictype/categ_No.h: Likewise.
24176         * lib/unictype/categ_P.h: Likewise.
24177         * lib/unictype/categ_Po.h: Likewise.
24178         * lib/unictype/categ_S.h: Likewise.
24179         * lib/unictype/categ_Sc.h: Likewise.
24180         * lib/unictype/categ_Sk.h: Likewise.
24181         * lib/unictype/categ_Sm.h: Likewise.
24182         * lib/unictype/categ_So.h: Likewise.
24183         * lib/unictype/categ_of.h: Likewise.
24184         * lib/unictype/combining.h: Likewise.
24185         * lib/unictype/ctype_alnum.h: Likewise.
24186         * lib/unictype/ctype_alpha.h: Likewise.
24187         * lib/unictype/ctype_graph.h: Likewise.
24188         * lib/unictype/ctype_lower.h: Likewise.
24189         * lib/unictype/ctype_print.h: Likewise.
24190         * lib/unictype/ctype_punct.h: Likewise.
24191         * lib/unictype/ctype_upper.h: Likewise.
24192         * lib/unictype/decdigit.h: Likewise.
24193         * lib/unictype/digit.h: Likewise.
24194         * lib/unictype/numeric.h: Likewise.
24195         * lib/unictype/pr_alphabetic.h: Likewise.
24196         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
24197         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
24198         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
24199         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
24200         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
24201         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
24202         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
24203         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
24204         * lib/unictype/pr_case_ignorable.h: Likewise.
24205         * lib/unictype/pr_cased.h: Likewise.
24206         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
24207         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
24208         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
24209         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
24210         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
24211         * lib/unictype/pr_combining.h: Likewise.
24212         * lib/unictype/pr_composite.h: Likewise.
24213         * lib/unictype/pr_currency_symbol.h: Likewise.
24214         * lib/unictype/pr_decimal_digit.h: Likewise.
24215         * lib/unictype/pr_deprecated.h: Likewise.
24216         * lib/unictype/pr_format_control.h: Likewise.
24217         * lib/unictype/pr_grapheme_base.h: Likewise.
24218         * lib/unictype/pr_grapheme_extend.h: Likewise.
24219         * lib/unictype/pr_grapheme_link.h: Likewise.
24220         * lib/unictype/pr_id_continue.h: Likewise.
24221         * lib/unictype/pr_id_start.h: Likewise.
24222         * lib/unictype/pr_ideographic.h: Likewise.
24223         * lib/unictype/pr_lowercase.h: Likewise.
24224         * lib/unictype/pr_math.h: Likewise.
24225         * lib/unictype/pr_numeric.h: Likewise.
24226         * lib/unictype/pr_other_alphabetic.h: Likewise.
24227         * lib/unictype/pr_other_id_continue.h: Likewise.
24228         * lib/unictype/pr_other_math.h: Likewise.
24229         * lib/unictype/pr_punctuation.h: Likewise.
24230         * lib/unictype/pr_sentence_terminal.h: Likewise.
24231         * lib/unictype/pr_terminal_punctuation.h: Likewise.
24232         * lib/unictype/pr_unassigned_code_value.h: Likewise.
24233         * lib/unictype/pr_unified_ideograph.h: Likewise.
24234         * lib/unictype/pr_uppercase.h: Likewise.
24235         * lib/unictype/pr_xid_continue.h: Likewise.
24236         * lib/unictype/pr_xid_start.h: Likewise.
24237         * lib/unictype/scripts.h: Likewise.
24238         * lib/unictype/scripts_byname.gperf: Likewise.
24239         * lib/unictype/sy_java_ident.h: Likewise.
24240         * lib/unigbrk/gbrkprop.h: Likewise.
24241         * lib/unilbrk/lbrkprop1.h: Likewise.
24242         * lib/unilbrk/lbrkprop2.h: Likewise.
24243         * lib/uninorm/decomposition-table2.h: Likewise.
24244         * lib/uniwbrk/wbrkprop.h: Likewise.
24245         * tests/unicase/test-cased.c: Likewise.
24246         * tests/unicase/test-ignorable.c: Likewise.
24247         * tests/unicase/test-uc_tolower.c: Likewise.
24248         * tests/unicase/test-uc_totitle.c: Likewise.
24249         * tests/unicase/test-uc_toupper.c: Likewise.
24250         * tests/unictype/test-categ_C.c: Likewise.
24251         * tests/unictype/test-categ_Cn.c: Likewise.
24252         * tests/unictype/test-categ_L.c: Likewise.
24253         * tests/unictype/test-categ_Ll.c: Likewise.
24254         * tests/unictype/test-categ_Lm.c: Likewise.
24255         * tests/unictype/test-categ_Lo.c: Likewise.
24256         * tests/unictype/test-categ_Lu.c: Likewise.
24257         * tests/unictype/test-categ_M.c: Likewise.
24258         * tests/unictype/test-categ_Mc.c: Likewise.
24259         * tests/unictype/test-categ_Me.c: Likewise.
24260         * tests/unictype/test-categ_Mn.c: Likewise.
24261         * tests/unictype/test-categ_N.c: Likewise.
24262         * tests/unictype/test-categ_Nd.c: Likewise.
24263         * tests/unictype/test-categ_No.c: Likewise.
24264         * tests/unictype/test-categ_P.c: Likewise.
24265         * tests/unictype/test-categ_Po.c: Likewise.
24266         * tests/unictype/test-categ_S.c: Likewise.
24267         * tests/unictype/test-categ_Sc.c: Likewise.
24268         * tests/unictype/test-categ_Sk.c: Likewise.
24269         * tests/unictype/test-categ_Sm.c: Likewise.
24270         * tests/unictype/test-categ_So.c: Likewise.
24271         * tests/unictype/test-ctype_alnum.c: Likewise.
24272         * tests/unictype/test-ctype_alpha.c: Likewise.
24273         * tests/unictype/test-ctype_graph.c: Likewise.
24274         * tests/unictype/test-ctype_lower.c: Likewise.
24275         * tests/unictype/test-ctype_print.c: Likewise.
24276         * tests/unictype/test-ctype_punct.c: Likewise.
24277         * tests/unictype/test-ctype_upper.c: Likewise.
24278         * tests/unictype/test-decdigit.h: Likewise.
24279         * tests/unictype/test-digit.h: Likewise.
24280         * tests/unictype/test-numeric.h: Likewise.
24281         * tests/unictype/test-pr_alphabetic.c: Likewise.
24282         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
24283         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
24284         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
24285         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
24286         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
24287         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
24288         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
24289         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
24290         * tests/unictype/test-pr_case_ignorable.c: Likewise.
24291         * tests/unictype/test-pr_cased.c: Likewise.
24292         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
24293         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
24294         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
24295         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
24296         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
24297         * tests/unictype/test-pr_combining.c: Likewise.
24298         * tests/unictype/test-pr_composite.c: Likewise.
24299         * tests/unictype/test-pr_currency_symbol.c: Likewise.
24300         * tests/unictype/test-pr_decimal_digit.c: Likewise.
24301         * tests/unictype/test-pr_deprecated.c: Likewise.
24302         * tests/unictype/test-pr_format_control.c: Likewise.
24303         * tests/unictype/test-pr_grapheme_base.c: Likewise.
24304         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
24305         * tests/unictype/test-pr_grapheme_link.c: Likewise.
24306         * tests/unictype/test-pr_id_continue.c: Likewise.
24307         * tests/unictype/test-pr_id_start.c: Likewise.
24308         * tests/unictype/test-pr_ideographic.c: Likewise.
24309         * tests/unictype/test-pr_lowercase.c: Likewise.
24310         * tests/unictype/test-pr_math.c: Likewise.
24311         * tests/unictype/test-pr_numeric.c: Likewise.
24312         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
24313         * tests/unictype/test-pr_other_id_continue.c: Likewise.
24314         * tests/unictype/test-pr_other_math.c: Likewise.
24315         * tests/unictype/test-pr_punctuation.c: Likewise.
24316         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
24317         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
24318         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
24319         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
24320         * tests/unictype/test-pr_uppercase.c: Likewise.
24321         * tests/unictype/test-pr_xid_continue.c: Likewise.
24322         * tests/unictype/test-pr_xid_start.c: Likewise.
24323         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
24324         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
24325         changes.
24326         * lib/unictype/categ_Cc.h: Likewise.
24327         * lib/unictype/categ_Cf.h: Likewise.
24328         * lib/unictype/categ_Co.h: Likewise.
24329         * lib/unictype/categ_Cs.h: Likewise.
24330         * lib/unictype/categ_Lt.h: Likewise.
24331         * lib/unictype/categ_Nl.h: Likewise.
24332         * lib/unictype/categ_Pc.h: Likewise.
24333         * lib/unictype/categ_Pd.h: Likewise.
24334         * lib/unictype/categ_Pe.h: Likewise.
24335         * lib/unictype/categ_Pf.h: Likewise.
24336         * lib/unictype/categ_Pi.h: Likewise.
24337         * lib/unictype/categ_Ps.h: Likewise.
24338         * lib/unictype/categ_Z.h: Likewise.
24339         * lib/unictype/categ_Zl.h: Likewise.
24340         * lib/unictype/categ_Zp.h: Likewise.
24341         * lib/unictype/categ_Zs.h: Likewise.
24342         * lib/unictype/ctype_blank.h: Likewise.
24343         * lib/unictype/ctype_cntrl.h: Likewise.
24344         * lib/unictype/ctype_digit.h: Likewise.
24345         * lib/unictype/ctype_space.h: Likewise.
24346         * lib/unictype/ctype_xdigit.h: Likewise.
24347         * lib/unictype/mirror.h: Likewise.
24348         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
24349         * lib/unictype/pr_bidi_block_separator.h: Likewise.
24350         * lib/unictype/pr_bidi_common_separator.h: Likewise.
24351         * lib/unictype/pr_bidi_control.h: Likewise.
24352         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
24353         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
24354         * lib/unictype/pr_bidi_european_digit.h: Likewise.
24355         * lib/unictype/pr_bidi_pdf.h: Likewise.
24356         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
24357         * lib/unictype/pr_bidi_whitespace.h: Likewise.
24358         * lib/unictype/pr_dash.h: Likewise.
24359         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
24360         * lib/unictype/pr_diacritic.h: Likewise.
24361         * lib/unictype/pr_extender.h: Likewise.
24362         * lib/unictype/pr_hex_digit.h: Likewise.
24363         * lib/unictype/pr_hyphen.h: Likewise.
24364         * lib/unictype/pr_ids_binary_operator.h: Likewise.
24365         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
24366         * lib/unictype/pr_ignorable_control.h: Likewise.
24367         * lib/unictype/pr_iso_control.h: Likewise.
24368         * lib/unictype/pr_join_control.h: Likewise.
24369         * lib/unictype/pr_left_of_pair.h: Likewise.
24370         * lib/unictype/pr_line_separator.h: Likewise.
24371         * lib/unictype/pr_logical_order_exception.h: Likewise.
24372         * lib/unictype/pr_non_break.h: Likewise.
24373         * lib/unictype/pr_not_a_character.h: Likewise.
24374         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
24375         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
24376         * lib/unictype/pr_other_id_start.h: Likewise.
24377         * lib/unictype/pr_other_lowercase.h: Likewise.
24378         * lib/unictype/pr_other_uppercase.h: Likewise.
24379         * lib/unictype/pr_paired_punctuation.h: Likewise.
24380         * lib/unictype/pr_paragraph_separator.h: Likewise.
24381         * lib/unictype/pr_pattern_syntax.h: Likewise.
24382         * lib/unictype/pr_pattern_white_space.h: Likewise.
24383         * lib/unictype/pr_private_use.h: Likewise.
24384         * lib/unictype/pr_quotation_mark.h: Likewise.
24385         * lib/unictype/pr_radical.h: Likewise.
24386         * lib/unictype/pr_soft_dotted.h: Likewise.
24387         * lib/unictype/pr_space.h: Likewise.
24388         * lib/unictype/pr_titlecase.h: Likewise.
24389         * lib/unictype/pr_variation_selector.h: Likewise.
24390         * lib/unictype/pr_white_space.h: Likewise.
24391         * lib/unictype/pr_zero_width.h: Likewise.
24392         * lib/unictype/sy_c_ident.h: Likewise.
24393         * lib/unictype/sy_c_whitespace.h: Likewise.
24394         * lib/unictype/sy_java_whitespace.h: Likewise.
24395         * lib/uninorm/composition-table.gperf: Likewise.
24396         * lib/uninorm/decomposition-table1.h: Likewise.
24397         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
24398         LB8.
24399         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
24400         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
24401         * modules/unictype/*: Bump version number of expected libunistring
24402         version.
24403
24404 2011-01-09  Bruno Haible  <bruno@clisp.org>
24405
24406         Update to Unicode 5.2.0.
24407         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
24408         trailing whitespace removed.
24409
24410 2011-01-09  Bruno Haible  <bruno@clisp.org>
24411
24412         New Unicode character properties, from Unicode 5.2.0.
24413         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
24414         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
24415         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
24416         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
24417         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
24418         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
24419         uc_is_property_cased, uc_is_property_case_ignorable,
24420         uc_is_property_changes_when_lowercased,
24421         uc_is_property_changes_when_uppercased,
24422         uc_is_property_changes_when_titlecased,
24423         uc_is_property_changes_when_casefolded,
24424         uc_is_property_changes_when_casemapped): New declarations.
24425         * lib/unictype/pr_byname.gperf: Add the new properties.
24426         * modules/unictype/property-byname (Depends-on): Depend on the new
24427         properties modules.
24428         * modules/unictype/property-all (Depends-on): Likewise.
24429         * MODULES.html.sh (Unicode string functions): Add
24430         unictype/property-case-ignorable, unictype/property-cased,
24431         unictype/property-changes-when-casefolded,
24432         unictype/property-changes-when-casemapped,
24433         unictype/property-changes-when-lowercased,
24434         unictype/property-changes-when-titlecased,
24435         unictype/property-changes-when-uppercased.
24436
24437         New module 'unictype/property-changes-when-casemapped'.
24438         * modules/unictype/property-changes-when-casemapped: New file.
24439         * lib/unictype/pr_changes_when_casemapped.c: New file.
24440         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
24441         generated by gen-uni-tables.
24442         * modules/unictype/property-changes-when-casemapped-tests: New file.
24443         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
24444         automatically generated by gen-uni-tables.
24445
24446         New module 'unictype/property-changes-when-casefolded'.
24447         * modules/unictype/property-changes-when-casefolded: New file.
24448         * lib/unictype/pr_changes_when_casefolded.c: New file.
24449         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
24450         generated by gen-uni-tables.
24451         * modules/unictype/property-changes-when-casefolded-tests: New file.
24452         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
24453         automatically generated by gen-uni-tables.
24454
24455         New module 'unictype/property-changes-when-titlecased'.
24456         * modules/unictype/property-changes-when-titlecased: New file.
24457         * lib/unictype/pr_changes_when_titlecased.c: New file.
24458         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
24459         generated by gen-uni-tables.
24460         * modules/unictype/property-changes-when-titlecased-tests: New file.
24461         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
24462         automatically generated by gen-uni-tables.
24463
24464         New module 'unictype/property-changes-when-uppercased'.
24465         * modules/unictype/property-changes-when-uppercased: New file.
24466         * lib/unictype/pr_changes_when_uppercased.c: New file.
24467         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
24468         generated by gen-uni-tables.
24469         * modules/unictype/property-changes-when-uppercased-tests: New file.
24470         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
24471         automatically generated by gen-uni-tables.
24472
24473         New module 'unictype/property-changes-when-lowercased'.
24474         * modules/unictype/property-changes-when-lowercased: New file.
24475         * lib/unictype/pr_changes_when_lowercased.c: New file.
24476         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
24477         generated by gen-uni-tables.
24478         * modules/unictype/property-changes-when-lowercased-tests: New file.
24479         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
24480         automatically generated by gen-uni-tables.
24481
24482         New module 'unictype/property-case-ignorable'.
24483         * modules/unictype/property-case-ignorable: New file.
24484         * lib/unictype/pr_case_ignorable.c: New file.
24485         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
24486         by gen-uni-tables.
24487         * modules/unictype/property-case-ignorable-tests: New file.
24488         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
24489         generated by gen-uni-tables.
24490
24491         New module 'unictype/property-cased'.
24492         * modules/unictype/property-cased: New file.
24493         * lib/unictype/pr_cased.c: New file.
24494         * lib/unictype/pr_cased.h: New file, automatically generated by
24495         gen-uni-tables.
24496         * modules/unictype/property-cased-tests: New file.
24497         * tests/unictype/test-pr_cased.c: New file, automatically generated by
24498         gen-uni-tables.
24499
24500 2011-01-09  Bruno Haible  <bruno@clisp.org>
24501
24502         Update to Unicode 5.2.0.
24503         * lib/gen-uni-tables.c (output_predicate, output_category,
24504         output_combclass, output_bidi_category, output_decimal_digit_test,
24505         output_decimal_digit, output_digit_test, output_digit,
24506         output_numeric_test, output_numeric, output_mirror, output_scripts,
24507         output_scripts_byname, output_blocks, output_ident_category): Fix
24508         comment header.
24509         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
24510         get_wbp.
24511         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
24512         items.
24513         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
24514         Changes_When_Lowercased, Changes_When_Uppercased,
24515         Changes_When_Titlecased, Changes_When_Casefolded,
24516         Changes_When_Casemapped.
24517         (is_property_alphabetic, is_property_default_ignorable_code_point):
24518         Update for Unicode 5.2.0.
24519         (is_property_cased, is_property_case_ignorable,
24520         is_property_changes_when_lowercased,
24521         is_property_changes_when_uppercased,
24522         is_property_changes_when_titlecased,
24523         is_property_changes_when_casefolded,
24524         is_property_changes_when_casemapped): New functions.
24525         (output_properties): Output also the properties cased, case_ignorable,
24526         changes_when_lowercased, changes_when_uppercased,
24527         changes_when_titlecased, changes_when_casefolded,
24528         changes_when_casemapped.
24529         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
24530         Unicode TR#11 revision 17 -> 19.
24531         (LBP_CP): New enumeration value.
24532         (LBP_*): Adjust values accordingly.
24533         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
24534         TR#14 revision 22 -> 24.
24535         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
24536         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
24537         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
24538         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
24539         is_WBP_MIDLETTER.
24540         (output_composition_tables): Allow for 24 bits instead of 16 bits in
24541         the code1 and code2 of each composition rule.
24542         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
24543         * lib/unicase/ignorable.h: Likewise.
24544         * lib/unicase/tocasefold.h: Likewise.
24545         * lib/unicase/tolower.h: Likewise.
24546         * lib/unicase/totitle.h: Likewise.
24547         * lib/unicase/toupper.h: Likewise.
24548         * lib/unictype/bidi_of.h: Likewise.
24549         * lib/unictype/blocks.h: Likewise.
24550         * lib/unictype/categ_C.h: Likewise.
24551         * lib/unictype/categ_Cf.h: Likewise.
24552         * lib/unictype/categ_Cn.h: Likewise.
24553         * lib/unictype/categ_L.h: Likewise.
24554         * lib/unictype/categ_Ll.h: Likewise.
24555         * lib/unictype/categ_Lm.h: Likewise.
24556         * lib/unictype/categ_Lo.h: Likewise.
24557         * lib/unictype/categ_Lu.h: Likewise.
24558         * lib/unictype/categ_M.h: Likewise.
24559         * lib/unictype/categ_Mc.h: Likewise.
24560         * lib/unictype/categ_Mn.h: Likewise.
24561         * lib/unictype/categ_N.h: Likewise.
24562         * lib/unictype/categ_Nd.h: Likewise.
24563         * lib/unictype/categ_Nl.h: Likewise.
24564         * lib/unictype/categ_No.h: Likewise.
24565         * lib/unictype/categ_P.h: Likewise.
24566         * lib/unictype/categ_Pd.h: Likewise.
24567         * lib/unictype/categ_Po.h: Likewise.
24568         * lib/unictype/categ_S.h: Likewise.
24569         * lib/unictype/categ_Sc.h: Likewise.
24570         * lib/unictype/categ_So.h: Likewise.
24571         * lib/unictype/categ_of.h: Likewise.
24572         * lib/unictype/combining.h: Likewise.
24573         * lib/unictype/ctype_alnum.h: Likewise.
24574         * lib/unictype/ctype_alpha.h: Likewise.
24575         * lib/unictype/ctype_graph.h: Likewise.
24576         * lib/unictype/ctype_lower.h: Likewise.
24577         * lib/unictype/ctype_print.h: Likewise.
24578         * lib/unictype/ctype_punct.h: Likewise.
24579         * lib/unictype/ctype_upper.h: Likewise.
24580         * lib/unictype/decdigit.h: Likewise.
24581         * lib/unictype/digit.h: Likewise.
24582         * lib/unictype/numeric.h: Likewise.
24583         * lib/unictype/pr_alphabetic.h: Likewise.
24584         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
24585         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
24586         * lib/unictype/pr_bidi_european_digit.h: Likewise.
24587         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
24588         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
24589         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
24590         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
24591         * lib/unictype/pr_combining.h: Likewise.
24592         * lib/unictype/pr_composite.h: Likewise.
24593         * lib/unictype/pr_currency_symbol.h: Likewise.
24594         * lib/unictype/pr_dash.h: Likewise.
24595         * lib/unictype/pr_decimal_digit.h: Likewise.
24596         * lib/unictype/pr_deprecated.h: Likewise.
24597         * lib/unictype/pr_diacritic.h: Likewise.
24598         * lib/unictype/pr_extender.h: Likewise.
24599         * lib/unictype/pr_grapheme_base.h: Likewise.
24600         * lib/unictype/pr_grapheme_extend.h: Likewise.
24601         * lib/unictype/pr_grapheme_link.h: Likewise.
24602         * lib/unictype/pr_id_continue.h: Likewise.
24603         * lib/unictype/pr_id_start.h: Likewise.
24604         * lib/unictype/pr_ideographic.h: Likewise.
24605         * lib/unictype/pr_ignorable_control.h: Likewise.
24606         * lib/unictype/pr_logical_order_exception.h: Likewise.
24607         * lib/unictype/pr_lowercase.h: Likewise.
24608         * lib/unictype/pr_numeric.h: Likewise.
24609         * lib/unictype/pr_other_alphabetic.h: Likewise.
24610         * lib/unictype/pr_punctuation.h: Likewise.
24611         * lib/unictype/pr_sentence_terminal.h: Likewise.
24612         * lib/unictype/pr_terminal_punctuation.h: Likewise.
24613         * lib/unictype/pr_unassigned_code_value.h: Likewise.
24614         * lib/unictype/pr_unified_ideograph.h: Likewise.
24615         * lib/unictype/pr_uppercase.h: Likewise.
24616         * lib/unictype/pr_xid_continue.h: Likewise.
24617         * lib/unictype/pr_xid_start.h: Likewise.
24618         * lib/unictype/pr_zero_width.h: Likewise.
24619         * lib/unictype/scripts.h: Likewise.
24620         * lib/unictype/scripts_byname.gperf: Likewise.
24621         * lib/unictype/sy_java_ident.h: Likewise.
24622         * lib/unigbrk/gbrkprop.h: Likewise.
24623         * lib/unilbrk/lbrkprop1.h: Likewise.
24624         * lib/unilbrk/lbrkprop2.h: Likewise.
24625         * lib/unilbrk/lbrktables.h: Likewise.
24626         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
24627         LBP_CP. Implement rule LB30.
24628         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
24629         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
24630         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
24631         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
24632         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
24633         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
24634         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
24635         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
24636         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
24637         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
24638         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
24639         bits instead of 16 bits in the code1 and code2 of each composition
24640         rule.
24641         (uc_composition): Update for Unicode 5.2.0.
24642         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
24643         * lib/uninorm/decomposition-table2.h: Likewise.
24644         * lib/uniwbrk/wbrkprop.h: Likewise.
24645         * tests/unicase/test-cased.c: Likewise.
24646         * tests/unicase/test-ignorable.c: Likewise.
24647         * tests/unicase/test-uc_tolower.c: Likewise.
24648         * tests/unicase/test-uc_totitle.c: Likewise.
24649         * tests/unicase/test-uc_toupper.c: Likewise.
24650         * tests/unictype/test-categ_C.c: Likewise.
24651         * tests/unictype/test-categ_Cf.c: Likewise.
24652         * tests/unictype/test-categ_Cn.c: Likewise.
24653         * tests/unictype/test-categ_L.c: Likewise.
24654         * tests/unictype/test-categ_Ll.c: Likewise.
24655         * tests/unictype/test-categ_Lm.c: Likewise.
24656         * tests/unictype/test-categ_Lo.c: Likewise.
24657         * tests/unictype/test-categ_Lu.c: Likewise.
24658         * tests/unictype/test-categ_M.c: Likewise.
24659         * tests/unictype/test-categ_Mc.c: Likewise.
24660         * tests/unictype/test-categ_Mn.c: Likewise.
24661         * tests/unictype/test-categ_N.c: Likewise.
24662         * tests/unictype/test-categ_Nd.c: Likewise.
24663         * tests/unictype/test-categ_Nl.c: Likewise.
24664         * tests/unictype/test-categ_No.c: Likewise.
24665         * tests/unictype/test-categ_P.c: Likewise.
24666         * tests/unictype/test-categ_Pd.c: Likewise.
24667         * tests/unictype/test-categ_Po.c: Likewise.
24668         * tests/unictype/test-categ_S.c: Likewise.
24669         * tests/unictype/test-categ_Sc.c: Likewise.
24670         * tests/unictype/test-categ_So.c: Likewise.
24671         * tests/unictype/test-ctype_alnum.c: Likewise.
24672         * tests/unictype/test-ctype_alpha.c: Likewise.
24673         * tests/unictype/test-ctype_graph.c: Likewise.
24674         * tests/unictype/test-ctype_lower.c: Likewise.
24675         * tests/unictype/test-ctype_print.c: Likewise.
24676         * tests/unictype/test-ctype_punct.c: Likewise.
24677         * tests/unictype/test-ctype_upper.c: Likewise.
24678         * tests/unictype/test-decdigit.h: Likewise.
24679         * tests/unictype/test-digit.h: Likewise.
24680         * tests/unictype/test-numeric.h: Likewise.
24681         * tests/unictype/test-pr_alphabetic.c: Likewise.
24682         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
24683         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
24684         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
24685         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
24686         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
24687         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
24688         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
24689         * tests/unictype/test-pr_combining.c: Likewise.
24690         * tests/unictype/test-pr_composite.c: Likewise.
24691         * tests/unictype/test-pr_currency_symbol.c: Likewise.
24692         * tests/unictype/test-pr_dash.c: Likewise.
24693         * tests/unictype/test-pr_decimal_digit.c: Likewise.
24694         * tests/unictype/test-pr_deprecated.c: Likewise.
24695         * tests/unictype/test-pr_diacritic.c: Likewise.
24696         * tests/unictype/test-pr_extender.c: Likewise.
24697         * tests/unictype/test-pr_grapheme_base.c: Likewise.
24698         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
24699         * tests/unictype/test-pr_grapheme_link.c: Likewise.
24700         * tests/unictype/test-pr_id_continue.c: Likewise.
24701         * tests/unictype/test-pr_id_start.c: Likewise.
24702         * tests/unictype/test-pr_ideographic.c: Likewise.
24703         * tests/unictype/test-pr_ignorable_control.c: Likewise.
24704         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
24705         * tests/unictype/test-pr_lowercase.c: Likewise.
24706         * tests/unictype/test-pr_numeric.c: Likewise.
24707         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
24708         * tests/unictype/test-pr_punctuation.c: Likewise.
24709         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
24710         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
24711         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
24712         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
24713         * tests/unictype/test-pr_uppercase.c: Likewise.
24714         * tests/unictype/test-pr_xid_continue.c: Likewise.
24715         * tests/unictype/test-pr_xid_start.c: Likewise.
24716         * tests/unictype/test-pr_zero_width.c: Likewise.
24717         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
24718         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
24719         changed behaviour: line breaking is now disallowed between a letter
24720         or '=' and '('.
24721         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
24722         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
24723         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
24724         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
24725         * tests/uniwidth/test-uc_width2.sh: Same updates as in
24726         lib/uniwidth/width.c.
24727         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
24728         without comments, but with the original copyright notice.
24729         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
24730         changes.
24731         * lib/unictype/categ_Cc.h: Likewise.
24732         * lib/unictype/categ_Co.h: Likewise.
24733         * lib/unictype/categ_Cs.h: Likewise.
24734         * lib/unictype/categ_Lt.h: Likewise.
24735         * lib/unictype/categ_Me.h: Likewise.
24736         * lib/unictype/categ_Pc.h: Likewise.
24737         * lib/unictype/categ_Pe.h: Likewise.
24738         * lib/unictype/categ_Pf.h: Likewise.
24739         * lib/unictype/categ_Pi.h: Likewise.
24740         * lib/unictype/categ_Ps.h: Likewise.
24741         * lib/unictype/categ_Sk.h: Likewise.
24742         * lib/unictype/categ_Sm.h: Likewise.
24743         * lib/unictype/categ_Z.h: Likewise.
24744         * lib/unictype/categ_Zl.h: Likewise.
24745         * lib/unictype/categ_Zp.h: Likewise.
24746         * lib/unictype/categ_Zs.h: Likewise.
24747         * lib/unictype/ctype_blank.h: Likewise.
24748         * lib/unictype/ctype_cntrl.h: Likewise.
24749         * lib/unictype/ctype_digit.h: Likewise.
24750         * lib/unictype/ctype_space.h: Likewise.
24751         * lib/unictype/ctype_xdigit.h: Likewise.
24752         * lib/unictype/mirror.h: Likewise.
24753         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
24754         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
24755         * lib/unictype/pr_bidi_block_separator.h: Likewise.
24756         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
24757         * lib/unictype/pr_bidi_common_separator.h: Likewise.
24758         * lib/unictype/pr_bidi_control.h: Likewise.
24759         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
24760         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
24761         * lib/unictype/pr_bidi_pdf.h: Likewise.
24762         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
24763         * lib/unictype/pr_bidi_whitespace.h: Likewise.
24764         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
24765         * lib/unictype/pr_format_control.h: Likewise.
24766         * lib/unictype/pr_hex_digit.h: Likewise.
24767         * lib/unictype/pr_hyphen.h: Likewise.
24768         * lib/unictype/pr_ids_binary_operator.h: Likewise.
24769         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
24770         * lib/unictype/pr_iso_control.h: Likewise.
24771         * lib/unictype/pr_join_control.h: Likewise.
24772         * lib/unictype/pr_left_of_pair.h: Likewise.
24773         * lib/unictype/pr_line_separator.h: Likewise.
24774         * lib/unictype/pr_math.h: Likewise.
24775         * lib/unictype/pr_non_break.h: Likewise.
24776         * lib/unictype/pr_not_a_character.h: Likewise.
24777         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
24778         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
24779         * lib/unictype/pr_other_id_continue.h: Likewise.
24780         * lib/unictype/pr_other_id_start.h: Likewise.
24781         * lib/unictype/pr_other_lowercase.h: Likewise.
24782         * lib/unictype/pr_other_math.h: Likewise.
24783         * lib/unictype/pr_other_uppercase.h: Likewise.
24784         * lib/unictype/pr_paired_punctuation.h: Likewise.
24785         * lib/unictype/pr_paragraph_separator.h: Likewise.
24786         * lib/unictype/pr_pattern_syntax.h: Likewise.
24787         * lib/unictype/pr_pattern_white_space.h: Likewise.
24788         * lib/unictype/pr_private_use.h: Likewise.
24789         * lib/unictype/pr_quotation_mark.h: Likewise.
24790         * lib/unictype/pr_radical.h: Likewise.
24791         * lib/unictype/pr_soft_dotted.h: Likewise.
24792         * lib/unictype/pr_space.h: Likewise.
24793         * lib/unictype/pr_titlecase.h: Likewise.
24794         * lib/unictype/pr_variation_selector.h: Likewise.
24795         * lib/unictype/pr_white_space.h: Likewise.
24796         * lib/unictype/sy_c_ident.h: Likewise.
24797         * lib/unictype/sy_c_whitespace.h: Likewise.
24798         * lib/unictype/sy_java_whitespace.h: Likewise.
24799         * modules/uni*/*: Bump version number of expected libunistring version.
24800         Reported by Simon Josefsson.
24801
24802 2011-01-09  Karl Heuer  <kwzh@gnu.org>
24803
24804         useless-if-before-free: fix typo in --help and make the internal,
24805         automatic version date update process work once again.
24806         --help output contained a NUL character instead of the
24807         backslash-zero that was intended.  Also, the "must lie within
24808         the first 8 lines" line is on line 9, and hence not getting
24809         automatically updated.
24810         * build-aux/useless-if-before-free: Fix the former by adding a
24811         backslash, and the latter by condensing the three lines of what-it-does
24812         to a single line, leaving one line of slack for the future.
24813
24814 2011-01-09  Bruno Haible  <bruno@clisp.org>
24815
24816         uniwidth/width: Fix width of U+1D173..U+1D17A.
24817         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
24818         symbolic_width, output_width_property_test): New functions.
24819         (main): Invoke output_nonspacing_property, output_width_property_test.
24820         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
24821         U+1D173..U+1D17A.
24822         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
24823         1.
24824         * modules/uniwidth/*: Bump version number of expected libunistring
24825         version.
24826         * modules/unilbrk/*: Likewise.
24827
24828 2011-01-08  Bruno Haible  <bruno@clisp.org>
24829
24830         uninorm tests: Preserve copyright of Unicode data file.
24831         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
24832         Mention modifications.
24833
24834 2011-01-08  Bruno Haible  <bruno@clisp.org>
24835
24836         gen-uni-tables: Prepare for Unicode 5.2.0.
24837         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
24838         (debug_output_lbp, output_lbp): Update.
24839
24840 2011-01-08  Bruno Haible  <bruno@clisp.org>
24841
24842         unilbrk: Clarify gen-uni-tables.c code.
24843         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
24844         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
24845         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
24846
24847 2011-01-07  Bruno Haible  <bruno@clisp.org>
24848
24849         strtod: Restore errno when successfully parsing Infinity or NaN.
24850         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
24851         restore the original errno.
24852
24853 2011-01-07  Bruno Haible  <bruno@clisp.org>
24854
24855         remove test: Avoid failure on HP-UX 11.
24856         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
24857
24858 2011-01-07  Bruno Haible  <bruno@clisp.org>
24859
24860         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
24861         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
24862         error code.
24863
24864 2011-01-07  Pádraig Brady <P@draigBrady.com>
24865
24866         ignore-value: fixup comments, and add Eric Blake
24867         as an author since he rewrote the macros.
24868         * lib/ignore-value.h (ignore_value):  State that
24869         we now support aggregates.  Also specify exactly
24870         when the GCC warn_unused_result feature was added.
24871
24872 2011-01-06  Eric Blake  <eblake@redhat.com>
24873
24874         ignore-value: support aggregate types
24875         * lib/ignore-value.h (ignore_value): Provide separate gcc
24876         definition.
24877         * modules/ignore-value-tests: New test module.
24878         * tests/test-ignore-value.c: New test.
24879
24880         maint.mk: improve sc_prohibit_strcmp regex
24881         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
24882         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
24883         definition of STRNEQ.
24884
24885         signal: work around Haiku issue with SIGBUS
24886         * lib/siglist.h: Add comment.
24887         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
24888         strsignal's favoring of SIGSEGV.
24889         * tests/test-signal.c (main): Avoid test failure.
24890         * doc/posix-headers/signal.texi (signal.h): Document the issue.
24891         Reported by Scott McCreary.
24892
24893         maint.mk: add pre-release check to ensure submodule commits are public
24894         * top/maint.mk (public-submodule-commit): New rule.
24895         (submodule-checks): New variable.
24896         (alpha beta stable): Depend on the variable.
24897
24898 2011-01-05  Pádraig Brady <P@draigBrady.com>
24899         and Jim Meyering  <meyering@redhat.com>
24900
24901         ignore-value: make ignore_value more generic; deprecate ignore_ptr
24902         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
24903         (ATTRIBUTE_DEPRECATED): Define.
24904         (_ignore_case): New function.
24905         (ignore_value): New macro, to replace the old function.
24906         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
24907         * modules/ignore-value (Depends-on): Add stdint.
24908
24909 2011-01-04  Eric Blake  <eblake@redhat.com>
24910
24911         doc: regenerate INSTALL
24912         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
24913         @firstparagraphindent support, now that autoconf dropped it.
24914         (INSTALL_PRELUDE): Reinstate old macro.
24915         * doc/install.texi: Resync from autoconf.
24916         * doc/INSTALL: Reflect recent autoconf update.
24917         * doc/INSTALL.ISO: Likewise.
24918         * doc/INSTALL.UTF-8: Likewise.
24919         Reported by Karl Berry.
24920
24921 2011-01-04  Bruce Korb  <address@hidden>
24922
24923         git-version-gen: avoid a sub-shell
24924         * build-aux/git-version-gen: Redirect stderr in `...` via
24925         "exec 2>...", rather than via an added sub-shell.
24926
24927 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
24928
24929         git-version-gen: use (...) rather than sh -c '...'
24930         * build-aux/git-version-gen: Rather than hard-coding a shell's name
24931         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
24932
24933 2011-01-03  Jim Meyering  <meyering@redhat.com>
24934
24935         git-version-gen: convert leading TABs to spaces
24936         * build-aux/git-version-gen: Expand leading TABs.
24937
24938         git-version-gen: handle failed "git rev-list"
24939         * build-aux/git-version-gen: Rather than leaking a "fatal" error
24940         from git and proceeding as if it had succeeded but printed no SHA1
24941         checksums, suppress the diagnostic and handle the failure.
24942         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
24943
24944         git-version-gen: include command name in one more diagnostic
24945         * build-aux/git-version-gen: When the required .tarball-version file
24946         was missing or unreadable, you might see the diagnostic from "cat",
24947         but no trace of the name of the invoking script.  Now, you still see
24948         the diagnostic from cat, but also get one from "git-version-gen: ".
24949         Inspired by a patch from Bruce Korb.
24950
24951         update-copyright: adjust test to match changed code
24952         * tests/test-update-copyright.sh: Change test's expected output
24953         to match new actual output.
24954
24955 2011-01-02  Bruno Haible  <bruno@clisp.org>
24956
24957         getlogin_r: Avoid test failure on HP-UX 11.
24958         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
24959         ERANGE when the second argument is zero.
24960         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
24961         portability problem.
24962
24963 2011-01-02  Bruce Korb  <bkorb@gnu.org>
24964
24965         * build-aux/update-copyright: doc Simon's changes
24966
24967 2011-01-02  Simon Josefsson  <simon@josefsson.org>
24968
24969         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
24970         environment variable.
24971
24972 2011-01-02  Bruno Haible  <bruno@clisp.org>
24973
24974         unigbrk: Avoid gcc warnings.
24975         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
24976         unused variable.
24977         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
24978         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
24979         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
24980         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
24981         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
24982         Change type of first argument to 'const char *'.
24983         (main): Remove unused variable.
24984         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
24985         type of first argument to 'const char *'.
24986         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
24987         Likewise.
24988         (main): Change type of variable 's'.
24989         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
24990         to 'int'.
24991
24992 2011-01-02  Bruno Haible  <bruno@clisp.org>
24993
24994         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
24995         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
24996         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
24997         bug.
24998         * lib/pwrite.c: Undo 2010-12-31 patch.
24999         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
25000
25001 2011-01-02  Bruno Haible  <bruno@clisp.org>
25002
25003         pread: Fix test whether it works.
25004         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
25005
25006 2011-01-02  Bruno Haible  <bruno@clisp.org>
25007
25008         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
25009         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
25010         ends in "6". Don't require a specific month name. Try also the locale
25011         names found on HP-UX 11 and Solaris 7.
25012
25013 2011-01-02  Bruno Haible  <bruno@clisp.org>
25014
25015         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
25016         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
25017         C linkage.
25018         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
25019
25020 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
25021
25022         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
25023         for consistency, since the "cluster" term is not used elsewhere.
25024         * lib/unigbrk.in.h: Update name.
25025         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
25026         * lib/unigbrk/u16-grapheme-next.c: Update name.
25027         * lib/unigbrk/u16-grapheme-prev.c: Update name.
25028         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
25029         * lib/unigbrk/u32-grapheme-next.c: Update name.
25030         * lib/unigbrk/u32-grapheme-prev.c: Update name.
25031         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
25032         * lib/unigbrk/u8-grapheme-next.c: Update name.
25033         * lib/unigbrk/u8-grapheme-prev.c: Update name.
25034         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
25035         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
25036         Suggested by Bruno Haible.
25037
25038 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
25039
25040         Remove module 'u8-grapheme-len' as too redundant with
25041         'u8-grapheme-next'.
25042         * modules/unigbrk/u8-grapheme-len: Delete file.
25043         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
25044         * lib/unigbrk.in.h: Remove prototype for deleted function.
25045         * lib/unigbrk/u8-grapheme-len.c: Delete file.
25046         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
25047
25048         Remove module 'u16-grapheme-len' as too redundant with
25049         'u16-grapheme-next'.
25050         * modules/unigbrk/u16-grapheme-len: Delete file.
25051         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
25052         * lib/unigbrk.in.h: Remove prototype for deleted function.
25053         * lib/unigbrk/u16-grapheme-len.c: Delete file.
25054         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
25055
25056         Remove module 'u32-grapheme-len' as too redundant with
25057         'u32-grapheme-next'.
25058         * modules/unigbrk/u32-grapheme-len: Delete file.
25059         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
25060         * lib/unigbrk.in.h: Remove prototype for deleted function.
25061         * lib/unigbrk/u32-grapheme-len.c: Delete file.
25062         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
25063
25064         Suggested by Bruno Haible.
25065
25066 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
25067
25068         * unigbrk.in.h: Fix typo: "ben" => "been".
25069         Reported by Bruno Haible.
25070
25071 2011-01-01  Jim Meyering  <meyering@redhat.com>
25072
25073         maint: update almost all copyright ranges to include 2011
25074         Run the new "make update-copyright" rule.
25075
25076 2011-01-01  Jim Meyering  <meyering@redhat.com>
25077
25078         maint: update-copyright: exempt doc/INSTALL*
25079         * Makefile (update-copyright): Also exclude doc/INSTALL*,
25080         since they are generated.  Suggested by Bruno Haible.
25081
25082 2011-01-01  Jim Meyering  <meyering@redhat.com>
25083
25084         maint: refine the update-copyright rule
25085         * Makefile (update-copyright): Also exclude any file that includes
25086         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
25087         code that merely generates the comment.
25088
25089 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
25090
25091         New module 'u8-grapheme-len'.
25092         * modules/unigbrk/u8-grapheme-len: New file.
25093         * modules/unigbrk/u8-grapheme-len-tests: New file.
25094         * lib/unigbrk.in.h: Add prototype for new function.
25095         * lib/unigbrk/u8-grapheme-len.c: New file.
25096         * tests/unigbrk/test-u8-grapheme-len.c: New file.
25097
25098         New module 'u16-grapheme-len'.
25099         * modules/unigbrk/u16-grapheme-len: New file.
25100         * modules/unigbrk/u16-grapheme-len-tests: New file.
25101         * lib/unigbrk.in.h: Add prototype for new function.
25102         * lib/unigbrk/u16-grapheme-len.c: New file.
25103         * tests/unigbrk/test-u16-grapheme-len.c: New file.
25104
25105         New module 'u32-grapheme-len'.
25106         * modules/unigbrk/u32-grapheme-len: New file.
25107         * modules/unigbrk/u32-grapheme-len-tests: New file.
25108         * lib/unigbrk.in.h: Add prototype for new function.
25109         * lib/unigbrk/u32-grapheme-len.c: New file.
25110         * tests/unigbrk/test-u32-grapheme-len.c: New file.
25111
25112         New module 'u8-grapheme-next'.
25113         * modules/unigbrk/u8-grapheme-next: New file.
25114         * modules/unigbrk/u8-grapheme-next-tests: New file.
25115         * lib/unigbrk.in.h: Add prototype for new function.
25116         * lib/unigbrk/u8-grapheme-next.c: New file.
25117         * tests/unigbrk/test-u8-grapheme-next.c: New file.
25118
25119         New module 'u16-grapheme-next'.
25120         * modules/unigbrk/u16-grapheme-next: New file.
25121         * modules/unigbrk/u16-grapheme-next-tests: New file.
25122         * lib/unigbrk.in.h: Add prototype for new function.
25123         * lib/unigbrk/u16-grapheme-next.c: New file.
25124         * tests/unigbrk/test-u16-grapheme-next.c: New file.
25125
25126         New module 'u32-grapheme-next'.
25127         * modules/unigbrk/u32-grapheme-next: New file.
25128         * modules/unigbrk/u32-grapheme-next-tests: New file.
25129         * lib/unigbrk.in.h: Add prototype for new function.
25130         * lib/unigbrk/u32-grapheme-next.c: New file.
25131         * tests/unigbrk/test-u32-grapheme-next.c: New file.
25132
25133         New module 'u8-grapheme-prev'.
25134         * modules/unigbrk/u8-grapheme-prev: New file.
25135         * modules/unigbrk/u8-grapheme-prev-tests: New file.
25136         * lib/unigbrk.in.h: Add prototype for new function.
25137         * lib/unigbrk/u8-grapheme-prev.c: New file.
25138         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
25139
25140         New module 'u16-grapheme-prev'.
25141         * modules/unigbrk/u16-grapheme-prev: New file.
25142         * modules/unigbrk/u16-grapheme-prev-tests: New file.
25143         * lib/unigbrk.in.h: Add prototype for new function.
25144         * lib/unigbrk/u16-grapheme-prev.c: New file.
25145         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
25146
25147         New module 'u32-grapheme-prev'.
25148         * modules/unigbrk/u32-grapheme-prev: New file.
25149         * modules/unigbrk/u32-grapheme-prev-tests: New file.
25150         * lib/unigbrk.in.h: Add prototype for new function.
25151         * lib/unigbrk/u32-grapheme-prev.c: New file.
25152         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
25153
25154         New module 'u8-grapheme-breaks'.
25155         * modules/unigbrk/u8-grapheme-breaks: New file.
25156         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
25157         * lib/unigbrk.in.h: Add prototype for new function.
25158         * lib/unigbrk/u8-grapheme-breaks.c: New file.
25159         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
25160
25161         New module 'u16-grapheme-breaks'.
25162         * modules/unigbrk/u16-grapheme-breaks: New file.
25163         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
25164         * lib/unigbrk.in.h: Add prototype for new function.
25165         * lib/unigbrk/u16-grapheme-breaks.c: New file.
25166         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
25167
25168         New module 'u32-grapheme-breaks'.
25169         * modules/unigbrk/u32-grapheme-breaks: New file.
25170         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
25171         * lib/unigbrk.in.h: Add prototype for new function.
25172         * lib/unigbrk/u32-grapheme-breaks.c: New file.
25173         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
25174
25175         New module 'ulc-grapheme-breaks'.
25176         * modules/unigbrk/ulc-grapheme-breaks: New file.
25177         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
25178         * m4/locale-ar.m4: New file.
25179         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
25180         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
25181         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
25182
25183 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
25184
25185         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
25186         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
25187         modified how this file was generated before I initially submitted
25188         the module, but failed to regenerate it.  This meant that several
25189         of the level2 entries were wrong.
25190         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
25191         Remove the division-by-2 that is folded into the table now that
25192         gbrkprop.h has been regenerated properly.  Now -1 entries are
25193         handled correctly.
25194
25195         New module 'unigbrk/uc-gbrk-prop-tests'.
25196         * modules/unigbrk/uc-gbrk-prop-tests: New file.
25197         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
25198         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
25199         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
25200
25201 2011-01-01  Bruno Haible  <bruno@clisp.org>
25202
25203         Avoid use of hexadecimal escapes.
25204         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
25205         instead of hexadecimal escapes.
25206
25207 2011-01-01  Jim Meyering  <meyering@redhat.com>
25208
25209         maint: new rule to update copyright year ranges
25210         * Makefile (update-copyright): New rule.
25211
25212         maint: indent with TABs in Makefile
25213         * Makefile: Expand leading sequences of spaces to TABs
25214
25215         version-etc: update the copyright year it reports
25216         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
25217
25218 2010-12-31  Bruno Haible  <bruno@clisp.org>
25219
25220         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
25221         * lib/isfinite.c (zerof, zerod, zerol): New variables.
25222         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
25223         zero.
25224
25225 2010-12-31  Bruno Haible  <bruno@clisp.org>
25226
25227         pwrite: Work around HP-UX 11.11 bug.
25228         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
25229         works and set REPLACE_PWRITE if not.
25230         * lib/pwrite.c (pwrite): Add an implementation that uses the system
25231         function.
25232         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
25233
25234 2010-12-31  Bruno Haible  <bruno@clisp.org>
25235
25236         pread: Work around HP-UX 11 bugs.
25237         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
25238         and set REPLACE_PREAD if not.
25239         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
25240
25241 2010-12-31  Eric Blake  <eblake@redhat.com>
25242
25243         nl_langinfo: fix YESEXPR on Irix 6.5
25244         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
25245         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
25246         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
25247         it.
25248
25249 2010-12-31  Bruno Haible  <bruno@clisp.org>
25250
25251         iconv: Document HP-UX 11 bug.
25252         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
25253
25254 2010-12-31  Bruno Haible  <bruno@clisp.org>
25255
25256         ldexpl: Fix link error on HP-UX 11.
25257         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
25258         LDEXPL_LIBM, using $ISNANL_LIBM.
25259
25260 2010-12-31  Eric Blake  <eblake@redhat.com>
25261
25262         ftello: avoid compilation failure with SunStudio c89
25263         * lib/ftello.c (ftello): Use lseek, not llseek.
25264
25265         tests: avoid failing coreutils tests on cygwin
25266         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
25267         (create_exe_shims_): Return 0 when skipping.
25268
25269 2010-12-31  Bruno Haible  <bruno@clisp.org>
25270
25271         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
25272         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
25273
25274 2010-12-31  Bruno Haible  <bruno@clisp.org>
25275
25276         waitpid: Fix link error in C++ mode.
25277         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
25278
25279 2010-12-31  Bruno Haible  <bruno@clisp.org>
25280
25281         isnan: Use GCC built-ins when possible.
25282         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
25283         __builtin_isnan.
25284         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
25285         (isnan): Define using GCC built-ins for GCC >= 4.0.
25286
25287 2010-12-31  Bruno Haible  <bruno@clisp.org>
25288
25289         isnand: Fix mistake.
25290         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
25291         __builtin_isnand.
25292
25293 2010-12-31  Bruno Haible  <bruno@clisp.org>
25294
25295         open: Avoid C++ error on HP-UX 11.
25296         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
25297
25298 2010-12-31  Bruno Haible  <bruno@clisp.org>
25299
25300         time_r: Add missing declarations on HP-UX 11.
25301         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
25302         instead of HAVE_LOCALTIME_R.
25303         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
25304         HAVE_LOCALTIME_R always.
25305         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
25306         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
25307         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
25308         HAVE_LOCALTIME_R.
25309         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
25310         * doc/posix-functions/localtime_r.texi: Likewise.
25311
25312 2010-12-29  Eric Blake  <eblake@redhat.com>
25313
25314         mountlist: tweak previous commit
25315         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
25316         Reported by Paul Eggert.
25317
25318         mountlist: fix local drive detection on cygwin
25319         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
25320         that works for cygwin.
25321
25322 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
25323
25324         ftoastr, snprintf: ftoastr + snprintf module
25325         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
25326         since the snprintf module now should be good enough here.
25327         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
25328         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
25329         and gl_MODULE_INDICATOR([snprintf]), but the former enables
25330         GNULIB_SNPRINTF only for the test directory, and the latter
25331         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
25332         seems to suffice by itself.
25333
25334 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
25335
25336         alloca: one step towards thread-safety
25337         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
25338         need for a static variable.  All callers changed.  This does not
25339         make the alloca replacement thread-safe, but it's one step.
25340
25341         tests: minor indenting change
25342         * tests/init.sh: Sync from coreutils housekeeping patch
25343         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
25344         to keep lines within 80 columns.
25345
25346 2010-12-28  Jim Meyering  <meyering@redhat.com>
25347
25348         regex: don't infloop on persistent failing calloc
25349         * lib/regexec.c (build_trtable): Return failure indication upon
25350         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
25351         In glibc, this was fixed for version 2.13:
25352         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
25353
25354 2010-12-28  Bruno Haible  <bruno@clisp.org>
25355             Paul Eggert <eggert@cs.ucla.edu>
25356
25357         linkat: Make implementation robust against system behaviour variations.
25358         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
25359         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
25360         way, and to -2 if it needs a generic runtime test.
25361         * lib/linkat.c (solaris_optimized_link_immediate,
25362         solaris_optimized_link_follow): New functions.
25363         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
25364         (check_same_link): Use it.
25365
25366 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
25367
25368         New module 'unigbrk/base'.
25369         * modules/unigbrk/base: New file.
25370         * lib/unigbrk.in.h: New file.
25371
25372         New module 'unigbrk/uc-gbrk-prop'.
25373         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
25374         * modules/unigbrk/uc-gbrk-prop: New file.
25375         * lib/unigbrk/gbrkprop.h: New file.
25376         * lib/unigbrk/uc-gbrk-prop.c: New file.
25377
25378         New module 'unigbrk/uc-is-grapheme-break'.
25379         * modules/unigbrk/uc-is-grapheme-break: New file.
25380         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
25381         * lib/unigbrk/uc-is-grapheme-break.c: New file.
25382         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
25383         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
25384         * tests/unigbrk/GraphemeBreakTest.txt: New file.
25385
25386         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
25387
25388 2010-12-27  Bruno Haible  <bruno@clisp.org>
25389
25390         linkat test: Avoid failure on Solaris 11 2010-11.
25391         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
25392
25393 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
25394
25395         utimens: work around glibc rounding bug on more platforms
25396         * lib/utimens.c (fdutimens): Work around rounding bug even if
25397         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
25398         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
25399
25400 2010-12-27  Bruno Haible  <bruno@clisp.org>
25401
25402         select tests: Improve comments.
25403         * tests/test-select.c (do_select): Add comments.
25404
25405 2010-12-27  Bruno Haible  <bruno@clisp.org>
25406
25407         select tests: Safer way of handling timeout.
25408         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
25409         at every invocation.
25410
25411 2010-12-27  Bruno Haible  <bruno@clisp.org>
25412
25413         select tests: Use 'bool' where appropriate.
25414         * tests/test-select.c (connect_to_socket): Change argument type to
25415         'bool'.
25416
25417 2010-12-27  Bruno Haible  <bruno@clisp.org>
25418
25419         select tests: Use existing modules.
25420         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
25421         (configure.ac): Don't test for unistd.h.
25422         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
25423         declared in <unistd.h>.
25424
25425 2010-12-27  Bruno Haible  <bruno@clisp.org>
25426
25427         mbrtowc: Work around a Solaris 7 bug.
25428         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
25429         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
25430         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
25431         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
25432         MBRTOWC_NULL_ARG1_BUG.
25433         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
25434         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
25435         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
25436         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
25437
25438 2010-12-27  Jim Meyering  <meyering@redhat.com>
25439
25440         read-file.c: tweak syntax
25441         * lib/read-file.c (fread_file): Remove space after "*" in function
25442         definitions.
25443
25444 2010-12-27  Bruno Haible  <bruno@clisp.org>
25445
25446         times test: Avoid gcc warnings on OSF/1.
25447         * tests/test-times.c (main): Cast printf arguments from clock_t to
25448         'long int'.
25449
25450 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
25451
25452         utimens: work around glibc rounding bug on older Linux kernels
25453         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
25454         on Linux with a glibc whose utimes might not work, then work
25455         around a longstanding glibc bug involving rounding rather than
25456         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
25457         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
25458
25459 2010-12-26  Bruno Haible  <bruno@clisp.org>
25460
25461         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
25462         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
25463         _GL_CXXALIAS_SYS.
25464         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25465
25466 2010-12-26  Bruno Haible  <bruno@clisp.org>
25467
25468         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
25469         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
25470         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
25471         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
25472         looking for the declaration.
25473         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
25474         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
25475         problem.
25476         * doc/posix-functions/inet_pton.texi: Likewise.
25477
25478 2010-12-26  Bruno Haible  <bruno@clisp.org>
25479
25480         arpa_inet: Use the common idioms with C++ support.
25481         * lib/arpa_inet.in.h: Include c++defs.h.
25482         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
25483         support.
25484         * modules/arpa_inet (Depends-on): Add c++defs.
25485         (Makefile.am): Substitute the contents of c++defs.h.
25486         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
25487         * modules/arpa_inet-c++-tests: New file.
25488         * tests/test-arpa_inet-c++.cc: New file.
25489
25490 2010-12-25  Bruno Haible  <bruno@clisp.org>
25491
25492         Fix more C++ link errors on Solaris 8.
25493         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
25494         $(LIB_EACCESS).
25495         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
25496         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
25497         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
25498         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
25499         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
25500
25501 2010-12-25  Bruno Haible  <bruno@clisp.org>
25502
25503         printf-posix: Fix link error when a non-GCC compiler is used.
25504         * lib/stdio.in.h (printf): When not using GCC, override printf
25505         correctly.
25506         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25507
25508 2010-12-25  Bruno Haible  <bruno@clisp.org>
25509
25510         strerror_r-posix: Update doc.
25511         * doc/posix-functions/strerror_r.texi: Update doc about the return
25512         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
25513
25514 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
25515
25516         utimens: simplify the logic of the previous change
25517         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
25518         This should not affect whether the test succeeds or fails.
25519
25520         utimens: configure better on hosts with NFS clock skew
25521         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
25522         uses the clock of the local host.  It might use the clock of the
25523         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
25524         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
25525
25526 2010-12-25  Bruno Haible  <bruno@clisp.org>
25527
25528         ptsname test: Avoid failure on Solaris.
25529         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
25530         open a pseudo-terminal; don't use BSD-style ptys.
25531         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
25532
25533 2010-12-25  Bruno Haible  <bruno@clisp.org>
25534
25535         ptsname: Avoid ERANGE failure on some systems.
25536         * lib/ptsname.c (buffer): Increase size.
25537
25538 2010-12-25  Bruno Haible  <bruno@clisp.org>
25539
25540         rename, renameat: Avoid test failures at NFS mounted locations.
25541         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
25542         so that subsequent mkdir calls succeed.
25543
25544 2010-12-25  Bruno Haible  <bruno@clisp.org>
25545
25546         iswblank: Fix C++ link error on Solaris 8.
25547         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
25548         _GL_FUNCDECL_SYS.
25549
25550 2010-12-25  Bruno Haible  <bruno@clisp.org>
25551
25552         unistd: Fix C++ link error on Solaris 8.
25553         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
25554
25555 2010-12-25  Bruno Haible  <bruno@clisp.org>
25556
25557         readlink doc: Mention an old glibc bug.
25558         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
25559
25560 2010-12-25  Bruno Haible  <bruno@clisp.org>
25561
25562         fcntl-h: Fix for use of C++ on glibc systems.
25563         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
25564         also on glibc systems in C++ mode.
25565         Reported by Gary V. Vaughan <gary@gnu.org>.
25566
25567 2010-12-25  Bruno Haible  <bruno@clisp.org>
25568
25569         roundl-ieee: Make it work on OSF/1 5.1 with cc.
25570         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
25571
25572 2010-12-25  Bruno Haible  <bruno@clisp.org>
25573
25574         truncl-ieee: Make it work on OSF/1 5.1 with cc.
25575         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
25576         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
25577         test whether truncl works according to ISO C 99 with IEC 60559.
25578         * m4/truncl-ieee.m4: New file.
25579         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
25580         m4/signbit.m4.
25581         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
25582
25583 2010-12-25  Bruno Haible  <bruno@clisp.org>
25584
25585         ceill-ieee: Make it work on OSF/1 5.1 with cc.
25586         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
25587         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
25588         test whether ceill works according to ISO C 99 with IEC 60559.
25589         * m4/ceill-ieee.m4: New file.
25590         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
25591         m4/signbit.m4.
25592         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
25593
25594 2010-12-25  Bruno Haible  <bruno@clisp.org>
25595
25596         Ensure all prerequisites of <wchar.h> are included.
25597         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
25598         before <wchar.h>.
25599         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
25600         gl_MBRLEN_NUL_RETVAL): Likewise.
25601         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
25602         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
25603         AC_FUNC_MBRTOWC): Likewise.
25604         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
25605         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
25606         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
25607         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
25608         Likewise.
25609         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
25610         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
25611         (gl_WCHAR_H): Improve comments.
25612         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
25613
25614 2010-12-25  Bruno Haible  <bruno@clisp.org>
25615
25616         strtok_r: Fix C syntax error in autoconf macro.
25617         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
25618         characters in test program.
25619
25620 2010-12-24  Bruno Haible  <bruno@clisp.org>
25621
25622         ceil, trunc, round: Fix gcc warnings.
25623         * lib/ceil.c (MIN): Undefine before redefining.
25624         * lib/trunc.c (MIN): Likewise.
25625         * lib/round.c (MIN): Likewise.
25626         Include <math.h> first.
25627
25628 2010-12-24  Bruno Haible  <bruno@clisp.org>
25629
25630         select tests: Avoid failures on OSF/1 5.1.
25631         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
25632         failure of closing the last socket; it may fail with ECONNRESET.
25633
25634 2010-12-24  Eric Blake  <eblake@redhat.com>
25635
25636         stdint: avoid HP-UX 10.20 preprocessor bug
25637         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
25638         than #if.
25639         * tests/test-floor2.c (main): Likewise.
25640         Reported by Peter O'Gorman.
25641
25642         pipe: make obsoletion transition easier
25643         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
25644         * modules/pipe (Files): Include revived file.
25645         (Include): Drop reference, to mirror getdate's behavior.
25646
25647 2010-12-24  Bruno Haible  <bruno@clisp.org>
25648
25649         sys_socket: Hide mismatch of declarations on NonStop Kernel.
25650         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
25651         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
25652         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25653
25654 2010-12-24  Bruno Haible  <bruno@clisp.org>
25655
25656         gethostname: Ensure declaration on NonStop Kernel.
25657         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
25658         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25659
25660 2010-12-24  Bruno Haible  <bruno@clisp.org>
25661
25662         sys_select: Ensure all necessary types on NonStop Kernel.
25663         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
25664         include <sys/time.h>.
25665         * doc/posix-headers/sys_select.texi: Mention that it's missing on
25666         NonStop Kernel.
25667         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25668
25669 2010-12-24  Bruno Haible  <bruno@clisp.org>
25670
25671         sys_select: Remove unneeded include.
25672         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
25673         have <sys/select.h>.
25674
25675 2010-12-24  Bruno Haible  <bruno@clisp.org>
25676
25677         gethostname: Provide a fallback for HOST_NAME_MAX.
25678         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
25679         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
25680         instead.
25681         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25682
25683 2010-12-24  Bruno Haible  <bruno@clisp.org>
25684
25685         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
25686         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
25687         (SA_RESTART): Likewise.
25688         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25689
25690 2010-12-24  Bruno Haible  <bruno@clisp.org>
25691
25692         signal: Define NSIG.
25693         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
25694         * tests/test-signal.c (nsig): New variable.
25695         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25696
25697 2010-12-24  Bruno Haible  <bruno@clisp.org>
25698
25699         rename, renameat: Avoid test failures on OSF/1 5.1.
25700         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
25701         alternative error codes.
25702         * tests/test-renameat.c (main): Likewise.
25703
25704 2010-12-24  Bruno Haible  <bruno@clisp.org>
25705
25706         *printf: Detect large precisions bug on Solaris 10/SPARC.
25707         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
25708         by Paul Eggert.
25709         * tests/test-snprintf-posix.h (test_function): Add this test code here
25710         too.
25711         * tests/test-sprintf-posix.h (test_function): Likewise.
25712         * tests/test-vasnprintf-posix.c (test_function): Likewise.
25713         * tests/test-vasprintf-posix.c (test_function): Likewise.
25714         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
25715         around by gnulib.
25716         * doc/posix-functions/printf.texi: Likewise.
25717         * doc/posix-functions/snprintf.texi: Likewise.
25718         * doc/posix-functions/sprintf.texi: Likewise.
25719         * doc/posix-functions/vfprintf.texi: Likewise.
25720         * doc/posix-functions/vprintf.texi: Likewise.
25721         * doc/posix-functions/vsnprintf.texi: Likewise.
25722         * doc/posix-functions/vsprintf.texi: Likewise.
25723         * doc/posix-functions/dprintf.texi: Undo last commit.
25724         * doc/posix-functions/vdprintf.texi: Likewise.
25725
25726 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
25727
25728         tests: port test-fdutimensat.c to Solaris 8
25729         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
25730         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
25731         On Solaris 8, it fails with errno == ENOSYS, because there is no
25732         futimens (so it can't use the fd), and there is no lutimens (so it
25733         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
25734
25735         vsnprintf: make more consistent with snprintf; doc fixes
25736
25737         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
25738         the byte count return problem was promoted from the snprintf-posix
25739         to the snprintf module.
25740         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
25741         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
25742         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
25743         * tests/test-snprintf.c (main): Check the byte count returned.
25744         * tests/test-vsnprintf.c (main): Likewise.
25745
25746 2010-12-23  Eric Blake  <eblake@redhat.com>
25747
25748         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
25749         * modules/sigpipe (License): Relax license.
25750
25751 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
25752
25753         doc: document Solaris printf bug with large float precisions
25754         * doc/posix-functions/dprintf.texi (dprintf):
25755         * doc/posix-functions/fprintf.texi (fprintf):
25756         * doc/posix-functions/printf.texi (printf):
25757         * doc/posix-functions/snprintf.texi (snprintf):
25758         * doc/posix-functions/sprintf.texi (sprintf):
25759         * doc/posix-functions/vdprintf.texi (vdprintf):
25760         * doc/posix-functions/vfprintf.texi (vfprintf):
25761         * doc/posix-functions/vprintf.texi (vprintf):
25762         * doc/posix-functions/vsnprintf.texi (vsnprintf):
25763         * doc/posix-functions/vsprintf.texi (vsprintf):
25764         Mention that these functions mishandle large floating point
25765         precisions on Solaris 10.  The same bug is also present in Solaris
25766         8, and I assume earlier.  This causes "cd gnulib-tests; make
25767         check" to fail on Solaris 8 (and I assume, later) when building
25768         the latest coreutils, in test-vasprintf-posix's call to
25769         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
25770         the wide flavors (e.g., wprintf) so this patch just updates the
25771         documentation for the narrow ones.
25772
25773         test-posixtm.c: add two tests
25774         * tests/test-posixtm.c: Add two tests, to highlight the
25775         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
25776         around this bug; this is merely to document it.
25777
25778 2010-12-22  Bruno Haible  <bruno@clisp.org>
25779
25780         getlogin_r: Work around portability problem on OSF/1.
25781         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
25782         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
25783         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
25784         test for a truncated result.
25785         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
25786         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
25787         * modules/getlogin_r (Depends-on): Add memchr.
25788         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
25789
25790 2010-12-22  Bruno Haible  <bruno@clisp.org>
25791
25792         ptsname: Avoid test failure on OSF/1 5.1.
25793         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
25794         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
25795         (same_slave): New function.
25796         (main): Use it to compare ptsname's result with the expected file name.
25797
25798 2010-12-22  Bruno Haible  <bruno@clisp.org>
25799
25800         Port extended stdio modules to HP NonStop Kernel.
25801         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
25802         macros.
25803         * lib/fbufmode.c: Update comments.
25804         * lib/fflush.c: Likewise.
25805         * lib/fpurge.c: Likewise.
25806         * lib/freadable.c: Likewise.
25807         * lib/freadahead.c: Likewise.
25808         * lib/freading.c: Likewise.
25809         * lib/freadptr.c: Likewise.
25810         * lib/freadseek.c: Likewise.
25811         * lib/fseeko.c: Likewise.
25812         * lib/fseterr.c: Likewise.
25813         * lib/fwritable.c: Likewise.
25814         * lib/fwriting.c: Likewise.
25815         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25816
25817 2010-12-22  Bruno Haible  <bruno@clisp.org>
25818
25819         ttyname_r: Work around bug on OSF/1 5.1.
25820         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
25821         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
25822         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
25823         present.
25824         * lib/ttyname_r.c (ttyname_r): Update comments.
25825
25826 2010-12-22  Bruno Haible  <bruno@clisp.org>
25827
25828         round: Implement result sign according to IEEE 754.
25829         * lib/round.c (MIN, MINUS_ZERO): New macros.
25830         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
25831         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
25832         * tests/test-round-ieee.c (main): Likewise.
25833         * tests/test-roundl-ieee.c (main): Likewise.
25834
25835         trunc: Implement result sign according to IEEE 754.
25836         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
25837         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
25838         * tests/test-trunc2.c: Include minus-zero.h.
25839         (MINUS_ZERO): New macro.
25840         (trunc_reference): Keep in sync with lib/trunc.c.
25841         * tests/test-truncf2.c: Include minus-zero.h.
25842         (MINUS_ZERO): New macro.
25843         (truncf_reference): Keep in sync with lib/trunc.c.
25844         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
25845         * tests/test-trunc-ieee.c (main): Likewise.
25846         * tests/test-truncl-ieee.c (main): Likewise.
25847
25848         ceil: Implement result sign according to IEEE 754.
25849         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
25850         (FUNC): Return -0.0 for -1 < x < 0.
25851         * tests/test-ceil2.c: Include minus-zero.h.
25852         (MINUS_ZERO): New macro.
25853         (ceil_reference): Keep in sync with lib/ceil.c.
25854         * tests/test-ceilf2.c: Include minus-zero.h.
25855         (MINUS_ZERO): New macro.
25856         (ceilf_reference): Keep in sync with lib/ceil.c.
25857         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
25858         * tests/test-ceil-ieee.c (main): Likewise.
25859         * tests/test-ceill-ieee.c (main): Likewise.
25860
25861         floor: Implement result sign according to IEEE 754.
25862         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
25863         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
25864         * tests/test-floorf2.c (floorf_reference): Likewise.
25865         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
25866         * tests/test-floor-ieee.c (main): Likewise.
25867         * tests/test-floorl-ieee.c (main): Likewise.
25868
25869 2010-12-22  Bruno Haible  <bruno@clisp.org>
25870
25871         getaddrinfo: Update doc.
25872         * doc/posix-functions/gai_strerror.texi: Return type is also different
25873         on AIX and HP-UX.
25874
25875 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
25876
25877         getaddrinfo, inet_ntop: Update doc for Solaris.
25878         * doc/posix-functions/gai_strerror.texi: Return type is also an
25879         issue on Solaris 9 and earlier.
25880         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
25881         on Solaris 10 and earlier.
25882
25883 2010-12-21  Bruno Haible  <bruno@clisp.org>
25884
25885         New module 'roundl-ieee'.
25886         * modules/roundl-ieee: New file.
25887         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
25888         test whether roundl works according to ISO C 99 with IEC 60559.
25889         * m4/roundl-ieee.m4: New file.
25890         * modules/roundl-ieee-tests: New file.
25891         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
25892         * tests/test-roundl.c (main): Remove signbit tests.
25893         * modules/roundl-tests (Depends-on): Remove signbit.
25894         * doc/posix-functions/roundl.texi: Mention the new module.
25895
25896 2010-12-21  Bruno Haible  <bruno@clisp.org>
25897
25898         New module 'truncl-ieee'.
25899         * modules/truncl-ieee: New file.
25900         * modules/truncl-ieee-tests: New file.
25901         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
25902         * tests/test-truncl.c (main): Remove signbit tests.
25903         * modules/truncl-tests (Depends-on): Remove signbit.
25904         * doc/posix-functions/truncl.texi: Mention the new module.
25905
25906 2010-12-21  Bruno Haible  <bruno@clisp.org>
25907
25908         New module 'ceill-ieee'.
25909         * modules/ceill-ieee: New file.
25910         * modules/ceill-ieee-tests: New file.
25911         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
25912         * tests/test-ceill.c (main): Remove signbit tests.
25913         * modules/ceill-tests (Depends-on): Remove signbit.
25914         * doc/posix-functions/ceill.texi: Mention the new module.
25915
25916 2010-12-21  Bruno Haible  <bruno@clisp.org>
25917
25918         New module 'floorl-ieee'.
25919         * modules/floorl-ieee: New file.
25920         * modules/floorl-ieee-tests: New file.
25921         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
25922         * tests/test-floorl.c (main): Remove signbit tests.
25923         * modules/floorl-tests (Depends-on): Remove signbit.
25924         * doc/posix-functions/floorl.texi: Mention the new module.
25925
25926 2010-12-21  Bruno Haible  <bruno@clisp.org>
25927
25928         New module 'round-ieee'.
25929         * modules/round-ieee: New file.
25930         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
25931         whether round works according to ISO C 99 with IEC 60559.
25932         * m4/round-ieee.m4: New file.
25933         * modules/round-ieee-tests: New file.
25934         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
25935         * tests/test-round1.c (main): Remove signbit tests.
25936         * modules/round-tests (Depends-on): Remove 'signbit'.
25937         * doc/posix-functions/round.texi: Mention the new module.
25938
25939 2010-12-21  Bruno Haible  <bruno@clisp.org>
25940
25941         New module 'trunc-ieee'.
25942         * modules/trunc-ieee: New file.
25943         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
25944         whether trunc works according to ISO C 99 with IEC 60559.
25945         * m4/trunc-ieee.m4: New file.
25946         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
25947         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
25948         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
25949         * modules/trunc-ieee-tests: New file.
25950         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
25951         * tests/test-trunc1.c (main): Remove signbit tests.
25952         * modules/trunc-tests (Depends-on): Remove 'signbit'.
25953         * doc/posix-functions/trunc.texi: Mention the new module.
25954
25955 2010-12-21  Bruno Haible  <bruno@clisp.org>
25956
25957         New module 'ceil-ieee'.
25958         * modules/ceil-ieee: New file.
25959         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
25960         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
25961         ISO C 99 with IEC 60559.
25962         * m4/ceil-ieee.m4: New file.
25963         * modules/ceil (Files): Add lib/ceil.c.
25964         (Depends-on): Add 'float'.
25965         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
25966         * lib/math.in.h (ceil): New declaration.
25967         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
25968         REPLACE_CEIL.
25969         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
25970         * modules/ceil-ieee-tests: New file.
25971         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
25972         * tests/test-math-c++.cc: Check the signature of 'ceil'.
25973         * doc/posix-functions/ceil.texi: Mention the new module.
25974
25975 2010-12-21  Bruno Haible  <bruno@clisp.org>
25976
25977         New module 'floor-ieee'.
25978         * modules/floor-ieee: New file.
25979         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
25980         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
25981         ISO C 99 with IEC 60559.
25982         * m4/floor-ieee.m4: New file.
25983         * modules/floor (Files): Add lib/floor.c.
25984         (Depends-on): Add 'float'.
25985         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
25986         * lib/math.in.h (floor): New declaration.
25987         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
25988         REPLACE_FLOOR.
25989         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
25990         * modules/floor-ieee-tests: New file.
25991         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
25992         * tests/test-math-c++.cc: Check the signature of 'floor'.
25993         * doc/posix-functions/floor.texi: Mention the new module.
25994
25995 2010-12-21  Bruno Haible  <bruno@clisp.org>
25996
25997         New module 'roundf-ieee'.
25998         * modules/roundf-ieee: New file.
25999         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
26000         test whether roundf works according to ISO C 99 with IEC 60559.
26001         * m4/roundf-ieee.m4: New file.
26002         * modules/roundf-ieee-tests: New file.
26003         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
26004         * tests/test-roundf1.c (main): Remove signbit tests.
26005         * modules/roundf-tests (Depends-on): Remove 'signbit'.
26006         * doc/posix-functions/roundf.texi: Mention the new module.
26007
26008 2010-12-21  Bruno Haible  <bruno@clisp.org>
26009
26010         New module 'truncf-ieee'.
26011         * modules/truncf-ieee: New file.
26012         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
26013         test whether truncf works according to ISO C 99 with IEC 60559.
26014         * m4/truncf-ieee.m4: New file.
26015         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
26016         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
26017         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
26018         * modules/truncf-ieee-tests: New file.
26019         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
26020         * tests/test-truncf1.c (main): Remove signbit tests.
26021         * modules/truncf-tests (Depends-on): Remove 'signbit'.
26022         * doc/posix-functions/truncf.texi: Mention the new module.
26023
26024 2010-12-21  Bruno Haible  <bruno@clisp.org>
26025
26026         New module 'ceilf-ieee'.
26027         * modules/ceilf-ieee: New file.
26028         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
26029         test whether ceilf works according to ISO C 99 with IEC 60559.
26030         * m4/ceilf-ieee.m4: New file.
26031         * modules/ceilf-ieee-tests: New file.
26032         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
26033         * tests/test-ceilf1.c (main): Remove signbit tests.
26034         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
26035         * doc/posix-functions/ceilf.texi: Mention the new module.
26036
26037 2010-12-21  Bruno Haible  <bruno@clisp.org>
26038
26039         New module 'floorf-ieee'.
26040         * modules/floorf-ieee: New file.
26041         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
26042         test whether floorf works according to ISO C 99 with IEC 60559.
26043         * m4/floorf-ieee.m4: New file.
26044         * modules/floorf-ieee-tests: New file.
26045         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
26046         * tests/test-floorf1.c (main): Remove signbit tests.
26047         * modules/floorf-tests (Depends-on): Remove 'signbit'.
26048         * doc/posix-functions/floorf.texi: Mention the new module.
26049
26050 2010-12-21  Bruno Haible  <bruno@clisp.org>
26051
26052         Support for minus zero in autoconf macros.
26053         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
26054         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
26055         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
26056         * tests/minus-zero.h: Update comments.
26057
26058 2010-12-21  Bruno Haible  <bruno@clisp.org>
26059
26060         Tests for module 'ceil'.
26061         * modules/ceil-tests: New file.
26062         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
26063         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
26064
26065 2010-12-21  Bruno Haible  <bruno@clisp.org>
26066
26067         Tests for module 'floor'.
26068         * modules/floor-tests: New file.
26069         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
26070         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
26071
26072 2010-12-21  Bruno Haible  <bruno@clisp.org>
26073
26074         math: Fix indentation.
26075         * lib/math.in.h (floorf): Fix indentation.
26076
26077 2010-12-21  Bruno Haible  <bruno@clisp.org>
26078
26079         Fix cross-compilation guesses on Solaris.
26080         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
26081         not match "solaris2.10".
26082         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
26083         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
26084         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
26085
26086 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
26087
26088         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
26089         This fixes a problem observed with the latest coreutils snapshot
26090         that caused a test to fail on Solaris 8.  src/csplit.c's call
26091         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
26092         earlier, instead of returning the number of bytes that would have
26093         been generated; this causes csplit to incorrectly report memory
26094         exhaustion.
26095         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
26096         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
26097         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
26098         comments to match.
26099         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
26100         Fix typo in matching older versions of Solaris: "solaris2.10"
26101         is matched by the shell pattern "solaris2.[0-9]*".  This matters
26102         only for guessing while cross-compiling.
26103         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
26104
26105 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
26106
26107         ftoastr: fix comment again
26108         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
26109         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
26110         Also, simplify example a bit by using flags = 0.
26111
26112 2010-12-20  Bruno Haible  <bruno@clisp.org>
26113
26114         round*, trunc*: Update documentation regarding glibc.
26115         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
26116         * doc/posix-functions/round.texi: Likewise.
26117         * doc/posix-functions/roundl.texi: Likewise.
26118         * doc/posix-functions/truncf.texi: Likewise.
26119         * doc/posix-functions/trunc.texi: Likewise.
26120         * doc/posix-functions/truncl.texi: Likewise.
26121
26122 2010-12-20  Bruno Haible  <bruno@clisp.org>
26123
26124         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
26125         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
26126         * doc/posix-functions/round.texi: Likewise.
26127         * doc/posix-functions/roundl.texi: Likewise.
26128
26129 2010-12-20  Bruno Haible  <bruno@clisp.org>
26130
26131         ttyname_r: Add missing declaration on HP-UX 11.
26132         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
26133         HAVE_TTYNAME_R.
26134         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
26135         declared. Set HAVE_TTYNAME_R always.
26136         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26137         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
26138         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
26139         HAVE_TTYNAME_R.
26140         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
26141
26142 2010-12-20  Bruno Haible  <bruno@clisp.org>
26143
26144         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
26145         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
26146         * doc/posix-functions/getlogin_r.texi: Likewise.
26147         * tests/test-getlogin.c: Include <errno.h>.
26148         (main): Avoid test failure on HP-UX 11.11.
26149         * tests/test-getlogin_r.c (main): Likewise.
26150
26151 2010-12-20  Bruno Haible  <bruno@clisp.org>
26152
26153         getlogin_r: Add missing declaration on HP-UX 11.
26154         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
26155         declared also when it exists as a function.
26156         * doc/posix-functions/getlogin_r.texi: Document this workaround.
26157
26158 2010-12-20  Bruno Haible  <bruno@clisp.org>
26159
26160         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
26161         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
26162         through wcrtomb.
26163
26164 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
26165
26166         ftoastr: fix comment
26167         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
26168         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
26169
26170 2010-12-19  Bruno Haible  <bruno@clisp.org>
26171
26172         isnan: Ensure it is a macro.
26173         * lib/math.in.h (isnan): Define as a macro if not already a macro.
26174         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
26175         Solaris.
26176
26177 2010-12-19  Bruno Haible  <bruno@clisp.org>
26178
26179         ldexpl test: Fix link error on OSF/1 5.1.
26180         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
26181
26182 2010-12-19  Bruno Haible  <bruno@clisp.org>
26183
26184         wctype: Make it work in C++ mode on OSF/1 5.1.
26185         * lib/wctype.in.h (iswblank): Declare but not define here.
26186         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
26187         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
26188         * modules/wctype (Files): Add lib/iswblank.c.
26189
26190 2010-12-19  Bruno Haible  <bruno@clisp.org>
26191
26192         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
26193         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
26194         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
26195
26196 2010-12-19  Bruno Haible  <bruno@clisp.org>
26197
26198         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
26199         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
26200         _POSIX_PII_SOCKET.
26201         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
26202         * doc/posix-functions/recvfrom.texi: Likewise.
26203         * doc/posix-functions/send.texi: Likewise.
26204         * doc/posix-functions/sendto.texi: Likewise.
26205
26206 2010-12-19  Bruno Haible  <bruno@clisp.org>
26207
26208         tcgetsid: Add missing declaration on OSF/1 5.1.
26209         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
26210         HAVE_TCGETSID.
26211         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
26212         Don't set HAVE_TCGETSID.
26213         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
26214         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
26215         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
26216         HAVE_TCGETSID.
26217         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
26218
26219 2010-12-19  Bruno Haible  <bruno@clisp.org>
26220
26221         stdio: Fix problem with popen() declaration on OSF/1 5.1.
26222         * lib/stdio.in.h: During the include_next statement, let recursive
26223         includes of this file include only the system header file.
26224
26225 2010-12-19  Bruno Haible  <bruno@clisp.org>
26226
26227         iconv_open: Fix regression from 2010-12-04.
26228         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
26229         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
26230
26231 2010-12-19  Bruno Haible  <bruno@clisp.org>
26232
26233         stdbool test: Avoid a gcc warning.
26234         * tests/test-stdbool.c (main): Fail if e1 is false.
26235         Reported by Jim Meyering.
26236
26237 2010-12-19  Jim Meyering  <meyering@redhat.com>
26238
26239         setenv: restore to working order
26240         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
26241         mistakenly removed.
26242         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
26243         HAVE_SETENV.
26244         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
26245         HAVE_SETENV.
26246
26247 2010-12-19  Bruno Haible  <bruno@clisp.org>
26248
26249         Document some different function declarations on OSF/1 5.1.
26250         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
26251         * doc/posix-functions/inet_ntop.texi: Likewise.
26252         * doc/posix-functions/gethostname.texi: Likewise.
26253         * lib/unistd.in.h (gethostname): Update comment.
26254
26255 2010-12-19  Bruno Haible  <bruno@clisp.org>
26256
26257         doc: Mention vasprintf-posix module.
26258         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
26259         the 'vasprintf-posix' module.
26260         * doc/glibc-functions/vasprintf.texi: Likewise.
26261
26262 2010-12-19  Bruno Haible  <bruno@clisp.org>
26263
26264         unsetenv: Add missing declaration on OSF/1 5.1.
26265         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
26266         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
26267         Don't set HAVE_UNSETENV. In the test program, set _BSD.
26268         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
26269         not HAVE_UNSETENV.
26270         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
26271         HAVE_UNSETENV.
26272         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
26273
26274 2010-12-19  Bruno Haible  <bruno@clisp.org>
26275
26276         setenv: Add missing declaration on OSF/1 5.1.
26277         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
26278         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
26279         declared. Don't set HAVE_SETENV.
26280         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
26281         not HAVE_SETENV.
26282         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
26283         HAVE_SETENV.
26284         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
26285
26286 2010-12-19  Bruno Haible  <bruno@clisp.org>
26287
26288         nl_langinfo tests: Avoid gcc warning.
26289         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
26290
26291 2010-12-19  Bruno Haible  <bruno@clisp.org>
26292
26293         mknod: Avoid error in C++ mode on OSF/1 with GCC.
26294         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
26295         _GL_CXXALIAS_SYS.
26296
26297 2010-12-19  Bruno Haible  <bruno@clisp.org>
26298
26299         stdbool: Relax test.
26300         * tests/test-stdbool.c (e): Don't require that casts from a variable's
26301         address to 'bool' work in static initializer, for compilers other than
26302         GCC.
26303
26304 2010-12-19  Bruno Haible  <bruno@clisp.org>
26305
26306         ftello: Add missing declaration on OSF/1 5.1.
26307         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
26308         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
26309         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
26310         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
26311         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
26312
26313 2010-12-19  Bruno Haible  <bruno@clisp.org>
26314
26315         fseeko: Add missing declaration on OSF/1 5.1.
26316         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
26317         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
26318         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
26319         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
26320         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
26321
26322 2010-12-19  Bruno Haible  <bruno@clisp.org>
26323
26324         fchdir: Add missing declaration on OSF/1 5.1.
26325         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
26326         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
26327         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
26328         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
26329         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
26330
26331 2010-12-19  Bruno Haible  <bruno@clisp.org>
26332
26333         relocatable-prog-wrapper: Separate from relocatable-prog.
26334         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
26335         uninstall-relocwrapper rule here.
26336         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
26337         Reported by Ian Beckwith <ianb@erislabs.net>.
26338
26339 2010-12-19  Bruno Haible  <bruno@clisp.org>
26340
26341         unistr/u8-mbsnlen: Add missing dependency.
26342         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
26343         Reported by Ian Beckwith <ianb@erislabs.net>.
26344
26345 2010-12-19  Bruno Haible  <bruno@clisp.org>
26346
26347         iconv: Make it possible again to use this module without 'iconv-h'.
26348         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
26349         if it is not defined.
26350         Reported by Ian Beckwith <ianb@erislabs.net>.
26351
26352 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
26353
26354         acl: port to Solaris 8 when copying from tmpfs to ufs
26355         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
26356         error number.  Problem observed on Solaris 8 with latest
26357         coreutils, with "mv A B", where A is on a tmpfs file system and B
26358         is on a ufs file system.  This caused coreutils' mv/part-symlink
26359         test to fail.
26360
26361         tests: set fail=0 at start
26362         * tests/init.sh (setup_): Move fail=0 initialization here ...
26363         (mktempd_): ... from here, so that tests can rely on fail being
26364         set to 0 initially.  This fixes a problem in coreutils; see:
26365         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
26366
26367 2010-12-18  Bruno Haible  <bruno@clisp.org>
26368
26369         memmem-simple: Stylistic changes.
26370         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
26371         Fix preprocessor directive indentation.
26372
26373 2010-12-15  Pádraig Brady <P@draigBrady.com>
26374
26375         memmem, memmem-simple: reorganize and expand empty needle check
26376         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
26377         functional checks to memmem-simple so that one has a fully functional
26378         memmem by using just this module.
26379         Restrict the performance only check to the memmem module.
26380         Also expand the empty needle check to ensure the correct
26381         pointer is returned, not just a non NULL pointer.
26382         * doc/glibc-functions/memmem.texi: Rearrange the portability
26383         documentation to correlate with the rearranged checks.
26384         Clarify exactly how the memmem and memmem-simple modules
26385         relate to each other.
26386
26387 2010-12-15  Pádraig Brady <P@draigBrady.com>
26388             Bruno Haible  <bruno@clisp.org>
26389
26390         Improve cross-compilation guesses for uClibc.
26391         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
26392         that uClibc does not have the glibc bug.
26393         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
26394         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
26395
26396 2010-12-14  Eric Blake  <eblake@redhat.com>
26397
26398         configmake: provide fallbacks for oldest supported autotools
26399         * m4/configmake.m4: New file.
26400         * modules/configmake (Files): Ship it.
26401         (configure.ac): Use it to guarantee fallbacks.
26402
26403 2010-12-13  Pádraig Brady <P@draigBrady.com>
26404
26405         read-file: Improve handling of large files
26406         * lib/read-file.c (fread_file): Minimize realloc()s
26407         for regular files, and better manage sizes around SIZE_MAX.
26408
26409 2010-12-13  Eric Blake  <eblake@redhat.com>
26410
26411         cloexec, fcntl: relax license
26412         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
26413         consent from all contributors.
26414         * modules/fcntl (License): Likewise.
26415
26416 2010-12-10  Bruno Haible  <bruno@clisp.org>
26417
26418         Tests for module 'pipe-posix'.
26419         * modules/pipe-posix-tests: New file.
26420         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
26421
26422 2010-12-10  Bruno Haible  <bruno@clisp.org>
26423
26424         pipe-posix: Make it work in C++ mode.
26425         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
26426         (pipe): Use common idiom, not a macro definition.
26427         * lib/pipe.c: New file.
26428         * m4/pipe.m4: New file.
26429         * modules/pipe-posix (Description): Enhance.
26430         (Files): Add lib/pipe.c, m4/pipe.m4.
26431         (configure.ac): Invoke gl_FUNC_PIPE.
26432         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
26433         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
26434         * tests/test-unistd-c++.cc: Check the signature of pipe.
26435
26436 2010-12-10  Bruno Haible  <bruno@clisp.org>
26437
26438         Rename module 'pipe' to 'spawn-pipe'.
26439         * modules/spawn-pipe: New file, renamed from modules/pipe.
26440         (Files, configure.ac, Makefile.am): Update.
26441         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
26442         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
26443         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
26444         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
26445         "spawn-pipe.h" instead of "pipe.h".
26446         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
26447         to gl_SPAWN_PIPE.
26448         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
26449         (Files, Makefile.am): Update.
26450         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
26451         Update.
26452         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
26453         Include "spawn-pipe.h" instead of "pipe.h".
26454         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
26455         * lib/javacomp.c: Likewise.
26456         * lib/javaversion.c: Likewise.
26457         * lib/pipe-filter-gi.c: Likewise.
26458         * lib/pipe-filter-ii.c: Likewise.
26459         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
26460         * modules/javacomp (Depends-on): Likewise.
26461         * modules/javaversion (Depends-on): Likewise.
26462         * modules/pipe-filter-gi (Depends-on): Likewise.
26463         * modules/pipe-filter-ii (Depends-on): Likewise.
26464         * MODULES.html.sh (Executing programs): Update.
26465         * NEWS: Mention the change.
26466
26467 2010-12-10  Eric Blake  <eblake@redhat.com>
26468
26469         pipe-posix: new module
26470         * modules/pipe-posix: New file.
26471         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
26472         (gl_UNISTD_H): Check for declaration.
26473         * modules/unistd (Makefile.am): Substitute it.
26474         * lib/unistd.in.h (pipe): Provide it for mingw.
26475         * doc/posix-functions/pipe.texi (pipe): Update documentation.
26476         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
26477
26478 2010-12-07  Bruno Haible  <bruno@clisp.org>
26479
26480         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
26481         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
26482         u8_strcmp_gnu.
26483         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
26484
26485 2010-12-06  Bruno Haible  <bruno@clisp.org>
26486
26487         Update internal documentation.
26488         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
26489
26490 2010-12-04  Bruno Haible  <bruno@clisp.org>
26491
26492         Put more information about failed tests into the test return codes.
26493         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
26494         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
26495         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
26496         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
26497         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
26498         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
26499         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
26500         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
26501         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
26502         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
26503         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
26504         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
26505         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
26506         * m4/stdint.m4 (gl_STDINT_H): Likewise.
26507         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
26508         returns a bit mask.
26509         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
26510         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
26511         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
26512         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
26513         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
26514         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
26515         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
26516         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
26517         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
26518         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
26519         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
26520         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
26521         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
26522         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
26523         * m4/link.m4 (gl_FUNC_LINK): Likewise.
26524         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
26525         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
26526         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
26527         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
26528         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
26529         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
26530         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
26531         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
26532         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
26533         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
26534         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
26535         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
26536         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
26537         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
26538         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
26539         gl_PRINTF_PRECISION): Likewise.
26540         * m4/regex.m4 (gl_REGEX): Likewise.
26541         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
26542         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
26543         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
26544         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
26545         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
26546         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
26547         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
26548         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
26549         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
26550         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
26551         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
26552         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
26553         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
26554         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
26555         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
26556         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
26557         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
26558         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
26559         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
26560         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
26561         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
26562         enumerated value.
26563         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
26564
26565 2010-12-04  Bruno Haible  <bruno@clisp.org>
26566
26567         Update for Solaris 11 2010-11.
26568         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
26569         Express, released in November 2010.
26570
26571 2010-12-04  Bruno Haible  <bruno@clisp.org>
26572
26573         nproc: Relax license.
26574         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
26575         and Paul Eggert.
26576         Requested by Ludovic Courtès <ludo@gnu.org>.
26577
26578 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
26579
26580         utimecmp: fine-grained src to nearby coarse-grained dest
26581
26582         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
26583         and the source is on a file system with higher-resolution time
26584         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
26585         not work, and the time stamps are close together, the algorithm to
26586         determine the exact resolution from the read-back mtime was buggy:
26587         it had a "!=" where it should have had an "==".  This bug has been
26588         in the code ever since it was introduced to gnulib.
26589         Problem reported by Dan Jacobson in
26590         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
26591
26592 2010-11-30  Bruno Haible  <bruno@clisp.org>
26593
26594         strerror_r-posix: Fix autoconf test.
26595         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
26596
26597 2010-11-28  Bruno Haible  <bruno@clisp.org>
26598             Paul Eggert  <eggert@cs.ucla.edu>
26599
26600         Tests for module 'getdomainname'.
26601         * modules/getdomainname-tests: New file.
26602         * tests/test-getdomainname.c: New file, based on
26603         tests/test-gethostname.c.
26604
26605 2010-11-28  Bruno Haible  <bruno@clisp.org>
26606             Paul Eggert  <eggert@cs.ucla.edu>
26607
26608         getdomainname: Use the system function when possible.
26609         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
26610         (getdomainname): Replace if needed. Provide the declaration if it is
26611         missing. Don't use _GL_CXXALIAS_SYS_CAST.
26612         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
26613         (getdomainname): When the system has getdomainname, call the system
26614         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
26615         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
26616         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
26617         found in libnsl. Look for the declaration also in <netdb.h>. Replace
26618         the function if its second argument is of type 'int' or if it is found
26619         in libnsl.
26620         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
26621         <sys/systeminfo.h> and sysinfo().
26622         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
26623         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26624         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
26625         HAVE_GETDOMAINNAME.
26626         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
26627         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
26628         * doc/glibc-functions/getdomainname.texi: Document the problems with
26629         the getdomainname declaration.
26630
26631 2010-11-28  Bruno Haible  <bruno@clisp.org>
26632
26633         sys_socket: Ensure ss_family field on AIX.
26634         * lib/sys_socket.in.h (ss_family): New macro definition.
26635         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
26636         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
26637         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
26638         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
26639         * modules/sys_socket (Makefile.am): Substitute
26640         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
26641         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
26642
26643 2010-11-27  Bruno Haible  <bruno@clisp.org>
26644
26645         readline: Improve configure output.
26646         * m4/readline.m4 (gl_FUNC_READLINE): Make the
26647         "checking for readline..." result understandable.
26648
26649 2010-11-27  Bruno Haible  <bruno@clisp.org>
26650
26651         *printf-posix: Detect a bug on Solaris 10/x86.
26652         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
26653         for floating-point output.
26654         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
26655         directive.
26656         * tests/test-snprintf-posix.h (test_function): Likewise.
26657         * tests/test-sprintf-posix.h (test_function): Likewise.
26658         * tests/test-vasprintf-posix.c (test_function): Likewise.
26659         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
26660         * doc/posix-functions/printf.texi: Likewise.
26661         * doc/posix-functions/snprintf.texi: Likewise.
26662         * doc/posix-functions/sprintf.texi: Likewise.
26663         * doc/posix-functions/vfprintf.texi: Likewise.
26664         * doc/posix-functions/vprintf.texi: Likewise.
26665         * doc/posix-functions/vsnprintf.texi: Likewise.
26666         * doc/posix-functions/vsprintf.texi: Likewise.
26667         * doc/glibc-functions/obstack_printf.texi: Likewise.
26668         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
26669
26670 2010-11-27  Bruno Haible  <bruno@clisp.org>
26671
26672         Fix link error when module libunistring-optional is in use.
26673         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
26674         * modules/striconveha-tests (Makefile.am): Likewise.
26675
26676 2010-11-27  Bruno Haible  <bruno@clisp.org>
26677
26678         regex: Mention link dependencies.
26679         * modules/regex (Link): New section.
26680         * modules/rpmatch (Link): Likewise.
26681         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
26682
26683 2010-11-27  Bruno Haible  <bruno@clisp.org>
26684
26685         ftoastr: Fix compilation error on Solaris.
26686         * lib/ftoastr.c: Include <config.h>.
26687
26688 2010-11-27  Bruno Haible  <bruno@clisp.org>
26689
26690         getloadavg: Update documentation.
26691         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
26692
26693 2010-11-27  Bruno Haible  <bruno@clisp.org>
26694
26695         sys_socket: Fix test whether the functions are declared.
26696         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
26697         not <sys/select.h>.
26698
26699 2010-11-27  Bruno Haible  <bruno@clisp.org>
26700
26701         getpass: Make sure to get system declaration on some platforms.
26702         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
26703         gl_USE_SYSTEM_EXTENSIONS.
26704         * modules/getpass (Depends-on): Add extensions.
26705
26706 2010-11-26  Bruno Haible  <bruno@clisp.org>
26707
26708         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
26709         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
26710         'iconv' module is present.
26711         (ICONV_CONST): New macro.
26712         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
26713         ICONV_CONST.
26714         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
26715         set ICONV_CONST.
26716         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
26717         here.
26718         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
26719         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
26720         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
26721         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
26722         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
26723         present.
26724
26725 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
26726
26727         ftoastr: comment fix
26728         * lib/ftoastr.c: "little" -> "little or no" in comment
26729
26730 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
26731
26732         stdint: port to GCC 4.3 + OSX + Octave
26733         On this platform, stdint.h is buggy and defines int64_t to long
26734         long int.  The replacement defined it to long int, causing
26735         problems with C++ style name mangling.  Instead, trust the system
26736         definition if INT64_MAX is defined, and likewise for the unsigned
26737         variant.   Problem reported by Jarno Rajahalme in
26738         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
26739         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
26740         and don't mess with int64_t and INT64_MAX in this case.
26741         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
26742
26743 2010-11-24  Bruno Haible  <bruno@clisp.org>
26744
26745         doc: Corrections regarding MacOS X 10.4 and 10.5.
26746         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
26747         MacOS X.
26748         Reported by Simon Josefsson.
26749
26750 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
26751
26752         Uninstall ".bin" files installed by relocwrapper.
26753         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
26754         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
26755         unless it is already there.
26756
26757 2010-11-21  Bruno Haible  <bruno@clisp.org>
26758
26759         Update for NetBSD 5.0.
26760         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
26761         NetBSD; the test fails on NetBSD 5.0.
26762         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
26763         about NetBSD.
26764
26765 2010-11-21  Bruno Haible  <bruno@clisp.org>
26766
26767         Update for HP-UX 11.23 and HP-UX 11.31.
26768         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
26769         HP-UX.
26770
26771 2010-11-21  Bruno Haible  <bruno@clisp.org>
26772
26773         Update for MacOS X 10.5.
26774         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
26775         MacOS X; the test fails on MacOS X 10.5.8.
26776         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
26777         about MacOS X.
26778
26779 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
26780
26781         bootstrap: add bootstrap_sync option.
26782         See discussion at
26783         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
26784         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
26785         * build-aux/bootstrap: Accept --bootstrap-sync to update
26786         bootstrap if it is not identical to the local gnulib's
26787         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
26788         enable this by default.  Accept --no-bootstrap-sync to disable
26789         it.
26790
26791 2010-11-20  Bruno Haible  <bruno@clisp.org>
26792
26793         Ensure that <features.h> is included before __GLIBC__ is tested.
26794         * lib/printf-parse.h: Include <features.h>.
26795         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
26796         Reported by Mike Frysinger <vapier@gentoo.org>.
26797
26798         Ensure that <features.h> is included before __GLIBC__ is tested.
26799         * lib/wchar.in.h: Include <features.h>.
26800         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
26801         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
26802         Reported by Mike Frysinger <vapier@gentoo.org>.
26803
26804         Ensure that <features.h> is included before __GLIBC__ is tested.
26805         * lib/arpa_inet.in.h: Include <features.h>.
26806         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
26807         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
26808         Reported by Mike Frysinger <vapier@gentoo.org>.
26809
26810         Ensure that <features.h> is included before __GLIBC__ is tested.
26811         * build-aux/link-warning.h: Include <features.h>.
26812         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
26813         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
26814         Reported by Mike Frysinger <vapier@gentoo.org>.
26815
26816         Ensure that <features.h> is included before __GLIBC__ is tested.
26817         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
26818         Reported by Mike Frysinger <vapier@gentoo.org>.
26819
26820 2010-11-20  Bruno Haible  <bruno@clisp.org>
26821
26822         memmem: Fix autoconf test.
26823         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
26824
26825 2010-11-20  Bruno Haible  <bruno@clisp.org>
26826
26827         Port to uClibc.
26828         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
26829         * lib/fcntl.in.h: Likewise.
26830         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
26831         * lib/mbrtowc.c (mbrtowc): Likewise.
26832         * lib/relocatable.c (find_shared_library_fullname): Likewise.
26833         * lib/strerror_r.c: Likewise.
26834         * lib/unistr/u8-strnlen.c: Likewise.
26835         * lib/vasnprintf.c (decimal_point_char): Likewise.
26836         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
26837         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
26838         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
26839         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
26840         * tests/test-sigaction.c (handler, main): Likewise.
26841         * lib/freading.h: Treat uClibc like a non-glibc platform.
26842         * lib/freading.c: Likewise.
26843         * lib/gettext.h: Likewise.
26844         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
26845         Likewise.
26846         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
26847         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
26848         * lib/propername.c (proper_name_utf8): Likewise.
26849         * lib/spawn.in.h: Likewise.
26850         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
26851         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
26852         mem_cd_iconveh_internal): Likewise.
26853         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
26854         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
26855         strstr, strcasestr): Likewise.
26856         * lib/unicodeio.c (unicode_to_mb): Likewise.
26857         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
26858         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
26859         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
26860         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
26861         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
26862         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
26863         * lib/unistr/u8-stpncpy.c: Likewise.
26864         * lib/vasnprintf.c (VASNPRINTF): Likewise.
26865         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
26866         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
26867         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
26868         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
26869         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
26870         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
26871         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
26872         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
26873         Likewise.
26874         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
26875         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
26876         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
26877         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
26878         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
26879         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
26880         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
26881         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
26882         * tests/test-getopt.h (OPTIND_MIN): Likewise.
26883         * tests/test-striconveha.c (main): Likewise.
26884         * tests/test-vasnprintf-posix.c (test_function): Likewise.
26885         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
26886         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
26887         * doc/posix-functions/getline.texi: Likewise.
26888         Reported by Mike Frysinger <vapier@gentoo.org>.
26889
26890 2010-11-20  Bruno Haible  <bruno@clisp.org>
26891
26892         nproc: Fix condition.
26893         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
26894         HAVE_PTHREAD_AFFINITY_NP.
26895
26896 2010-11-20  Bruno Haible  <bruno@clisp.org>
26897
26898         Fix a comment.
26899         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
26900
26901 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
26902
26903         ftoastr: don't assume snprintf
26904         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
26905         Implement a subset of snprintf here, by using sprintf safely.
26906         * modules/ftoastr (Depends-on): Remove snprintf.
26907
26908 2010-11-19  Jim Meyering  <meyering@redhat.com>
26909
26910         test-rename.h: fix compilation failure
26911         * tests/test-rename.h (test_rename): Add omitted "}".
26912
26913 2010-11-17  Jim Meyering  <meyering@redhat.com>
26914
26915         maint.mk: add a URL discussing the no-@acronym policy
26916         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
26917
26918 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
26919
26920         ftoastr: depend on snprintf, improve comments
26921         * lib/ftoastr.c: Also mention Loitsch's draft.
26922         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
26923         needed in the current implementation, but it might simplify
26924         speeding up the code later.
26925         * modules/ftoastr: Depend on snprintf; this improves portability.
26926         Suggested by Bruno Haible in the same email.
26927
26928         ftoastr: port to hosts lacking strtof and strtold
26929         Problem reported by Bruno Haible in
26930         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
26931         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
26932         environment and strtold (and presumably strtof) are not available.
26933         * modules/ftoastr (Files): Add m4/c-strtod.m4.
26934         (configure.ac): Require gl_C99_STRTOLD.
26935
26936 2010-11-18  Bruno Haible  <bruno@clisp.org>
26937
26938         c-strtold: Avoid link error on AIX 7.
26939         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
26940         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
26941         (gl_C_STRTOLD): Test whether strtold_l exists.
26942         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
26943
26944 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
26945
26946         intprops: new macro INT_BITS_STRLEN_BOUND
26947         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
26948         ftoastr.h.  This exposes an internal of intprops.h that was formerly
26949         not exposed.  Also, it uses a slightly tighter bound than before;
26950         though this makes no practical difference, we might as well be as
26951         tight as we easily can.
26952
26953         ftoastr: new module, for lossless conversion of floats to short strings
26954         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
26955         * modules/ftoastr: New files.
26956
26957 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
26958
26959         bootstrap: port to Solaris sed
26960         * build-aux/bootstrap (get_version): Port to Solaris sed.
26961         See Ralf Wildenhues's note in
26962         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
26963
26964 2010-11-14  Jim Meyering  <meyering@redhat.com>
26965
26966         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
26967         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
26968         and move definition closer to sole use.
26969
26970 2010-11-13  Jim Meyering  <meyering@redhat.com>
26971
26972         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
26973         Now we require at least autoconf-2.59, which means the work-around
26974         is no longer needed.
26975         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
26976         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
26977         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
26978         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
26979         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
26980
26981 2010-11-13  Bruno Haible  <bruno@clisp.org>
26982
26983         rename, renameat: Avoid test failures at NFS mounted locations.
26984         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
26985         functions.
26986         (test_rename): Use assert_nonexistent.
26987         * tests/test-rename.c: Include <dirent.h>.
26988         * tests/test-renameat.c: Likewise.
26989         Reported by Gary V. Vaughan <gary@gnu.org>.
26990
26991         rename, renameat: Document Linux bug with NFS
26992         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
26993         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
26994         * doc/posix-functions/renameat.texi: Likewise.
26995         Suggested by Eric Blake.
26996
26997 2010-11-13  Bruno Haible  <bruno@clisp.org>
26998
26999         rename test: Add comments.
27000         * tests/test-rename.h (test_rename): Add structure and comments.
27001
27002 2010-11-13  Eric Blake  <eblake@redhat.com>
27003
27004         maintainer-makefile: cover a few more files
27005         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
27006         scripts generated within C files, for libvirt.
27007
27008 2010-11-13  Bruno Haible  <bruno@clisp.org>
27009
27010         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
27011         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
27012         character, return the number of bytes that belong together, not always
27013         1.
27014         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
27015         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
27016         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
27017         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
27018         number of bytes of an invalid character.
27019         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
27020         (main): Invoke it.
27021         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
27022         results.
27023         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
27024         malformed byte sequences.
27025         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
27026         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
27027         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
27028         Reported by Ben Pfaff and Paolo Bonzini.
27029
27030 2010-11-13  Bruno Haible  <bruno@clisp.org>
27031
27032         openat: Work around glibc bug with fchownat() and empty file names.
27033         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
27034         (gl_FUNC_FCHOWNAT): Invoke it.
27035         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
27036         * doc/posix-functions/fchownat.texi: Document the glibc bug.
27037         Reported by Gary V. Vaughan <gary@gnu.org>.
27038
27039 2010-11-13  Bruno Haible  <bruno@clisp.org>
27040
27041         openat: Ensure autoconf macro ordering.
27042         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
27043         gl_USE_SYSTEM_EXTENSIONS.
27044         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
27045
27046 2010-11-13  Bruno Haible  <bruno@clisp.org>
27047
27048         Update comments.
27049         * lib/unistr/u8-check.c: Update file name in comments.
27050         * lib/unistr/u8-mblen.c: Likewise.
27051         * lib/unistr/u8-prev.c: Likewise.
27052         * lib/unistr/u8-strmblen.c: Likewise.
27053         * lib/unistr/u8-strmbtouc.c: Likewise.
27054
27055 2010-11-13  Jim Meyering  <meyering@redhat.com>
27056
27057         tests: avoid test failure on Solaris 10 due to lack of PATH export
27058         * tests/test-update-copyright.sh: Don't forget to export PATH.
27059
27060         init.sh: ensure that IFS is defined, just in case...
27061         * tests/init.sh (setup_): Ensure that IFS is defined,
27062         so that saving and restoring it works as expected.  This
27063         appears to be useful at least for an old version of dash
27064         from a long time ago (RH 6).  See here for details:
27065         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
27066
27067         maint.mk: tighten "test a == b" check
27068         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
27069         test to files that contain something like #!/bin/sh.
27070         Without this, coreutils would get two false positives in
27071         the comments of C source files.
27072
27073 2010-11-12  Eric Blake  <eblake@redhat.com>
27074
27075         bootstrap: fix typo in previous attempt
27076         * build-aux/bootstrap (buildreq): Correct the grouping.
27077         Reported by Paul Eggert.
27078
27079         maintainer-makefile: prohibit test x == x
27080         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
27081         Based on a report by Matthias Bolte.
27082
27083         bootstrap: allow FreeBSD gzip
27084         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
27085         which has no '.' and goes to stderr.
27086         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
27087         Reported by Matthias Bolte.
27088
27089         maintainer-makefile: check for i18n setup
27090         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
27091         will likely work.
27092
27093 2010-11-12  Bruno Haible  <bruno@clisp.org>
27094
27095         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
27096         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
27097         * lib/nanosleep.c (nanosleep): Likewise.
27098
27099 2010-11-11  Bruno Haible  <bruno@clisp.org>
27100
27101         fcntl-h: Fix for use of C++ on glibc systems.
27102         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
27103         also on glibc systems in C++ mode.
27104         Reported by Gary V. Vaughan <gary@gnu.org>.
27105
27106 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
27107
27108         mknod: avoid false failure with dash
27109         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
27110
27111 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
27112
27113         unlink: Fix "is it should" typo in diagnostic.
27114         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
27115         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
27116
27117 2010-11-11  Bruno Haible  <bruno@clisp.org>
27118
27119         Tests for module 'strerror_r-posix'.
27120         * modules/strerror_r-posix-tests: New file.
27121         * tests/test-strerror_r.c: New file.
27122         * tests/test-string-c++.cc: Check the signature of strerror_r.
27123
27124         New module 'strerror_r-posix'.
27125         * lib/string.in.h (strerror_r): New declaration.
27126         * lib/strerror_r.c: New file.
27127         * m4/strerror_r.m4: New file.
27128         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
27129         of strerror_r.
27130         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
27131         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
27132         * modules/strerror_r-posix: New file.
27133         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
27134         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
27135         * doc/posix-functions/strerror_r.texi: Mention the new module and the
27136         portability problems.
27137
27138 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
27139
27140         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
27141         line is also considered for output. Quoted function name in shell
27142         command, so temporary files for functions like MyClass::operator()
27143         are removed correctly without errors.
27144
27145 2010-11-09  Bruno Haible  <bruno@clisp.org>
27146
27147         * doc/posix-functions/strerror.texi: List more failing platforms.
27148
27149         * doc/posix-functions/strerror.texi: Add a comment.
27150
27151 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
27152
27153         fdopendir: fix bug on MacOS X when low on file descriptors
27154
27155         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
27156         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
27157         All callers changed.
27158         (fdopendir): Invoke save_cwd at the top level, not after using
27159         multiple dup() calls to use up file descriptors.  Then retry
27160         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
27161         less than the maximum number of open file descriptors, because
27162         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
27163         on Mac OS X 10.6.4 for tar 1.24
27164         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
27165         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
27166         and for tar 1.25
27167         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
27168
27169 2010-11-07  Bruno Haible  <bruno@clisp.org>
27170
27171         vasnprintf: Support I flag on glibc systems.
27172         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
27173         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
27174         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
27175         snprintf function.
27176         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
27177         glibc systems.
27178         * tests/test-vasnprintf-posix3.c: New file.
27179         * modules/vasnprintf-posix-tests (Files): Add it.
27180         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
27181
27182 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
27183
27184         [html] Fix copy/paste bug: Use unique name for compiler warnings.
27185         * MODULES.html.sh: For compiler warnings, use name
27186         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
27187
27188 2010-11-05  Eric Blake  <eblake@redhat.com>
27189
27190         ceil, floor: avoid spurious failure with icc
27191         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
27192         [denormals-as-zero] when optimizing without -mieee-fp option.
27193         * tests/test-floorf2.c (floorf_reference): Likewise.
27194         * tests/test-ceilf1.c (dummy): New function.
27195         (main): Use it to outsmart icc's optimization.
27196         * tests/test-floorf1.c (dummy, main): Likewise.
27197
27198         tests: require working signbit
27199         * modules/ceilf-tests (Depends-on): Add signbit.
27200         * modules/ceill-tests (Depends-on): Likewise.
27201         * modules/floorf-tests (Depends-on): Likewise.
27202         * modules/floorl-tests (Depends-on): Likewise.
27203         * modules/round-tests (Depends-on): Likewise.
27204         * modules/roundf-tests (Depends-on): Likewise.
27205         * modules/roundl-tests (Depends-on): Likewise.
27206         * modules/trunc-tests (Depends-on): Likewise.
27207         * modules/truncf-tests (Depends-on): Likewise.
27208         * modules/truncl-tests (Depends-on): Likewise.
27209
27210         strtod: work around icc bug
27211         * lib/strtod.c (minus_zero): Define to working value.
27212         (strtod): Use it to avoid icc bug.
27213
27214         copysign: enhance tests
27215         * modules/copysign-tests (Files): Add minus-zero.h.
27216         * tests/test-copysign.c (main): Also test zeros.
27217
27218 2010-11-04  Eric Blake  <eblake@redhat.com>
27219
27220         ceil, floor, round, trunc: enhance tests of -0
27221         * tests/test-ceilf1.c (main): Ensure correct sign of result.
27222         * tests/test-ceill.c (main): Likewise.
27223         * tests/test-floorf1.c (main): Likewise.
27224         * tests/test-floorl.c (main): Likewise.
27225         * tests/test-round1.c (main): Likewise.
27226         * tests/test-roundf1.c (main): Likewise.
27227         * tests/test-roundl.c (main): Likewise.
27228         * tests/test-trunc1.c (main): Likewise.
27229         * tests/test-truncf1.c (main): Likewise.
27230         * tests/test-truncl.c (main): Likewise.
27231
27232 2010-11-04  Eric Blake  <eblake@redhat.com>
27233
27234         frexp, tests: work around ICC bug with -zero
27235         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
27236         works with more compilers.
27237         * tests/minus-zero.h: New file.
27238         * modules/ceilf-tests (Files): Include it.
27239         * modules/ceill-tests (Files): Likewise.
27240         * modules/floorf-tests (Files): Likewise.
27241         * modules/floorl-tests (Files): Likewise.
27242         * modules/frexp-nolibm-tests (Files): Likewise.
27243         * modules/frexp-tests (Files): Likewise.
27244         * modules/frexpl-nolibm-tests (Files): Likewise.
27245         * modules/frexpl-tests (Files): Likewise.
27246         * modules/isnan-tests (Files): Likewise.
27247         * modules/isnand-nolibm-tests (Files): Likewise.
27248         * modules/isnand-tests (Files): Likewise.
27249         * modules/isnanf-nolibm-tests (Files): Likewise.
27250         * modules/isnanf-tests (Files): Likewise.
27251         * modules/isnanl-nolibm-tests (Files): Likewise.
27252         * modules/isnanl-tests (Files): Likewise.
27253         * modules/round-tests (Files): Likewise.
27254         * modules/roundf-tests (Files): Likewise.
27255         * modules/roundl-tests (Files): Likewise.
27256         * modules/ldexpl-tests (Files): Likewise.
27257         * modules/signbit-tests (Files): Likewise.
27258         * modules/snprintf-posix-tests (Files): Likewise.
27259         * modules/sprintf-posix-tests (Files): Likewise.
27260         * modules/strtod-tests (Files): Likewise.
27261         * modules/trunc-tests (Files): Likewise.
27262         * modules/truncf-tests (Files): Likewise.
27263         * modules/truncl-tests (Files): Likewise.
27264         * modules/vsnprintf-posix-tests (Files): Likewise.
27265         * modules/vsprintf-posix-tests (Files): Likewise.
27266         * modules/vasnprintf-posix-tests (Files): Likewise.
27267         * modules/vasprintf-posix-tests (Files): Likewise.
27268         * tests/test-ceilf1.c (main): Use it.
27269         * tests/test-ceill.c (main): Likewise.
27270         * tests/test-floorf1.c (main): Likewise.
27271         * tests/test-floorl.c (main): Likewise.
27272         * tests/test-frexp.c (main): Likewise.
27273         * tests/test-frexpl.c (main): Likewise.
27274         * tests/test-isnan.c (main): Likewise.
27275         * tests/test-isnand.h (main): Likewise.
27276         * tests/test-isnanf.h (main): Likewise.
27277         * tests/test-isnanl.h (main): Likewise.
27278         * tests/test-ldexpl.c (main): Likewise.
27279         * tests/test-round.c (main): Likewise.
27280         * tests/test-roundf.c (main): Likewise.
27281         * tests/test-roundl.c (main): Likewise.
27282         * tests/test-signbit.c (test_signbitf, test_signbitd)
27283         (test_signbitl): Likewise.
27284         * tests/test-snprintf-posix.h (test_function): Likewise.
27285         * tests/test-sprintf-posix.h (test_function): Likewise.
27286         * tests/test-strtod.c (main): Likewise.
27287         * tests/test-trunc1.c (main): Likewise.
27288         * tests/test-truncf1.c (main): Likewise.
27289         * tests/test-truncl.c (main): Likewise.
27290
27291         isnanl: work around icc bug
27292         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
27293
27294 2010-11-03  Eric Blake  <eblake@redhat.com>
27295
27296         tests: fix compiler warnings
27297         * tests/test-getopt.h (test_getopt): Fix condition.
27298         * tests/test-getopt_long.h (test_getopt_long): Likewise.
27299         * tests/test-pipe2.c (main): Likewise.
27300         * tests/test-quotearg-simple.c (main): Avoid icc warning.
27301
27302         utimens: fix broken m4 test
27303         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
27304
27305 2010-10-28  Bruno Haible  <bruno@clisp.org>
27306
27307         posix_spawn*, getdtablesize: Relax license.
27308         * modules/posix_spawn (License): Change to LGPLv2+.
27309         * modules/posix_spawnp (License): Likewise.
27310         * modules/posix_spawn-internal (License): Likewise.
27311         * modules/posix_spawnattr_init (License): Likewise.
27312         * modules/posix_spawnattr_getflags (License): Likewise.
27313         * modules/posix_spawnattr_setflags (License): Likewise.
27314         * modules/posix_spawnattr_getpgroup (License): Likewise.
27315         * modules/posix_spawnattr_setpgroup (License): Likewise.
27316         * modules/posix_spawnattr_getschedparam (License): Likewise.
27317         * modules/posix_spawnattr_setschedparam (License): Likewise.
27318         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
27319         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
27320         * modules/posix_spawnattr_getsigdefault (License): Likewise.
27321         * modules/posix_spawnattr_setsigdefault (License): Likewise.
27322         * modules/posix_spawnattr_getsigmask (License): Likewise.
27323         * modules/posix_spawnattr_setsigmask (License): Likewise.
27324         * modules/posix_spawnattr_destroy (License): Likewise.
27325         * modules/posix_spawn_file_actions_init (License): Likewise.
27326         * modules/posix_spawn_file_actions_addclose (License): Likewise.
27327         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
27328         * modules/posix_spawn_file_actions_addopen (License): Likewise.
27329         * modules/posix_spawn_file_actions_destroy (License): Likewise.
27330         * modules/getdtablesize (License): Likewise.
27331         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
27332
27333 2010-10-26  Bruno Haible  <bruno@clisp.org>
27334
27335         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
27336         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
27337         Cygwin and mingw.
27338         Suggested by Eric Blake.
27339
27340 2010-10-26  Bruno Haible  <bruno@clisp.org>
27341
27342         stdio: Work around compilation error due to renameat() on Solaris 10.
27343         * lib/stdio.in.h: Include <unistd.h> on Solaris.
27344         * lib/renameat.c: Don't include <unistd.h> here.
27345         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
27346         Reported by Paul Eggert and Eric Blake.
27347
27348 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
27349
27350         renameat: port to Solaris 10, which declares renameat in unistd.h
27351
27352         * lib/renameat.c: Include unistd.h before stdio.h, because
27353         Solaris 10 declares renameat in unistd.h.  Problem encountered
27354         when building GNU tar 1.24 on Solaris 10.
27355
27356 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
27357
27358         fdopendir: fix C89 compilation
27359         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
27360         compilers.
27361
27362 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
27363
27364         inttostr: simplify by removing unnecessary redundancy
27365         * lib/anytostr.c: Don't include verify.h.
27366         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
27367         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
27368         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
27369         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
27370         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
27371         Likewise.
27372         * modules/inttostr (Depends-on): Remove 'verify'.
27373
27374 2010-10-23  Bruno Haible  <bruno@clisp.org>
27375
27376         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
27377         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
27378         Reported by Eric Blake.
27379
27380 2010-10-23  Bruno Haible  <bruno@clisp.org>
27381
27382         Tests: Fix LOCALE_JA on MirBSD 10.
27383         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
27384         to an UTF-8 locale.
27385         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
27386         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
27387         Reported by Eric Blake.
27388
27389 2010-10-21  Bruno Haible  <bruno@clisp.org>
27390
27391         nl_langinfo test: Avoid test failure on NetBSD 5.
27392         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
27393         Reported by Eric Blake.
27394
27395 2010-10-21  Eric Blake  <eblake@redhat.com>
27396
27397         c-stack: work around libsigsegv 2.8 bug
27398         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
27399         overflow on at least PowerPC64.
27400
27401 2010-10-17  Bruno Haible  <bruno@clisp.org>
27402
27403         userspec: Drop redundant file.
27404         * modules/userspec (Files): Remove lib/inttostr.h.
27405
27406 2010-10-17  Bruno Haible  <bruno@clisp.org>
27407
27408         nl_langinfo tests: Silence some warnings.
27409         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
27410         Reported by Jim Meyering.
27411
27412 2010-10-17  Bruno Haible  <bruno@clisp.org>
27413
27414         Make use of GCC's attribute __alloc_size__.
27415         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
27416         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
27417         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
27418         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
27419         __alloc_size__.
27420         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
27421         Suggested by Jim Meyering.
27422
27423 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
27424
27425         bootstrap: anchor .gitignore entries.
27426         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
27427         with...
27428         (insert_vc_ignore): ... this new function, which prepends `/' to
27429         all .gitignore entries before passing them to
27430         insert_sorted_if_absent.
27431
27432 2010-10-16  Bruno Haible  <bruno@clisp.org>
27433
27434         nextafter: Fix configure check.
27435         * modules/nextafter (configure.ac): Correct expected prototype.
27436
27437 2010-10-16  Bruno Haible  <bruno@clisp.org>
27438
27439         termios: Update documentation.
27440         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
27441
27442 2010-10-16  Bruno Haible  <bruno@clisp.org>
27443
27444         tests: Make them compile with TinyCC.
27445         * tests/test-strstr.c (main): Remove parentheses around array
27446         initializer.
27447
27448 2010-10-15  Eric Blake  <eblake@redhat.com>
27449
27450         ignore-value: make header idempotent
27451         * lib/ignore-value.h: Add double-inclusion guards.
27452         Reported by Stefan Berger.
27453
27454 2010-10-15  Jim Meyering  <meyering@redhat.com>
27455
27456         GNUmakefile: handle "stable" target, not "major"
27457         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
27458         lists in maint.mk and announce-gen.  Without this, "make stable"
27459         would fail to ensure that $(VERSION) is up to date.
27460
27461 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
27462
27463         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
27464         & co.
27465
27466 2010-10-14  Bruno Haible  <bruno@clisp.org>
27467
27468         vasnprintf: Don't set errno to 0.
27469         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
27470         block that sets it to 0.
27471         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
27472
27473 2010-10-14  Bruno Haible  <bruno@clisp.org>
27474
27475         socketlib: Fix.
27476         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
27477         gl_PREREQ_SYS_H_WINSOCK2.
27478         Reported by Ian Beckwith <ianb@erislabs.net>.
27479
27480 2010-10-13  Jim Meyering  <meyering@redhat.com>
27481
27482         test-select-stdin.c: avoid warn_unused_result warnings
27483         * tests/test-select-stdin.c: Include "macros.h".
27484         ASSERT that read and fflush succeed.
27485
27486 2010-10-13  Jim Meyering  <meyering@redhat.com>
27487
27488         git-version-gen: do require git-VC'd files in cwd
27489         * build-aux/git-version-gen: Reject a git version string
27490         if there are no commits associated with the current directory.
27491         This avoids an unlikely false-positive (unrelated dir whose parent
27492         repository also contains a tag matching v*), as pointed out
27493         by Giuseppe Scrivano in
27494         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
27495
27496 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
27497
27498         argv-iter: omit nonconforming declaration
27499         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
27500         enum arg_iter_err declaration, which doesn't conform to C99.
27501         Solaris 10 cc warns about this.
27502
27503 2010-10-13  Eric Blake  <eblake@redhat.com>
27504
27505         termios: fix compilation on mingw
27506         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
27507         (gl_TERMIOS_H): Adjust it on mingw.
27508         * modules/termios (Makefile.am): Substitute new key.
27509         * lib/termios.in.h (includes): Make include_next conditional.
27510         * doc/posix-headers/termios.texi (termios.h): Update
27511         documentation.
27512         Reported by Daniel P. Berrange.
27513
27514 2010-10-13  Jim Meyering  <meyering@redhat.com>
27515
27516         git-version-gen: don't require that .git/ be in the current dir
27517         * build-aux/git-version-gen: Adjust this script so that it works
27518         when run from any working directory beneath the top-level .git/-
27519         containing directory.  Inspired by a patch from Giuseppe Scrivano,
27520         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
27521
27522         test-select: avoid warn_unused_result warnings
27523         * tests/test-select.c: Include "macros.h".
27524         ASSERT that each call to read, write, and pipe succeeds.
27525         While not technically required, also check each "close".
27526         * modules/select-tests (Files): Add tests/macros.h.
27527
27528         test-symlinkat: remove declaration of unused local
27529         * tests/test-symlinkat.c (main): Remove unused local, "buf".
27530
27531         test-inttostr: avoid shadowing warnings
27532         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
27533         and use malloc rather than the stack for the same reason as
27534         mentioned in the comment justifying the other allocation.
27535
27536 2010-10-11  Bruno Haible  <bruno@clisp.org>
27537
27538         stdlib: Allow multiple gnulib generated replacements to coexist.
27539         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
27540         Reported by Sam Steingold <sds@gnu.org>.
27541
27542 2010-10-11  Jim Meyering  <meyering@redhat.com>
27543
27544         fix a documentation typo
27545         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
27546
27547 2010-10-11  Eric Blake  <eblake@redhat.com>
27548
27549         futimens: work around Solaris 11 bug
27550         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
27551         * tests/test-futimens.h (test_futimens): Enhance, rather than
27552         weaken test.
27553         * doc/posix-functions/futimens.texi (futimens): Document the bug.
27554
27555 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
27556
27557         Indentation.
27558         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
27559         higher-level operators more to the left.
27560
27561 2010-10-11  Jim Meyering  <meyering@redhat.com>
27562
27563         test-futimens: avoid unwarranted test failure on Solaris 5.11
27564         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
27565         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
27566         because it tries to dereference the NULL name argument.
27567
27568 2010-10-11  Bruno Haible  <bruno@clisp.org>
27569
27570         Indentation.
27571         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
27572         indentation.
27573
27574 2010-10-11  Jim Meyering  <meyering@redhat.com>
27575
27576         spawn.in.h: make indentation consistent with parentheses
27577         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
27578         Make indentation consistent with parentheses.
27579
27580 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
27581
27582         Fix mismatched parens in previous commit
27583         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
27584         parens.
27585
27586 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
27587
27588         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
27589
27590         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
27591         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
27592         * lib/malloca.c: Include "verify.h".
27593         (verify1): Remove, replacing with a verify call.
27594         * lib/relocwrapper.c (verify1): Likewise.
27595         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
27596         Likewise.
27597         * modules/malloca (Depends-on): Add 'verify'.
27598         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
27599         * modules/vasnprintf (Depends-on): Add 'verify'.
27600         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
27601         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
27602         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
27603         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
27604         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
27605         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
27606         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
27607
27608         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
27609
27610         Formerly the style was sometimes 2*X - 1, because the C standard
27611         was wrongly thought to disallow ?: in integral constant expressions.
27612         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
27613         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
27614         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
27615         * lib/stdint.in.h (_verify_intmax_size): Likewise.
27616         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
27617         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
27618         verify that time_t cannot be floating.
27619
27620 2010-10-08  Eric Blake  <eblake@redhat.com>
27621
27622         time: enforce recent POSIX ruling that time_t is integral
27623         * lib/time.in.h (__time_t_must_be_integral): Detect any
27624         problematic systems, allowing the rest of gnulib to assume POSIX.
27625
27626 2010-10-08  Jim Meyering  <meyering@redhat.com>
27627
27628         fdopendir: fix a bug on systems lacking openat and /proc support
27629         OpenBSD 4.7 is one such system.  The most noticeable effect was
27630         failure of any application making nontrivial use of fts: rm, du,
27631         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
27632           ./rm: traversal failed: `a': Bad file descriptor
27633         Debugging that, you see that even though FD 6 was closed just
27634         prior to the opendir call in fd_clone_opendir, its resulting
27635         dir->dd_fd was 8, rather than the expected value of 6:
27636
27637         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
27638         93                close (fd);
27639         (gdb) n
27640         94                dir = fd_clone_opendir (dupfd);
27641         (gdb) n
27642         95                saved_errno = errno;
27643         (gdb) p dir->dd_fd
27644         $11 = 8
27645
27646         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
27647         The problem is that on OpenBSD, fd_clone_opendir has to resort
27648         to using the old-style save/restore CWD mechanism, due to its
27649         lack of openat/proc support, and *that* would steal the FD (6)
27650         that opendir was supposed to use.
27651
27652         The fix is to squirrel away the desired FD so that save_cwd uses a
27653         different one, and then free the dest FD right before calling opendir.
27654         That guarantees opendir will use the required file descriptor.
27655
27656         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
27657
27658 2010-10-08  Bruno Haible  <bruno@clisp.org>
27659
27660         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
27661         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
27662
27663 2010-10-08  Bruno Haible  <bruno@clisp.org>
27664
27665         nanosleep: Make replacement POSIX compliant.
27666         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
27667         is out of range.
27668         Reported by Jim Meyering.
27669
27670 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
27671
27672         bootstrap: add hook for altering gnulib.mk, for Bison
27673         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
27674         the Bison bootstrapping process can rewrite file names and variables
27675         in this file before later parts of 'bootstrap' use the file.
27676         Bison wants to include lib/gnulib.mk from the top-level makefile,
27677         so it needs the file names in this file to be relative to the top
27678         level, not relative to lib; plus it needs variable names to be
27679         rewritten.
27680         (slurp): Use the new function.
27681
27682         bootstrap: reformat for readability
27683         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
27684
27685 2010-10-08  Eric Blake  <eblake@redhat.com>
27686
27687         docs: update cygwin progress
27688         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
27689         1.7.7.
27690         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
27691         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
27692         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
27693         * doc/posix-functions/carg.texi (carg): Likewise.
27694         * doc/posix-functions/cargf.texi (cargf): Likewise.
27695         * doc/posix-functions/casin.texi (casin): Likewise.
27696         * doc/posix-functions/casinf.texi (casinf): Likewise.
27697         * doc/posix-functions/casinh.texi (casinh): Likewise.
27698         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
27699         * doc/posix-functions/catan.texi (catan): Likewise.
27700         * doc/posix-functions/catanf.texi (catanf): Likewise.
27701         * doc/posix-functions/catanh.texi (catanh): Likewise.
27702         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
27703         * doc/posix-functions/ccos.texi (ccos): Likewise.
27704         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
27705         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
27706         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
27707         * doc/posix-functions/cexp.texi (cexp): Likewise.
27708         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
27709         * doc/posix-functions/cimag.texi (cimag): Likewise.
27710         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
27711         * doc/posix-functions/clog.texi (clog): Likewise.
27712         * doc/posix-functions/clogf.texi (clogf): Likewise.
27713         * doc/posix-functions/conj.texi (conj): Likewise.
27714         * doc/posix-functions/conjf.texi (conjf): Likewise.
27715         * doc/posix-functions/cpow.texi (cpow): Likewise.
27716         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
27717         * doc/posix-functions/cproj.texi (cproj): Likewise.
27718         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
27719         * doc/posix-functions/creal.texi (creal): Likewise.
27720         * doc/posix-functions/crealf.texi (crealf): Likewise.
27721         * doc/posix-functions/csin.texi (csin): Likewise.
27722         * doc/posix-functions/csinf.texi (csinf): Likewise.
27723         * doc/posix-functions/csinh.texi (csinh): Likewise.
27724         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
27725         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
27726         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
27727         * doc/posix-functions/ctan.texi (ctan): Likewise.
27728         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
27729         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
27730         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
27731         * doc/posix-headers/complex.texi (complex.h): Likewise.
27732
27733 2010-10-07  Jim Meyering  <meyering@redhat.com>
27734
27735         parse-datetime: avoid compilation failure on OpenBSD 4.7
27736         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
27737         This works around a compilation failure on OpenBSD 4.7:
27738         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
27739
27740 2010-10-07  Eric Blake  <eblake@redhat.com>
27741
27742         docs: update cygwin progress
27743         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
27744         1.7.6.
27745         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
27746         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
27747         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
27748         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
27749         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
27750         Likewise.
27751         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
27752         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
27753         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
27754         Likewise.
27755         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
27756         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
27757         Likewise.
27758         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
27759         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
27760         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
27761         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
27762         Likewise.
27763         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
27764         Likewise.
27765         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
27766
27767         docs: update parse-datetime history
27768         * doc/parse-datetime.texi (Authors of parse_datetime): Better
27769         documentation of this function's history and alternatives.
27770
27771         cygwin: use more robust version check
27772         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
27773         exclude an eventual cygwin 1.9.1.
27774         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
27775         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
27776         (gl_FUNC_STRCASESTR): Likewise.
27777         Reported by Bruno Haible.
27778
27779 2010-10-06  Bruno Haible  <bruno@clisp.org>
27780
27781         string, sys_select: Avoid #including large headers unless necessary.
27782         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
27783         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
27784         OSF/1, BeOS, Haiku.
27785         Reported by Jim Meyering.
27786
27787 2010-10-05  Eric Blake  <eblake@redhat.com>
27788
27789         memmem, strstr, strcasestr: fix bug with long periodic needle
27790         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
27791         periodic needle having false positive.
27792         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
27793         and cygwin 1.7.7.
27794         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
27795         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
27796         (gl_FUNC_STRCASESTR): Likewise.
27797         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
27798         * tests/test-memmem.c (main): Expose the bug.
27799         * tests/test-strcasestr.c (main): Likewise.
27800         * tests/test-strstr.c (main): Likewise.
27801         * tests/test-c-strcasestr.c (main): Likewise.
27802         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
27803         * doc/posix-functions/strstr.texi (strstr): Likewise.
27804         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
27805         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
27806
27807 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
27808
27809         parse-datetime: do some more renaming
27810         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
27811         parse_datetime, not get_date.  Mention the renaming.
27812         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
27813         in comments.
27814         * m4/bison.m4: Likewise.
27815
27816 2010-10-05  Eric Blake  <eblake@redhat.com>
27817
27818         parse-datetime: better name than get_date
27819         * NEWS: Reword the deprecation notice.
27820         * modules/get_date: Rename to modules/parse-datetime.
27821         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
27822         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
27823         * lib/get_date.y: Rename to lib/parse-datetime.y.
27824         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
27825         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
27826         * doc/getdate.texi: Provide fallback wrapper.
27827         * lib/getdate.h: Move guts, and wrap...
27828         * lib/parse-datetime.h: ...new file.
27829         * lib/parse-datetime.y (get_date): Rename...
27830         (parse_datetime): ...to this.
27831         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
27832         (gl_PARSE_DATETIME): ...to this.
27833         * doc/posix-functions/getdate.texi (get_date): Provide fallback
27834         documentation.
27835         * modules/getdate (Files): Provide fallback docs and header.
27836         (Notice, Depends-on): Update references.
27837         * tests/test-parse-datetime.c: Likewise.
27838         * DEPENDENCIES: Likewise.
27839         * MODULES.html.sh (Date and time <time.h>): Likewise.
27840         * doc/parse-datetime.texi (Date input formats)
27841         (Authors of parse_datetime): Likewise.
27842         * modules/parse-datetime (Files, configure.ac, Makefile.am)
27843         (Include): Likewise.
27844         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
27845         * gnulib-tool: Likewise.
27846         * m4/bison.m4 (gl_BISON): Likewise.
27847         Suggested by Bruno Haible.
27848
27849 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
27850
27851         more ports to Solaris tr, which needs [] around ranges
27852         * gnulib-tool: Solaris tr needs [] around ranges.
27853         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
27854         * tests/test-pipe-filter-gi1.c (main): Likewise.
27855         * tests/test-pipe-filter-ii1.c (main): Likewise.
27856
27857 2010-10-05  Eric Blake  <eblake@redhat.com>
27858
27859         bootstrap: fix Solaris regression
27860         * build-aux/bootstrap (check_versions): Solaris tr still needs []
27861         around ranges.
27862         Reported by Pádraig Brady.
27863
27864         bootstrap: work with pkg-config
27865         * build-aux/bootstrap (check_versions): Also transliterate - in
27866         prerequisite name.
27867         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
27868         prerequisites that were already found, to avoid confusion.
27869         Reported by Justin Clift.
27870
27871         faccessat: remove unused wrappers
27872         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
27873         presence of these wrappers dragged in -lgen on Solaris.
27874         Reported by Clemens Brogi; fix suggested by Paul Eggert.
27875
27876 2010-10-05  Jim Meyering  <meyering@redhat.com>
27877
27878         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
27879         * Makefile (sc_pragma_columns): New syntax-check rule.
27880
27881 2010-10-04  Bruno Haible  <bruno@clisp.org>
27882
27883         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
27884         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
27885         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
27886         Reported by Bruce Korb and Eric Blake.
27887
27888 2010-10-04  Bruno Haible  <bruno@clisp.org>
27889
27890         threadlib: Make option --with-libpth-prefix work.
27891         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
27892         use $LIBPTH, not just -lpth.
27893
27894 2010-10-04  Bruno Haible  <bruno@clisp.org>
27895
27896         Avoid line length limitation from HP NonStop system header files.
27897         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
27898         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
27899         * lib/ctype.in.h: Likewise.
27900         * lib/dirent.in.h: Likewise.
27901         * lib/errno.in.h: Likewise.
27902         * lib/fcntl.in.h: Likewise.
27903         * lib/float.in.h: Likewise.
27904         * lib/getopt.in.h: Likewise.
27905         * lib/iconv.in.h: Likewise.
27906         * lib/inttypes.in.h: Likewise.
27907         * lib/langinfo.in.h: Likewise.
27908         * lib/locale.in.h: Likewise.
27909         * lib/math.in.h: Likewise.
27910         * lib/netdb.in.h: Likewise.
27911         * lib/netinet_in.in.h: Likewise.
27912         * lib/poll.in.h: Likewise.
27913         * lib/pthread.in.h: Likewise.
27914         * lib/pty.in.h: Likewise.
27915         * lib/sched.in.h: Likewise.
27916         * lib/se-selinux.in.h: Likewise.
27917         * lib/search.in.h: Likewise.
27918         * lib/signal.in.h: Likewise.
27919         * lib/spawn.in.h: Likewise.
27920         * lib/stdarg.in.h: Likewise.
27921         * lib/stddef.in.h: Likewise.
27922         * lib/stdint.in.h: Likewise.
27923         * lib/stdio.in.h: Likewise.
27924         * lib/stdlib.in.h: Likewise.
27925         * lib/string.in.h: Likewise.
27926         * lib/strings.in.h: Likewise.
27927         * lib/sys_file.in.h: Likewise.
27928         * lib/sys_ioctl.in.h: Likewise.
27929         * lib/sys_select.in.h: Likewise.
27930         * lib/sys_socket.in.h: Likewise.
27931         * lib/sys_stat.in.h: Likewise.
27932         * lib/sys_time.in.h: Likewise.
27933         * lib/sys_times.in.h: Likewise.
27934         * lib/sys_utsname.in.h: Likewise.
27935         * lib/sys_wait.in.h: Likewise.
27936         * lib/sysexits.in.h: Likewise.
27937         * lib/termios.in.h: Likewise.
27938         * lib/time.in.h: Likewise.
27939         * lib/unistd.in.h: Likewise.
27940         * lib/wchar.in.h: Likewise.
27941         * lib/wctype.in.h: Likewise.
27942         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
27943         * modules/ctype (Makefile.am): Likewise.
27944         * modules/dirent (Makefile.am): Likewise.
27945         * modules/errno (Makefile.am): Likewise.
27946         * modules/fcntl-h (Makefile.am): Likewise.
27947         * modules/float (Makefile.am): Likewise.
27948         * modules/getopt-posix (Makefile.am): Likewise.
27949         * modules/iconv-h (Makefile.am): Likewise.
27950         * modules/inttypes (Makefile.am): Likewise.
27951         * modules/langinfo (Makefile.am): Likewise.
27952         * modules/locale (Makefile.am): Likewise.
27953         * modules/math (Makefile.am): Likewise.
27954         * modules/netdb (Makefile.am): Likewise.
27955         * modules/netinet_in (Makefile.am): Likewise.
27956         * modules/poll-h (Makefile.am): Likewise.
27957         * modules/pthread (Makefile.am): Likewise.
27958         * modules/pty (Makefile.am): Likewise.
27959         * modules/sched (Makefile.am): Likewise.
27960         * modules/search (Makefile.am): Likewise.
27961         * modules/selinux-h (Makefile.am): Likewise.
27962         * modules/signal (Makefile.am): Likewise.
27963         * modules/spawn (Makefile.am): Likewise.
27964         * modules/stdarg (Makefile.am): Likewise.
27965         * modules/stddef (Makefile.am): Likewise.
27966         * modules/stdint (Makefile.am): Likewise.
27967         * modules/stdio (Makefile.am): Likewise.
27968         * modules/stdlib (Makefile.am): Likewise.
27969         * modules/string (Makefile.am): Likewise.
27970         * modules/strings (Makefile.am): Likewise.
27971         * modules/sys_file (Makefile.am): Likewise.
27972         * modules/sys_ioctl (Makefile.am): Likewise.
27973         * modules/sys_select (Makefile.am): Likewise.
27974         * modules/sys_socket (Makefile.am): Likewise.
27975         * modules/sys_stat (Makefile.am): Likewise.
27976         * modules/sys_time (Makefile.am): Likewise.
27977         * modules/sys_times (Makefile.am): Likewise.
27978         * modules/sys_utsname (Makefile.am): Likewise.
27979         * modules/sys_wait (Makefile.am): Likewise.
27980         * modules/sysexits (Makefile.am): Likewise.
27981         * modules/termios (Makefile.am): Likewise.
27982         * modules/time (Makefile.am): Likewise.
27983         * modules/unistd (Makefile.am): Likewise.
27984         * modules/wchar (Makefile.am): Likewise.
27985         * modules/wctype (Makefile.am): Likewise.
27986
27987 2010-10-04  Bruno Haible  <bruno@clisp.org>
27988
27989         read-file tests: Avoid a test failure on NonStop Kernel.
27990         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
27991         a regular file.
27992         Reported by Joachim Schmitz <schmitz@hp.com>.
27993
27994 2010-10-03  Bruno Haible  <bruno@clisp.org>
27995
27996         gnulib-tool: Fixes for --create-testdir with --libtool.
27997         * gnulib-tool (func_get_automake_snippet): Don't augment
27998         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
27999         an executable.
28000         (func_create_testdir): Handle module 'alloca' like func_import.
28001         Reported by Bruce Korb <bruce.korb@gmail.com>.
28002
28003 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
28004
28005         Avoid some lines longer than 80 characters.
28006         * lib/stdint.in.h: Break long comment lines.
28007         * lib/math.in.h: Likewise.
28008         (_GL_NUM_UINT_WORDS): New macro, for readability.
28009         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
28010         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
28011         * lib/stdlib.in.h: Likewise.
28012         * lib/spawn.in.h: Likewise.
28013         * lib/sys_socket.in.h: Update an URL.
28014         * lib/sys_stat.in.h: Break long line.
28015
28016 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
28017
28018         Improve pmccabe2html.
28019         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
28020         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
28021         when the sources change. Remove the line in the HTML about "Used
28022         ranges" (which implied that there might be other unused ranges),
28023         rename "Resume" to "Summary" (easier to understand for more users).
28024         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
28025         styles, and some unnecessary blank lines.
28026
28027 2010-10-03  Bruno Haible  <bruno@clisp.org>
28028             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
28029
28030         acl: Add support for ACLs on NonStop Kernel.
28031         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
28032         Check whether the function aclsort() exists.
28033         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
28034         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
28035         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
28036         (acl_nontrivial [HAVE_ACLSORT]: New function.
28037         (file_has_acl): Implement for NonStop Kernel.
28038         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
28039         (qset_acl): Implement for NonStop Kernel.
28040         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
28041         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
28042         (main): Implement for NonStop Kernel.
28043         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
28044         Kernel. Handle this flavor.
28045         * tests/test-set-mode-acl.sh: Likewise.
28046         * tests/test-copy-acl.sh: Likewise.
28047         * tests/test-copy-file.sh: Likewise.
28048
28049 2010-10-03  Bruno Haible  <bruno@clisp.org>
28050
28051         Info about ACLs on NonStop Kernel.
28052         * doc/acl-resources.txt: Add info about NonStop Kernel.
28053         References by Joachim Schmitz <schmitz@hp.com>.
28054
28055 2010-10-02  Bruno Haible  <bruno@clisp.org>
28056
28057         Define missing EDQUOT on NonStop Kernel.
28058         * lib/errno.in.h (EDQUOT): Assign a value if missing.
28059         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
28060         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
28061         missing.
28062         * doc/posix-headers/errno.texi: Mention the NSK bug.
28063         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
28064         Reported by Joachim Schmitz <schmitz@hp.com>.
28065
28066 2010-10-02  Bruno Haible  <bruno@clisp.org>
28067
28068         Update doc for POSIX:2008.
28069         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
28070         Update URL of POSIX specification.
28071
28072 2010-10-02  Bruno Haible  <bruno@clisp.org>
28073
28074         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
28075         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
28076         from gnulib, not from Automake.
28077
28078 2010-10-02  Bruno Haible  <bruno@clisp.org>
28079
28080         New module 'system-posix'.
28081         * modules/system-posix: New file.
28082         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
28083         module is present.
28084         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
28085         GNULIB_SYSTEM_POSIX.
28086         * modules/stdlib (Depends-on): Remove sys_wait.
28087         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
28088         * doc/posix-functions/system.texi: Mention the new module.
28089         * doc/posix-headers/stdlib.texi: Likewise.
28090         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
28091         define test_sys_wait_macros to a no-op.
28092         Reported by Sam Steingold <sds@gnu.org>.
28093
28094 2010-09-30  Bruno Haible  <bruno@clisp.org>
28095
28096         More renaming from 'getdate' to 'get_date'.
28097         * doc/get_date.texi: Renamed from doc/getdate.texi.
28098         * modules/get_date (Files): Update.
28099         * MODULES.html.sh (Date and time <time.h>): Update.
28100         * DEPENDENCIES: Update.
28101         * gnulib-tool: Update comment.
28102         * m4/bison.m4 (gl_BISON): Likewise.
28103         * m4/get_date.m4 (gl_GET_DATE): Likewise.
28104
28105 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
28106
28107         bootstrap: support ACLOCAL_FLAGS during aclocal
28108         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
28109         can add additional -I dir for third-party .m4 files.
28110
28111 2010-09-30  Eric Blake  <eblake@redhat.com>
28112
28113         bootstrap: use glibtoolize on MacOS
28114         * build-aux/bootstrap (check_versions): Convert libtool into
28115         libtoolize.
28116         (tool search): Move libtool check earlier, and look for
28117         glibtoolize for MacOS.
28118         (gnulib_tool_options): Auto-add --libtool when appropriate.
28119         Reported by Justin Clift.
28120
28121         poll: fix typo that broke test on MacOS
28122         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
28123         Reported by Justin Clift.
28124
28125         getdate: rename to get_date
28126         Note: getdate.h is not renamed, to minimize client impact.
28127         * modules/getdate: Mark obsolete.  Move old contents...
28128         * modules/get_date: ...to new module name.
28129         * modules/getdate-tests: Move...
28130         * modules/get_date-tests: ...here.
28131         * m4/getdate.m4: Move...
28132         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
28133         * lib/getdate.y: Move...
28134         * lib/get_date.y: ...here.
28135         * tests/test-getdate.c: Move...
28136         * tests/test-get_date.c: ...here.
28137         * doc/posix-functions/getdate.texi (getdate): Update name.
28138         * NEWS: Mention the change.
28139
28140 2010-09-29  Bruno Haible  <bruno@clisp.org>
28141
28142         Separate the module 'waitpid' from the module 'sys_wait'.
28143         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
28144         present.
28145         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
28146         gl_MODULE_INDICATOR_FOR_TESTS.
28147         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
28148         * modules/sys_wait (Depends-on): Remove waitpid.
28149         (Makefile.am): Substitute GNULIB_WAITPID.
28150         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
28151         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
28152         signature only if the 'waitpid' module is present.
28153         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
28154         * NEWS: Mention the change.
28155         * modules/grantpt (Depends-on): Add waitpid.
28156         * modules/wait-process (Depends-on): Likewise.
28157
28158 2010-09-29  Bruno Haible  <bruno@clisp.org>
28159
28160         More tests for module 'sys_wait'.
28161         * modules/sys_wait-c++-tests: New file.
28162         * tests/test-sys_wait-c++.cc: New file.
28163         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
28164         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
28165
28166 2010-09-29  Bruno Haible  <bruno@clisp.org>
28167
28168         New module 'waitpid'.
28169         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
28170         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
28171         Don't include <process.h>.
28172         (waitpid): Declare only, using modern idiom.
28173         * m4/waitpid.m4: New file.
28174         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
28175         * modules/waitpid: New file.
28176         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
28177         (Makefile.am): Update.
28178         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
28179
28180 2010-09-28  Bruno Haible  <bruno@clisp.org>
28181
28182         poll: Assume ANSI C.
28183         * lib/poll.c (poll): Use an ANSI C declaration.
28184
28185 2010-09-28  Bruno Haible  <bruno@clisp.org>
28186
28187         poll-h: Create poll.h on all platforms.
28188         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
28189         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
28190         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
28191         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
28192         (gl_REPLACE_POLL_H): Don't set POLL_H.
28193         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
28194         * modules/poll-h (Depends-on): Add include_next.
28195         (Makefile.am): Create poll.h unconditionally. Substitute also
28196         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
28197
28198 2010-09-28  Bruno Haible  <bruno@clisp.org>
28199
28200         Tests for module 'poll-h'.
28201         * modules/poll-h-c++-tests: New file.
28202         * tests/test-poll-h-c++.cc: New file.
28203
28204         Tests for module 'poll-h'.
28205         * modules/poll-h-tests: New file.
28206         * tests/test-poll-h.c: New file.
28207
28208 2010-09-28  Bruno Haible  <bruno@clisp.org>
28209
28210         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
28211         * modules/poll-h (Depends-on): Add 'extensions'.
28212
28213 2010-09-28  Bruno Haible  <bruno@clisp.org>
28214
28215         New module 'poll-h'.
28216         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
28217         (poll): Use modern idiom.
28218         * modules/poll-h: New file.
28219         * modules/poll (Files): Remove lib/poll.in.h.
28220         (Depends-on): Add poll-h.
28221         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
28222         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
28223         * m4/poll_h.m4: New file.
28224         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
28225         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
28226         and invoke gl_REPLACE_POLL_H.
28227         * lib/poll.c: Use common idiom.
28228         * tests/test-poll.c: Likewise.
28229         * doc/posix-headers/poll.texi: Mention the poll-h module.
28230         Suggested by Eric Blake.
28231
28232 2010-09-26  Bruno Haible  <bruno@clisp.org>
28233
28234         sys_wait: Implement WSTOPSIG.
28235         * lib/sys_wait.in.h (WSTOPSIG): New macro.
28236         Reported by Simon Josefsson.
28237
28238 2010-09-26  Simon Josefsson  <simon@josefsson.org>
28239
28240         stdlib, sys_wait: Avoid compilation error on mingw.
28241         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
28242
28243 2010-09-26  Bruno Haible  <bruno@clisp.org>
28244
28245         stdlib tests: Avoid code duplication.
28246         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
28247         * modules/sys_wait-tests (Files): Likewise.
28248         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
28249         * tests/test-stdlib.c: Include test-sys_wait.h.
28250         (main): Invoke test_sys_wait_macros.
28251         * tests/test-sys_wait.c: Include test-sys_wait.h.
28252         (main): Invoke test_sys_wait_macros.
28253
28254 2010-09-25  Simon Josefsson  <simon@josefsson.org>
28255
28256         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
28257         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
28258         sure Windows sockets are working before calling getaddrinfo.
28259         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
28260         * doc/gnulib.texi (Windows sockets): Fix typo.
28261
28262 2010-09-25  Bruno Haible  <bruno@clisp.org>
28263
28264         Tests for module 'regex-quote'.
28265         * modules/regex-quote-tests: New file.
28266         * tests/test-regex-quote.c: New file.
28267
28268         New module 'regex-quote'.
28269         * lib/regex-quote.h: New file.
28270         * lib/regex-quote.c: New file.
28271         * modules/regex-quote: New file.
28272         Suggested by Reuben Thomas <rrt@sc3d.org>.
28273
28274 2010-09-24  Bruno Haible  <bruno@clisp.org>
28275
28276         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
28277         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
28278
28279 2010-09-23  Bruno Haible  <bruno@clisp.org>
28280
28281         setenv: Relax license.
28282         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
28283         Blake.
28284         Requested by Eric Blake.
28285
28286 2010-09-22  Bruno Haible  <bruno@clisp.org>
28287
28288         termios: Relax license.
28289         * modules/termios (License): Change to LGPLv2+.
28290         Requested by Eric Blake.
28291
28292 2010-09-22  Bruno Haible  <bruno@clisp.org>
28293
28294         threadlib: Allow the package to change the default to 'no'.
28295         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
28296         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
28297         Reported by Paul Eggert.
28298
28299 2010-09-22  Pádraig Brady  <P@draigbrady.com>
28300             Bruno Haible  <bruno@clisp.org>
28301
28302         Fix endless loop in mbmemcasecoll.
28303         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
28304         byte.
28305         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
28306
28307 2010-09-22  Bruno Haible  <bruno@clisp.org>
28308
28309         Tests for module 'memcoll'.
28310         * modules/memcoll-tests: New file.
28311         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
28312
28313         memcoll, xmemcoll: Clarify size vs. length.
28314         * modules/memcoll.c (memcoll0): Clarify specification.
28315         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
28316         passed to collate_error.
28317
28318 2010-09-22  Bruno Haible  <bruno@clisp.org>
28319
28320         Tests for module 'memcasecmp'.
28321         * modules/memcasecmp-tests: New file.
28322         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
28323
28324 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
28325
28326         * lib/pthread.in.h: Add split double-inclusion guard, and include
28327         system <pthread.h> if there is one.  Use @@-style as in other
28328         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
28329         pthread.h doesn't.
28330         (pthread_mutexattr_destroy, pthread_mutexattr_init):
28331         (pthread_mutexattr_settype, pthread_mutex_trylock):
28332         New static inline functions, if there's no system <pthread.h>.
28333         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
28334         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
28335         Approximate with mutexes if the system lacks spinlocks, as in
28336         MacOS.
28337         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
28338         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
28339         @@-style.  Check for spinlocks separately.
28340         (gl_PTHREAD_DEFAULTS): New macro.
28341         * modules/pthread: Redo to use a more typical style for in.h files.
28342
28343 2010-09-21  Eric Blake  <eblake@redhat.com>
28344
28345         net_if: enhance tests
28346         * tests/test-net_if.c (main): Move signature checks earlier.
28347         Print failures to stderr.
28348         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
28349         Document the bug that we do not yet fix.
28350
28351 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
28352
28353         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
28354         about gnulib, not GSS.
28355
28356 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
28357
28358         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
28359         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
28360         for Emacs.
28361         * build-aux/pmccabe2html: Make Makefile.am example code more
28362         cut-and-paste friendly.
28363
28364 2010-09-21  Simon Josefsson  <simon@josefsson.org>
28365
28366         * tests/test-net_if.c: New file.
28367         * modules/net_if-tests: New file.
28368
28369 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
28370
28371         pthread: add pthread_spin_destroy
28372         * lib/pthread.in.h (pthread_spin_destroy): New function.
28373
28374 2010-09-19  Bruno Haible  <bruno@clisp.org>
28375
28376         gnulib-tool: Fix --help output.
28377         * gnulib-tool (func_usage): Fix help message.
28378         Reported by Reuben Thomas <rrt@sc3d.org>.
28379
28380 2010-09-18  Jim Meyering  <meyering@redhat.com>
28381
28382         maint.mk: avoid unexpanded \n in two diagnostics
28383         * top/maint.mk (sc_prohibit_always_true_header_tests):
28384         Don't use a literal \n in a halt=... assignment.  It would not be
28385         expanded, and the two \n bytes would appear in the diagnostic output
28386         rather than the desired newline.  Use halt=$$(printf ... instead.
28387         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
28388
28389 2010-09-18  Bruno Haible  <bruno@clisp.org>
28390
28391         netinet_in: Doc tweak.
28392         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
28393         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
28394
28395 2010-09-18  Jim Meyering  <meyering@redhat.com>
28396
28397         init.sh: correct an outdated comment
28398         * tests/init.sh (create_exe_shims_):  s/function/alias/
28399
28400         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
28401         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
28402         a file named "*.exe" is removed between the glob expansion and the
28403         processing of that oddly named file.
28404
28405 2010-09-17  Eric Blake  <eblake@redhat.com>
28406
28407         mirbsd: add some more support
28408         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
28409         in BSD family.
28410         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
28411         devices as OpenBSD.
28412         * m4/host-os.m4 (mirbsd): Add MirBSD.
28413
28414         tests: fix unportable assumption on sys/wait.h
28415         * tests/test-sys_wait.c (main): Relax test.
28416         * tests/test-stdlib.c (main): Likewise.
28417
28418         init.sh: accommodate directory with no .exes
28419         * tests/init.sh: Accomodate directory containing only scripts.
28420
28421         tests: avoid compiler warning
28422         * tests/test-stdlib.c (main): Use the variable.
28423
28424         fdutimens, fdutimensat: update signature, again
28425         * lib/utimens.h (gl_futimens): Delete, and move signature...
28426         (fdutimens): ...here.
28427         (fdutimensat): Rearrange signature.
28428         (lutimensat): Rename variable for clarity.
28429         * lib/fdutimensat.c (fdutimensat): Update signature.
28430         * lib/utimens.c (fdutimens): Likewise.
28431         (gl_futimens): Delete.
28432         (utimens, lutimens): Update callers.
28433         * lib/futimens.c (futimens): Likewise.
28434         * tests/test-fdutimensat.c: Likewise.
28435         * tests/test-utimens.c: Likewise.
28436         * tests/test-futimens.h: Update comment.
28437         * NEWS: Mention this.
28438         Suggested by Paul Eggert.
28439
28440 2010-09-17  Bruno Haible  <bruno@clisp.org>
28441
28442         Take over the maintenance of some older macros from Autoconf.
28443         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
28444         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
28445         GNU Autoconf.
28446         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
28447         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
28448
28449 2010-09-17  Eric Blake  <eblake@redhat.com>
28450
28451         fdutimensat: drop atflag validation
28452         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
28453         with valid fd, to close a race scenario where futimens is
28454         unsupported and FILE was replaced by a symlink.
28455         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
28456         accordingly.
28457         Suggested by Paul Eggert.
28458
28459 2010-09-16  Bruno Haible  <bruno@clisp.org>
28460
28461         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
28462         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
28463
28464 2010-09-16  Bruno Haible  <bruno@clisp.org>
28465
28466         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
28467         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
28468         login_tty exists.
28469         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
28470
28471 2010-09-16  Bruno Haible  <bruno@clisp.org>
28472
28473         login_tty: Make the replacement code work on BSD systems.
28474         * lib/login_tty.c: Include <sys/ioctl.h>.
28475         (login_tty): Use ioctl TIOCSCTTY when available.
28476         * modules/login_tty (Depends-on): Add sys_ioctl.
28477         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
28478
28479 2010-09-16  Bruno Haible  <bruno@clisp.org>
28480
28481         login_tty: Stricter unit test.
28482         * modules/login_tty-tests (Depends-on): Add tcgetsid.
28483         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
28484         and tcgetsid() after login_tty.
28485         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
28486
28487 2010-09-16  Bruno Haible  <bruno@clisp.org>
28488
28489         New module 'tcgetsid'.
28490         * lib/tcgetsid.c: New file.
28491         * m4/tcgetsid.m4: New file.
28492         * modules/tcgetsid: New file.
28493         * modules/termios (Depends-on): Add c++defs, warn-on-use.
28494         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
28495         GNULIB_TCGETSID, HAVE_TCGETSID.
28496         * lib/termios.in.h: Include <sys/types.h>.
28497         (tcgetsid): New declaration.
28498         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
28499         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
28500         * doc/posix-functions/tcgetsid.texi: Mention the new module.
28501         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
28502
28503 2010-09-16  Bruno Haible  <bruno@clisp.org>
28504
28505         Tests for module 'termios'.
28506         * modules/termios-c++-tests: New file.
28507         * modules/termios-tests: New file.
28508         * tests/test-termios-c++.cc: New file.
28509         * tests/test-termios.c: New file.
28510
28511         New module 'termios'.
28512         * modules/termios: New file.
28513         * lib/termios.in.h: New file.
28514         * m4/termios_h.m4: New file.
28515         * doc/posix-headers/termios.texi: Mention the new module.
28516
28517 2010-09-16  Eric Blake  <eblake@redhat.com>
28518
28519         fdutimensat: add an atflag parameter
28520         * lib/fdutimensat.c (fdutimensat): Add new parameter.
28521         * lib/utimens.h (fdutimensat): Update prototype.
28522         * tests/test-fdutimensat.c: Adjust test to match.
28523         * NEWS: Document the change.
28524         Suggested by Paul Eggert.
28525
28526 2010-09-16  Bruno Haible  <bruno@clisp.org>
28527
28528         Fix typos in comments.
28529         * lib/striconveh.h: Fix typo in comment.
28530         * lib/login_tty.c (login_tty): Likewise.
28531
28532 2010-09-15  Bruno Haible  <bruno@clisp.org>
28533
28534         stdlib: clarify MirBSD WEXITSTATUS bug
28535         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
28536         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
28537
28538 2010-09-15  Eric Blake  <eblake@redhat.com>
28539
28540         stdlib: work around MirBSD WEXITSTATUS bug
28541         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
28542         * modules/stdlib (Depends-on): Add sys_wait.
28543         * tests/test-sys_wait.c (main): Enhance test.
28544         * tests/test-stdlib.c (main): Likewise.
28545         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
28546
28547         docs: mention MacOS issue with WEXITSTATUS(constant)
28548         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
28549         issue.
28550         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
28551
28552         strnlen: add tests
28553         * modules/strnlen-tests: New file.
28554         * tests/test-strnlen.c: Likewise.
28555
28556 2010-09-14  Bruno Haible  <bruno@clisp.org>
28557
28558         unistr/base: Avoid link errors when module 'libunistring' is also used.
28559         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
28560         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
28561         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
28562         Declare also when HAVE_LIBUNISTRING is set.
28563         Reported by Pádraig Brady <P@draigbrady.com>.
28564
28565 2010-09-14  Eric Blake  <eblake@redhat.com>
28566
28567         test-rawmemchr: make more robust
28568         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
28569         (Depends-on, configure.ac): Add needed prerequisites to use it.
28570         * modules/memchr-tests (Files, Depends-on, configure.ac):
28571         Likewise, to avoid implicit reliance on memchr module prereqs.
28572         * tests/test-memchr.c (main): Ensure proper masking.
28573         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
28574         reads.
28575
28576         memchr: detect glibc Alpha bug
28577         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
28578         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
28579         Alpha.
28580         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
28581         * tests/test-memchr.c (main): Enhance test.
28582         Reported by Nelson H. F. Beebe.
28583
28584 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
28585
28586         fts, getcwd, glob: audit for dirfd returning -1
28587         * lib/fts.c (opendir): Remove #define; no longer used.
28588         (opendirat): New arg PDIR_FD.  All callers changed.
28589         (fts_build, _opendir2): Use new opendirat to avoid the need for
28590         dirfd, or for checking whether dirfd returns a negative value.
28591         Don't use opendir; always use openat followed by fdopendir.
28592         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
28593         it.
28594         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
28595         returns -1 here.
28596         * modules/fts (Depends-on): Remove dirfd.
28597         * modules/getcwd (Depends-on): Likewise.
28598
28599 2010-09-13  Eric Blake  <eblake@redhat.com>
28600
28601         float: fix broken MirBSD header
28602         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
28603         * doc/posix-headers/float.texi (float.h): Document it.
28604
28605 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
28606
28607         fts: use O_NOFOLLOW to avoid race condition when opening a directory
28608         * lib/fts.c (opendirat): New arg extra_flags.
28609         (__opendir2): Use it to avoid following symlinks when opening
28610         a directory, if symlinks are not supposed to be followed.  See
28611         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
28612
28613         fdopendir: preserve argument fd before returning
28614         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
28615         (fdopendir_with_dup, fd_clone_opendir): New static functions.
28616         (fdopendir): Use them, arranging for FD to be open to the same
28617         directory that it was when it started.  (It might be temporarily
28618         closed while fdopendir is running, so this not thread- or
28619         signal-safe.)  Be careful to do the right thing even when file
28620         descriptors are scarce and dup fails with errno == EMFILE.  See
28621         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
28622
28623 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
28624
28625         regex: Pass the system regex if its only problem is 32-bit regoff_t.
28626         * NEWS: Document change.
28627         * m4/regex.m4: Disable test for regoff_t size.
28628
28629 2010-09-13  Jim Meyering  <meyering@redhat.com>
28630
28631         fts: don't operate on an invalid file descriptor after failed dup
28632         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
28633         negative file descriptor.
28634
28635 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
28636
28637         savedir: add streamsavedir, deprecate fdsavedir
28638         * NEWS: Mention deprecation of fdsavedir.
28639         * lib/savedir.c (streamsavedir): New extern function, whose name
28640         ends in "savedir" to be consistent with the others.  This differs
28641         from savedirstream in that it doesn't close its argument.  The
28642         next version of GNU tar will use this instead of fdsavedir, to
28643         avoid some race conditions and conserve file descriptors.
28644         (savedirstream): Reimplement as a wrapper around streamsavedir.
28645         (fdsavedir): Add a comment deprecating this function.  As far as
28646         I know, only GNU tar used it, and GNU tar doesn't need it any more.
28647         * lib/savedir.h (streamsavedir): New decl.
28648         (fdsavedir): Add a comment deprecating this.
28649
28650 2010-09-10  Bruno Haible  <bruno@clisp.org>
28651
28652         langinfo: Fix last commit.
28653         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
28654         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
28655         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28656
28657 2010-09-10  Bruno Haible  <bruno@clisp.org>
28658
28659         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
28660         * lib/progreloc.c (O_EXEC): Define fallback.
28661
28662 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
28663
28664         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
28665         * NEWS: Document recent changes to fcntl-h.
28666         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
28667         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
28668         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
28669         Similarly for O_SEARCH; this last was already true, but not documented.
28670         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
28671         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
28672         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
28673         Likewise.
28674         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
28675         is zero, not whether it is defined.
28676         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
28677         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
28678         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
28679
28680 2010-09-10  Bruno Haible  <bruno@clisp.org>
28681
28682         langinfo, nl_langinfo: Fix for IRIX 5.3.
28683         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
28684         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
28685         HAVE_LANGINFO_YESEXPR.
28686         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
28687         HAVE_LANGINFO_YESEXPR.
28688         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
28689         HAVE_LANGINFO_T_FMT_AMPM is 0.
28690         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
28691         HAVE_LANGINFO_YESEXPR is 0.
28692         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
28693         NOEXPR.
28694         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
28695         * doc/posix-functions/nl_langinfo.texi: Likewise.
28696         Reported by Eric Blake.
28697
28698 2010-09-10  Bruno Haible  <bruno@clisp.org>
28699
28700         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
28701         * doc/glibc-functions/login_tty.texi: Mention the include file problem
28702         on FreeBSD 8.0 and OpenBSD 4.6.
28703         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
28704         * m4/pty_h.m4 (gl_PTY_H): Likewise.
28705         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
28706         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
28707         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
28708         ac_includes_default.
28709         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
28710
28711 2010-09-09  Eric Blake  <eblake@redhat.com>
28712
28713         strsignal: work around NetBSD bug
28714         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
28715         * lib/string.in.h (includes): Likewise.
28716         * doc/posix-functions/strsignal.texi (strsignal): Document the
28717         bug.
28718         Reported by Nelson H. F. Beebe.
28719
28720         gnulib-tool: work with NetBSD /bin/sh
28721         * gnulib-tool (func_cache_var, func_cache_lookup_module)
28722         (func_get_description, func_get_comment, func_get_status)
28723         (func_get_notice, func_get_applicability, func_get_filelist)
28724         (func_get_dependencies, func_get_autoconf_early_snippet)
28725         (func_get_autoconf_snippet, func_get_automake_snippet)
28726         (func_get_include_directive, func_get_link_directive)
28727         (func_get_license, func_get_maintainer, func_import): Avoid
28728         shell syntax errors from parsing syntax extensions.
28729
28730 2010-09-09  Bruno Haible  <bruno@clisp.org>
28731
28732         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
28733         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
28734         a reliable way to determine whether the 'alias' command works.
28735
28736 2010-09-08  Jim Meyering  <meyering@redhat.com>
28737
28738         init.sh: penalize a set-x-impaired shell; don't disqualify it
28739         * tests/init.sh: Too many shells corrupt application stderr when
28740         you set -x, so we can't afford to disqualify them, since at least
28741         on Irix-6.5, that would disqualify all bourne shells.
28742         Instead, use a two-pass approach.
28743         On the first pass, try to find a shell that meets the stricter
28744         condition that set -x does not corrupt stderr.
28745         If no shell meets the stricter condition, retest each candidate
28746         shell, but without that extra condition.  Finally, when
28747         VERBOSE=yes is requested and set -x might cause trouble, simply
28748         issue a warning and refrain from enabling debug output.
28749
28750 2010-09-08  Eric Blake  <eblake@redhat.com>
28751
28752         unsetenv: fix OpenBSD bug
28753         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
28754         * doc/posix-functions/unsetenv.texi (unsetenv): Update
28755         documentation.
28756         Reported by Jim Meyering.
28757
28758         strtod: work around IRIX 6.5 bug
28759         * lib/strtod.c (strtod): Reparse number on shorter string if
28760         exponent parse was invalid.
28761         * tests/test-strtod.c (main): Add check for "0x1p 2".
28762         Reported by Tom G. Christensen.
28763
28764         getopt: optimize previous patch
28765         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
28766         empty variable.  Speed up awk script.
28767         Reported by Paolo Bonzini.
28768
28769 2010-09-08  Jim Meyering  <meyering@redhat.com>
28770
28771         test.sh: disqualify shells for which set -x corrupts stderr
28772         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
28773         and OpenBSD 4.7.  They make it so with "set -x", environment settings
28774         appear in stderr output.  For example, this command:
28775             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
28776         prints "P=1" on those two systems:
28777
28778 2010-09-08  Bruno Haible  <bruno@clisp.org>
28779
28780         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
28781         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
28782         commands, because some shells ignore redirections when there is an
28783         error in the command lookup.
28784         Reported by Eric Blake.
28785
28786 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
28787
28788         * lib/regex.h: Fix a mention of `regex_compile' (should be
28789         `re_compile_pattern').
28790         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
28791         (re_set_registers): Correct name of parameter in comment.
28792
28793         * doc/regex.texi: Add documentation for missing syntax flags.
28794         Remove commented-out documentation of defunct syntax option
28795         RE_NO_EMPTY_ALTS.
28796         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
28797         Add documentation of re_set_registers.
28798         Document trick to re-use a pattern buffer by setting fastmap manually.
28799         Update documentation of struct re_pattern_buffer per public members.
28800         Uncomment documentation of equivalence class operators and
28801         collating symbol operators, since they are now implemented,
28802         Explain leftmost-longest matching in relation to alternatives.
28803         Tidy documentation of substring matching.
28804         Remove POSIX documentation, which is done better in
28805         glibc, and refer the reader there. Keep BSD API documentation, as
28806         that is not readily available elsewhere.
28807
28808 2010-09-07  Eric Blake  <eblake@redhat.com>
28809
28810         getopt: handle POSIXLY_CORRECT set but not exported
28811         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
28812         export state of POSIXLY_CORRECT, due to bash set -o posix.
28813         Reported by Dustin J. Mitchell.
28814
28815 2010-09-05  Bruno Haible  <bruno@clisp.org>
28816
28817         gnulib-tool: Highlight the changed options.
28818         * gnulib-tool (func_usage): Display the --import, --add-import,
28819         --remove-import explanations in bold font.
28820
28821 2010-09-06  Karl Berry  <karl@gnu.org>
28822
28823         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
28824
28825 2010-09-05  Bruno Haible  <bruno@clisp.org>
28826
28827         uniwidth/width: Update comment.
28828         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
28829         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
28830
28831 2010-09-05  Bruno Haible  <bruno@clisp.org>
28832
28833         isinf, isnan: Relax license.
28834         * modules/isinf (License): Change from GPL to LGPL, with consent from
28835         Ben Pfaff.
28836         * modules/isnan (License): Likewise.
28837         Requested by Ludovic Courtès.
28838
28839 2010-09-04  Bruno Haible  <bruno@clisp.org>
28840
28841         gnulib-tool: Help migration from --import to --add-import or --update.
28842         * gnulib-tool: Emit a verbose error message when --import is used
28843         without any module name.
28844
28845 2010-09-04  Bruno Haible  <bruno@clisp.org>
28846
28847         Update doc about gnulib-tool.
28848         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
28849         'gnulib-tool --update' in more detail.
28850         Reported by Eric Blake.
28851
28852 2010-09-04  Bruno Haible  <bruno@clisp.org>
28853
28854         gnulib-tool: Change --import. New options --add/remove-import.
28855         * gnulib-tool: New options --add-import, --remove-import.
28856         (func_usage): Document them.
28857         (have_associative): Define always.
28858         (func_import): In import mode, don't merge the specified settings with
28859         the cached settings. Implement remove-import mode.
28860         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
28861         Explain when to use them versus --import.
28862         (Simple update): Use --add-import instead of --import.
28863         * NEWS: Mention the change.
28864
28865 2010-09-04  Bruno Haible  <bruno@clisp.org>
28866
28867         * doc/gnulib-tool.texi (Initial import): Update paragraph about
28868         separate gnulib.mk.
28869
28870 2010-09-04  Bruno Haible  <bruno@clisp.org>
28871
28872         gnulib-tool: Don't talk about CVS any more.
28873         * gnulib-tool (func_usage, func_import): Write "version control"
28874         instead of CVS.
28875
28876 2010-09-04  Jim Meyering  <meyering@redhat.com>
28877
28878         maint.mk: avoid obscure sc_copyright_check failure in coreutils
28879         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
28880         false positives (whose names may be ill-chosen) when searching
28881         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
28882         would cause a false-positive.
28883
28884         avoid coreutils "make distcheck" failure
28885         Coreutils tests with an absolute build directory name that contains
28886         a space.  Not quoting this directory name caused a failure.
28887         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
28888         * tests/test-vc-list-files-cvs.sh: Likewise.
28889
28890 2010-09-04  Bruno Haible  <bruno@clisp.org>
28891
28892         gnulib-tool: Avoid error when run in a package without Makefile.am.
28893         * gnulib-tool: When collecting the m4dirs in a package that does not
28894         have a Makefile.am, eliminate those directories that contain no
28895         gnulib-cache.m4. Fix expression that counts these directories.
28896
28897 2010-09-04  Bruno Haible  <bruno@clisp.org>
28898
28899         update-copyright test: Improve output when perl is missing or too old.
28900         * tests/test-update-copyright.sh: Move test of Perl version down after
28901         the test whether Perl exists. Provide an explanation relating Perl's
28902         error message to Automake's SKIP: message.
28903
28904 2010-09-04  Bruno Haible  <bruno@clisp.org>
28905
28906         Don't augment PATH in TESTS_ENVIRONMENT.
28907         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
28908         set abs_aux_dir instead of augmenting PATH.
28909         * modules/vc-list-files-tests (Makefile.am): Likewise.
28910         * tests/test-update-copyright.sh: Augment PATH here.
28911         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
28912         path_prepend_.
28913         * tests/test-vc-list-files-git.sh: Likewise.
28914
28915 2010-09-04  Jim Meyering  <meyering@redhat.com>
28916
28917         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
28918         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
28919
28920 2010-09-04  Bruno Haible  <bruno@clisp.org>
28921
28922         strdup: Fix compilation error in C++ mode.
28923         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
28924         the macro.
28925
28926 2010-09-04  Bruno Haible  <bruno@clisp.org>
28927
28928         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
28929         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
28930         macro into a function.
28931         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
28932
28933 2010-09-04  Bruno Haible  <bruno@clisp.org>
28934
28935         Set PATH_SEPARATOR the same way autoconf does.
28936         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
28937         the value of PATH_SEPARATOR the same way autoconf-generated configure
28938         scripts do.
28939         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
28940         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
28941
28942 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
28943
28944         Set PATH_SEPARATOR the same way autoconf does.
28945         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
28946         the same way autoconf-generated configure scripts do.
28947         * posix-modules: Likewise.
28948
28949 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
28950
28951         hash: fix safe_hasher const typo
28952         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
28953         const; otherwise, there is a type error later.
28954
28955 2010-09-02  Jim Meyering  <meyering@redhat.com>
28956
28957         test-update-copyright.sh: require perl 5.8.0
28958         * tests/test-update-copyright.sh: Require 5.8.0,
28959         which Tom G. Christensen has confirmed is adequate,
28960         while 5.6.1 is not.
28961
28962 2010-09-02  Eric Blake  <eblake@redhat.com>
28963
28964         tests: init.sh improvements for re-exec'ing with zsh
28965         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
28966         -vx through shell re-exec.
28967         Reported by Tom G. Christensen.
28968
28969         wctype: fix typo in previous commit
28970         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
28971         Reported by Ludovic Courtès.
28972
28973 2010-09-02  Jim Meyering  <meyering@redhat.com>
28974
28975         test-update-copyright.sh: skip test if Perl is too old
28976         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
28977         Reported by Tom G. Christensen.
28978
28979 2010-09-02  Bruno Haible  <bruno@clisp.org>
28980
28981         wctype: Avoid compilation error on IRIX 6.5.30.
28982         * lib/wctype.in.h (iswblank): Declare with a replacement if
28983         REPLACE_ISWBLANK is set.
28984         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
28985         declared. Set REPLACE_ISWBLANK.
28986         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
28987         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
28988         * doc/posix-headers/wctype.texi: Likewise.
28989         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28990
28991 2010-09-01  Bruno Haible  <bruno@clisp.org>
28992
28993         New module 'socketlib'.
28994         * modules/socketlib: New file.
28995         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
28996         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
28997         * modules/sockets (Depends-on): Add socketlib.
28998         Suggested by Sam Steingold <sds@gnu.org>.
28999
29000 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
29001
29002         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
29003
29004         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
29005         when one needs search access to a directory but not read access.
29006         On systems where it is available, it works in some cases where
29007         O_RDONLY does not, namely on directories that are searchable but
29008         not readable, and which need only to be searchable.  If O_SEARCH
29009         is not available, fall back to the traditional method of using
29010         O_RDONLY.
29011
29012         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
29013         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
29014         when opening a directory that needs only to be searchable.
29015         * lib/chdir-safer.c (chdir_no_follow): Likewise.
29016         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
29017         * lib/openat-proc.c (openat_proc_name): Likewise.
29018         * lib/openat.c (openat_needs_fchdir): Likewise.
29019         * lib/save-cwd.c (save_cwd): Likewise.
29020         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
29021
29022 2010-08-28  Bruno Haible  <bruno@clisp.org>
29023
29024         New module 'host-cpu-c-abi'.
29025         * modules/host-cpu-c-abi: New file.
29026         * m4/host-cpu-c-abi.m4: New file, based on part of
29027         clisp/src/m4/general.m4.
29028         Requested by Sam Steingold <sds@gnu.org>.
29029
29030 2010-08-31  Eric Blake  <eblake@redhat.com>
29031         and Jim Meyering  <meyering@redhat.com>
29032
29033         hash: factor, and guard against misbehaving hasher function
29034         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
29035         of table->hasher's return value.  Also protect against a hash value
29036         so large that adding it to table->bucket results in a NULL pointer.
29037         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
29038         Use it in place of open-coded check-and-abort.
29039
29040 2010-08-30  Bruno Haible  <bruno@clisp.org>
29041
29042         hash: silence spurious clang warning
29043         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
29044         Reported by Eric Blake.
29045
29046 2010-08-30  Eric Blake  <eblake@redhat.com>
29047
29048         strstr, memmem, strcasestr: avoid leaked shell message
29049         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
29050         FreeBSD.
29051         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
29052         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
29053
29054         tests: silence clang warning
29055         * tests/test-malloca.c (do_allocation): Avoid dead store.
29056
29057 2010-08-29  Bruno Haible  <bruno@clisp.org>
29058
29059         gettext: Fix recent mistake.
29060         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
29061
29062 2010-08-29  Bruno Haible  <bruno@clisp.org>
29063
29064         selinux-h: Offer a --without-selinux option.
29065         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
29066         --without-selinux was specified, skip all tests and define
29067         HAVE_SELINUX_SELINUX_H to 0.
29068         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
29069         set LIB_SELINUX to empty.
29070         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
29071         gl_LIBSELINUX. If --without-selinux was specified, replace
29072         selinux/context.h.
29073         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
29074
29075 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29076             Bruno Haible  <bruno@clisp.org>
29077
29078         Make the module 'realloc-gnu' work again on AIX and OSF/1.
29079         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
29080         of HAVE_REALLOC.
29081         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
29082         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
29083         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
29084         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
29085
29086 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29087             Bruno Haible  <bruno@clisp.org>
29088
29089         Make the module 'calloc-gnu' work again on AIX and OSF/1.
29090         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
29091         HAVE_CALLOC.
29092         * lib/xmalloc.c: Update accordingly.
29093         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
29094         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
29095         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
29096
29097 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29098             Bruno Haible  <bruno@clisp.org>
29099
29100         Make the module 'malloc-gnu' work again on AIX and OSF/1.
29101         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
29102         HAVE_MALLOC.
29103         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
29104         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
29105         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
29106
29107 2010-08-29  Bruno Haible  <bruno@clisp.org>
29108
29109         Update modules list.
29110         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
29111         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
29112         (String handling <string.h>): Add astrxfrm.
29113         (File system functions): Add readlinkat.
29114
29115 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29116
29117         Tests for module 'realloc-gnu'.
29118         * modules/realloc-gnu-tests: New file.
29119         * tests/test-realloc-gnu.c: New file.
29120
29121         Tests for module 'calloc-gnu'.
29122         * modules/calloc-gnu-tests: New file.
29123         * tests/test-calloc-gnu.c: New file.
29124
29125         Tests for module 'malloc-gnu'.
29126         * modules/malloc-gnu-tests: New file.
29127         * tests/test-malloc-gnu.c: New file.
29128
29129 2010-08-28  Bruno Haible  <bruno@clisp.org>
29130
29131         Rename module 'realloc' -> 'realloc-gnu'.
29132         * modules/realloc-gnu: New file, copied from modules/realloc.
29133         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
29134         obsolete.
29135         * modules/mgetgroups (Depends-on): Update.
29136         * doc/posix-functions/realloc.texi: Update.
29137         * NEWS: Mention the change.
29138
29139         Rename module 'calloc' -> 'calloc-gnu'.
29140         * modules/calloc-gnu: New file, copied from modules/calloc.
29141         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
29142         obsolete.
29143         * doc/posix-functions/calloc.texi: Update.
29144         * NEWS: Mention the change.
29145
29146         Rename module 'malloc' -> 'malloc-gnu'.
29147         * modules/malloc-gnu: New file, copied from modules/malloc.
29148         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
29149         obsolete.
29150         * modules/argp (Depends-on): Update.
29151         * modules/regex (Depends-on): Update.
29152         * doc/posix-functions/malloc.texi: Update.
29153         * NEWS: Mention the change.
29154
29155 2010-08-28  Eric Blake  <eblake@redhat.com>
29156
29157         pread, pwrite: add missing dependency
29158         * modules/pread (Depends-on): Add extensions.
29159         * modules/pwrite (Depends-on): Likewise.
29160
29161 2010-08-28  Bruno Haible  <bruno@clisp.org>
29162
29163         unistr/u*-strchr: Fix tests dependencies.
29164         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
29165         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
29166         Reported by Ian Beckwith <ianb@erislabs.net>.
29167
29168 2010-08-28  Bruno Haible  <bruno@clisp.org>
29169
29170         read-file: Don't occupy too much unused memory.
29171         * lib/read-file.c (fread_file): Shrink the buffer at the end.
29172
29173 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
29174             Eric Blake  <eblake@redhat.com>
29175             Bruno Haible  <bruno@clisp.org>
29176
29177         read-file: Avoid memory reallocations with regular files.
29178         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
29179         (fread_file): With regular files, use the remaining length as the
29180         initial buffer size.  Check against overflow.
29181         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
29182         sys_stat.
29183
29184 2010-08-28  Bruno Haible  <bruno@clisp.org>
29185
29186         ftello: Relax license.
29187         * modules/ftello (License): Relax to LGPLv2+.
29188         Reported by Eric Blake.
29189
29190 2010-08-28  Bruno Haible  <bruno@clisp.org>
29191
29192         Avoid relocwrapper link errors due to gnulib replacement functions.
29193         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
29194         function.
29195         Reported by Ben Pfaff <blp@cs.stanford.edu>.
29196
29197 2010-08-28  Bruno Haible  <bruno@clisp.org>
29198
29199         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
29200         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
29201         defined.
29202         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
29203         Suggested by Eric Blake.
29204
29205 2010-08-28  Bruno Haible  <bruno@clisp.org>
29206
29207         sys_socket, netdb: Ensure socklen_t gets defined.
29208         * modules/sys_socket (Depends-on): Add socklen.
29209         * modules/netdb (Depends-on): Likewise.
29210         * modules/getaddrinfo (Depends-on): Remove socklen.
29211         * modules/getsockopt (Depends-on): Likewise.
29212         * modules/setsockopt (Depends-on): Likewise.
29213         * tests/test-sys_socket.c: Check that socklen_t is defined.
29214         * tests/test-netdb.c: Likewise.
29215         * m4/socklen.m4: Update comments.
29216         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29217
29218 2010-08-27  Eric Blake  <eblake@redhat.com>
29219
29220         login_tty: add missing dependency
29221         * modules/login_tty (Depends-on): Add pty.
29222
29223 2010-08-26  Eric Blake  <eblake@redhat.com>
29224
29225         lib-symbol-versions: fix m4 quoting
29226         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
29227         format for AC_LINK_IFELSE.
29228
29229         glob: fix compile test
29230         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
29231
29232         btowc: fix missing file
29233         * modules/btowc (Files): Also ship locale-fr.m4.
29234
29235         lseek: fix link test
29236         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
29237         AC_LINK_IFELSE.
29238
29239         include_next: silence autoconf 2.68 warning
29240         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
29241         AC_COMPILE_IFELSE as special.
29242         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
29243         autoconf < 2.68.
29244
29245         acl: fix compilation test
29246         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
29247         AC_COMPILE_IFELSE.
29248
29249 2010-08-26  Bruno Haible  <bruno@clisp.org>
29250
29251         Modernize AC_TRY_RUN invocations.
29252         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
29253         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
29254         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
29255         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
29256         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
29257         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
29258         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
29259         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
29260         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
29261         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
29262         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
29263         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
29264         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
29265         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
29266         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
29267         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
29268         gl_MBRLEN_NUL_RETVAL): Likewise.
29269         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
29270         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
29271         Likewise.
29272         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
29273         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
29274         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
29275         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
29276         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
29277         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
29278         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
29279         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
29280         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
29281         Likewise.
29282         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
29283         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
29284         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
29285         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
29286         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
29287         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
29288         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
29289         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
29290         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
29291         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
29292
29293 2010-08-26  Bruno Haible  <bruno@clisp.org>
29294
29295         Modernize AC_TRY_LINK invocations.
29296         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
29297         AC_TRY_LINK.
29298         * m4/argp.m4 (gl_ARGP): Likewise.
29299         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
29300         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
29301         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
29302         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
29303         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
29304         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
29305         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
29306         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
29307         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
29308         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
29309         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
29310         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
29311         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
29312         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
29313         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
29314         * m4/hostent.m4 (gl_HOSTENT): Likewise.
29315         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
29316         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
29317         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
29318         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
29319         Likewise.
29320         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
29321         Likewise.
29322         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
29323         Likewise.
29324         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
29325         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
29326         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
29327         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
29328         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
29329         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
29330         * m4/servent.m4 (gl_SERVENT): Likewise.
29331         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
29332         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
29333         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
29334         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
29335         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
29336         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
29337         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
29338         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
29339         * modules/tsearch-tests (configure.ac): Likewise.
29340
29341 2010-08-26  Bruno Haible  <bruno@clisp.org>
29342
29343         Modernize AC_TRY_COMPILE invocations.
29344         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
29345         AC_TRY_COMPILE.
29346         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
29347         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
29348         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
29349         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
29350         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
29351         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
29352         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
29353         * m4/lock.m4 (gl_LOCK): Likewise.
29354         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
29355         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
29356         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
29357         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
29358         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
29359         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
29360         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
29361         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
29362         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
29363         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
29364         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
29365         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
29366         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
29367         extraneous semicolon.
29368
29369 2010-08-26  Jim Meyering  <meyering@redhat.com>
29370
29371         stat-time: relax license LGPL
29372         * modules/stat-time (License): Change from GPL to LGPL,
29373         with consent from all contributors, for use in libguile.
29374         Requested by Ludovic Courtès.
29375
29376 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
29377
29378         poll: return immediately on POLLHUP.
29379         * lib/poll.c (poll): Always set timeout before wait_timeout is
29380         computed.
29381
29382 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29383
29384         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
29385         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
29386         rmdir ("dir/.//"), unlinkat.
29387
29388 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
29389
29390         stdbool: avoid spurious failure with modern xlc
29391         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
29392
29393 2010-08-24  Bruno Haible  <bruno@clisp.org>
29394
29395         getloadavg: simplify code
29396         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
29397         gl_have_func. Update comments.
29398
29399 2010-08-24  Eric Blake  <eblake@redhat.com>
29400
29401         getloadavg: don't define SVR4 on cygwin
29402         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
29403         only define SVR4 when -lkvm is required.
29404         Reported by Yaakov Selkowitz.
29405
29406 2010-08-24  Bruno Haible  <bruno@clisp.org>
29407
29408         priv-set: fix comment
29409         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
29410
29411 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
29412
29413         priv-set: fix comments
29414         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
29415         to match code, as suggested by David Bartley in:
29416         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
29417
29418 2010-08-23  Eric Blake  <eblake@redhat.com>
29419
29420         stdbool: avoid rejecting clang
29421         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
29422         * tests/test-stdbool.c: Enable more tests if using the system
29423         <stdbool.h> instead of the gnulib replacement.
29424         (main): Move xlc bug test to a runtime test for all compilers.
29425         Reported by Anders Kaseorg.
29426
29427         argz: fix shell quoting issue
29428         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
29429         Reported by Charles Wilson.
29430
29431 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
29432             Erik Faye-Lund <kusmabite@gmail.com>
29433
29434         poll, select: handle ERROR_BROKEN_PIPE.
29435         * lib/poll.c (win32_compute_revents): Return POLLHUP when
29436         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
29437         * lib/select.c (win32_compute_revents): Do not mark a pipe
29438         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
29439
29440 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
29441
29442         fts: allow compilation with C++
29443         * lib/fts_.h: Specify extern "C" linkage with C++.
29444
29445 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29446
29447         Fix gnulib-tool sed script de-commentation for AIX sed.
29448         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
29449         sed.
29450
29451 2010-08-17  Eric Blake  <eblake@redhat.com>
29452
29453         test-stddef: test for (some) offsetof bugs
29454         * tests/test-stddef.c: Enhance test to ensure correct type of
29455         offsetof.
29456         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
29457         that we are not fixing at this time.
29458
29459 2010-08-15  Bruno Haible  <bruno@clisp.org>
29460
29461         stpncpy: Allow stpncpy to be defined as a macro.
29462         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
29463         if it's already correctly declared.
29464         * lib/string.in.h (stpncpy): Undefine before redefining.
29465         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
29466
29467 2010-08-14  Bruno Haible  <bruno@clisp.org>
29468
29469         Rename module 'memxfrm' to 'amemxfrm'.
29470         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
29471         (amemxfrm): Renamed from memxfrm.
29472         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
29473         (amemxfrm): Renamed from memxfrm.
29474         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
29475         * NEWS: Mention the change.
29476         * MODULES.html.sh (String handling <string.h>): Update.
29477         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
29478         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
29479         * lib/unicase/u16-casexfrm.c: Likewise.
29480         * lib/unicase/u32-casexfrm.c: Likewise.
29481         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
29482         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
29483         * lib/uninorm/u16-normxfrm.c: Likewise.
29484         * lib/uninorm/u32-normxfrm.c: Likewise.
29485         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
29486         memxfrm.
29487         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
29488         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
29489         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
29490         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
29491         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
29492         Suggested by Paul Eggert.
29493
29494 2010-08-14  Bruno Haible  <bruno@clisp.org>
29495
29496         Tests for module 'astrxfrm'.
29497         * modules/astrxfrm-tests: New file.
29498         * tests/test-astrxfrm.c: New file.
29499
29500         New module 'astrxfrm'.
29501         * lib/astrxfrm.h: New file.
29502         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
29503         * modules/astrxfrm: New file.
29504
29505 2010-08-14  Reuben Thomas <rrt@sc3d.org>
29506
29507         regex: Tweak doc.
29508         * doc/regex.texi (Overview): Don't mention regex.c.
29509         (GNU Regular Expression Compiling): Likewise.
29510         (Match-end-of-line Operator): Mention 'not_eol'.
29511
29512 2010-08-14  Brian Gough  <bjg@gnu.org>
29513             Bruno Haible  <bruno@clisp.org>
29514
29515         git-merge-changelog: add doc relating to use with bzr and hg.
29516         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
29517
29518 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
29519
29520         pthread: fix pthread.h creation for srcdir != builddir
29521         * modules/pthread (Makefile.am): Fix the rule to work also in a
29522         non-srcdir build.
29523
29524 2010-08-13  Karl Berry  <karl@gnu.org>
29525
29526         * doc/regex.texi (Predefined Syntaxes): @smallexample.
29527         * doc/posix-*/*: force line break before @url of POSIX
29528         specifications.
29529         Suggested by Werner Lemberg.
29530
29531 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
29532
29533         strtod: fix const diagnostic
29534         * lib/strtod.c (strtod): Don't assign const char * to char *,
29535         as this elicits a warning from GCC when warnings are enabled.
29536
29537 2010-08-10  Pádraig Brady <P@draigbrady.com>
29538         and Eric Blake  <eblake@redhat.com>
29539
29540         copy-acl: ignore ENOTSUP on HP-UX
29541         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
29542         so that it is available for HP-UX.
29543         * lib/copy-acl.c (qcopy_acl): Use it.
29544         Reported by Patrick M. Callahan.
29545
29546 2010-08-10  Eric Blake  <eblake@redhat.com>
29547
29548         open, chown: relax license
29549         * modules/open (License): Change to LGPLv2+, with consent by all
29550         authors, for use in augeas.
29551         * modules/chown (License): Likewise.
29552         * modules/lchown (Likewise): Likewise.
29553         Requested by Adam Stokes.
29554
29555 2010-08-09  Karl Berry  <karl@gnu.org>
29556
29557         * build-aux/ar-lib: new file, import from Automake.
29558         * config/srclist.txt: autocheck for updates.
29559
29560 2010-08-09  Eric Blake  <eblake@redhat.com>
29561
29562         readlinkat: adjust client modules
29563         * modules/areadlinkat (Depends-on): Use readlinkat, not
29564         symlinkat.
29565         * modules/areadlinkat-with-size (Depends-on): Likewise.
29566
29567         mknod: be more vocal about danger of running tests as root
29568         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
29569         root, since that is just asking for problems.
29570         Suggested by Bruno Haible, based on a report by Rainer Tammer.
29571
29572         readlinkat: split into its own module
29573         * modules/symlinkat: Split readlinkat...
29574         * modules/readlinkat: ...into separate module.
29575         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
29576         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
29577         * lib/symlinkat.c (readlinkat): Move...
29578         * lib/readlinkat.c: ...into new file.
29579         * modules/symlinkat-tests: Split readlinkat test...
29580         * modules/readlinkat-tests: ...into separate module.
29581         * tests/test-symlinkat.c: Split...
29582         * tests/test-readlinkat.c: ...into new file.
29583         * NEWS: Document the split.
29584         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
29585         * lib/unistd.in.h (readlinkat): Likewise.
29586         Suggested by Bruno Haible.
29587
29588 2010-08-08  Bruno Haible  <bruno@clisp.org>
29589
29590         memxfrm: Speed up.
29591         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
29592         that usually only one call to strxfrm is necessary for each string
29593         part.
29594         Reported by Paul Eggert <eggert@cs.ucla.edu>.
29595
29596 2010-08-07  Karl Berry  <karl@gnu.org>
29597
29598         * doc/posix-headers/limits.texi,
29599         * doc/posix-functions/malloc.texi,
29600         * doc/posix-functions/strsignal.texi: missing @item.
29601         * doc/ld-version-script.texi: spurious leading i.
29602         * doc/regex.texi (Interval Operators): no commas inside @var.
29603
29604 2010-08-01  Bruno Haible  <bruno@clisp.org>
29605
29606         Integrate the regex documentation.
29607         * doc/gnulib.texi: Define 'cn' index.
29608         (Regular expressions): New a chapter that includes regex.texi and
29609         regexprops-generic.texi.
29610         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
29611         syntax.
29612
29613         Whitespace cleanup.
29614         * doc/regex.texi: Remove trailing spaces.
29615
29616         Add regex documentation.
29617         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
29618         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
29619         Written by Kathy A. Hargreaves and Karl Berry.
29620
29621 2010-08-01  Bruno Haible  <bruno@clisp.org>
29622
29623         link: Update documentation.
29624         * doc/posix-functions/link.texi: Update regarding Solaris.
29625
29626 2010-07-31  Bruno Haible  <bruno@clisp.org>
29627
29628         Update modules list.
29629         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
29630         (String handling <string.h>): Add memcmp2, memxfrm.
29631         (Container data structures): Add xlist, xsublist, xoset.
29632         (Core language properties): Add alignof, unused-parameter.
29633         (Process control, Numeric conversion functions <stdlib.h>): Renamed
29634         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
29635         (Unibyte characters <ctype.h>): New section.
29636         (String handling <string.h>): New section.
29637         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
29638         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
29639         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
29640         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
29641         tan, tanh, tanl, y0, y1, yn.
29642         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
29643         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
29644         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
29645         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
29646         unlockpt, vdprintf, vdprintf-posix.
29647         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
29648         (File system functions): Add concat-filename, sys_file, sys_ioctl,
29649         xconcat-filename.
29650         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
29651         getdtablesize, pipe2, pipe2-safer.
29652         (Security): New section.
29653         (Networking functions): Add accept4.
29654         (Signal handling): Add sigpipe.
29655         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
29656         mbmemcasecoll.
29657         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
29658         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
29659         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
29660         pipe-filter-ii.
29661         (Misc): Add argp-version-etc, login_tty, parse-duration.
29662
29663 2010-07-31  Bruno Haible  <bruno@clisp.org>
29664
29665         Improve doc in MODULES.html.
29666         * modules/linkat (Description): Add the word "function".
29667         * modules/mkfifo (Description): Likewise.
29668         * modules/mknod (Description): Likewise.
29669         * modules/remove (Description): Likewise.
29670         * modules/renameat (Description): Likewise.
29671         * modules/stat (Description): Likewise.
29672         * modules/symlink (Description): Likewise.
29673         * modules/unlink (Description): Likewise.
29674
29675 2010-07-31  Bruno Haible  <bruno@clisp.org>
29676
29677         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
29678         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
29679         option --enable/disable-c++ instead of --enable/disable-cxx.
29680         * NEWS: Mention the change.
29681
29682 2010-07-31  Bruno Haible  <bruno@clisp.org>
29683
29684         readlink, areadlink: Relax test a bit.
29685         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
29686         alternative to ENOTDIR.
29687         * tests/test-areadlink.h (test_areadlink): Likewise.
29688         Reported by Rainer Tammer.
29689
29690 2010-07-31  Bruno Haible  <bruno@clisp.org>
29691
29692         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
29693         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
29694         character, perform the search using U_STRCHR.
29695         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
29696         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
29697         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
29698         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
29699         Suggested by Paolo Bonzini.
29700
29701 2010-07-31  Bruno Haible  <bruno@clisp.org>
29702
29703         unistr/u*-strstr: Fix dependencies.
29704         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
29705         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
29706         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
29707
29708 2010-07-31  Bruno Haible  <bruno@clisp.org>
29709
29710         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
29711         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
29712         the beginning of the loop.
29713         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
29714         cases in 'switch' statement.
29715
29716         unistr/u8-strchr: Fix several bugs.
29717         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
29718         the string. When not found, return NULL, not a pointer near the end.
29719
29720         More tests for unistr/u8-strchr.
29721         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
29722         that the function does not read past the first occurrence of the byte
29723         being searched.
29724         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
29725         * tests/unistr/test-u16-strchr.c (main): New function.
29726         * tests/unistr/test-u32-strchr.c (main): New function.
29727
29728 2010-07-31  Bruno Haible  <bruno@clisp.org>
29729
29730         posix-modules: Ignore backup files of documentation files.
29731         * posix-modules: grep only through files named *.texi.
29732
29733 2010-07-31  Bruno Haible  <bruno@clisp.org>
29734
29735         symlinkat: Fix documentation.
29736         * doc/posix-functions/readlinkat.texi: Fix module name.
29737
29738 2010-07-31  Bruno Haible  <bruno@clisp.org>
29739
29740         fchownat: Replace also when chown has the trailing slash bug.
29741         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
29742         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
29743         introduced on 2010-04-10.
29744         Reported by Rainer Tammer.
29745
29746 2010-07-31  Bruno Haible  <bruno@clisp.org>
29747
29748         linkat: Work around AIX 7.1 bug.
29749         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
29750         whether linkat handles trailing slash correctly. If not, replace linkat
29751         and define LINKAT_TRAILING_SLASH_BUG.
29752         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
29753         check whether (fd1,file1) points to a directory if file1 or file2 ends
29754         in a slash. Code taken from lib/link.c.
29755         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
29756         Reported by Rainer Tammer.
29757
29758 2010-07-31  Bruno Haible  <bruno@clisp.org>
29759
29760         Correctly determine whether pow is available in libc on AIX 7 with xlc.
29761         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
29762         This disables an xlc optimization that was causing wrong test results.
29763         Reported by Rainer Tammer.
29764
29765 2010-07-31  Bruno Haible  <bruno@clisp.org>
29766
29767         iconv: Work around AIX 6.1..7.1 bug.
29768         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
29769         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
29770         cross-compiling, guess no on all versions of AIX.
29771         Reported by Rainer Tammer.
29772
29773 2010-07-31  Bruno Haible  <bruno@clisp.org>
29774
29775         readlink: Relax test a bit.
29776         * tests/test-readlink.h (test_readlink): Allow different errno value
29777         when readlink is called with a file name that ends in / and refers to
29778         a file.
29779         Suggested by Eric Blake.
29780         Reported by Rainer Tammer.
29781
29782 2010-07-31  Bruno Haible  <bruno@clisp.org>
29783
29784         copysign: Does not require -lm on glibc systems.
29785         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
29786         gl_COMMON_DOUBLE_MATHFUNC.
29787         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
29788
29789 2010-07-31  Bruno Haible  <bruno@clisp.org>
29790
29791         duplocale: Work around AIX 7.1 bug.
29792         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
29793         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
29794         * lib/duplocale.c (rpl_duplocale): Update comment.
29795         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
29796         Reported by Rainer Tammer.
29797
29798 2010-07-30  Bruno Haible  <bruno@clisp.org>
29799
29800         dirfd: Avoid link error on AIX 7.1.
29801         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
29802         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
29803         exist, set REPLACE_DIRFD.
29804         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
29805         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
29806         * doc/posix-functions/dirfd.texi: Update.
29807         Reported by Rainer Tammer.
29808
29809 2010-07-30  Eric Blake  <eblake@redhat.com>
29810
29811         strtod: next round of AIX fixes
29812         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
29813         exponent.
29814         * tests/test-strtod.c (main): Enhance tests.
29815         * doc/posix-functions/strtod.texi (strtod): Document next bug.
29816         Reported by Rainer Tammer.
29817
29818         futimens: fix configure check
29819         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
29820         Reported by Bruno Haible.
29821
29822 2010-07-30  Bruno Haible  <bruno@clisp.org>
29823
29824         getline: Update regarding AIX.
29825         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
29826         Reported by Rainer Tammer.
29827
29828 2010-07-30  Bruno Haible  <bruno@clisp.org>
29829
29830         wcwidth: Drop replacement on AIX 7.
29831         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
29832         AIX 7.
29833         Reported by Rainer Tammer.
29834
29835 2010-07-30  Bruno Haible  <bruno@clisp.org>
29836
29837         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
29838         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
29839         a 'char *'.
29840         Reported by Rainer Tammer.
29841
29842 2010-07-30  Bruno Haible  <bruno@clisp.org>
29843
29844         unlink: Update regarding AIX.
29845         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
29846         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
29847         Reported by Rainer Tammer.
29848
29849 2010-07-30  Bruno Haible  <bruno@clisp.org>
29850
29851         symlink: Update regarding AIX.
29852         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
29853         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
29854         Reported by Rainer Tammer.
29855
29856 2010-07-30  Bruno Haible  <bruno@clisp.org>
29857
29858         strndup: Update regarding AIX.
29859         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
29860         AIX 7.
29861         Reported by Rainer Tammer.
29862
29863 2010-07-30  Bruno Haible  <bruno@clisp.org>
29864
29865         stat: Update regarding AIX.
29866         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
29867         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
29868         Reported by Rainer Tammer.
29869
29870 2010-07-30  Bruno Haible  <bruno@clisp.org>
29871
29872         truncl: Fix autoconf test.
29873         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
29874         whether truncl works.
29875         Reported by Rainer Tammer.
29876
29877 2010-07-30  Bruno Haible  <bruno@clisp.org>
29878
29879         round: Update regarding AIX.
29880         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
29881         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
29882         Reported by Rainer Tammer.
29883
29884 2010-07-30  Bruno Haible  <bruno@clisp.org>
29885
29886         rename: Update regarding AIX.
29887         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
29888         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
29889         Reported by Rainer Tammer.
29890
29891 2010-07-30  Bruno Haible  <bruno@clisp.org>
29892
29893         printf.m4: Update regarding AIX.
29894         * m4/printf.m4: Update comments regarding AIX.
29895         Reported by Rainer Tammer.
29896
29897 2010-07-30  Bruno Haible  <bruno@clisp.org>
29898
29899         iconv: Update regarding AIX.
29900         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
29901         AIX 7.
29902         Reported by Rainer Tammer.
29903
29904 2010-07-30  Bruno Haible  <bruno@clisp.org>
29905
29906         getopt: Update regarding AIX.
29907         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
29908         no on AIX.
29909         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
29910         Reported by Rainer Tammer.
29911
29912 2010-07-30  Bruno Haible  <bruno@clisp.org>
29913
29914         ldexpl; Update regarding AIX.
29915         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
29916         on AIX 7.
29917         Reported by Rainer Tammer.
29918
29919 2010-07-30  Bruno Haible  <bruno@clisp.org>
29920
29921         frexpl: Update regarding AIX.
29922         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
29923         on AIX 7.
29924         Reported by Rainer Tammer.
29925
29926 2010-07-30  Bruno Haible  <bruno@clisp.org>
29927
29928         open, fopen: Update regarding AIX.
29929         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
29930         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
29931         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
29932         * doc/posix-functions/fopen.texi: Likewise.
29933         Reported by Rainer Tammer.
29934
29935 2010-07-30  Bruno Haible  <bruno@clisp.org>
29936
29937         chown: Update doc regarding AIX.
29938         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
29939         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
29940         Reported by Rainer Tammer.
29941
29942 2010-07-30  Eric Blake  <eblake@redhat.com>
29943
29944         strtod: fix bug in replacement function on AIX
29945         * lib/strtod.c (strtod): Special case broken "0x" parse in
29946         underlying strtod.
29947         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
29948         * doc/posix-functions/strtod.texi (strtod): Likewise.
29949         Reported by Rainer Tammer.
29950
29951 2010-07-30  Bruno Haible  <bruno@clisp.org>
29952
29953         mbrlen: Fix cross-compilation guess for AIX.
29954         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
29955         guess. Leftover from 2008-12-22.
29956
29957 2010-07-30  Bruno Haible  <bruno@clisp.org>
29958
29959         mbrtowc: Fix cross-compilation guess for AIX.
29960         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
29961         guess. Leftover from 2008-12-21.
29962
29963 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
29964
29965         init.sh: work around trap limitation of some shells
29966         * tests/init.sh (setup_): Move exit trap outside of shell function.
29967
29968 2010-07-29  Eric Blake  <eblake@redhat.com>
29969
29970         strtod: aid debugging
29971         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
29972         understanding why strtod is rejected.
29973
29974 2010-07-28  Bruno Haible  <bruno@clisp.org>
29975
29976         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
29977         * lib/unistr/u8-chr.c: Include <string.h>.
29978         * tests/unistr/test-u8-chr.c: Likewise.
29979         * tests/unistr/test-u16-chr.c: Likewise.
29980         * tests/unistr/test-u32-chr.c: Likewise.
29981         * tests/unistr/test-u8-strchr.c: Likewise.
29982         * tests/unistr/test-u16-strchr.c: Likewise.
29983         * tests/unistr/test-u32-strchr.c: Likewise.
29984         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
29985         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
29986         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
29987         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
29988
29989 2010-07-28  Bruno Haible  <bruno@clisp.org>
29990
29991         Use spaces for indentation, not tabs.
29992         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
29993
29994 2010-07-27  Bruno Haible  <bruno@clisp.org>
29995
29996         mbspcasecmp: Fix function specification.
29997         * lib/string.in.h (mbspcasecmp): Fix specification comment.
29998         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
29999         Reported by Eric Blake <eblake@redhat.com>.
30000
30001 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
30002
30003         timespec: use cast and not conditional, as truncation isn't possible
30004         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
30005         instead of a conditional.  Comment about the situation in more detail.
30006         This undoes most of the 2009-10-29 patch.
30007
30008 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
30009
30010         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
30011         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
30012         * lib/unistr/u8-strchr.c: Likewise.
30013         * modules/unistr/u8-chr: Depend on memchr.
30014
30015         unistr/u*-strchr: add tests
30016         * modules/unistr/u8-strchr-tests: New file.
30017         * modules/unistr/u16-strchr-tests: New file.
30018         * modules/unistr/u32-strchr-tests: New file.
30019         * tests/unistr/test-strchr.h: New file.
30020         * tests/unistr/test-u8-strchr.c: New file.
30021         * tests/unistr/test-u16-strchr.c: New file.
30022         * tests/unistr/test-u32-strchr.c: New file.
30023
30024         unistr/u*-chr: test multibyte sequences more
30025         * tests/unistr/test-chr.h: Do complete testing of the characters in the
30026         test vector.
30027         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
30028         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
30029         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
30030
30031         unistr/u*-chr: test multibyte sequences
30032         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
30033
30034         unistr/u*-chr: prepare for multibyte tests
30035         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
30036         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
30037         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
30038         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
30039         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
30040         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
30041
30042 2010-07-18  Bruno Haible  <bruno@clisp.org>
30043
30044         unistr/u8-strchr: Optimize non-ASCII argument case.
30045         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
30046         because the first byte often matches anyway.
30047         Reported by Pádraig Brady <P@draigbrady.com>.
30048
30049 2010-07-15  Karl Berry  <karl@gnu.org>
30050
30051         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
30052
30053 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
30054
30055         getcwd: on Solaris, work better if ancestors are inaccessible
30056         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
30057         buffer and size, try again with a large buffer.  This works better
30058         on Solaris, since its getcwd succeeds even if the path to the root
30059         is inaccessible, and this is helpful in common cases such as .zfs
30060         hidden directories.  Problem reported by J Chapman Flack in
30061         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
30062         Use system getcwd if it's declared, not merely if it's partly
30063         working; use the partly-working test only to avoid needless effort
30064         if the system getcwd fails.
30065         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
30066         comment that was already obsolete and is now even more obsolete.
30067         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
30068         now might call strdup.
30069
30070 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
30071
30072         pthread: Add enough so that coreutils/src/sort.c compiles.
30073         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
30074         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
30075         gnulib. Include <sched.h> and <time.h>, as per POSIX.
30076         Include <sys/types.h>, in case it defines pthread_t.
30077         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
30078         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
30079         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
30080         (pthread_rwlockattr_t, pthread_spinlock_t):
30081         New typedefs, if HAVE_PTHREAD_T is not defined.
30082         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
30083         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
30084         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
30085         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
30086         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
30087         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
30088         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
30089         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
30090         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
30091         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
30092         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
30093         New macros.
30094         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
30095         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
30096         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
30097         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
30098         (pthread_spin_unlock): New dummy functions.
30099         (pthread_create): Return EAGAIN; don't set errno.
30100         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
30101         require AC_C_INLINE.
30102         * modules/pthread (Depends-on): Add sched, time.
30103         (pthread.h): Use AM_V_GEN.
30104
30105 2010-07-13  Bruno Haible  <bruno@clisp.org>
30106
30107         striconveh: Don't malloc memory if the result buffer is sufficient.
30108         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
30109         buffer if its size is sufficient.
30110         Reported by Ludovic Courtès <ludo@gnu.org>.
30111
30112 2010-07-13  Bruno Haible  <bruno@clisp.org>
30113
30114         strtod: Add safety check.
30115         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
30116
30117 2010-07-12  Bruno Haible  <bruno@clisp.org>
30118
30119         Unify tests that set gl_cv_func_ldexpl_no_libm.
30120         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
30121         gl_FUNC_LDEXPL.
30122         (gl_FUNC_LDEXPL): Invoke it.
30123         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
30124
30125 2010-07-12  Bruno Haible  <bruno@clisp.org>
30126
30127         Unify tests that set gl_cv_func_ldexp_no_libm.
30128         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
30129         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
30130         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
30131         (configure.ac): Simply invoke gl_FUNC_LDEXP.
30132         * modules/strtod (Files): Add m4/ldexp.m4.
30133
30134 2010-07-12  Bruno Haible  <bruno@clisp.org>
30135
30136         Unify tests that set gl_cv_func_frexpl_no_libm.
30137         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
30138         gl_FUNC_FREXPL_NO_LIBM.
30139         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
30140         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
30141
30142 2010-07-12  Bruno Haible  <bruno@clisp.org>
30143
30144         Unify tests that set gl_cv_func_frexp_no_libm.
30145         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
30146         gl_FUNC_FREXP_NO_LIBM.
30147         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
30148         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
30149
30150 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
30151
30152         memcoll: clarify sizes versus lengths, document better, and tweak perf
30153         * lib/memcoll.c (strcoll_loop, memcoll0):
30154         Improve quality of descriptive comments.  Name variables
30155         consistently as to whether they are lengths (which do not include
30156         terminating null) versus sizes (which do).
30157         * lib/xmemcoll.c (xmemcoll0): Likewise.
30158         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
30159         returned when s1size == 0; this is easier to compile and saves
30160         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
30161
30162 2010-07-12  Bruno Haible  <bruno@clisp.org>
30163
30164         Tests for module '_Exit'.
30165         * modules/_Exit-tests: New file.
30166         * tests/test-_Exit.sh: New file.
30167         * tests/test-_Exit.c: New file.
30168
30169         New module '_Exit'.
30170         * lib/stdlib.in.h (__attribute__): New macro.
30171         (_Exit): New declaration.
30172         * lib/_Exit.c: New file.
30173         * m4/_Exit.m4: New file.
30174         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
30175         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
30176         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
30177         * modules/_Exit: New file.
30178         * tests/test-stdlib-c++.cc (_Exit): Check signature.
30179         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
30180
30181 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
30182
30183         strtod: make it more-accurate typically, and don't require libm
30184         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
30185         Include limits.h.  Don't include string.h.
30186         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
30187         (locale_isspace): New function, so that no casts are needed to
30188         check whether *s is a space.
30189         (ldexp): Provide an unused dummy if not available.
30190         (scale_radix_exp, parse_number, underlying_strtod): New functions.
30191         (strtod): Use them.  This implementation prefers to use the
30192         underlying strtod if available, falling back on our own code
30193         only to fix known bugs.  This is more likely to produce an
30194         accurate result.  Also, it avoids the use of libm functions.
30195         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
30196         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
30197         was absent, but it caused a test failure with coreutils.
30198         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
30199         with libm.
30200         * modules/strtod (Makefile.am, Link): libm is no longer needed.
30201         * modules/strtod-tests (Makefile.am): Likewise.
30202
30203 2010-07-11  Pádraig Brady  <P@draigBrady.com>
30204             Bruno Haible  <bruno@clisp.org>
30205
30206         unistr/u8-strchr: Optimize ASCII argument case.
30207         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
30208
30209 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
30210
30211         (x)memcoll: minor tweaks
30212         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
30213         is after the type that it qualifies.
30214         (memcoll0): Likewise.
30215         * lib/memcoll.h (memcoll0): Likewise.
30216         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
30217         * lib/xmemcoll.h (xmemcoll0): Likewise.
30218         * lib/memcoll.c (memcoll0): Correct the comment.  This function
30219         differs from memcoll in that the NUL byte is part of the argument.
30220         Omit the abort-checks, as performance is a real issue here.  Plus,
30221         the checks were wrong anyway (an off-by-one error).  Omit local
30222         variable 'diff', as it's a bit clearer that way.
30223         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
30224         no longer needed.
30225
30226 2010-07-08  Chen Guo <chenguo4@yahoo.com>
30227
30228         (x)memcoll: speedup when input is known to be NUL delimited
30229         * lib/memcoll.c: Include stdlib.
30230         (memcoll0): New function.
30231         (strcoll_loop): New function, refactored for use in both memcoll
30232         and memcoll0.
30233         * lib/memcoll.h (memcoll0): Add prototype.
30234         * lib/xmemcoll.c (xmemcoll0): New function.
30235         (collate_error): New function, refactored for use in both xmemcoll
30236         and xmemcoll0.
30237         * lib/xmemcoll.h (xmemcoll0): Add prototype.
30238         * m4/memcoll.m4: add inline invocation.
30239
30240 2010-07-06  Pádraig Brady  <P@draigBrady.com>
30241
30242         * build-aux/bootstrap: Remove any local translations
30243         from the translation project synchronization directory,
30244         so that local only translations are not distributed.
30245
30246 2010-07-04  Bruno Haible  <bruno@clisp.org>
30247
30248         fsusage: Clarify which code applies to which platforms.
30249         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
30250         platform.
30251         * lib/fsusage.c (get_fs_usage): Likewise.
30252
30253 2010-07-04  Bruno Haible  <bruno@clisp.org>
30254
30255         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
30256         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
30257         Reported by Martin Lambers <marlam@marlam.de>.
30258
30259 2010-07-04  Jim Meyering  <meyering@redhat.com>
30260
30261         hash: once again explicitly disallow insertion of NULL
30262         * lib/hash.c (hash_insert0): Reinstate just-removed test:
30263         inserting a NULL pointer cannot work with these functions.
30264         Add a comment with details.
30265         This reverts part of the 2010-07-01 commit, 5bef1a35
30266         "hash: extend module to deal with non-pointer keys".
30267
30268 2010-07-01  Bruno Haible  <bruno@clisp.org>
30269
30270         stdbool: Update doc.
30271         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
30272         Info from Christian Weisgerber <naddy@mips.inka.de>.
30273
30274 2010-07-01  Jim Meyering  <meyering@redhat.com>
30275
30276         hash: extend module to deal with non-pointer keys
30277         * lib/hash.c (hash_insert0): New interface, much like hash_insert
30278         but that allows insertion of non-pointer entries.
30279         Do not disallow an ENTRY value of NULL.
30280         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
30281         * lib/hash.h (hash_insert0): Declare.
30282
30283 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
30284
30285         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
30286         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
30287         not present (i.e. with autoconf 2.59 and when using gettextize, not
30288         gnulib), require AC_GNU_SOURCE instead.
30289
30290 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
30291
30292         idpriv-drop: Fix tests.
30293         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
30294         not to the test-idpriv-droptemp program.
30295
30296 2010-06-29  Bruno Haible  <bruno@clisp.org>
30297
30298         string: Fix syntax error with g++ 2.96.
30299         * lib/string.in.h (__pure__): Remove definition.
30300         (_GL_ATTRIBUTE_PURE): New macro.
30301         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
30302         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
30303         Reported by Christian Weisgerber <naddy@mips.inka.de>.
30304
30305 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
30306
30307         unitypes: Fix bug introduced on 2010-05-18.
30308         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
30309
30310 2010-06-22  Eric Blake  <eblake@redhat.com>
30311
30312         memmem: slight optimization
30313         * lib/str-two-way.h (critical_factorization): Update comments.
30314         Reduce work during factorization phase.
30315         Reported by Carlos Bueno <carlos@bueno.org>.
30316
30317 2010-06-21  Bruno Haible  <bruno@clisp.org>
30318
30319         Fix HAVE_CALLOC_POSIX misnomer.
30320         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
30321         !HAVE_CALLOC_POSIX.
30322         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
30323         HAVE_CALLOC_POSIX.
30324         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
30325         instead of HAVE_CALLOC_POSIX.
30326         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
30327         HAVE_CALLOC_POSIX.
30328
30329         Use modern idiom for calloc() replacement.
30330         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
30331         AC_FUNC_CALLOC.
30332         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
30333         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
30334         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
30335         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
30336         (gl_REPLACE_CALLOC): New macro.
30337
30338 2010-06-21  Bruno Haible  <bruno@clisp.org>
30339
30340         Fix HAVE_REALLOC_POSIX misnomer.
30341         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
30342         !HAVE_REALLOC_POSIX.
30343         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
30344         HAVE_REALLOC_POSIX.
30345         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
30346         instead of HAVE_REALLOC_POSIX.
30347         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
30348         HAVE_REALLOC_POSIX.
30349
30350         Use modern idiom for realloc() replacement.
30351         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
30352         AC_FUNC_REALLOC.
30353         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
30354         Autoconf's AC_FUNC_REALLOC.
30355         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
30356         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
30357         (gl_REPLACE_REALLOC): New macro.
30358         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
30359
30360 2010-06-21  Bruno Haible  <bruno@clisp.org>
30361
30362         Fix HAVE_MALLOC_POSIX misnomer.
30363         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
30364         !HAVE_MALLOC_POSIX.
30365         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
30366         HAVE_MALLOC_POSIX.
30367         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
30368         instead of HAVE_MALLOC_POSIX.
30369         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
30370         HAVE_MALLOC_POSIX.
30371
30372         Use modern idiom for malloc() replacement.
30373         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
30374         AC_FUNC_MALLOC.
30375         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
30376         Autoconf's AC_FUNC_MALLOC.
30377         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
30378         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
30379         (gl_REPLACE_MALLOC): New macro.
30380         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
30381
30382 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
30383
30384         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
30385         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
30386         This macro takes 3 arguments, not 4.
30387
30388 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
30389
30390         ipv6: fix detection under mingw
30391         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
30392         in6_addr.
30393
30394 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
30395
30396         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
30397         that strtod() works when cross-compiling to a glibc version known
30398         to work.
30399
30400 2010-06-15  Bruno Haible  <bruno@clisp.org>
30401
30402         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
30403
30404 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
30405
30406         select: Correct timeout.
30407         * lib/select.c (rpl_select): Compute wait_timeout correctly.
30408
30409 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
30410
30411         git-version-gen: init shell var to avoid env var influence
30412         * build-aux/git-version-gen (v): Init shell var to empty.
30413
30414 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
30415
30416         priv-set: Don't assume that priv.h exists merely because getppriv does.
30417         See Jan Andersen's bug report about AIX 5L in
30418         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
30419         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
30420         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
30421         * lib/priv-set.h: Likewise.
30422         * tests/test-priv-set.c: Likewise.
30423
30424 2010-06-13  Bruno Haible  <bruno@clisp.org>
30425
30426         relocatable: Make it easier to test whether to install wrappers.
30427         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
30428         RELOCATABLE_VIA_WRAPPER.
30429
30430 2010-06-13  Bruno Haible  <bruno@clisp.org>
30431
30432         gnulib-tool: Display specified modules and dependencies differently.
30433         * gnulib-tool (func_show_module_list): New function.
30434         (func_import, func_create_testdir): Invoke it.
30435         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
30436
30437 2010-06-13  Bruno Haible  <bruno@clisp.org>
30438
30439         gnulib-tool: Align code of func_import and func_create_testdir.
30440         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
30441         specified_modules.
30442
30443 2010-06-12  Jim Meyering  <meyering@redhat.com>
30444
30445         test-inttostr: avoid spurious failure on Solaris 9
30446         * tests/test-inttostr.c (main): Skip the test when snprintf fails
30447         to accept "%ju".  Reported by Bruno Haible.
30448
30449 2010-06-11  Jim Meyering  <meyering@redhat.com>
30450
30451         test-sys_socket: mark variables as used more readably
30452         * tests/test-sys_socket.c (main): Mark otherwise unused variables
30453         as "used" explicitly via (void) statement casts.  This is more
30454         readable than using them in an artificial return expression.
30455         Suggestion from Bruno Haible.
30456
30457 2010-06-11  Bruno Haible  <bruno@clisp.org>
30458
30459         Avoid some more warnings from "gcc -Wwrite-strings".
30460         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
30461         to 'const char *'.
30462         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
30463         * tests/test-c-strcasestr.c (main): Likewise.
30464         * tests/test-mbscasestr1.c (main): Likewise.
30465         * tests/test-mbscasestr2.c (main): Likewise.
30466         * tests/test-memmem.c (main): Likewise.
30467         * tests/test-strstr.c (main): Likewise.
30468         * tests/test-strcasestr.c (main): Likewise.
30469
30470 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30471
30472         init.sh: change framework_failure_ to fail with status 99, not 1
30473         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
30474         automake's parallel-tests rule that this is an unexpected failure,
30475         even if the test is listed in XFAIL_TESTS.
30476
30477 2010-06-11  Jim Meyering  <meyering@redhat.com>
30478
30479         test-inttostr: avoid warnings about 4-6KB literal strings
30480         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
30481         Include "macros.h", for its definition of ASSERT.
30482         (CK): s/assert/ASSERT/
30483         * modules/inttostr-tests (Files): Add macros.h.
30484
30485         init.sh: don't use $ME_ or skip_ before they are defined
30486         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
30487         their first uses.  Also hoist their companions: warn_, fail_,
30488         framework_failure_, $stderr_fileno.  Prompted by a patch from
30489         Stefano Lattarini.
30490
30491         test-sys_socket: avoid set-but-not-used warnings from gcc
30492         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
30493         avoid warning about set-but-not-used variables.
30494
30495         test-xvasprintf: avoid 'const' discard warnings
30496         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
30497         "const" when assigning from literal strings.
30498         (test_xasprintf): Add "void" in function argument list to placate
30499         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
30500
30501         tests: avoid compilation warnings in argmatch and exclude tests...
30502         in packages that define ARGMATCH_DIE_DECL, like coreutils.
30503         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
30504         Since it always exits, declare with the "noreturn" attribute.
30505         * tests/test-argmatch.c: Likewise.
30506
30507         tests: avoid 'const' discard warnings in mbsstr tests
30508         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
30509         * tests/test-mbsstr2.c (main): Likewise.
30510
30511         test-verify: avoid warning from gcc's -Wmissing-declarations
30512         * tests/test-verify.c (function): Declare to be static.
30513
30514         test-inttostr.c: include <string.h> for use of strcmp
30515         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
30516
30517         test-linkat: avoid failed assertion on "other" architectures
30518         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
30519         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
30520         sparc: https://bugs.launchpad.net/bugs/591968
30521
30522 2010-06-11  Jim Meyering  <meyering@redhat.com>
30523
30524         printf.m4: avoid autoconf's "Expanded Before Required" warning
30525         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
30526         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
30527         autoconf warning.
30528
30529 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
30530
30531         Replacement header templates are now named with ".in", not "_".
30532         * doc/gnulib-intro.texi: Correct.
30533
30534 2010-06-10  Jim Meyering  <meyering@redhat.com>
30535
30536         inttostr-tests: depend on snprintf, not snprintf-posix
30537         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
30538         snprintf-posix, to avoid this aclocal failure:
30539           missing file gnulib-tests/vasnprintf.c
30540           configure.ac:45: error: expected source file, required through \
30541           AC_LIBSOURCES, not found
30542
30543 2010-06-10  Jim Meyering  <meyering@redhat.com>
30544
30545         inttostr: add a new function, inttostr, and tests
30546         The namesake function was not available.  The existence of the
30547         template file, inttostr.c makes its addition nontrivial.
30548         * lib/anytostr.c: Rename from inttostr.c.
30549         (anytostr): Rename from inttostr.
30550         * lib/inttostr.c: New file.
30551         * modules/inttostr (Files): Add anytostr.c.
30552         (Makefile.am): Set lib_SOURCES instead of ...
30553         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
30554         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
30555         * lib/offtostr.c: Likewise.
30556         * lib/uinttostr.c: Likewise.
30557         * lib/umaxtostr.c: Likewise.
30558         * modules/inttostr-tests: New file.
30559         * tests/test-inttostr.c: New file.  Test these functions.
30560
30561 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
30562             Bruno Haible  <bruno@clisp.org>
30563
30564         Add "Extending Gnulib" chapter to manual.
30565         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
30566         chapter.
30567         (Extending Gnulib): New chapter.
30568         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
30569         chapter.
30570
30571 2010-06-09  Bruno Haible  <bruno@clisp.org>
30572
30573         Avoid relocwrapper link errors due to gnulib replacement functions.
30574         * lib/areadlink.c: Use the system's malloc, realloc functions.
30575         (areadlink): Set errno to ENOMEM explicitly.
30576         * modules/areadlink (Depends-on): Remove malloc-posix.
30577         Reported by Ben Pfaff <blp@cs.stanford.edu>.
30578
30579 2010-06-09  Bruno Haible  <bruno@clisp.org>
30580
30581         Avoid relocwrapper link errors due to gnulib replacement functions.
30582         * lib/canonicalize-lgpl.c: Use the system's malloc function.
30583         * lib/malloca.c: Likewise.
30584         * lib/relocatable.c: Likewise.
30585         * lib/progreloc.c: Use the system's malloc, sprintf functions.
30586         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
30587         * lib/setenv.c: Use the system's malloc, realloc functions.
30588         * lib/strerror.c: Use the system's sprintf function.
30589         Reported by Ben Pfaff <blp@cs.stanford.edu>.
30590
30591 2010-06-04  Bruno Haible  <bruno@clisp.org>
30592
30593         Prefer documented low-level autoconf macro names.
30594         * m4/lib-link.m4: Use m4_translit instead of translit.
30595         * m4/environ.m4: Likewise.
30596         * m4/mathfunc.m4: Likewise.
30597         * m4/onceonly.m4: Likewise.
30598         * m4/stdint.m4: Likewise.
30599         Suggested by Eric Blake.
30600
30601 2010-06-04  Martin Lambers  <marlam@marlam.de>
30602             Bruno Haible  <bruno@clisp.org>
30603
30604         havelib: Allow library names with '+' characters.
30605         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
30606         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
30607
30608 2010-06-09  Bruno Haible  <bruno@clisp.org>
30609
30610         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
30611         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
30612         realloc failed.
30613
30614 2010-06-08  Peter Simons  <simons@cryp.to>
30615
30616         maint.mk: make the news-check rule more configurable
30617         * top/maint.mk (news-check-lines-spec): New variable.
30618         (news-check): Use "sed -n 1,10p" in place of "head".
30619
30620 2010-06-07  Jim Meyering  <meyering@redhat.com>
30621
30622         do-release-commit-and-tag: fix typo in --help
30623         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
30624
30625         regex: avoid new dead-code warning with gcc-4.6.0
30626         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
30627         if-block containing a while-loop.  It's been unused for at least
30628         5 years.
30629
30630 2010-06-05  Bruno Haible  <bruno@clisp.org>
30631
30632         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
30633         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
30634
30635 2010-06-04  Bruno Haible  <bruno@clisp.org>
30636
30637         Update to GNU gettext 0.18.1.
30638         * modules/gettext (configure.ac): Require gettext infrastructure from
30639         version 0.18.1.
30640
30641 2010-06-03  Bruno Haible  <bruno@clisp.org>
30642
30643         Don't use AC_LIBOBJ with file names in subdirectories.
30644         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
30645         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
30646         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
30647         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
30648         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
30649         gl_LIBUNISTRING_LIBSOURCE.
30650         (Makefile.am): Augment lib_SOURCES here, conditionally.
30651         * NEWS: Drop requirement for Automake option 'subdir-objects'.
30652
30653 2010-06-03  Bruno Haible  <bruno@clisp.org>
30654
30655         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
30656         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
30657         expansion does not end with a newline.
30658         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
30659         unnecessary newline.
30660
30661 2010-06-03  Bruno Haible  <bruno@clisp.org>
30662
30663         Reduce dependencies.
30664         * tests/test-quotearg.h: New file, extracted from
30665         tests/test-quotearg.c.
30666         * tests/test-quotearg-simple.c: New file, extracted from
30667         tests/test-quotearg.c.
30668         * tests/test-quotearg.c: Don't include <ctype.h>.
30669         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
30670         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
30671         use_quote_double_quotes, use_quotearg_colon): Moved to
30672         tests/test-quotearg.h.
30673         (results_g, flag_results, custom_quotes, custom_results): Moved
30674         to tests/test-quotearg-simple.c.
30675         (main): Moved the part that does not depend on gettext to
30676         tests/test-quotearg-simple.c. Return 77 if the test cannot be
30677         performed.
30678         * modules/quotearg-simple: New file.
30679         * modules/quotearg-simple-tests: New file.
30680         * modules/quotearg (Depends-on): Add quotearg-simple.
30681         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
30682         (Files): Add tests/test-quotearg.h.
30683         Reported by Paolo Bonzini.
30684
30685 2010-06-03  Bruno Haible  <bruno@clisp.org>
30686
30687         Reduce dependencies.
30688         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
30689
30690 2010-06-03  Bruno Haible  <bruno@clisp.org>
30691
30692         time: Undefine more broken macros.
30693         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
30694         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
30695         Reported by Eric Blake.
30696
30697 2010-06-03  Bruno Haible  <bruno@clisp.org>
30698
30699         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
30700         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
30701         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
30702         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
30703         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
30704         Reported by Ludovic Courtès <ludo@gnu.org>.
30705
30706 2010-06-02  Eric Blake  <eblake@redhat.com>
30707
30708         time: work with mingw + pthreads-win32 library
30709         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
30710         if timespec is defined only in pthread.h.
30711         * modules/time (Makefile.am): Substitute it.
30712         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
30713         <pthread.h>, when needed.
30714         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
30715         from the library.
30716
30717 2010-05-31  Bruno Haible  <bruno@clisp.org>
30718
30719         Avoid expanding two macros in the wrong order.
30720         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
30721         gl_LIBUNISTRING if it is defined.
30722         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
30723         autoconf >= 2.64.
30724         Reported by Ludovic Courtès <ludo@gnu.org>.
30725
30726 2010-05-27  Jim Meyering  <meyering@redhat.com>
30727
30728         maint.mk: also prohibit "#undef" of always-defined symbols
30729         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
30730         Allow more than one space before the symbol name.
30731         (sc_prohibit_always-defined_macros): Use grep's -E, now that
30732         the regexp uses alternation.
30733
30734 2010-05-26  Eric Blake  <eblake@redhat.com>
30735
30736         maint.mk: avoid echo -e
30737         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
30738         Convert all uses of echo -* to printf.
30739         Reported by Matthias Bolte.
30740
30741 2010-05-25  Bruno Haible  <bruno@clisp.org>
30742
30743         Update to GNU gettext 0.18, part 2.
30744         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
30745         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
30746
30747 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30748
30749         Add missing include in test-pwrite.c.
30750         * tests/test-pwrite.c: Include string.h, for strcmp.
30751
30752 2010-05-24  Bruno Haible  <bruno@clisp.org>
30753
30754         * NEWS: Mention requirement for Automake option 'subdir-objects'.
30755
30756 2010-05-24  Bruno Haible  <bruno@clisp.org>
30757
30758         Don't use conversion with transliteration in u{8,16,32}_strcoll.
30759         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
30760         iconveh_error argument.
30761         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
30762         U_STRCONV_TO_LOCALE.
30763         * lib/unistr/u16-strcoll.c: Likewise.
30764         * lib/unistr/u32-strcoll.c: Likewise.
30765         * modules/unistr/u8-strcoll (Depends-on): Add
30766         uniconv/u8-strconv-to-enc, localcharset. Remove
30767         uniconv/u8-strconv-to-locale.
30768         (configure.ac): Bump version number.
30769         * modules/unistr/u16-strcoll (Depends-on): Add
30770         uniconv/u16-strconv-to-enc, localcharset. Remove
30771         uniconv/u16-strconv-to-locale.
30772         (configure.ac): Bump version number.
30773         * modules/unistr/u32-strcoll (Depends-on): Add
30774         uniconv/u32-strconv-to-enc, localcharset. Remove
30775         uniconv/u32-strconv-to-locale.
30776         (configure.ac): Bump version number.
30777
30778 2010-05-24  Bruno Haible  <bruno@clisp.org>
30779
30780         Avoid a test failure on NetBSD 5.0.
30781         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
30782         an iconv() bug.
30783
30784 2010-05-24  Bruno Haible  <bruno@clisp.org>
30785
30786         Adjust #include directive style.
30787         * modules/regex (Includes): Recommend to write <regex.h>.
30788
30789 2010-05-24  Bruno Haible  <bruno@clisp.org>
30790
30791         regex: Don't require alloca.
30792         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
30793         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
30794         only inside if (0).
30795
30796 2010-05-23  Jim Meyering  <meyering@redhat.com>
30797
30798         test-renameat.c: include <sys/stat.h>
30799         * tests/test-renameat.c: Include <sys/stat.h>; required for
30800         definition of S_IS* macros.
30801
30802 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
30803
30804         Update maintainer documentation for 'relocatable-prog' module.
30805         * doc/relocatable-maint.texi: Update.
30806         Comments by Bruno Haible.
30807
30808 2010-05-23  Bruno Haible  <bruno@clisp.org>
30809
30810         git-merge-changelog: Enable --split-merged-entry by default.
30811         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
30812         (usage): Don't mention this option any more.
30813         Reported by Ralf Wildenhues.
30814
30815 2010-05-23  Jim Meyering  <meyering@redhat.com>
30816
30817         test-pwrite: do not leave behind a test file named "out"
30818         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
30819         The trivial-looking use of init.sh is really necessary.
30820         It ensures that the temporary file, "out", is created in
30821         a temporary directory, and removed upon termination.
30822         * tests/test-pwrite.sh: Re-add file.
30823         * modules/pwrite-tests: Reference it.
30824
30825 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30826
30827         Fix output redirection buglet in init.sh.
30828         * tests/init.sh: Fix redirection of stderr.
30829
30830 2010-05-20  Simon Josefsson  <simon@josefsson.org>
30831
30832         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
30833
30834 2010-05-17  Simon Josefsson  <simon@josefsson.org>
30835
30836         * modules/valgrind-tests: New file.
30837         * m4/valgrind-tests.m4: New file.
30838         * doc/valgrind-tests.texi: New file.
30839         * doc/gnulib.texi (Running self-tests under valgrind): New
30840         section.
30841
30842 2010-05-19  Bruno Haible  <bruno@clisp.org>
30843
30844         Clean up dead code in recent commit.
30845         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
30846         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
30847         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
30848         Suggested by Paolo Bonzini.
30849
30850 2010-05-19  Bruno Haible  <bruno@clisp.org>
30851
30852         Avoid valgrind error reports from libunistring.
30853         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
30854         * modules/libunistring (Files): Add it.
30855         * modules/libunistring-optional (Files): Likewise.
30856
30857 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
30858             Bruno Haible  <bruno@clisp.org>
30859
30860         New module 'libunistring-optional'.
30861         * modules/libunistring-optional: New file.
30862         * m4/libunistring-base.m4: New file.
30863         * m4/libunistring-optional.m4: New file.
30864         * lib/unicase.in.h: Renamed from lib/unicase.h.
30865         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
30866         * lib/unictype.in.h: Renamed from lib/unictype.h.
30867         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
30868         * lib/uniname.in.h: Renamed from lib/uniname.h.
30869         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
30870         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
30871         * lib/unistr.in.h: Renamed from lib/unistr.h.
30872         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
30873         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
30874         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
30875         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
30876         gl_LIBUNISTRING. If the library was found, determine the installed
30877         version and set LIBUNISTRING_VERSION.
30878         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
30879         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
30880         handle a configuration option --with-included-libunistring.
30881         * modules/libunistring (Files): Add m4/absolute-header.m4.
30882         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
30883         Add m4/libunistring-base.m4.
30884         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30885         (Makefile.am): Build unicase.h from unicase.in.h.
30886         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
30887         Add m4/libunistring-base.m4.
30888         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30889         (Makefile.am): Build uniconv.h from uniconv.in.h.
30890         * modules/unictype/base (Files): Use unictype.in.h instead of
30891         unictype.h. Add m4/libunistring-base.m4.
30892         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30893         (Makefile.am): Build unictype.h from unictype.in.h.
30894         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
30895         Add m4/libunistring-base.m4.
30896         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30897         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
30898         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
30899         Add m4/libunistring-base.m4.
30900         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30901         (Makefile.am): Build uniname.h from uniname.in.h.
30902         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
30903         Add m4/libunistring-base.m4.
30904         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30905         (Makefile.am): Build uninorm.h from uninorm.in.h.
30906         * modules/unistdio/base (Files): Use unistdio.in.h instead of
30907         unistdio.h. Add m4/libunistring-base.m4.
30908         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30909         (Makefile.am): Build unistdio.h from unistdio.in.h.
30910         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
30911         Add m4/libunistring-base.m4.
30912         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30913         (Makefile.am): Build unistr.h from unistr.in.h.
30914         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
30915         Add m4/libunistring-base.m4.
30916         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30917         (Makefile.am): Build unitypes.h from unitypes.in.h.
30918         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
30919         Add m4/libunistring-base.m4.
30920         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30921         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
30922         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
30923         uniwidth.h. Add m4/libunistring-base.m4.
30924         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30925         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
30926         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
30927         instead of augmenting lib_SOURCES.
30928         * modules/unicase/empty-suffix-context: Likewise.
30929         * modules/unicase/locale-language: Likewise.
30930         * modules/unicase/tolower: Likewise.
30931         * modules/unicase/totitle: Likewise.
30932         * modules/unicase/toupper: Likewise.
30933         * modules/unicase/u8-casecmp: Likewise.
30934         * modules/unicase/u8-casecoll: Likewise.
30935         * modules/unicase/u8-casefold: Likewise.
30936         * modules/unicase/u8-casexfrm: Likewise.
30937         * modules/unicase/u8-ct-casefold: Likewise.
30938         * modules/unicase/u8-ct-tolower: Likewise.
30939         * modules/unicase/u8-ct-totitle: Likewise.
30940         * modules/unicase/u8-ct-toupper: Likewise.
30941         * modules/unicase/u8-is-cased: Likewise.
30942         * modules/unicase/u8-is-casefolded: Likewise.
30943         * modules/unicase/u8-is-lowercase: Likewise.
30944         * modules/unicase/u8-is-titlecase: Likewise.
30945         * modules/unicase/u8-is-uppercase: Likewise.
30946         * modules/unicase/u8-prefix-context: Likewise.
30947         * modules/unicase/u8-suffix-context: Likewise.
30948         * modules/unicase/u8-tolower: Likewise.
30949         * modules/unicase/u8-totitle: Likewise.
30950         * modules/unicase/u8-toupper: Likewise.
30951         * modules/unicase/u16-casecmp: Likewise.
30952         * modules/unicase/u16-casecoll: Likewise.
30953         * modules/unicase/u16-casefold: Likewise.
30954         * modules/unicase/u16-casexfrm: Likewise.
30955         * modules/unicase/u16-ct-casefold: Likewise.
30956         * modules/unicase/u16-ct-tolower: Likewise.
30957         * modules/unicase/u16-ct-totitle: Likewise.
30958         * modules/unicase/u16-ct-toupper: Likewise.
30959         * modules/unicase/u16-is-cased: Likewise.
30960         * modules/unicase/u16-is-casefolded: Likewise.
30961         * modules/unicase/u16-is-lowercase: Likewise.
30962         * modules/unicase/u16-is-titlecase: Likewise.
30963         * modules/unicase/u16-is-uppercase: Likewise.
30964         * modules/unicase/u16-prefix-context: Likewise.
30965         * modules/unicase/u16-suffix-context: Likewise.
30966         * modules/unicase/u16-tolower: Likewise.
30967         * modules/unicase/u16-totitle: Likewise.
30968         * modules/unicase/u16-toupper: Likewise.
30969         * modules/unicase/u32-casecmp: Likewise.
30970         * modules/unicase/u32-casecoll: Likewise.
30971         * modules/unicase/u32-casefold: Likewise.
30972         * modules/unicase/u32-casexfrm: Likewise.
30973         * modules/unicase/u32-ct-casefold: Likewise.
30974         * modules/unicase/u32-ct-tolower: Likewise.
30975         * modules/unicase/u32-ct-totitle: Likewise.
30976         * modules/unicase/u32-ct-toupper: Likewise.
30977         * modules/unicase/u32-is-cased: Likewise.
30978         * modules/unicase/u32-is-casefolded: Likewise.
30979         * modules/unicase/u32-is-lowercase: Likewise.
30980         * modules/unicase/u32-is-titlecase: Likewise.
30981         * modules/unicase/u32-is-uppercase: Likewise.
30982         * modules/unicase/u32-prefix-context: Likewise.
30983         * modules/unicase/u32-suffix-context: Likewise.
30984         * modules/unicase/u32-tolower: Likewise.
30985         * modules/unicase/u32-totitle: Likewise.
30986         * modules/unicase/u32-toupper: Likewise.
30987         * modules/unicase/ulc-casecmp: Likewise.
30988         * modules/unicase/ulc-casecoll: Likewise.
30989         * modules/unicase/ulc-casexfrm: Likewise.
30990         * modules/uniconv/u8-conv-from-enc: Likewise.
30991         * modules/uniconv/u8-conv-to-enc: Likewise.
30992         * modules/uniconv/u8-strconv-from-enc: Likewise.
30993         * modules/uniconv/u8-strconv-from-locale: Likewise.
30994         * modules/uniconv/u8-strconv-to-enc: Likewise.
30995         * modules/uniconv/u8-strconv-to-locale: Likewise.
30996         * modules/uniconv/u16-conv-from-enc: Likewise.
30997         * modules/uniconv/u16-conv-to-enc: Likewise.
30998         * modules/uniconv/u16-strconv-from-enc: Likewise.
30999         * modules/uniconv/u16-strconv-from-locale: Likewise.
31000         * modules/uniconv/u16-strconv-to-enc: Likewise.
31001         * modules/uniconv/u16-strconv-to-locale: Likewise.
31002         * modules/uniconv/u32-conv-from-enc: Likewise.
31003         * modules/uniconv/u32-conv-to-enc: Likewise.
31004         * modules/uniconv/u32-strconv-from-enc: Likewise.
31005         * modules/uniconv/u32-strconv-from-locale: Likewise.
31006         * modules/uniconv/u32-strconv-to-enc: Likewise.
31007         * modules/uniconv/u32-strconv-to-locale: Likewise.
31008         * modules/unictype/bidicategory-byname: Likewise.
31009         * modules/unictype/bidicategory-name: Likewise.
31010         * modules/unictype/bidicategory-of: Likewise.
31011         * modules/unictype/bidicategory-test: Likewise.
31012         * modules/unictype/block-list: Likewise.
31013         * modules/unictype/block-test: Likewise.
31014         * modules/unictype/category-C: Likewise.
31015         * modules/unictype/category-Cc: Likewise.
31016         * modules/unictype/category-Cf: Likewise.
31017         * modules/unictype/category-Cn: Likewise.
31018         * modules/unictype/category-Co: Likewise.
31019         * modules/unictype/category-Cs: Likewise.
31020         * modules/unictype/category-L: Likewise.
31021         * modules/unictype/category-Ll: Likewise.
31022         * modules/unictype/category-Lm: Likewise.
31023         * modules/unictype/category-Lo: Likewise.
31024         * modules/unictype/category-Lt: Likewise.
31025         * modules/unictype/category-Lu: Likewise.
31026         * modules/unictype/category-M: Likewise.
31027         * modules/unictype/category-Mc: Likewise.
31028         * modules/unictype/category-Me: Likewise.
31029         * modules/unictype/category-Mn: Likewise.
31030         * modules/unictype/category-N: Likewise.
31031         * modules/unictype/category-Nd: Likewise.
31032         * modules/unictype/category-Nl: Likewise.
31033         * modules/unictype/category-No: Likewise.
31034         * modules/unictype/category-P: Likewise.
31035         * modules/unictype/category-Pc: Likewise.
31036         * modules/unictype/category-Pd: Likewise.
31037         * modules/unictype/category-Pe: Likewise.
31038         * modules/unictype/category-Pf: Likewise.
31039         * modules/unictype/category-Pi: Likewise.
31040         * modules/unictype/category-Po: Likewise.
31041         * modules/unictype/category-Ps: Likewise.
31042         * modules/unictype/category-S: Likewise.
31043         * modules/unictype/category-Sc: Likewise.
31044         * modules/unictype/category-Sk: Likewise.
31045         * modules/unictype/category-Sm: Likewise.
31046         * modules/unictype/category-So: Likewise.
31047         * modules/unictype/category-Z: Likewise.
31048         * modules/unictype/category-Zl: Likewise.
31049         * modules/unictype/category-Zp: Likewise.
31050         * modules/unictype/category-Zs: Likewise.
31051         * modules/unictype/category-and: Likewise.
31052         * modules/unictype/category-and-not: Likewise.
31053         * modules/unictype/category-byname: Likewise.
31054         * modules/unictype/category-name: Likewise.
31055         * modules/unictype/category-none: Likewise.
31056         * modules/unictype/category-of: Likewise.
31057         * modules/unictype/category-or: Likewise.
31058         * modules/unictype/category-test: Likewise.
31059         * modules/unictype/combining-class: Likewise.
31060         * modules/unictype/ctype-alnum: Likewise.
31061         * modules/unictype/ctype-alpha: Likewise.
31062         * modules/unictype/ctype-blank: Likewise.
31063         * modules/unictype/ctype-cntrl: Likewise.
31064         * modules/unictype/ctype-digit: Likewise.
31065         * modules/unictype/ctype-graph: Likewise.
31066         * modules/unictype/ctype-lower: Likewise.
31067         * modules/unictype/ctype-print: Likewise.
31068         * modules/unictype/ctype-punct: Likewise.
31069         * modules/unictype/ctype-space: Likewise.
31070         * modules/unictype/ctype-upper: Likewise.
31071         * modules/unictype/ctype-xdigit: Likewise.
31072         * modules/unictype/decimal-digit: Likewise.
31073         * modules/unictype/digit: Likewise.
31074         * modules/unictype/mirror: Likewise.
31075         * modules/unictype/numeric: Likewise.
31076         * modules/unictype/property-alphabetic: Likewise.
31077         * modules/unictype/property-ascii-hex-digit: Likewise.
31078         * modules/unictype/property-bidi-arabic-digit: Likewise.
31079         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
31080         * modules/unictype/property-bidi-block-separator: Likewise.
31081         * modules/unictype/property-bidi-boundary-neutral: Likewise.
31082         * modules/unictype/property-bidi-common-separator: Likewise.
31083         * modules/unictype/property-bidi-control: Likewise.
31084         * modules/unictype/property-bidi-embedding-or-override: Likewise.
31085         * modules/unictype/property-bidi-eur-num-separator: Likewise.
31086         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
31087         * modules/unictype/property-bidi-european-digit: Likewise.
31088         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
31089         * modules/unictype/property-bidi-left-to-right: Likewise.
31090         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
31091         * modules/unictype/property-bidi-other-neutral: Likewise.
31092         * modules/unictype/property-bidi-pdf: Likewise.
31093         * modules/unictype/property-bidi-segment-separator: Likewise.
31094         * modules/unictype/property-bidi-whitespace: Likewise.
31095         * modules/unictype/property-byname: Likewise.
31096         * modules/unictype/property-combining: Likewise.
31097         * modules/unictype/property-composite: Likewise.
31098         * modules/unictype/property-currency-symbol: Likewise.
31099         * modules/unictype/property-dash: Likewise.
31100         * modules/unictype/property-decimal-digit: Likewise.
31101         * modules/unictype/property-default-ignorable-code-point: Likewise.
31102         * modules/unictype/property-deprecated: Likewise.
31103         * modules/unictype/property-diacritic: Likewise.
31104         * modules/unictype/property-extender: Likewise.
31105         * modules/unictype/property-format-control: Likewise.
31106         * modules/unictype/property-grapheme-base: Likewise.
31107         * modules/unictype/property-grapheme-extend: Likewise.
31108         * modules/unictype/property-grapheme-link: Likewise.
31109         * modules/unictype/property-hex-digit: Likewise.
31110         * modules/unictype/property-hyphen: Likewise.
31111         * modules/unictype/property-id-continue: Likewise.
31112         * modules/unictype/property-id-start: Likewise.
31113         * modules/unictype/property-ideographic: Likewise.
31114         * modules/unictype/property-ids-binary-operator: Likewise.
31115         * modules/unictype/property-ids-trinary-operator: Likewise.
31116         * modules/unictype/property-ignorable-control: Likewise.
31117         * modules/unictype/property-iso-control: Likewise.
31118         * modules/unictype/property-join-control: Likewise.
31119         * modules/unictype/property-left-of-pair: Likewise.
31120         * modules/unictype/property-line-separator: Likewise.
31121         * modules/unictype/property-logical-order-exception: Likewise.
31122         * modules/unictype/property-lowercase: Likewise.
31123         * modules/unictype/property-math: Likewise.
31124         * modules/unictype/property-non-break: Likewise.
31125         * modules/unictype/property-not-a-character: Likewise.
31126         * modules/unictype/property-numeric: Likewise.
31127         * modules/unictype/property-other-alphabetic: Likewise.
31128         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
31129         * modules/unictype/property-other-grapheme-extend: Likewise.
31130         * modules/unictype/property-other-id-continue: Likewise.
31131         * modules/unictype/property-other-id-start: Likewise.
31132         * modules/unictype/property-other-lowercase: Likewise.
31133         * modules/unictype/property-other-math: Likewise.
31134         * modules/unictype/property-other-uppercase: Likewise.
31135         * modules/unictype/property-paired-punctuation: Likewise.
31136         * modules/unictype/property-paragraph-separator: Likewise.
31137         * modules/unictype/property-pattern-syntax: Likewise.
31138         * modules/unictype/property-pattern-white-space: Likewise.
31139         * modules/unictype/property-private-use: Likewise.
31140         * modules/unictype/property-punctuation: Likewise.
31141         * modules/unictype/property-quotation-mark: Likewise.
31142         * modules/unictype/property-radical: Likewise.
31143         * modules/unictype/property-sentence-terminal: Likewise.
31144         * modules/unictype/property-soft-dotted: Likewise.
31145         * modules/unictype/property-space: Likewise.
31146         * modules/unictype/property-terminal-punctuation: Likewise.
31147         * modules/unictype/property-test: Likewise.
31148         * modules/unictype/property-titlecase: Likewise.
31149         * modules/unictype/property-unassigned-code-value: Likewise.
31150         * modules/unictype/property-unified-ideograph: Likewise.
31151         * modules/unictype/property-uppercase: Likewise.
31152         * modules/unictype/property-variation-selector: Likewise.
31153         * modules/unictype/property-white-space: Likewise.
31154         * modules/unictype/property-xid-continue: Likewise.
31155         * modules/unictype/property-xid-start: Likewise.
31156         * modules/unictype/property-zero-width: Likewise.
31157         * modules/unictype/scripts: Likewise.
31158         * modules/unictype/syntax-c-ident: Likewise.
31159         * modules/unictype/syntax-c-whitespace: Likewise.
31160         * modules/unictype/syntax-java-ident: Likewise.
31161         * modules/unictype/syntax-java-whitespace: Likewise.
31162         * modules/unilbrk/u8-possible-linebreaks: Likewise.
31163         * modules/unilbrk/u8-width-linebreaks: Likewise.
31164         * modules/unilbrk/u16-possible-linebreaks: Likewise.
31165         * modules/unilbrk/u16-width-linebreaks: Likewise.
31166         * modules/unilbrk/u32-possible-linebreaks: Likewise.
31167         * modules/unilbrk/u32-width-linebreaks: Likewise.
31168         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
31169         * modules/unilbrk/ulc-width-linebreaks: Likewise.
31170         * modules/uniname/uniname: Likewise.
31171         * modules/uninorm/canonical-decomposition: Likewise.
31172         * modules/uninorm/composition: Likewise.
31173         * modules/uninorm/decomposing-form: Likewise.
31174         * modules/uninorm/decomposition: Likewise.
31175         * modules/uninorm/filter: Likewise.
31176         * modules/uninorm/nfc: Likewise.
31177         * modules/uninorm/nfd: Likewise.
31178         * modules/uninorm/nfkc: Likewise.
31179         * modules/uninorm/nfkd: Likewise.
31180         * modules/uninorm/u8-normalize: Likewise.
31181         * modules/uninorm/u8-normcmp: Likewise.
31182         * modules/uninorm/u8-normcoll: Likewise.
31183         * modules/uninorm/u8-normxfrm: Likewise.
31184         * modules/uninorm/u16-normalize: Likewise.
31185         * modules/uninorm/u16-normcmp: Likewise.
31186         * modules/uninorm/u16-normcoll: Likewise.
31187         * modules/uninorm/u16-normxfrm: Likewise.
31188         * modules/uninorm/u32-normalize: Likewise.
31189         * modules/uninorm/u32-normcmp: Likewise.
31190         * modules/uninorm/u32-normcoll: Likewise.
31191         * modules/uninorm/u32-normxfrm: Likewise.
31192         * modules/unistdio/u8-asnprintf: Likewise.
31193         * modules/unistdio/u8-asprintf: Likewise.
31194         * modules/unistdio/u8-snprintf: Likewise.
31195         * modules/unistdio/u8-sprintf: Likewise.
31196         * modules/unistdio/u8-u8-asnprintf: Likewise.
31197         * modules/unistdio/u8-u8-asprintf: Likewise.
31198         * modules/unistdio/u8-u8-snprintf: Likewise.
31199         * modules/unistdio/u8-u8-sprintf: Likewise.
31200         * modules/unistdio/u8-u8-vasnprintf: Likewise.
31201         * modules/unistdio/u8-u8-vasprintf: Likewise.
31202         * modules/unistdio/u8-u8-vsnprintf: Likewise.
31203         * modules/unistdio/u8-u8-vsprintf: Likewise.
31204         * modules/unistdio/u8-vasnprintf: Likewise.
31205         * modules/unistdio/u8-vasprintf: Likewise.
31206         * modules/unistdio/u8-vsnprintf: Likewise.
31207         * modules/unistdio/u8-vsprintf: Likewise.
31208         * modules/unistdio/u16-asnprintf: Likewise.
31209         * modules/unistdio/u16-asprintf: Likewise.
31210         * modules/unistdio/u16-snprintf: Likewise.
31211         * modules/unistdio/u16-sprintf: Likewise.
31212         * modules/unistdio/u16-u16-asnprintf: Likewise.
31213         * modules/unistdio/u16-u16-asprintf: Likewise.
31214         * modules/unistdio/u16-u16-snprintf: Likewise.
31215         * modules/unistdio/u16-u16-sprintf: Likewise.
31216         * modules/unistdio/u16-u16-vasnprintf: Likewise.
31217         * modules/unistdio/u16-u16-vasprintf: Likewise.
31218         * modules/unistdio/u16-u16-vsnprintf: Likewise.
31219         * modules/unistdio/u16-u16-vsprintf: Likewise.
31220         * modules/unistdio/u16-vasnprintf: Likewise.
31221         * modules/unistdio/u16-vasprintf: Likewise.
31222         * modules/unistdio/u16-vsnprintf: Likewise.
31223         * modules/unistdio/u16-vsprintf: Likewise.
31224         * modules/unistdio/u32-asnprintf: Likewise.
31225         * modules/unistdio/u32-asprintf: Likewise.
31226         * modules/unistdio/u32-snprintf: Likewise.
31227         * modules/unistdio/u32-sprintf: Likewise.
31228         * modules/unistdio/u32-u32-asnprintf: Likewise.
31229         * modules/unistdio/u32-u32-asprintf: Likewise.
31230         * modules/unistdio/u32-u32-snprintf: Likewise.
31231         * modules/unistdio/u32-u32-sprintf: Likewise.
31232         * modules/unistdio/u32-u32-vasnprintf: Likewise.
31233         * modules/unistdio/u32-u32-vasprintf: Likewise.
31234         * modules/unistdio/u32-u32-vsnprintf: Likewise.
31235         * modules/unistdio/u32-u32-vsprintf: Likewise.
31236         * modules/unistdio/u32-vasnprintf: Likewise.
31237         * modules/unistdio/u32-vasprintf: Likewise.
31238         * modules/unistdio/u32-vsnprintf: Likewise.
31239         * modules/unistdio/u32-vsprintf: Likewise.
31240         * modules/unistdio/ulc-asnprintf: Likewise.
31241         * modules/unistdio/ulc-asprintf: Likewise.
31242         * modules/unistdio/ulc-fprintf: Likewise.
31243         * modules/unistdio/ulc-snprintf: Likewise.
31244         * modules/unistdio/ulc-sprintf: Likewise.
31245         * modules/unistdio/ulc-vasnprintf: Likewise.
31246         * modules/unistdio/ulc-vasprintf: Likewise.
31247         * modules/unistdio/ulc-vfprintf: Likewise.
31248         * modules/unistdio/ulc-vsnprintf: Likewise.
31249         * modules/unistdio/ulc-vsprintf: Likewise.
31250         * modules/unistr/u8-check: Likewise.
31251         * modules/unistr/u8-chr: Likewise.
31252         * modules/unistr/u8-cmp: Likewise.
31253         * modules/unistr/u8-cmp2: Likewise.
31254         * modules/unistr/u8-cpy: Likewise.
31255         * modules/unistr/u8-cpy-alloc: Likewise.
31256         * modules/unistr/u8-endswith: Likewise.
31257         * modules/unistr/u8-mblen: Likewise.
31258         * modules/unistr/u8-mbsnlen: Likewise.
31259         * modules/unistr/u8-mbtouc: Likewise.
31260         * modules/unistr/u8-mbtouc-unsafe: Likewise.
31261         * modules/unistr/u8-mbtoucr: Likewise.
31262         * modules/unistr/u8-move: Likewise.
31263         * modules/unistr/u8-next: Likewise.
31264         * modules/unistr/u8-prev: Likewise.
31265         * modules/unistr/u8-set: Likewise.
31266         * modules/unistr/u8-startswith: Likewise.
31267         * modules/unistr/u8-stpcpy: Likewise.
31268         * modules/unistr/u8-stpncpy: Likewise.
31269         * modules/unistr/u8-strcat: Likewise.
31270         * modules/unistr/u8-strchr: Likewise.
31271         * modules/unistr/u8-strcmp: Likewise.
31272         * modules/unistr/u8-strcoll: Likewise.
31273         * modules/unistr/u8-strcpy: Likewise.
31274         * modules/unistr/u8-strcspn: Likewise.
31275         * modules/unistr/u8-strdup: Likewise.
31276         * modules/unistr/u8-strlen: Likewise.
31277         * modules/unistr/u8-strmblen: Likewise.
31278         * modules/unistr/u8-strmbtouc: Likewise.
31279         * modules/unistr/u8-strncat: Likewise.
31280         * modules/unistr/u8-strncmp: Likewise.
31281         * modules/unistr/u8-strncpy: Likewise.
31282         * modules/unistr/u8-strnlen: Likewise.
31283         * modules/unistr/u8-strpbrk: Likewise.
31284         * modules/unistr/u8-strrchr: Likewise.
31285         * modules/unistr/u8-strspn: Likewise.
31286         * modules/unistr/u8-strstr: Likewise.
31287         * modules/unistr/u8-strtok: Likewise.
31288         * modules/unistr/u8-to-u16: Likewise.
31289         * modules/unistr/u8-to-u32: Likewise.
31290         * modules/unistr/u8-uctomb: Likewise.
31291         * modules/unistr/u16-check: Likewise.
31292         * modules/unistr/u16-chr: Likewise.
31293         * modules/unistr/u16-cmp: Likewise.
31294         * modules/unistr/u16-cmp2: Likewise.
31295         * modules/unistr/u16-cpy: Likewise.
31296         * modules/unistr/u16-cpy-alloc: Likewise.
31297         * modules/unistr/u16-endswith: Likewise.
31298         * modules/unistr/u16-mblen: Likewise.
31299         * modules/unistr/u16-mbsnlen: Likewise.
31300         * modules/unistr/u16-mbtouc: Likewise.
31301         * modules/unistr/u16-mbtouc-unsafe: Likewise.
31302         * modules/unistr/u16-mbtoucr: Likewise.
31303         * modules/unistr/u16-move: Likewise.
31304         * modules/unistr/u16-next: Likewise.
31305         * modules/unistr/u16-prev: Likewise.
31306         * modules/unistr/u16-set: Likewise.
31307         * modules/unistr/u16-startswith: Likewise.
31308         * modules/unistr/u16-stpcpy: Likewise.
31309         * modules/unistr/u16-stpncpy: Likewise.
31310         * modules/unistr/u16-strcat: Likewise.
31311         * modules/unistr/u16-strchr: Likewise.
31312         * modules/unistr/u16-strcmp: Likewise.
31313         * modules/unistr/u16-strcoll: Likewise.
31314         * modules/unistr/u16-strcpy: Likewise.
31315         * modules/unistr/u16-strcspn: Likewise.
31316         * modules/unistr/u16-strdup: Likewise.
31317         * modules/unistr/u16-strlen: Likewise.
31318         * modules/unistr/u16-strmblen: Likewise.
31319         * modules/unistr/u16-strmbtouc: Likewise.
31320         * modules/unistr/u16-strncat: Likewise.
31321         * modules/unistr/u16-strncmp: Likewise.
31322         * modules/unistr/u16-strncpy: Likewise.
31323         * modules/unistr/u16-strnlen: Likewise.
31324         * modules/unistr/u16-strpbrk: Likewise.
31325         * modules/unistr/u16-strrchr: Likewise.
31326         * modules/unistr/u16-strspn: Likewise.
31327         * modules/unistr/u16-strstr: Likewise.
31328         * modules/unistr/u16-strtok: Likewise.
31329         * modules/unistr/u16-to-u32: Likewise.
31330         * modules/unistr/u16-to-u8: Likewise.
31331         * modules/unistr/u16-uctomb: Likewise.
31332         * modules/unistr/u32-check: Likewise.
31333         * modules/unistr/u32-chr: Likewise.
31334         * modules/unistr/u32-cmp: Likewise.
31335         * modules/unistr/u32-cmp2: Likewise.
31336         * modules/unistr/u32-cpy: Likewise.
31337         * modules/unistr/u32-cpy-alloc: Likewise.
31338         * modules/unistr/u32-endswith: Likewise.
31339         * modules/unistr/u32-mblen: Likewise.
31340         * modules/unistr/u32-mbsnlen: Likewise.
31341         * modules/unistr/u32-mbtouc: Likewise.
31342         * modules/unistr/u32-mbtouc-unsafe: Likewise.
31343         * modules/unistr/u32-mbtoucr: Likewise.
31344         * modules/unistr/u32-move: Likewise.
31345         * modules/unistr/u32-next: Likewise.
31346         * modules/unistr/u32-prev: Likewise.
31347         * modules/unistr/u32-set: Likewise.
31348         * modules/unistr/u32-startswith: Likewise.
31349         * modules/unistr/u32-stpcpy: Likewise.
31350         * modules/unistr/u32-stpncpy: Likewise.
31351         * modules/unistr/u32-strcat: Likewise.
31352         * modules/unistr/u32-strchr: Likewise.
31353         * modules/unistr/u32-strcmp: Likewise.
31354         * modules/unistr/u32-strcoll: Likewise.
31355         * modules/unistr/u32-strcpy: Likewise.
31356         * modules/unistr/u32-strcspn: Likewise.
31357         * modules/unistr/u32-strdup: Likewise.
31358         * modules/unistr/u32-strlen: Likewise.
31359         * modules/unistr/u32-strmblen: Likewise.
31360         * modules/unistr/u32-strmbtouc: Likewise.
31361         * modules/unistr/u32-strncat: Likewise.
31362         * modules/unistr/u32-strncmp: Likewise.
31363         * modules/unistr/u32-strncpy: Likewise.
31364         * modules/unistr/u32-strnlen: Likewise.
31365         * modules/unistr/u32-strpbrk: Likewise.
31366         * modules/unistr/u32-strrchr: Likewise.
31367         * modules/unistr/u32-strspn: Likewise.
31368         * modules/unistr/u32-strstr: Likewise.
31369         * modules/unistr/u32-strtok: Likewise.
31370         * modules/unistr/u32-to-u16: Likewise.
31371         * modules/unistr/u32-to-u8: Likewise.
31372         * modules/unistr/u32-uctomb: Likewise.
31373         * modules/uniwbrk/u8-wordbreaks: Likewise.
31374         * modules/uniwbrk/u16-wordbreaks: Likewise.
31375         * modules/uniwbrk/u32-wordbreaks: Likewise.
31376         * modules/uniwbrk/ulc-wordbreaks: Likewise.
31377         * modules/uniwbrk/wordbreak-property: Likewise.
31378         * modules/uniwidth/u8-strwidth: Likewise.
31379         * modules/uniwidth/u8-width: Likewise.
31380         * modules/uniwidth/u16-strwidth: Likewise.
31381         * modules/uniwidth/u16-width: Likewise.
31382         * modules/uniwidth/u32-strwidth: Likewise.
31383         * modules/uniwidth/u32-width: Likewise.
31384         * modules/uniwidth/width: Likewise.
31385         * modules/unicase/cased-tests (Makefile.am): Link all test programs
31386         with $(LIBUNISTRING).
31387         * modules/unicase/ignorable-tests: Likewise.
31388         * modules/unicase/locale-language-tests: Likewise.
31389         * modules/unicase/tolower-tests: Likewise.
31390         * modules/unicase/totitle-tests: Likewise.
31391         * modules/unicase/toupper-tests: Likewise.
31392         * modules/unicase/u8-casecmp-tests: Likewise.
31393         * modules/unicase/u8-casecoll-tests: Likewise.
31394         * modules/unicase/u8-casefold-tests: Likewise.
31395         * modules/unicase/u8-is-cased-tests: Likewise.
31396         * modules/unicase/u8-is-casefolded-tests: Likewise.
31397         * modules/unicase/u8-is-lowercase-tests: Likewise.
31398         * modules/unicase/u8-is-titlecase-tests: Likewise.
31399         * modules/unicase/u8-is-uppercase-tests: Likewise.
31400         * modules/unicase/u8-tolower-tests: Likewise.
31401         * modules/unicase/u8-totitle-tests: Likewise.
31402         * modules/unicase/u8-toupper-tests: Likewise.
31403         * modules/unicase/u16-casecmp-tests: Likewise.
31404         * modules/unicase/u16-casecoll-tests: Likewise.
31405         * modules/unicase/u16-casefold-tests: Likewise.
31406         * modules/unicase/u16-is-cased-tests: Likewise.
31407         * modules/unicase/u16-is-casefolded-tests: Likewise.
31408         * modules/unicase/u16-is-lowercase-tests: Likewise.
31409         * modules/unicase/u16-is-titlecase-tests: Likewise.
31410         * modules/unicase/u16-is-uppercase-tests: Likewise.
31411         * modules/unicase/u16-tolower-tests: Likewise.
31412         * modules/unicase/u16-totitle-tests: Likewise.
31413         * modules/unicase/u16-toupper-tests: Likewise.
31414         * modules/unicase/u32-casecmp-tests: Likewise.
31415         * modules/unicase/u32-casecoll-tests: Likewise.
31416         * modules/unicase/u32-casefold-tests: Likewise.
31417         * modules/unicase/u32-is-cased-tests: Likewise.
31418         * modules/unicase/u32-is-casefolded-tests: Likewise.
31419         * modules/unicase/u32-is-lowercase-tests: Likewise.
31420         * modules/unicase/u32-is-titlecase-tests: Likewise.
31421         * modules/unicase/u32-is-uppercase-tests: Likewise.
31422         * modules/unicase/u32-tolower-tests: Likewise.
31423         * modules/unicase/u32-totitle-tests: Likewise.
31424         * modules/unicase/u32-toupper-tests: Likewise.
31425         * modules/unicase/ulc-casecmp-tests: Likewise.
31426         * modules/unicase/ulc-casecoll-tests: Likewise.
31427         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
31428         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
31429         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
31430         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
31431         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
31432         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
31433         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
31434         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
31435         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
31436         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
31437         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
31438         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
31439         * modules/unictype/bidicategory-byname-tests: Likewise.
31440         * modules/unictype/bidicategory-name-tests: Likewise.
31441         * modules/unictype/bidicategory-of-tests: Likewise.
31442         * modules/unictype/bidicategory-test-tests: Likewise.
31443         * modules/unictype/block-list-tests: Likewise.
31444         * modules/unictype/block-of-tests: Likewise.
31445         * modules/unictype/block-test-tests: Likewise.
31446         * modules/unictype/category-C-tests: Likewise.
31447         * modules/unictype/category-Cc-tests: Likewise.
31448         * modules/unictype/category-Cf-tests: Likewise.
31449         * modules/unictype/category-Cn-tests: Likewise.
31450         * modules/unictype/category-Co-tests: Likewise.
31451         * modules/unictype/category-Cs-tests: Likewise.
31452         * modules/unictype/category-L-tests: Likewise.
31453         * modules/unictype/category-Ll-tests: Likewise.
31454         * modules/unictype/category-Lm-tests: Likewise.
31455         * modules/unictype/category-Lo-tests: Likewise.
31456         * modules/unictype/category-Lt-tests: Likewise.
31457         * modules/unictype/category-Lu-tests: Likewise.
31458         * modules/unictype/category-M-tests: Likewise.
31459         * modules/unictype/category-Mc-tests: Likewise.
31460         * modules/unictype/category-Me-tests: Likewise.
31461         * modules/unictype/category-Mn-tests: Likewise.
31462         * modules/unictype/category-N-tests: Likewise.
31463         * modules/unictype/category-Nd-tests: Likewise.
31464         * modules/unictype/category-Nl-tests: Likewise.
31465         * modules/unictype/category-No-tests: Likewise.
31466         * modules/unictype/category-P-tests: Likewise.
31467         * modules/unictype/category-Pc-tests: Likewise.
31468         * modules/unictype/category-Pd-tests: Likewise.
31469         * modules/unictype/category-Pe-tests: Likewise.
31470         * modules/unictype/category-Pf-tests: Likewise.
31471         * modules/unictype/category-Pi-tests: Likewise.
31472         * modules/unictype/category-Po-tests: Likewise.
31473         * modules/unictype/category-Ps-tests: Likewise.
31474         * modules/unictype/category-S-tests: Likewise.
31475         * modules/unictype/category-Sc-tests: Likewise.
31476         * modules/unictype/category-Sk-tests: Likewise.
31477         * modules/unictype/category-Sm-tests: Likewise.
31478         * modules/unictype/category-So-tests: Likewise.
31479         * modules/unictype/category-Z-tests: Likewise.
31480         * modules/unictype/category-Zl-tests: Likewise.
31481         * modules/unictype/category-Zp-tests: Likewise.
31482         * modules/unictype/category-Zs-tests: Likewise.
31483         * modules/unictype/category-and-not-tests: Likewise.
31484         * modules/unictype/category-and-tests: Likewise.
31485         * modules/unictype/category-byname-tests: Likewise.
31486         * modules/unictype/category-name-tests: Likewise.
31487         * modules/unictype/category-none-tests: Likewise.
31488         * modules/unictype/category-of-tests: Likewise.
31489         * modules/unictype/category-or-tests: Likewise.
31490         * modules/unictype/category-test-withtable-tests: Likewise.
31491         * modules/unictype/combining-class-tests: Likewise.
31492         * modules/unictype/ctype-alnum-tests: Likewise.
31493         * modules/unictype/ctype-alpha-tests: Likewise.
31494         * modules/unictype/ctype-blank-tests: Likewise.
31495         * modules/unictype/ctype-cntrl-tests: Likewise.
31496         * modules/unictype/ctype-digit-tests: Likewise.
31497         * modules/unictype/ctype-graph-tests: Likewise.
31498         * modules/unictype/ctype-lower-tests: Likewise.
31499         * modules/unictype/ctype-print-tests: Likewise.
31500         * modules/unictype/ctype-punct-tests: Likewise.
31501         * modules/unictype/ctype-space-tests: Likewise.
31502         * modules/unictype/ctype-upper-tests: Likewise.
31503         * modules/unictype/ctype-xdigit-tests: Likewise.
31504         * modules/unictype/decimal-digit-tests: Likewise.
31505         * modules/unictype/digit-tests: Likewise.
31506         * modules/unictype/mirror-tests: Likewise.
31507         * modules/unictype/numeric-tests: Likewise.
31508         * modules/unictype/property-alphabetic-tests: Likewise.
31509         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
31510         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
31511         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
31512         * modules/unictype/property-bidi-block-separator-tests: Likewise.
31513         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
31514         * modules/unictype/property-bidi-common-separator-tests: Likewise.
31515         * modules/unictype/property-bidi-control-tests: Likewise.
31516         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
31517         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
31518         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
31519         * modules/unictype/property-bidi-european-digit-tests: Likewise.
31520         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
31521         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
31522         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
31523         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
31524         * modules/unictype/property-bidi-pdf-tests: Likewise.
31525         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
31526         * modules/unictype/property-bidi-whitespace-tests: Likewise.
31527         * modules/unictype/property-byname-tests: Likewise.
31528         * modules/unictype/property-combining-tests: Likewise.
31529         * modules/unictype/property-composite-tests: Likewise.
31530         * modules/unictype/property-currency-symbol-tests: Likewise.
31531         * modules/unictype/property-dash-tests: Likewise.
31532         * modules/unictype/property-decimal-digit-tests: Likewise.
31533         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
31534         * modules/unictype/property-deprecated-tests: Likewise.
31535         * modules/unictype/property-diacritic-tests: Likewise.
31536         * modules/unictype/property-extender-tests: Likewise.
31537         * modules/unictype/property-format-control-tests: Likewise.
31538         * modules/unictype/property-grapheme-base-tests: Likewise.
31539         * modules/unictype/property-grapheme-extend-tests: Likewise.
31540         * modules/unictype/property-grapheme-link-tests: Likewise.
31541         * modules/unictype/property-hex-digit-tests: Likewise.
31542         * modules/unictype/property-hyphen-tests: Likewise.
31543         * modules/unictype/property-id-continue-tests: Likewise.
31544         * modules/unictype/property-id-start-tests: Likewise.
31545         * modules/unictype/property-ideographic-tests: Likewise.
31546         * modules/unictype/property-ids-binary-operator-tests: Likewise.
31547         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
31548         * modules/unictype/property-ignorable-control-tests: Likewise.
31549         * modules/unictype/property-iso-control-tests: Likewise.
31550         * modules/unictype/property-join-control-tests: Likewise.
31551         * modules/unictype/property-left-of-pair-tests: Likewise.
31552         * modules/unictype/property-line-separator-tests: Likewise.
31553         * modules/unictype/property-logical-order-exception-tests: Likewise.
31554         * modules/unictype/property-lowercase-tests: Likewise.
31555         * modules/unictype/property-math-tests: Likewise.
31556         * modules/unictype/property-non-break-tests: Likewise.
31557         * modules/unictype/property-not-a-character-tests: Likewise.
31558         * modules/unictype/property-numeric-tests: Likewise.
31559         * modules/unictype/property-other-alphabetic-tests: Likewise.
31560         * modules/unictype/property-other-default-ignorable-code-point-tests:
31561         Likewise.
31562         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
31563         * modules/unictype/property-other-id-continue-tests: Likewise.
31564         * modules/unictype/property-other-id-start-tests: Likewise.
31565         * modules/unictype/property-other-lowercase-tests: Likewise.
31566         * modules/unictype/property-other-math-tests: Likewise.
31567         * modules/unictype/property-other-uppercase-tests: Likewise.
31568         * modules/unictype/property-paired-punctuation-tests: Likewise.
31569         * modules/unictype/property-paragraph-separator-tests: Likewise.
31570         * modules/unictype/property-pattern-syntax-tests: Likewise.
31571         * modules/unictype/property-pattern-white-space-tests: Likewise.
31572         * modules/unictype/property-private-use-tests: Likewise.
31573         * modules/unictype/property-punctuation-tests: Likewise.
31574         * modules/unictype/property-quotation-mark-tests: Likewise.
31575         * modules/unictype/property-radical-tests: Likewise.
31576         * modules/unictype/property-sentence-terminal-tests: Likewise.
31577         * modules/unictype/property-soft-dotted-tests: Likewise.
31578         * modules/unictype/property-space-tests: Likewise.
31579         * modules/unictype/property-terminal-punctuation-tests: Likewise.
31580         * modules/unictype/property-test-tests: Likewise.
31581         * modules/unictype/property-titlecase-tests: Likewise.
31582         * modules/unictype/property-unassigned-code-value-tests: Likewise.
31583         * modules/unictype/property-unified-ideograph-tests: Likewise.
31584         * modules/unictype/property-uppercase-tests: Likewise.
31585         * modules/unictype/property-variation-selector-tests: Likewise.
31586         * modules/unictype/property-white-space-tests: Likewise.
31587         * modules/unictype/property-xid-continue-tests: Likewise.
31588         * modules/unictype/property-xid-start-tests: Likewise.
31589         * modules/unictype/property-zero-width-tests: Likewise.
31590         * modules/unictype/scripts-tests: Likewise.
31591         * modules/unictype/syntax-c-ident-tests: Likewise.
31592         * modules/unictype/syntax-c-whitespace-tests: Likewise.
31593         * modules/unictype/syntax-java-ident-tests: Likewise.
31594         * modules/unictype/syntax-java-whitespace-tests: Likewise.
31595         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
31596         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
31597         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
31598         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
31599         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
31600         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
31601         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
31602         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
31603         * modules/uniname/uniname-tests: Likewise.
31604         * modules/uninorm/canonical-decomposition-tests: Likewise.
31605         * modules/uninorm/compat-decomposition-tests: Likewise.
31606         * modules/uninorm/composition-tests: Likewise.
31607         * modules/uninorm/decomposing-form-tests: Likewise.
31608         * modules/uninorm/decomposition-tests: Likewise.
31609         * modules/uninorm/filter-tests: Likewise.
31610         * modules/uninorm/nfc-tests: Likewise.
31611         * modules/uninorm/nfd-tests: Likewise.
31612         * modules/uninorm/nfkc-tests: Likewise.
31613         * modules/uninorm/nfkd-tests: Likewise.
31614         * modules/uninorm/u8-normcmp-tests: Likewise.
31615         * modules/uninorm/u8-normcoll-tests: Likewise.
31616         * modules/uninorm/u16-normcmp-tests: Likewise.
31617         * modules/uninorm/u16-normcoll-tests: Likewise.
31618         * modules/uninorm/u32-normcmp-tests: Likewise.
31619         * modules/uninorm/u32-normcoll-tests: Likewise.
31620         * modules/unistdio/u8-asnprintf-tests: Likewise.
31621         * modules/unistdio/u8-vasnprintf-tests: Likewise.
31622         * modules/unistdio/u8-vasprintf-tests: Likewise.
31623         * modules/unistdio/u8-vsnprintf-tests: Likewise.
31624         * modules/unistdio/u8-vsprintf-tests: Likewise.
31625         * modules/unistdio/u16-asnprintf-tests: Likewise.
31626         * modules/unistdio/u16-vasnprintf-tests: Likewise.
31627         * modules/unistdio/u16-vasprintf-tests: Likewise.
31628         * modules/unistdio/u16-vsnprintf-tests: Likewise.
31629         * modules/unistdio/u16-vsprintf-tests: Likewise.
31630         * modules/unistdio/u32-asnprintf-tests: Likewise.
31631         * modules/unistdio/u32-vasnprintf-tests: Likewise.
31632         * modules/unistdio/u32-vasprintf-tests: Likewise.
31633         * modules/unistdio/u32-vsnprintf-tests: Likewise.
31634         * modules/unistdio/u32-vsprintf-tests: Likewise.
31635         * modules/unistdio/ulc-asnprintf-tests: Likewise.
31636         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
31637         * modules/unistdio/ulc-vasprintf-tests: Likewise.
31638         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
31639         * modules/unistdio/ulc-vsprintf-tests: Likewise.
31640         * modules/unistr/u8-check-tests: Likewise.
31641         * modules/unistr/u8-chr-tests: Likewise.
31642         * modules/unistr/u8-cmp-tests: Likewise.
31643         * modules/unistr/u8-cmp2-tests: Likewise.
31644         * modules/unistr/u8-cpy-alloc-tests: Likewise.
31645         * modules/unistr/u8-cpy-tests: Likewise.
31646         * modules/unistr/u8-mblen-tests: Likewise.
31647         * modules/unistr/u8-mbsnlen-tests: Likewise.
31648         * modules/unistr/u8-mbtouc-tests: Likewise.
31649         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
31650         * modules/unistr/u8-mbtoucr-tests: Likewise.
31651         * modules/unistr/u8-move-tests: Likewise.
31652         * modules/unistr/u8-next-tests: Likewise.
31653         * modules/unistr/u8-prev-tests: Likewise.
31654         * modules/unistr/u8-set-tests: Likewise.
31655         * modules/unistr/u8-stpcpy-tests: Likewise.
31656         * modules/unistr/u8-stpncpy-tests: Likewise.
31657         * modules/unistr/u8-strcat-tests: Likewise.
31658         * modules/unistr/u8-strcmp-tests: Likewise.
31659         * modules/unistr/u8-strcoll-tests: Likewise.
31660         * modules/unistr/u8-strcpy-tests: Likewise.
31661         * modules/unistr/u8-strdup-tests: Likewise.
31662         * modules/unistr/u8-strlen-tests: Likewise.
31663         * modules/unistr/u8-strmblen-tests: Likewise.
31664         * modules/unistr/u8-strmbtouc-tests: Likewise.
31665         * modules/unistr/u8-strncat-tests: Likewise.
31666         * modules/unistr/u8-strncmp-tests: Likewise.
31667         * modules/unistr/u8-strncpy-tests: Likewise.
31668         * modules/unistr/u8-strnlen-tests: Likewise.
31669         * modules/unistr/u8-to-u16-tests: Likewise.
31670         * modules/unistr/u8-to-u32-tests: Likewise.
31671         * modules/unistr/u8-uctomb-tests: Likewise.
31672         * modules/unistr/u16-check-tests: Likewise.
31673         * modules/unistr/u16-chr-tests: Likewise.
31674         * modules/unistr/u16-cmp-tests: Likewise.
31675         * modules/unistr/u16-cmp2-tests: Likewise.
31676         * modules/unistr/u16-cpy-alloc-tests: Likewise.
31677         * modules/unistr/u16-cpy-tests: Likewise.
31678         * modules/unistr/u16-mblen-tests: Likewise.
31679         * modules/unistr/u16-mbsnlen-tests: Likewise.
31680         * modules/unistr/u16-mbtouc-tests: Likewise.
31681         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
31682         * modules/unistr/u16-mbtoucr-tests: Likewise.
31683         * modules/unistr/u16-move-tests: Likewise.
31684         * modules/unistr/u16-next-tests: Likewise.
31685         * modules/unistr/u16-prev-tests: Likewise.
31686         * modules/unistr/u16-set-tests: Likewise.
31687         * modules/unistr/u16-stpcpy-tests: Likewise.
31688         * modules/unistr/u16-stpncpy-tests: Likewise.
31689         * modules/unistr/u16-strcat-tests: Likewise.
31690         * modules/unistr/u16-strcmp-tests: Likewise.
31691         * modules/unistr/u16-strcoll-tests: Likewise.
31692         * modules/unistr/u16-strcpy-tests: Likewise.
31693         * modules/unistr/u16-strdup-tests: Likewise.
31694         * modules/unistr/u16-strlen-tests: Likewise.
31695         * modules/unistr/u16-strmblen-tests: Likewise.
31696         * modules/unistr/u16-strmbtouc-tests: Likewise.
31697         * modules/unistr/u16-strncat-tests: Likewise.
31698         * modules/unistr/u16-strncmp-tests: Likewise.
31699         * modules/unistr/u16-strncpy-tests: Likewise.
31700         * modules/unistr/u16-strnlen-tests: Likewise.
31701         * modules/unistr/u16-to-u32-tests: Likewise.
31702         * modules/unistr/u16-to-u8-tests: Likewise.
31703         * modules/unistr/u16-uctomb-tests: Likewise.
31704         * modules/unistr/u32-check-tests: Likewise.
31705         * modules/unistr/u32-chr-tests: Likewise.
31706         * modules/unistr/u32-cmp-tests: Likewise.
31707         * modules/unistr/u32-cmp2-tests: Likewise.
31708         * modules/unistr/u32-cpy-alloc-tests: Likewise.
31709         * modules/unistr/u32-cpy-tests: Likewise.
31710         * modules/unistr/u32-mblen-tests: Likewise.
31711         * modules/unistr/u32-mbsnlen-tests: Likewise.
31712         * modules/unistr/u32-mbtouc-tests: Likewise.
31713         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
31714         * modules/unistr/u32-mbtoucr-tests: Likewise.
31715         * modules/unistr/u32-move-tests: Likewise.
31716         * modules/unistr/u32-next-tests: Likewise.
31717         * modules/unistr/u32-prev-tests: Likewise.
31718         * modules/unistr/u32-set-tests: Likewise.
31719         * modules/unistr/u32-stpcpy-tests: Likewise.
31720         * modules/unistr/u32-stpncpy-tests: Likewise.
31721         * modules/unistr/u32-strcat-tests: Likewise.
31722         * modules/unistr/u32-strcmp-tests: Likewise.
31723         * modules/unistr/u32-strcoll-tests: Likewise.
31724         * modules/unistr/u32-strcpy-tests: Likewise.
31725         * modules/unistr/u32-strdup-tests: Likewise.
31726         * modules/unistr/u32-strlen-tests: Likewise.
31727         * modules/unistr/u32-strmblen-tests: Likewise.
31728         * modules/unistr/u32-strmbtouc-tests: Likewise.
31729         * modules/unistr/u32-strncat-tests: Likewise.
31730         * modules/unistr/u32-strncmp-tests: Likewise.
31731         * modules/unistr/u32-strncpy-tests: Likewise.
31732         * modules/unistr/u32-strnlen-tests: Likewise.
31733         * modules/unistr/u32-to-u16-tests: Likewise.
31734         * modules/unistr/u32-to-u8-tests: Likewise.
31735         * modules/unistr/u32-uctomb-tests: Likewise.
31736         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
31737         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
31738         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
31739         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
31740         * modules/uniwidth/u8-strwidth-tests: Likewise.
31741         * modules/uniwidth/u8-width-tests: Likewise.
31742         * modules/uniwidth/u16-strwidth-tests: Likewise.
31743         * modules/uniwidth/u16-width-tests: Likewise.
31744         * modules/uniwidth/u32-strwidth-tests: Likewise.
31745         * modules/uniwidth/u32-width-tests: Likewise.
31746         * modules/uniwidth/width-tests: Likewise.
31747
31748 2010-05-18  Richard Jones  <rjones@redhat.com>
31749
31750         doc: users.txt: list hivex
31751         * users.txt: Add hivex.
31752
31753 2010-05-18  Richard Jones  <rjones@redhat.com>
31754
31755         doc: users.txt: list febootstrap
31756         * users.txt: Add febootstrap.
31757
31758 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
31759
31760         bootstrap: fix an error when gnulib is not used as a git submodule
31761         * build-aux/bootstrap (gnulib_path): If its length is zero then
31762         assign "gnulib" to it.
31763         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
31764
31765 2010-05-16  Bruno Haible  <bruno@clisp.org>
31766
31767         Avoid autoconf warnings about AM_ICONV.
31768         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
31769         2.64.
31770
31771 2010-05-16  Bruno Haible  <bruno@clisp.org>
31772
31773         absolute-header: Make the macro usable in more situations.
31774         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
31775         from gl_ABSOLUTE_HEADER.
31776         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
31777
31778 2010-05-16  James Youngman  <jay@gnu.org>
31779
31780         doc: update users.txt
31781         * users.txt: Add CSSC.
31782
31783 2010-05-16  Jim Meyering  <meyering@redhat.com>
31784
31785         init.sh: fix an error in the previous change; add more comments
31786         * tests/init.sh: Compare exit code in loop against 9, not 2.
31787         Patch by Bruno Haible.
31788         Make the two tests more similar by adding an empty "then" clause.
31789         Add comments.
31790
31791         init.sh: avoid unnecessary shell re-exec
31792         * tests/init.sh: Improve the re-exec-required check to first test the
31793         current shell.  If it passes the test, do not search for a shell that
31794         does pass, and do not re-exec.  This test is particularly contorted to
31795         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
31796         of $(...) evokes a syntax error and causes immediate shell exit with
31797         status 2.  Bruno Haible reported that the re-exec made it impossible
31798         to single-step through any init.sh-using script.
31799
31800 2010-05-16  Bruno Haible  <bruno@clisp.org>
31801
31802         Fix collision between gnulib's and libintl's printf replacements.
31803         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
31804         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
31805         (printf): When using GNU C, map the __printf__ function to rpl_printf
31806         via __asm__. When not using GNU C, define rpl_printf instead of
31807         __printf__.
31808         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
31809         commit.
31810         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
31811         commit.
31812         * m4/asm-underscore.m4: New file.
31813         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
31814         * modules/stdio (Files): Add m4/asm-underscore.m4.
31815         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
31816         Reported by Ben Pfaff.
31817
31818 2010-05-16  Bruno Haible  <bruno@clisp.org>
31819
31820         verify: Avoid skipping the test on openSUSE 11.0.
31821         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
31822
31823 2010-05-13  Bruno Haible  <bruno@clisp.org>
31824
31825         Avoid useless warnings from G++.
31826         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
31827         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
31828         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
31829
31830 2010-05-11  Jim Meyering  <meyering@redhat.com>
31831
31832         maint.mk: tweak preceding change
31833         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
31834         regexps tighter by anchoring at EOL, and make the new group "shy"
31835         for slightly decreased overhead.
31836
31837 2010-05-11  Eric Blake  <eblake@redhat.com>
31838
31839         maint.mk: gnulib doesn't guarantee NSIG
31840         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
31841
31842 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
31843
31844         test-pwrite.c: Remove unused variable declaration.
31845         * tests/test-pwrite.c (main): Remove read_buf declaration.
31846
31847         Remove useless test-pwrite.sh file.
31848         * tests/test-pwrite.sh: Delete file.
31849         * modules/pwrite-tests: Remove references.
31850         Reported by Bruno Haible.
31851
31852 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
31853
31854         init.sh: fix a typo
31855         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
31856
31857 2010-05-10  Jim Meyering  <meyering@redhat.com>
31858
31859         maint.mk: avoid using a temporary file in the always-defined-macros check
31860         * top/maint.mk (.re-defmac): Remove rule.
31861         (gl_trap_): Remove definition.
31862         (sc_prohibit_always-defined_macros): Rewrite not to create and
31863         depend on a temporary file.  Instead, depend on GNU grep's ability
31864         to read a list of regular expressions from stdin when given "-f -".
31865
31866 2010-05-09  Bruno Haible  <bruno@clisp.org>
31867
31868         Update to GNU gettext 0.18, part 1.
31869         * m4/gettext.m4: Update to GNU gettext 0.18.
31870         * m4/intl.m4: Likewise.
31871         * m4/po.m4: Likewise.
31872         * modules/gettext (Files): Add m4/fcntl-o.m4.
31873         (configure.ac): Require gettext infrastructure from version 0.18.
31874
31875 2010-05-09  Jim Meyering  <meyering@redhat.com>
31876
31877         init.sh: enable MALLOC_PERTURB_
31878         * tests/init.sh: Enable glibc's malloc-perturbing option.
31879
31880         maint.mk: improve sc_cross_check_PATH_usage_in_tests
31881         With my recent change in init.sh from the two-line form:
31882             -#   : ${srcdir=.}
31883             -#   . "$srcdir/init.sh"; path_prepend_ .
31884             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
31885         I noticed that using the one-line form would cause this test
31886         to fail with a false-positive, or to stop working altogether,
31887         depending on whether help-version changed or all the tests did.
31888         * top/maint.mk (_hv_regex): Remove this definition.
31889         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
31890         (_hv_regex_strong): Use a stronger regex to check for conformance.
31891         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
31892         Give a separate diagnostic for lack of conforming use.
31893
31894         maint.mk: prohibit definition of symbols defined by gnulib
31895         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
31896         definition of symbols defined by gnulib.
31897
31898 2010-05-09  Bruno Haible  <bruno@clisp.org>
31899
31900         acl: Avoid test failure on Cygwin-hosted mingw.
31901         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
31902
31903 2010-05-09  Bruno Haible  <bruno@clisp.org>
31904
31905         error: Use system's fcntl function.
31906         * lib/error.c (fcntl): Undefine.
31907
31908 2010-05-09  Jim Meyering  <meyering@redhat.com>
31909
31910         verify: adjust formatting to be more consistent
31911         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
31912         argument-list '('s, and after one comma.
31913
31914 2010-05-09  Bruno Haible  <bruno@clisp.org>
31915
31916         error: More reliable output on mingw.
31917         * lib/error.c: Include <windows.h>.
31918         (is_open): New function.
31919         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
31920         defined.
31921
31922 2010-05-09  Bruno Haible  <bruno@clisp.org>
31923
31924         vasnprintf: Fix syntax errors in libintl build on mingw.
31925         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
31926         pad_ourselves and prec_ourselves after use.
31927
31928 2010-05-08  Bruno Haible  <bruno@clisp.org>
31929
31930         * lib/config.charset: Update comments for Cygwin 1.7.
31931         * lib/localcharset.c: Likewise.
31932
31933 2010-05-07  Jim Meyering  <meyering@redhat.com>
31934
31935         init.sh: improve comments
31936         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
31937         . "${srcdir=.}/init.sh"; path_prepend_ .
31938         Add a note about path_prepend_ and the alternative of using
31939         TESTS_ENVIRONMENT.
31940
31941 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
31942
31943         exclude: Unescape hashed patterns in wildcard mode.
31944         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
31945         to the hash list.
31946         * tests/test-exclude8.sh: New test case.
31947         * modules/exclude-tests: Add new test.
31948
31949 2010-05-05  Eric Blake  <eblake@redhat.com>
31950
31951         verify: automate tests
31952         * modules/verify-tests: New module.
31953         * tests/test-verify.sh: New file.
31954         * tests/test-verify.c: Guard each negative test with a unique id.
31955         Also avoid warning about unused left hand of comma expressions.
31956
31957 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
31958
31959         Further improvements to verify.h, suggested by Eric Blake.
31960         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
31961         the GL_* versions, to avoid collision with OpenGL.
31962         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
31963         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
31964         than testing merely whether it's defined.
31965
31966         Modify verify.h to pacify gcc -Wredundant_decls.
31967         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
31968         These use the prefix "GL_" since they're likely to be useful elsewhere.
31969         We may need to break them out into a different .h file.
31970         (__COUNTER__): Define to 0 if the compiler doesn't support it.
31971         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
31972         of verify_function__.
31973
31974 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
31975
31976         Tests for module pwrite.
31977         * modules/pwrite-tests: New file.
31978         * tests/test-pwrite.sh: New file.
31979         * tests/test-pwrite.c: New file.
31980
31981         New module pwrite.
31982         * lib/unistd.in.h (pwrite): New declaration.
31983         * lib/pwrite.c: New file, from glibc with modifications.
31984         * m4/pwrite.m4: New file.
31985         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
31986         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
31987         REPLACE_PWRITE.
31988         * modules/pwrite: New file.
31989         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
31990         REPLACE_PWRITE.
31991         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
31992         * doc/posix-functions/pwrite.texi: Mention the new module.
31993
31994 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
31995
31996         pread: Update documentation.
31997         * doc/posix-functions/pread.texi: Mention the 'pread' module.
31998
31999 2010-05-04  Eric Blake  <eblake@redhat.com>
32000
32001         docs: update cygwin progress
32002         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
32003         this bug.
32004         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
32005         Added in cygwin 1.7.2.
32006         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
32007         Likewise.
32008         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
32009         Likewise.
32010         * doc/glibc-functions/dup3.texi (dup3): Likewise.
32011         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
32012         * doc/glibc-functions/accept4.texi (accept4): Likewise.
32013         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
32014         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
32015         Mention nproc module.
32016         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
32017         bug in cygwin 1.7.5 addition.
32018         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
32019         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
32020         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
32021         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
32022         1.7.5.
32023         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
32024         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
32025         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
32026         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
32027         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
32028         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
32029         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
32030         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
32031         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
32032         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
32033         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
32034         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
32035         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
32036         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
32037         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
32038         Likewise.
32039         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
32040         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
32041         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
32042         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
32043         Likewise.
32044         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
32045         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
32046         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
32047         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
32048         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
32049         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
32050         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
32051         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
32052         Likewise.
32053         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
32054         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
32055         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
32056         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
32057         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
32058         Likewise.
32059         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
32060         Likewise.
32061         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
32062         Likewise.
32063         * doc/glibc-functions/xdrrec_endofrecord.texi
32064         (xdrrec_endofrecord): Likewise.
32065         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
32066         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
32067         Likewise.
32068         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
32069         Likewise.
32070
32071 2010-05-04  Jim Meyering  <meyering@redhat.com>
32072
32073         gendocs.sh: make its "-s FILE" option more useful
32074         * build-aux/gendocs.sh: When honoring the -s FILE option, update
32075         $PACKAGE to reflect the probably-different basename of "FILE".
32076
32077 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
32078
32079         bootstrap: don't ignore download_po_files failure
32080         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
32081         failure.
32082
32083 2010-05-03  Jim Meyering  <meyering@redhat.com>
32084
32085         maint.mk: allow to pass options to gendocs.sh
32086         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
32087         (gendocs_options_): New overridable variable.
32088
32089         gnu-web-doc-update: don't ignore configure or build failure
32090         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
32091
32092         announce-gen: backslash-escape '@'s in --help output
32093         * build-aux/announce-gen: Fix syntax errors.
32094
32095         maint.mk, announce-gen: allow project-specific announcement mail headers
32096         * top/maint.mk (translation_project_): Define default.
32097         (announcement_Cc_, announcement_mail_headers_): Likewise.
32098         (announcement): Invoke announce-gen with new --mail-headers option.
32099         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
32100
32101         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
32102         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
32103         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
32104         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
32105         line in the "err2" output file when running "make check" in verbose
32106         mode (i.e., with set -x enabled).
32107
32108 2010-05-03  Bruno Haible  <bruno@clisp.org>
32109
32110         wctob: Fix for weird platforms.
32111         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
32112         argument value.
32113
32114 2010-05-03  Jim Meyering  <meyering@redhat.com>
32115
32116         maint.mk: prohibit unwarranted use of <strings.h>
32117         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
32118         strings.h in a file that does not also use strcasecmp, strncasecmp,
32119         ffs or ffsll.
32120
32121         maint.mk: remove obsolete comments
32122         * top/maint.mk: Remove stale, commented-out rules.
32123
32124 2010-05-02  Bruno Haible  <bruno@clisp.org>
32125
32126         wcwidth: Declare also when it's aliased.
32127         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
32128         macro.
32129
32130 2010-05-02  Bruno Haible  <bruno@clisp.org>
32131
32132         Fix regression from 2010-04-25.
32133         * gnulib-tool (func_modules_transitive_closure): Check the status of
32134         all modules, not only of the tests that are of the form foo-tests where
32135         foo is a module.
32136
32137 2010-05-02  Bruno Haible  <bruno@clisp.org>
32138
32139         wctob: Work around nasty Cygwin 1.7.2 bug.
32140         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
32141         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
32142
32143 2010-05-01  Bruno Haible  <bruno@clisp.org>
32144
32145         fpurge: Sharper test.
32146         * tests/test-fpurge.c (main): Add one more ftell check.
32147         * modules/fpurge-tests (Depends-on): Add ftell.
32148         Suggested by Eric Blake.
32149
32150 2010-05-01  Bruno Haible  <bruno@clisp.org>
32151
32152         ftello: Another test.
32153         * tests/test-ftello3.c: New file.
32154         * modules/ftello-tests (Files): Add it.
32155         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
32156         MOSTLYCLEANFILES.
32157
32158         ftell: Another test.
32159         * tests/test-ftell3.c: New file.
32160         * modules/ftell-tests (Files): Add it.
32161         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
32162         MOSTLYCLEANFILES.
32163
32164 2010-05-01  Bruno Haible  <bruno@clisp.org>
32165
32166         ftell, ftello: Work around Solaris bug.
32167         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
32168         * lib/ftello.c: Include stdio-impl.h.
32169         (ftello): On Solaris, when _IOWRT is set, compute the result without
32170         looking at _IOREAD.
32171         * modules/ftello (Files): Add lib/stdio-impl.h.
32172         * doc/posix-functions/ftell.texi: Mention Solaris bug.
32173         * doc/posix-functions/ftello.texi: Likewise.
32174         Reported by Eric Blake.
32175
32176 2010-05-01  Bruno Haible  <bruno@clisp.org>
32177
32178         freading: Adapt to special meaning of _IOREAD flag on Solaris.
32179         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
32180         the _IOWRT flag is also set.
32181
32182 2010-05-01  Bruno Haible  <bruno@clisp.org>
32183
32184         Fix doc about a HP-UX stdio bug.
32185         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
32186         * doc/posix-functions/ftello.texi: Likewise.
32187
32188 2010-05-01  Bruno Haible  <bruno@clisp.org>
32189
32190         lseek test: Fix failure on Solaris.
32191         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
32192         output.
32193
32194 2010-04-30  Jim Meyering  <meyering@redhat.com>
32195
32196         bootstrap: don't ignore failure to generate po*/Makevars
32197         * build-aux/bootstrap (with_gettext): Don't ignore failure
32198         to create po/Makevars or runtime-po/Makevars.
32199
32200 2010-04-29  Eric Blake  <eblake@redhat.com>
32201
32202         headers: relax license to LGPLv2+
32203         * modules/fcntl-h (License): Relax license.
32204         * modules/getopt-posix (License): Likewise.
32205         * modules/locale (License): Likewise.
32206         * modules/math (License): Likewise.
32207         * modules/pty (License): Likewise.
32208         * modules/sched (License): Likewise.
32209         * modules/search (License): Likewise.
32210         * modules/spawn (License): Likewise.
32211         * modules/stdarg (License): Likewise.
32212         * modules/sysexits (License): Likewise.
32213
32214 2010-04-29  Jim Meyering  <meyering@redhat.com>
32215
32216         inttypes: relax license to LGPLv2+
32217         * modules/inttypes (License): Relax license.
32218
32219 2010-04-29  Simon Josefsson  <simon@josefsson.org>
32220
32221         * top/maint.mk (indent): Run twice to produce idempotent results.
32222
32223 2010-04-28  Bruno Haible  <bruno@clisp.org>
32224
32225         getdate: Generate getdate.c in the source directory.
32226         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
32227         MOSTLYCLEANFILES.
32228         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
32229
32230 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
32231
32232         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
32233         is not declared as a const *; avoid warnings in that case.
32234
32235 2010-04-28  Eric Blake  <eblake@redhat.com>
32236
32237         canonicalize-lgpl: avoid compiler warning
32238         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
32239         declaration' / 'extraneous semicolon' warning with some compilers.
32240         Reported by Andreas Gruenbacher.
32241
32242 2010-04-28  Jim Meyering  <meyering@redhat.com>
32243
32244         init.sh: ensure a more reliable exit status when exiting via trap
32245         * tests/init.sh (setup_): Don't rely on $? in signal handler.
32246         Inspired by patches from Dmitry V. Levin.
32247         Also trap on signal 3 (SIGQUIT).
32248
32249 2010-04-27  Bruno Haible  <bruno@clisp.org>
32250
32251         Update doc about utimes().
32252         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
32253         'utimens' module.
32254         Reported by Andreas Gruenbacher <agruen@suse.de>.
32255
32256 2010-04-27  Eric Blake  <eblake@redhat.com>
32257
32258         full-read, full-write: relax license
32259         * modules/full-read (License): Drop to LGPLv2+.
32260         * modules/full-write (License): Likewise.
32261         * modules/safe-read (License): Likewise.
32262         * modules/safe-write (License): Likewise.
32263
32264         pthread: mention library for linking
32265         * modules/pthread (Link): Mention $(LIB_PTHREAD).
32266
32267 2010-04-27  Jim Meyering  <meyering@redhat.com>
32268
32269         maint.mk: fix a bug introduced in last change
32270         * top/maint.mk (gl_assured_headers_): Now that all names are on
32271         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
32272         is not anchored to end of word, it should be adequate.
32273
32274         maint.mk: avoid side-effect in latest syntax-check
32275         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
32276         to run commands via $(shell...), and hence to incur cost only when
32277         the new rule is actually run.
32278
32279         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
32280         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
32281         and use that to create a regexp used to detect all #if HAVE_..._H uses.
32282         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
32283         (gl_assured_headers_, az_, AZ_): Define.
32284         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
32285
32286 2010-04-26  Jim Meyering  <jim@meyering.net>
32287             Bruno Haible  <bruno@clisp.org>
32288
32289         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
32290         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
32291         Prompted by an exchange with Gilles Espinasse.
32292
32293 2010-04-26  Jim Meyering  <meyering@redhat.com>
32294
32295         git-version-gen: aesthetic tweak
32296         * build-aux/git-version-gen: Use "$nl" rather than a literal,
32297         so that the command remains on a single line.
32298
32299 2010-04-26  Eric Blake  <eblake@redhat.com>
32300
32301         git-version-gen: allow use on EBCDIC hosts
32302         * build-aux/git-version-gen (dirty): Use literal rather than tying
32303         ourselves to ascii.
32304         Reported by Steve Goetze.
32305
32306 2010-04-25  Bruno Haible  <bruno@clisp.org>
32307
32308         netdb: Add support for GNULIB_POSIXCHECK.
32309         * lib/netdb.in.h: Include warn-on-use.h.
32310         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
32311         functions are used when GNULIB_POSIXCHECK is defined and the
32312         getaddrinfo module is not in use.
32313         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
32314         freeaddrinfo, gai_strerror, getnameinfo are declared.
32315         * modules/netdb (Depends-on): Add warn-on-use.
32316         (Makefile.am): Include warn-on-use.h in netdb.h.
32317
32318 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
32319
32320         build: avoid "make check" failure without .git/ directory
32321         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
32322         there is no .git/ directory.
32323
32324 2010-04-25  Bruno Haible  <bruno@clisp.org>
32325
32326         ptsname: Fix misuse of ttyname_r.
32327         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
32328         of errno.
32329
32330 2010-04-25  Bruno Haible  <bruno@clisp.org>
32331
32332         ttyname_r: Make it work on Solaris 10.
32333         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
32334         if the system function has the POSIX declaration. Test whether the
32335         function fails if the buffer is less than 128 bytes large.
32336         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
32337         system's ttyname_r function. Provide a reasonably large buffer.
32338         * modules/ttyname_r (Depends-on): Add extensions.
32339         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
32340
32341 2010-04-25  Bruno Haible  <bruno@clisp.org>
32342
32343         Use the 'extensions' module for some more functions on Solaris.
32344         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
32345         module.
32346         * doc/posix-functions/ctime_r.texi: Likewise.
32347         * doc/posix-functions/getgrgid_r.texi: Likewise.
32348         * doc/posix-functions/getgrnam_r.texi: Likewise.
32349         * doc/posix-functions/getpwnam_r.texi: Likewise.
32350         * doc/posix-functions/getpwuid_r.texi: Likewise.
32351         * doc/posix-functions/readdir_r.texi: Likewise.
32352         * doc/posix-functions/sigwait.texi: Likewise.
32353         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
32354         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
32355
32356 2010-04-25  Bruno Haible  <bruno@clisp.org>
32357
32358         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
32359         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
32360         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
32361         * lib/ttyname_r.c: Include <limits.h>.
32362         (ttyname_r): Define using the system's ttyname_r function, if it exists
32363         and not on Solaris.
32364         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
32365         set.
32366         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
32367         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
32368         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
32369         Reported by Simon Josefsson.
32370
32371 2010-04-25  Bruno Haible  <bruno@clisp.org>
32372
32373         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
32374         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
32375         * doc/posix-functions/ctime_r.texi: Likewise.
32376         * doc/posix-functions/getgrgid_r.texi: Likewise.
32377         * doc/posix-functions/getgrnam_r.texi: Likewise.
32378         * doc/posix-functions/getlogin_r.texi: Likewise.
32379         * doc/posix-functions/getpwnam_r.texi: Likewise.
32380         * doc/posix-functions/getpwuid_r.texi: Likewise.
32381         * doc/posix-functions/readdir_r.texi: Likewise.
32382         * doc/posix-functions/sigwait.texi: Likewise.
32383         * doc/posix-functions/ttyname_r.texi: Likewise.
32384         Reported by Simon Josefsson.
32385
32386 2010-04-25  Bruno Haible  <bruno@clisp.org>
32387
32388         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
32389         * gnulib-tool (func_usage): Document that --with-*-tests options apply
32390         also to --create-testdir.
32391         (func_acceptable): Don't consider the status of *-tests modules here.
32392         (func_modules_transitive_closure): Consider it here, before including a
32393         test module.
32394         (func_import, func_create_testdir): Set inc_all_direct_tests,
32395         inc_all_indirect_tests.
32396         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
32397         --create-testdir and --create-megatestdir.
32398
32399 2010-04-25  Bruno Haible  <bruno@clisp.org>
32400
32401         gnulib-tool: Add --without-*-tests options.
32402         * gnulib-tool (func_usage): Document the --without-*-tests options.
32403         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
32404         excl_unportable_tests): New variables.
32405         Fail if they are specified with --import or --update.
32406         (func_acceptable): Respect the excl_*_tests variables.
32407         (func_import): Set the excl_*_tests variables to empty.
32408
32409 2010-04-25  Simon Josefsson  <simon@josefsson.org>
32410             Bruno Haible  <bruno@clisp.org>
32411
32412         Work around a MacOS X 10.4 bug with openpty.
32413         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
32414         * tests/test-openpty.c (main): Close the master side explicitly.
32415
32416 2010-04-25  Bruno Haible  <bruno@clisp.org>
32417
32418         strnlen: Fix a C++ test error on MacOS X and Solaris.
32419         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
32420         the function is not declared.
32421         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
32422         Simon Josefsson.
32423
32424 2010-04-24  Bruno Haible  <bruno@clisp.org>
32425
32426         Avoid a gcc warning.
32427         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
32428         of correct type for %08lx directive.
32429         Reported by Eric Blake.
32430
32431 2010-04-24  Bruno Haible  <bruno@clisp.org>
32432
32433         vasnprintf: Correct errno value in case of out-of-memory.
32434         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
32435         or sprintf. Use the errno value from SNPRINTF or sprintf.
32436         Reported by Ian Beckwith <ianb@erislabs.net>.
32437
32438 2010-04-24  Bruno Haible  <bruno@clisp.org>
32439
32440         ansi-c++-opt: Find correct compiler when cross-compiling.
32441         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
32442         AC_CHECK_PROGS.
32443         Reported by Simon Josefsson.
32444
32445 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
32446
32447         vc-list-files: Add support for subversion
32448         * build-aux/vc-list-files: Use "svn list" to generate the list of
32449         files controlled by subversion.
32450
32451 2010-04-23  Jim Meyering  <meyering@redhat.com>
32452
32453         vc-list-files tests: convert to use init.sh
32454         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
32455         path_prepend_.
32456         Use Exit, not exit.
32457         Use skip_ rather than open coding it.
32458         Remove trap set-up and compare definitions.
32459         * tests/test-vc-list-files-git.sh: Likewise.
32460         * modules/vc-list-files-tests (Files): Add tests/init.sh.
32461
32462 2010-04-22  Simon Josefsson  <simon@josefsson.org>
32463
32464         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
32465         backup files.
32466
32467 2010-04-21  Simon Josefsson  <simon@josefsson.org>
32468
32469         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
32470
32471 2010-04-20  Eric Blake  <eblake@redhat.com>
32472
32473         tests: be robust to ignored SIGPIPE
32474         * tests/test-select-in.sh: Consume all output.
32475         * tests/test-lseek.sh: Check correct exit status, while avoiding
32476         EPIPE.
32477
32478 2010-04-20  Simon Josefsson  <simon@josefsson.org>
32479             Bruno Haible  <bruno@clisp.org>
32480
32481         visibility: Don't use -fvisibility if it leads to a warning.
32482         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
32483         yes, don't pretend that visibility works if it leads to a warning.
32484         Reported by Mike Gran <spk121@yahoo.com>.
32485
32486 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
32487
32488         * build-aux/bootstrap: Use "git -h" for testing for supported options
32489         instead of "git --help".  The short-form option only shows a summary,
32490         and doesn't layout the full man page.  Grep for the full option name
32491         in the summary, too.
32492
32493 2010-04-19  Bruno Haible  <bruno@clisp.org>
32494
32495         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
32496         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
32497         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
32498         mention of RELOCATABLE_STRIP.
32499         Reported by Sylvain Beucler <beuc@beuc.net>.
32500
32501 2010-04-19  Bruno Haible  <bruno@clisp.org>
32502
32503         * lib/diffseq.h: Fix typo in comment.
32504         Reported by Eric Blake.
32505
32506 2010-04-19  Bruno Haible  <bruno@clisp.org>
32507
32508         ioctl: Move autoconf macro to a .m4 file.
32509         * m4/ioctl.m4: New file, extracted from modules/ioctl.
32510         * modules/ioctl (Files): Add it.
32511         (configure.ac): Simply invoke gl_FUNC_IOCTL.
32512         Reported by Ian Beckwith <ianb@erislabs.net>.
32513
32514 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
32515             Bruno Haible  <bruno@clisp.org>
32516
32517         diffseq: Accommodate use-case with abstract arrays.
32518         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
32519         is not defined.
32520         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
32521         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
32522
32523 2010-04-18  Bruno Haible  <bruno@clisp.org>
32524
32525         * doc/posix-headers/stdbool.texi: More precise wording.
32526
32527 2010-04-17  Jim Meyering  <meyering@redhat.com>
32528
32529         maint.mk: use gnu-style indentation in an embedded perl script
32530         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
32531         Rename variable: s/two/last_two_bytes/
32532
32533 2010-04-16  Eric Blake  <eblake@redhat.com>
32534
32535         test-stdbool: skip test that fails with Solaris CC
32536         * tests/test-stdbool.c (f): Skip test that causes compilation
32537         error under buggy C++ compiler.
32538         * lib/stdbool.in.h: Document the limitation.
32539         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
32540
32541         setenv: allow compilation with C++
32542         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
32543         register keyword.
32544
32545         stdint: allow test to pass with C++
32546         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
32547
32548         getopt: allow compilation with C++
32549         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
32550         struct.
32551         * lib/getopt.c (_getopt_internal_r): Use correct type.
32552         Reported by Dagobert Michelson, via Joel E. Denny.
32553
32554 2010-04-16  Bruno Haible  <bruno@clisp.org>
32555
32556         Override netdb.h always.
32557         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
32558         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
32559         Reported by Ludovic Courtès <ludo@gnu.org>.
32560
32561 2010-04-15  Bruno Haible  <bruno@clisp.org>
32562
32563         openpty: Fix mistake from 2010-03-21.
32564         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
32565         Reported by Simon Josefsson.
32566
32567 2010-04-15  Eric Blake  <eblake@redhat.com>
32568
32569         test-forkpty: fix expected signature
32570         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
32571         Reported by Simon Josefsson.
32572
32573 2010-04-15  Jim Meyering  <meyering@redhat.com>
32574
32575         maint.mk: texinfo_suffix_re_: correct the default regexp
32576         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
32577
32578         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
32579         make it configurable via texinfo_suffix_re_.
32580
32581 2010-04-14  Eric Blake  <eblake@redhat.com>
32582
32583         strtok_r: relax license to LGPLv2+
32584         * modules/strtok_r (License): Relax license.
32585         Reported by Matthias Bolte.
32586
32587 2010-04-14  Simon Josefsson  <simon@josefsson.org>
32588
32589         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
32590         version 1.4.4 by default instead of requiring the libgcrypt
32591         version used during build.  This makes it possible to use the
32592         application with older but still binary compatible libgcrypt
32593         versions.
32594
32595 2010-04-13  Eric Blake  <eblake@redhat.com>
32596
32597         getopt-gnu: match recent glibc fixes and posix ruling
32598         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
32599         '+' handling, when requesting extensions.
32600         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
32601         'W;' handling.
32602         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
32603         * doc/posix-functions/getopt.texi (getopt): Document this.
32604         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
32605         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32606         Likewise.
32607
32608         getopt: merge bug fixes from glibc
32609         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
32610         diagnostics.  Honor '+:' correctly.  Reject ';'.
32611
32612         getopt-posix: detect MacOS bug
32613         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
32614         optind when missing a required argument.
32615         * doc/posix-functions/getopt.texi (getopt): Document the bug.
32616         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
32617         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32618         Likewise.
32619
32620         getopt-posix: avoid spurious failure on Solaris
32621         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
32622         an indicator that setting optind=1 is sufficient for reset.
32623
32624         getopt-posix: avoid spurious failure on FreeBSD
32625         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
32626         in POSIX mode, since the m4 test uses it.
32627
32628         gnulib-tool: silence warning on BSD sh
32629         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
32630
32631 2010-04-13  Jim Meyering  <meyering@redhat.com>
32632
32633         doc: users.txt: GNU patch now uses gnulib
32634         * users.txt: Add patch.
32635
32636 2010-04-12  Jim Meyering  <meyering@redhat.com>
32637
32638         maint.mk: generate more concise timing data for syntax-check rules
32639         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
32640         " done" from each line that reports a syntax-check test duration.
32641
32642 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
32643
32644         git-version-gen: use "git update-index..." rather than "git status"
32645         * build-aux/git-version-gen: Use git update-index --refresh, not
32646         "git status".  With some versions of git, "git status" would fail
32647         to update the index and result in an unwarranted "-dirty" suffix.
32648
32649 2010-04-11  Jim Meyering  <meyering@redhat.com>
32650
32651         openat: correct formatting (no semantic change)
32652         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
32653         Suggested by Bruno Haible.
32654
32655 2010-04-11  Bruno Haible  <bruno@clisp.org>
32656
32657         Stricter declaration checking in testdirs.
32658         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
32659         If for_tests is true, augment AM_CPPFLAGS to define
32660         GNULIB_STRICT_CHECKING.
32661         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
32662         GNULIB_STRICT_CHECKING is defined, verify that the function is
32663         declared.
32664
32665 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
32666             Bruno Haible  <bruno@clisp.org>
32667
32668         libunistring: Improve configure output.
32669         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
32670         Don't say "consider installing GNU libunistring" when checking again
32671         with libiconv.
32672
32673 2010-04-11  Bruno Haible  <bruno@clisp.org>
32674
32675         libunistring: Correct value of $LTLIBUNISTRING.
32676         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
32677         correct the value of $LTLIBUNISTRING.
32678
32679 2010-04-11  Bruno Haible  <bruno@clisp.org>
32680
32681         havelib: Add static libraries to LIBS in the right order.
32682         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
32683         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
32684
32685 2010-04-11  Bruno Haible  <bruno@clisp.org>
32686
32687         libunistring: Detect libunistring also when it depends on libiconv.
32688         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
32689         the second AC_LIB_HAVE_LINKFLAGS invocation.
32690
32691 2010-04-11  James Youngman  <jay@gnu.org>
32692
32693         close-stream: declare local scalars to be "const"
32694         * lib/close-stream.c (close_stream): Make boolean variables const
32695         to document the fact that we set but do not change them.
32696
32697 2010-04-11  Bruno Haible  <bruno@clisp.org>
32698
32699         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
32700
32701 2010-04-11  Jim Meyering  <meyering@redhat.com>
32702
32703         maint.mk: don't include dist-check.mk
32704         * top/maint.mk: Remove bogus include directive.
32705
32706         maint.mk: improve empty-line-at-EOF check
32707         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
32708         solution, rather than tail+Perl-based one.  The latter would read
32709         a few kilobytes from the end of each file, and did not handle empty
32710         files properly.
32711
32712         maint.mk: print the elapsed time for each syntax-check rule
32713         * top/maint.mk (sc_m_rules_): Save start time in a file.
32714         (sc_z_rules_): New rules: remove temp file and print elapsed time.
32715         (local-check): Interpose the .z rules
32716
32717 2010-04-11  Jim Meyering  <meyering@redhat.com>
32718
32719         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
32720         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
32721         empty file with one that ends in an empty line.
32722
32723 2010-04-10  Bruno Haible  <bruno@clisp.org>
32724
32725         mkdir: Make it work on mingw64.
32726         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
32727         * lib/mkdir.c: Update comment.
32728         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
32729
32730 2010-04-10  Bruno Haible  <bruno@clisp.org>
32731
32732         Don't override improved macro from newer autoconf.
32733         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
32734         autoconf >= 2.62.
32735         Reported by Joel E. Denny <jdenny@clemson.edu>.
32736
32737 2010-04-10  Jim Meyering  <meyering@redhat.com>
32738
32739         maint.mk: new syntax-check rule: prohibit empty lines at end of file
32740         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
32741
32742         maint.mk: correct a diagnostic
32743         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
32744         in diagnostic; now use $prohibit.
32745
32746 2010-04-10  Bruno Haible  <address@hidden>
32747
32748         fchownat: Fix a C++ test error on Solaris 8.
32749         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
32750         the function does not exist.
32751
32752 2010-04-10  Bruno Haible  <bruno@clisp.org>
32753
32754         vasnprintf: Add more tests.
32755         * tests/test-vasnprintf-posix.c: Include <errno.h>.
32756         (test_function): Test converting an invalid wide string.
32757
32758         vasnprintf: Correct handling of unconvertible wide string arguments.
32759         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
32760         VASNPRINTF.
32761         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
32762         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
32763         smaller than the expected maximum need for the directive. Set errno to
32764         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
32765         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
32766         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
32767         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
32768         * modules/vasnprintf (Files): Add m4/printf.m4.
32769         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
32770
32771 2010-04-10  Bruno Haible  <bruno@clisp.org>
32772
32773         vasnprintf: Fix crash in %ls directive.
32774         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
32775         string is passed as argument to %ls, with no precision and no width.
32776         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
32777
32778 2010-04-10  Bruno Haible  <bruno@clisp.org>
32779
32780         vasnprintf: Fix multiple test failures on mingw.
32781         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
32782         _snprintf, or snwprintf, not _snwprintf.
32783
32784 2010-04-10  Bruno Haible  <bruno@clisp.org>
32785
32786         write: Fix a C++ test error on mingw.
32787         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
32788
32789 2010-04-10  Bruno Haible  <bruno@clisp.org>
32790
32791         vasnprintf test: Reduce code duplication.
32792         * tests/test-vasnprintf.c (test_function): New function, extracted from
32793         test_vasnprintf.
32794         (test_vasnprintf, test_asnprintf): Invoke it.
32795
32796 2010-04-10  Bruno Haible  <bruno@clisp.org>
32797
32798         strnlen: Fix warning in C++ mode on MacOS X.
32799         * lib/string.in.h (strnlen): Use the modern idiom.
32800         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
32801         defining strnlen as a macro already in <config.h>.
32802         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
32803         REPLACE_STRNLEN.
32804         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
32805         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
32806
32807 2010-04-08  James Youngman  <jay@gnu.org>
32808
32809         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
32810         the example.
32811
32812 2010-04-09  Jim Meyering  <meyering@redhat.com>
32813
32814         maint.mk: print better diagnostic when there is no $(_hv_file)
32815         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
32816         announce that when $(_hv_file) (aka help-version) does not exist.
32817
32818         init.sh: run tr in the "C" locale to avoid multibyte interpretation
32819         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
32820         not try to interpret its random input bytes.  Jarno Rajahalme reported
32821         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
32822         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
32823         (mktempd_): Likewise, just in case.
32824
32825         ftruncate: add two years to projected module removal date: 2012
32826         * m4/ftruncate.m4: Adjust comments.
32827
32828         ftruncate: mark module as obsolete; even MinGW provides it, now
32829         * modules/ftruncate (Status): Obsolete.
32830         (Notice): Say that.
32831         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
32832         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
32833
32834 2010-04-08  Bruno Haible  <bruno@clisp.org>
32835
32836         Fix side effects from tests-related modules.
32837         * modules/dprintf-posix (Comment): New section.
32838         * modules/fprintf-posix (Comment): Likewise.
32839         * modules/obstack-printf-posix (Comment): Likewise.
32840         * modules/printf-posix (Comment): Likewise.
32841         * modules/snprintf-posix (Comment): Likewise.
32842         * modules/sprintf-posix (Comment): Likewise.
32843         * modules/vasnprintf-posix (Comment): Likewise.
32844         * modules/vasprintf-posix (Comment): Likewise.
32845         * modules/vdprintf-posix (Comment): Likewise.
32846         * modules/vfprintf-posix (Comment): Likewise.
32847         * modules/vprintf-posix (Comment): Likewise.
32848         * modules/vsnprintf-posix (Comment): Likewise.
32849         * modules/vsprintf-posix (Comment): Likewise.
32850         * modules/xprintf-posix (Comment): Likewise.
32851         * modules/xvasprintf-posix (Comment): Likewise.
32852         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
32853         * modules/floorf-tests (Depends-on): Likewise.
32854         * modules/round-tests (Depends-on): Likewise.
32855         * modules/roundf-tests (Depends-on): Likewise.
32856         * modules/trunc-tests (Depends-on): Likewise.
32857         * modules/truncf-tests (Depends-on): Likewise.
32858         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
32859         'fprintf-posix' module is not present.
32860         * tests/test-floorf2.c (check): Likewise.
32861         * tests/test-trunc2.c (check): Likewise.
32862         * tests/test-truncf2.c (check): Likewise.
32863         * tests/test-round2.c (equal): Likewise.
32864         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
32865
32866 2010-04-07  Karl Berry  <karl@gnu.org>
32867
32868         * config/srclist.txt,
32869         * config/srclistvars.sh,
32870         * config/srclist-update: doc fixes.
32871
32872 2010-04-07  Jim Meyering  <meyering@redhat.com>
32873
32874         maint.mk: add a PATH crosschecking syntax-check rule
32875         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
32876         Useful if you use a test like the one in help-version (coreutils,
32877         diffutils, grep, gzip) that ensures $(VERSION) matches what is
32878         printed by prog --version.
32879
32880 2010-04-06  Bruno Haible  <bruno@clisp.org>
32881
32882         Fix link error on mingw.
32883         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
32884         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
32885
32886 2010-04-06  Bruno Haible  <bruno@clisp.org>
32887
32888         Assume rmdir exists.
32889         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
32890
32891 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
32892
32893         doc: update users.txt
32894         * users.txt: Add gcal.
32895
32896 2010-04-06  Jim Meyering  <meyering@redhat.com>
32897
32898         init.sh: simply unset TMPDIR rather than risking env -i
32899         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
32900         although it probably works fine on all Unix-based systems, some
32901         systems (Cygwin?) cannot tolerate a totally cleared environment.
32902         Suggestion from Eric Blake.
32903
32904 2010-04-06  Jim Meyering  <meyering@redhat.com>
32905
32906         init.sh: portability fix: use env's POSIX-specified -i option not -u
32907         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
32908         than unportable env -u.  Solaris 5.11's env lacks support for -u.
32909
32910 2010-04-05  Bruno Haible  <bruno@clisp.org>
32911
32912         btowc: Work around Cygwin 1.7.2 bug.
32913         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
32914         does not map NUL to 0.
32915         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
32916
32917 2010-04-05  Bruno Haible  <bruno@clisp.org>
32918
32919         Make the multithread modules work on Cygwin 1.7.2.
32920         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
32921         imported symbols can be declared weak, so that it returns "no" on
32922         Cygwin 1.7.2.
32923
32924 2010-04-05  Bruno Haible  <bruno@clisp.org>
32925
32926         Use the module 'strncat'.
32927         * modules/unistr/u8-strncat (Depends-on): Add strncat.
32928
32929         Tests for module 'strncat'.
32930         * modules/strncat-tests: New file.
32931         * tests/test-strncat.c: New file.
32932
32933         New module 'strncat'.
32934         * lib/string.in.h (strncat): New declaration.
32935         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
32936         * m4/strncat.m4: New file, based on m4/memchr.m4.
32937         * modules/strncat: New file.
32938         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
32939         is declared.
32940         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
32941         REPLACE_STRNCAT.
32942         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
32943         REPLACE_STRNCAT.
32944         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
32945         module.
32946         * tests/test-string-c++.cc: Check signature of strncat.
32947
32948 2010-04-05  Jim Meyering  <meyering@redhat.com>
32949
32950         xstrtoumax-tests: convert to use init.sh
32951         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
32952         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
32953         Use Exit, not exit.
32954         Remove uses of $EXEEXT and "./" to run a program in the current dir.
32955
32956         xstrtoimax-tests: convert to use init.sh
32957         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
32958         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
32959         Use Exit, not exit.
32960         Remove uses of $EXEEXT and "./" to run a program in the current dir.
32961
32962 2010-04-05  Bruno Haible  <bruno@clisp.org>
32963
32964         sys_socket: Avoid #define replacements in C++ mode.
32965         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
32966         warning to the function if possible, rather than #defining the symbol
32967         to a dysfunctional alias.
32968
32969 2010-04-05  Bruno Haible  <bruno@clisp.org>
32970
32971         fseeko: Fix C++ test error on mingw.
32972         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
32973         gl_FUNC_FSEEKO.
32974         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
32975         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
32976         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
32977         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
32978
32979 2010-04-05  Bruno Haible  <bruno@clisp.org>
32980
32981         duplocale: Improve test output.
32982         * tests/test-duplocale.c (main): Print reason for skipped test.
32983
32984 2010-04-05  Bruno Haible  <bruno@clisp.org>
32985
32986         Assume rmdir exists.
32987         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
32988         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
32989
32990 2010-04-05  Bruno Haible  <bruno@clisp.org>
32991
32992         Fix link error on Solaris 8 with cc.
32993         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
32994
32995 2010-04-05  Bruno Haible  <bruno@clisp.org>
32996
32997         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
32998         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
32999
33000 2010-04-05  Bruno Haible  <bruno@clisp.org>
33001
33002         vasprintf: Update documentation.
33003         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
33004
33005 2010-04-05  Bruno Haible  <bruno@clisp.org>
33006
33007         ptsname: Improve test.
33008         * tests/test-ptsname.c (main): Also try the various master names of BSD
33009         systems.
33010
33011 2010-04-05  Bruno Haible  <bruno@clisp.org>
33012
33013         memchr: Avoid a possible C++ test error.
33014         * lib/string.in.h (memchr): Provide declaration if function is missing.
33015         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
33016         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
33017         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
33018         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
33019
33020 2010-04-05  Bruno Haible  <bruno@clisp.org>
33021
33022         strtok_r: Improve idiom.
33023         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
33024         AC_LIBOBJ is used.
33025
33026 2010-04-05  Bruno Haible  <bruno@clisp.org>
33027
33028         strdup: Improve idiom.
33029         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
33030         AC_LIBOBJ is used.
33031         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
33032         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
33033         when AC_LIBOBJ is used.
33034
33035 2010-04-05  Bruno Haible  <bruno@clisp.org>
33036
33037         mbsinit, mbrtowc, wcrtomb: Improve idioms.
33038         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
33039         don't set REPLACE_MBSINIT to 1.
33040         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
33041         don't set REPLACE_MBRTOWC to 1.
33042         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
33043         exist, don't set REPLACE_MBSRTOWCS to 1.
33044         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
33045         exist, don't set REPLACE_MBSNRTOWCS to 1.
33046         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
33047         don't set REPLACE_WCRTOMB to 1.
33048         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
33049         exist, don't set REPLACE_WCSRTOMBS to 1.
33050         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
33051         exist, don't set REPLACE_WCSNRTOMBS to 1.
33052
33053 2010-04-05  Bruno Haible  <bruno@clisp.org>
33054
33055         ldexpl: Improve idiom.
33056         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
33057         make sure to set HAVE_DECL_LDEXPL to 0.
33058
33059 2010-04-05  Jim Meyering  <meyering@redhat.com>
33060
33061         xstrtol-tests: convert to use init.sh
33062         * modules/xstrtol-tests (Files): Add tests/init.sh.
33063         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
33064         Use Exit, not exit.
33065         Remove uses of $EXEEXT and "./" to run a program in the current dir.
33066
33067         atexit-tests: convert to use init.sh
33068         * modules/atexit-tests (Files): Add tests/init.sh.
33069         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
33070         Use Exit, not exit.
33071         Remove uses of $EXEEXT and "./" to run a program in the current dir.
33072
33073         init.sh: fix typo
33074         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
33075
33076         init.sh: make it easier for a test script to write to the tty, ...
33077         when using automake's parallel-tests mode.
33078         * tests/init.sh (stderr_fileno_): Define overridable variable.
33079         (warn_): New function, to use it.
33080         (fail_, skip_, framework_failure_): Use warn_.
33081
33082 2010-04-04  Bruno Haible  <bruno@clisp.org>
33083
33084         btowc: Avoid warning.
33085         * lib/btowc.c: Include <stdlib.h>.
33086         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
33087
33088 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
33089             Bruno Haible  <bruno@clisp.org>
33090
33091         wchar: Port to NetBSD 1.5.
33092         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
33093         * lib/wctype.in.h (WEOF): Likewise.
33094
33095 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
33096             Bruno Haible  <bruno@clisp.org>
33097
33098         Port extended stdio to NetBSD 1.5.
33099         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
33100         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
33101         older.
33102
33103 2010-04-04  Bruno Haible  <bruno@clisp.org>
33104
33105         string: Remove unused substitution.
33106         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
33107         HAVE_DECL_STRERROR.
33108         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
33109
33110 2010-04-04  Bruno Haible  <bruno@clisp.org>
33111
33112         strtod: Avoid a possible C++ test error.
33113         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
33114         set REPLACE_STRTOD.
33115
33116 2010-04-04  Bruno Haible  <bruno@clisp.org>
33117
33118         strerror: Update documentation.
33119         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
33120
33121 2010-04-04  Bruno Haible  <bruno@clisp.org>
33122
33123         stdio: Fix some C++ test errors on Solaris 8 with GCC.
33124         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
33125         _GL_CXXALIAS_SYS_CAST.
33126
33127 2010-04-04  Bruno Haible  <bruno@clisp.org>
33128
33129         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
33130         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
33131         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
33132         REPLACE_FREXPL to 1.
33133         * doc/posix-functions/frexpl.texi: Update documentation.
33134
33135 2010-04-04  Bruno Haible  <bruno@clisp.org>
33136
33137         math: Fix some C++ test errors on Solaris 8 and Cygwin.
33138         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
33139
33140 2010-04-04  Bruno Haible  <bruno@clisp.org>
33141
33142         Implement nanosleep for native Windows.
33143         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
33144
33145 2010-04-04  Bruno Haible  <bruno@clisp.org>
33146
33147         math: Fix some C++ test errors on Solaris 8.
33148         * lib/math.in.h (truncf, trunc): Use simpler idiom.
33149
33150 2010-04-04  Bruno Haible  <bruno@clisp.org>
33151
33152         math: Fix some C++ test errors on Cygwin.
33153         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
33154         truncl): Provide declaration if the system does not have it.
33155         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
33156         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
33157         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
33158         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
33159         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
33160         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
33161         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
33162         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
33163         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
33164         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
33165         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
33166         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
33167         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
33168         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
33169         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
33170         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
33171         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
33172         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
33173         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
33174         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
33175         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
33176         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
33177
33178 2010-04-04  Bruno Haible  <bruno@clisp.org>
33179
33180         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
33181         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
33182         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
33183         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
33184         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
33185         * m4/isinf.m4 (gl_ISINF): Likewise.
33186         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
33187
33188 2010-04-04  Bruno Haible  <bruno@clisp.org>
33189
33190         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
33191         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
33192
33193 2010-04-04  Bruno Haible  <bruno@clisp.org>
33194
33195         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
33196         * modules/tmpfile (configure.ac): Update.
33197
33198         tmpfile: Fix C++ test error on mingw.
33199         * lib/stdio.in.h (tmpfile): New declaration.
33200         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
33201         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
33202         * modules/tmpfile (Depends-on): Add stdio.
33203         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
33204         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
33205         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
33206         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
33207         REPLACE_TMPFILE.
33208         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
33209
33210 2010-04-04  Bruno Haible  <bruno@clisp.org>
33211
33212         ioctl: Fix C++ test error on mingw.
33213         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
33214         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
33215         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
33216
33217 2010-04-03  Bruno Haible  <bruno@clisp.org>
33218
33219         wcwidth: Fix C++ test error on mingw.
33220         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
33221         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
33222         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
33223
33224 2010-04-03  Bruno Haible  <bruno@clisp.org>
33225
33226         nanosleep: Fix C++ test error on mingw.
33227         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
33228         * lib/time.in.h (nanosleep): Use modern idiom.
33229         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
33230         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
33231         REPLACE_NANOSLEEP to 1.
33232         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
33233         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
33234
33235 2010-04-03  Bruno Haible  <bruno@clisp.org>
33236
33237         strptime: Fix C++ test error on mingw.
33238         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
33239         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
33240         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
33241         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
33242         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
33243         not REPLACE_STRPTIME.
33244         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
33245         REPLACE_STRPTIME.
33246
33247 2010-04-03  Bruno Haible  <bruno@clisp.org>
33248
33249         timegm: Fix C++ test error on mingw.
33250         * lib/time.in.h (timegm): Use modern idiom.
33251         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
33252         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
33253         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
33254         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
33255
33256 2010-04-03  Bruno Haible  <bruno@clisp.org>
33257
33258         timegm: Assume declaration if function exists.
33259         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
33260         if it exists. Don't clobber ac_cv_func_timegm.
33261
33262 2010-04-03  Bruno Haible  <bruno@clisp.org>
33263
33264         time_r: Fix C++ test error on mingw.
33265         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
33266         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
33267         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
33268         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
33269         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
33270
33271 2010-04-03  Bruno Haible  <bruno@clisp.org>
33272
33273         time_r: Minor updates.
33274         * modules/time_r (Description): Mention the provided functions.
33275         * lib/time_r.c: Don't include <string.h>.
33276         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
33277         * doc/posix-functions/localtime_r.texi: Likewise.
33278
33279 2010-04-03  Bruno Haible  <bruno@clisp.org>
33280
33281         time: Fix regression introduced on 2010-03-08.
33282         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
33283         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
33284
33285 2010-04-03  Jim Meyering  <meyering@redhat.com>
33286
33287         maint.mk: don't silently disable project-specific syntax-check rules
33288         * top/maint.mk (_prohibit_regexp): Define, to help people realize
33289         that they need to convert their project-specific syntax-check rules
33290         to use the new _sc_search_regexp.
33291
33292 2010-04-03  Bruno Haible  <bruno@clisp.org>
33293
33294         fchdir: Fix regression introduced on 2010-03-08.
33295         * lib/unistd.in.h (fchdir): Fix declaration.
33296         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
33297         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
33298         REPLACE_FCHDIR.
33299         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
33300         REPLACE_FCHDIR.
33301
33302 2010-04-03  Bruno Haible  <bruno@clisp.org>
33303
33304         getpagesize: Fix C++ test error on mingw.
33305         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
33306         system does not declare the function.
33307         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
33308         declared.
33309         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33310         HAVE_DECL_GETPAGESIZE.
33311         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
33312
33313 2010-04-03  Bruno Haible  <bruno@clisp.org>
33314
33315         stdio: Make C++ tests work on mingw.
33316         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
33317         does not declare the function.
33318
33319 2010-04-03  Bruno Haible  <bruno@clisp.org>
33320
33321         ftello: Fix C++ test error on mingw.
33322         * lib/stdio.in.h (ftello): Use modern idiom.
33323         * lib/ftello.c (ftello): Renamed from rpl_ftello.
33324         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
33325         is missing and that it needs to be replaced.
33326         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
33327         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
33328         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
33329
33330 2010-04-03  Bruno Haible  <bruno@clisp.org>
33331
33332         fseeko: Fix C++ test error on mingw.
33333         * lib/stdio.in.h (fseeko): Use modern idiom.
33334         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
33335         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
33336         is missing and that it needs to be replaced.
33337         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
33338         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
33339         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
33340
33341 2010-04-03  Bruno Haible  <bruno@clisp.org>
33342
33343         mkstemp: Fix C++ test error on mingw.
33344         * lib/stdlib.in.h (mkstemp): Use modern idiom.
33345         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
33346         function is missing and that it needs to be replaced.
33347         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
33348         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
33349
33350 2010-04-03  Bruno Haible  <bruno@clisp.org>
33351
33352         stpncpy: Fix C++ test error on mingw.
33353         * lib/string.in.h (stpncpy): Use modern idiom.
33354         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
33355         function is missing and that it needs to be replaced.
33356         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
33357         REPLACE_STPNCPY.
33358         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
33359
33360 2010-04-03  Bruno Haible  <bruno@clisp.org>
33361
33362         sys_stat: Fix C++ test error on mingw.
33363         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
33364         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
33365
33366 2010-04-03  Bruno Haible  <bruno@clisp.org>
33367
33368         pty: Update doc.
33369         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
33370
33371 2010-04-03  Bruno Haible  <bruno@clisp.org>
33372
33373         unistd: Fix C++ test error on mingw.
33374         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
33375
33376 2010-04-03  Bruno Haible  <bruno@clisp.org>
33377
33378         Update doc regarding mingw.
33379         * doc/glibc-functions/openpty.texi: Update regarding mingw.
33380         * doc/glibc-functions/login_tty.texi: Likewise.
33381         * doc/glibc-functions/forkpty.texi: Likewise.
33382
33383 2010-04-03  Bruno Haible  <bruno@clisp.org>
33384
33385         stdlib: Avoid compilation failure of c-strtold on mingw.
33386         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
33387
33388 2010-04-03  Bruno Haible  <bruno@clisp.org>
33389
33390         locale: Make C++ tests work on Cygwin and mingw.
33391         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
33392         cannot provide the function.
33393         Reported by Simon Josefsson.
33394
33395 2010-04-03  Bruno Haible  <bruno@clisp.org>
33396
33397         localename: Port to MacOS X 10.6.
33398         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
33399         memory layout of the locales in MacOS X 10.6 as well.
33400         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
33401
33402 2010-04-02  Bruno Haible  <bruno@clisp.org>
33403
33404         gnulib-tool: Ensure that long-running tests are executed last.
33405         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
33406         running tests after the one for the other tests.
33407
33408 2010-04-02  Bruno Haible  <bruno@clisp.org>
33409
33410         gnulib-tool: Ensure the tests in the main directory are executed first.
33411         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
33412         start with the current directory.
33413
33414 2010-04-02  Bruno Haible  <bruno@clisp.org>
33415
33416         Tests for module 'havelib', moved here from GNU gettext.
33417         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
33418         modifications.
33419         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
33420         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
33421         with modifications.
33422         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
33423         modifications.
33424         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
33425         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
33426         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
33427         with modifications.
33428         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
33429         with modifications.
33430         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
33431         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
33432         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
33433         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
33434         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
33435         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
33436         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
33437         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
33438         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
33439         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
33440         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
33441         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
33442         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
33443         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
33444         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
33445         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
33446         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
33447         with modifications.
33448         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
33449         with modifications.
33450         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
33451         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
33452         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
33453         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
33454         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
33455         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
33456         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
33457         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
33458         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
33459         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
33460         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
33461         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
33462         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
33463         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
33464         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
33465         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
33466         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
33467         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
33468         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
33469         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
33470         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
33471         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
33472         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
33473         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
33474         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
33475         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
33476         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
33477         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
33478         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
33479         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
33480         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
33481         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
33482         * tests/havelib/rpathx/rpathx.c: New file, from
33483         gettext/autoconf-lib-link.
33484         * tests/havelib/rpathx/Makefile.am: New file, from
33485         gettext/autoconf-lib-link.
33486         * tests/havelib/rpathx/configure.ac: New file, from
33487         gettext/autoconf-lib-link with modifications.
33488         * tests/havelib/rpathy/rpathy.c: New file, from
33489         gettext/autoconf-lib-link.
33490         * tests/havelib/rpathy/Makefile.am: New file, from
33491         gettext/autoconf-lib-link.
33492         * tests/havelib/rpathy/configure.ac: New file, from
33493         gettext/autoconf-lib-link with modifications.
33494         * tests/havelib/rpathz/rpathz.c: New file, from
33495         gettext/autoconf-lib-link.
33496         * tests/havelib/rpathz/Makefile.am: New file, from
33497         gettext/autoconf-lib-link.
33498         * tests/havelib/rpathz/configure.ac: New file, from
33499         gettext/autoconf-lib-link with modifications.
33500         * tests/havelib/rpathlx/usex.c: New file, from
33501         gettext/autoconf-lib-link.
33502         * tests/havelib/rpathlx/Makefile.am: New file, from
33503         gettext/autoconf-lib-link.
33504         * tests/havelib/rpathlx/configure.ac: New file, from
33505         gettext/autoconf-lib-link with modifications.
33506         * tests/havelib/rpathly/usey.c: New file, from
33507         gettext/autoconf-lib-link.
33508         * tests/havelib/rpathly/Makefile.am: New file, from
33509         gettext/autoconf-lib-link.
33510         * tests/havelib/rpathly/configure.ac: New file, from
33511         gettext/autoconf-lib-link with modifications.
33512         * tests/havelib/rpathlz/usez.c: New file, from
33513         gettext/autoconf-lib-link.
33514         * tests/havelib/rpathlz/Makefile.am: New file, from
33515         gettext/autoconf-lib-link.
33516         * tests/havelib/rpathlz/configure.ac: New file, from
33517         gettext/autoconf-lib-link with modifications.
33518         * tests/havelib/rpathlyx/usey.c: New file, from
33519         gettext/autoconf-lib-link.
33520         * tests/havelib/rpathlyx/Makefile.am: New file, from
33521         gettext/autoconf-lib-link.
33522         * tests/havelib/rpathlyx/configure.ac: New file, from
33523         gettext/autoconf-lib-link with modifications.
33524         * tests/havelib/rpathlzyx/usez.c: New file, from
33525         gettext/autoconf-lib-link.
33526         * tests/havelib/rpathlzyx/Makefile.am: New file, from
33527         gettext/autoconf-lib-link.
33528         * tests/havelib/rpathlzyx/configure.ac: New file, from
33529         gettext/autoconf-lib-link with modifications.
33530         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
33531         with modifications.
33532
33533 2010-04-02  Bruno Haible  <bruno@clisp.org>
33534
33535         gnulib-tool: Create distributed built sources also for the tests.
33536         * gnulib-tool (func_create_testdir): Also generate distributed built
33537         sources in the tests directory.
33538
33539 2010-04-02  Bruno Haible  <bruno@clisp.org>
33540
33541         gnulib-tool: Obey user's environment variables.
33542         * gnulib-tool (func_create_testdir): When creating built sources,
33543         respect the environment variables for autoconf, automake, etc. given by
33544         the user.
33545
33546 2010-04-02  Bruno Haible  <bruno@clisp.org>
33547
33548         gnulib-tool: Provide the value of --m4-base to modules.
33549         * gnulib-tool (func_import, func_create_testdir): Emit a definition
33550         of gl_m4_base.
33551
33552 2010-04-02  Eric Blake  <eblake@redhat.com>
33553
33554         maint.mk: fix some fallout
33555         * NEWS: Document the incompatible change, and its effect on cfg.mk.
33556         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
33557
33558 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
33559
33560         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
33561         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
33562         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
33563         (sc_cast_of_x_alloc_return_value): Likewise.
33564         (sc_cast_of_alloca_return_value): Likewise.
33565         (sc_space_tab): Likewise.
33566         (sc_prohibit_atoi_atof): Likewise.
33567         (sc_prohibit_magic_number_exit): Likewise.
33568         (sc_error_exit_success): Likewise.
33569         (sc_file_system): Likewise.
33570         (sc_prohibit_have_config_h): Likewise.
33571         (sc_require_config_h): Likewise.
33572         (sc_prohibit_HAVE_MBRTOWC): Likewise.
33573         (sc_obsolete_symbols): Likewise.
33574         (sc_changelog): Likewise.
33575         (sc_program_name): Likewise.
33576         (sc_the_the): Likewise.
33577         (sc_trailing_blank): Likewise.
33578         (sc_two_space_separator_in_usage): Likewise.
33579         (sc_useless_cpp_parens): Likewise.
33580         (sc_GPL_version): Likewise.
33581         (sc_GFDL_version): Likewise.
33582         (sc_texinfo_acronym): Likewise.
33583         (sc_prohibit_cvs_keyword): Likewise.
33584         (sc_prohibit_stat_st_blocks): Likewise.
33585         (sc_prohibit_S_IS_definition): Likewise.
33586         (sc_redundant_const): Likewise.
33587         (sc_makefile_TAB_only_indentation): Likewise.
33588         (sc_m4_quote_check): Likewise.
33589         (sc_makefile_path_separator_check): Likewise.
33590         (sc_copyright_check): Likewise.
33591         (sc_Wundef_boolean): Likewise.
33592         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
33593
33594         maint.mk: match 0 or more whitespace-before-function-call '('
33595         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
33596         that have zero or two-and-more spaces between the function name
33597         and the open parenthesis.
33598         (sc_error_message_warn_fatal): Likewise.
33599         (sc_error_message_uppercase): Likewise.
33600         (sc_error_message_period): Likewise.
33601
33602 2010-03-31  Eric Blake  <eblake@redhat.com>
33603
33604         maint.mk: check for [ as well as test
33605         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
33606         Based on a libvirt report by Matthias Bolte.
33607
33608         gnumakefile: don't squelch _version output
33609         * top/GNUmakefile (_version): Create one-shot dependency rather
33610         than using $(shell) when version must be regenerated.
33611         (_autoreconf): Run verbosely, by default.
33612
33613         sys_time: avoid compiler warnings
33614         * lib/sys_time.in.h (includes): Ensure gcc pragma is
33615         unconditional, fixing regression from 2010-03-29.
33616         Reported by Simon Josefsson.
33617
33618 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
33619
33620         maint.mk: s/_header_without_use/_sc_header_without_use/
33621         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
33622         (sc_prohibit_assert_without_use): Use the new name.
33623         (sc_prohibit_close_stream_without_use): Likewise.
33624         (sc_prohibit_getopt_without_use): Likewise.
33625         (sc_prohibit_quotearg_without_use): Likewise.
33626         (sc_prohibit_quote_without_use): Likewise.
33627         (sc_prohibit_long_options_without_use): Likewise.
33628         (sc_prohibit_inttostr_without_use): Likewise.
33629         (sc_prohibit_ignore_value_without_use): Likewise.
33630         (sc_prohibit_error_without_use): Likewise.
33631         (sc_prohibit_xalloc_without_use): Likewise.
33632         (sc_prohibit_hash_without_use): Likewise.
33633         (sc_prohibit_hash_pjw_without_use): Likewise.
33634         (sc_prohibit_safe_read_without_use): Likewise.
33635         (sc_prohibit_argmatch_without_use): Likewise.
33636         (sc_prohibit_canonicalize_without_use): Likewise.
33637         (sc_prohibit_root_dev_ino_without_use): Likewise.
33638         (sc_prohibit_openat_without_use): Likewise.
33639         (sc_prohibit_c_ctype_without_use): Likewise.
33640         (sc_prohibit_signal_without_use): Likewise.
33641         (sc_prohibit_intprops_without_use): Likewise.
33642
33643 2010-03-30  Eric Blake  <eblake@redhat.com>
33644
33645         maint: improve module indicators
33646         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
33647         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
33648         columns, and avoid extra macro expansion.
33649
33650         fdopendir: work around FreeBSD bug
33651         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
33652         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
33653         * modules/dirent (Makefile.am): Substitute it.
33654         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
33655         declaration.
33656         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
33657         fix.
33658         Reported by Christian Weisgerber <naddy@mips.inka.de>.
33659
33660 2010-03-29  Bruno Haible  <bruno@clisp.org>
33661
33662         Emit #pragma system_header after the inclusion guard, not before.
33663         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
33664         guard that spans the entire file, not before. This enables an
33665         optimization in GCC's preprocessor.
33666         * lib/ctype.in.h: Likewise.
33667         * lib/dirent.in.h: Likewise.
33668         * lib/errno.in.h: Likewise.
33669         * lib/float.in.h: Likewise.
33670         * lib/getopt.in.h: Likewise.
33671         * lib/iconv.in.h: Likewise.
33672         * lib/langinfo.in.h: Likewise.
33673         * lib/locale.in.h: Likewise.
33674         * lib/math.in.h: Likewise.
33675         * lib/netdb.in.h: Likewise.
33676         * lib/netinet_in.in.h: Likewise.
33677         * lib/pty.in.h: Likewise.
33678         * lib/sched.in.h: Likewise.
33679         * lib/se-selinux.in.h: Likewise.
33680         * lib/search.in.h: Likewise.
33681         * lib/spawn.in.h: Likewise.
33682         * lib/stdarg.in.h: Likewise.
33683         * lib/stdint.in.h: Likewise.
33684         * lib/string.in.h: Likewise.
33685         * lib/strings.in.h: Likewise.
33686         * lib/sys_file.in.h: Likewise.
33687         * lib/sys_ioctl.in.h: Likewise.
33688         * lib/sys_time.in.h: Likewise.
33689         * lib/sys_times.in.h: Likewise.
33690         * lib/sys_utsname.in.h: Likewise.
33691         * lib/sys_wait.in.h: Likewise.
33692         * lib/sysexits.in.h: Likewise.
33693         * lib/wctype.in.h: Likewise.
33694
33695 2010-03-28  James Youngman  <jay@gnu.org>
33696
33697         save-cwd: don't leak a file descriptor when the caller execs.
33698         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
33699         saved file descriptor.
33700         * modules/save-cwd (Depends-on): Depend on cloexec.
33701
33702 2010-03-29  Bruno Haible  <bruno@clisp.org>
33703
33704         Remove vestiges of fts-lgpl module.
33705         * lib/fts_.h: Assume GNULIB_FTS is 1.
33706         * lib/fts.c: Likewise.
33707         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
33708
33709 2010-03-28  Bruno Haible  <bruno@clisp.org>
33710
33711         Fix definition of tests witness macro.
33712         * gnulib-tool (func_import): Fix definition of witness macro.
33713
33714 2010-03-28  Bruno Haible  <bruno@clisp.org>
33715
33716         Fix ioctl's protoype on glibc systems.
33717         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
33718         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
33719         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
33720         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
33721         signature. If not, arrange to replace the ioctl function.
33722         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
33723         REPLACE_IOCTL.
33724         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
33725         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
33726         Reported by Ludovic Courtès <ludo@gnu.org>.
33727
33728 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
33729
33730         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
33731         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
33732         made it so grep -r --include=GLOB* ... did not work.
33733
33734 2010-03-26  Jim Meyering  <meyering@redhat.com>
33735             Eric Blake  <eblake@redhat.com>
33736
33737         maint.mk: prohibit use of test's -o and -a operators
33738         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
33739
33740 2010-03-28  Bruno Haible  <bruno@clisp.org>
33741
33742         Remove unused GNULIB_XYZ macro definitions.
33743         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
33744         invocation.
33745
33746 2010-03-28  Bruno Haible  <bruno@clisp.org>
33747
33748         Mark privileged tests modules.
33749         * modules/idpriv-drop-tests (Status): New section.
33750         * modules/idpriv-droptemp-tests (Status): New section.
33751
33752 2010-03-28  Bruno Haible  <bruno@clisp.org>
33753
33754         Split C++ tests into separate tests modules.
33755         * modules/dirent-c++-tests: New file, extracted from
33756         modules/dirent-tests.
33757         * modules/dirent-tests: Depend on it.
33758         * modules/fcntl-h-c++-tests: New file, extracted from
33759         modules/fcntl-h-tests.
33760         * modules/fcntl-h-tests: Depend on it.
33761         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
33762         * modules/glob-tests: Depend on it.
33763         * modules/iconv-h-c++-tests: New file, extracted from
33764         modules/iconv-h-tests.
33765         * modules/iconv-h-tests: Depend on it.
33766         * modules/langinfo-c++-tests: New file, extracted from
33767         modules/langinfo-tests.
33768         * modules/langinfo-tests: Depend on it.
33769         * modules/locale-c++-tests: New file, extracted from
33770         modules/locale-tests.
33771         * modules/locale-tests: Depend on it.
33772         * modules/math-c++-tests: New file, extracted from modules/math-tests.
33773         * modules/math-tests: Depend on it.
33774         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
33775         * modules/pty-tests: Depend on it.
33776         * modules/search-c++-tests: New file, extracted from
33777         modules/search-tests.
33778         * modules/search-tests: Depend on it.
33779         * modules/signal-c++-tests: New file, extracted from
33780         modules/signal-tests.
33781         * modules/signal-tests: Depend on it.
33782         * modules/spawn-c++-tests: New file, extracted from
33783         modules/spawn-tests.
33784         * modules/spawn-tests: Depend on it.
33785         * modules/stdio-c++-tests: New file, extracted from
33786         modules/stdio-tests.
33787         * modules/stdio-tests: Depend on it.
33788         * modules/stdlib-c++-tests: New file, extracted from
33789         modules/stdlib-tests.
33790         * modules/stdlib-tests: Depend on it.
33791         * modules/string-c++-tests: New file, extracted from
33792         modules/string-tests.
33793         * modules/string-tests: Depend on it.
33794         * modules/sys_ioctl-c++-tests: New file, extracted from
33795         modules/sys_ioctl-tests.
33796         * modules/sys_ioctl-tests: Depend on it.
33797         * modules/sys_select-c++-tests: New file, extracted from
33798         modules/sys_select-tests.
33799         * modules/sys_select-tests: Depend on it.
33800         * modules/sys_socket-c++-tests: New file, extracted from
33801         modules/sys_socket-tests.
33802         * modules/sys_socket-tests: Depend on it.
33803         * modules/sys_stat-c++-tests: New file, extracted from
33804         modules/sys_stat-tests.
33805         * modules/sys_stat-tests: Depend on it.
33806         * modules/sys_time-c++-tests: New file, extracted from
33807         modules/sys_time-tests.
33808         * modules/sys_time-tests: Depend on it.
33809         * modules/time-c++-tests: New file, extracted from modules/time-tests.
33810         * modules/time-tests: Depend on it.
33811         * modules/unistd-c++-tests: New file, extracted from
33812         modules/unistd-tests.
33813         * modules/unistd-tests: Depend on it.
33814         * modules/wchar-c++-tests: New file, extracted from
33815         modules/wchar-tests.
33816         * modules/wchar-tests: Depend on it.
33817         * modules/wctype-c++-tests: New file, extracted from
33818         modules/wctype-tests.
33819         * modules/wctype-tests: Depend on it.
33820         Reported by Simon Josefsson.
33821
33822 2010-03-28  Bruno Haible  <bruno@clisp.org>
33823
33824         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
33825         * gnulib-tool (func_exists_module): New function, extracted from
33826         func_verify_module.
33827         (func_verify_module): Use it.
33828         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
33829         'foo' only if 'foo' exists.
33830         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
33831         module.
33832
33833 2010-03-28  Bruno Haible  <bruno@clisp.org>
33834
33835         gnulib-tool: Add support for special categories of tests.
33836         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
33837         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
33838         (func_usage): Document them.
33839         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
33840         inc_unportable_tests, inc_all_tests): New variables.
33841         (func_acceptable): Consider these variables.
33842         (func_modules_transitive_closure): Make it work when the 'Status' field
33843         consists of multiple words.
33844         (func_import): Store and restore the values of inc_cxx_tests,
33845         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
33846         inc_all_tests in gnulib-comp.m4.
33847         (func_create_testdir): Set inc_all_tests to true.
33848         * doc/gnulib.texi (Extra tests modules): New section.
33849         Suggested by Jim Meyering.
33850
33851 2010-03-28  Bruno Haible  <bruno@clisp.org>
33852
33853         ansi-c++-opt: Allow turning off the C++ build by default.
33854         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
33855         gl_CXX_CHOICE_DEFAULT_NO is defined.
33856         Requested by Eric Blake.
33857
33858 2010-03-28  Bruno Haible  <bruno@clisp.org>
33859
33860         unistd: Avoid #define replacements in C++ mode.
33861         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
33862         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
33863         setsockopt, shutdown, select): In C++, attach a warning to the function
33864         if possible, rather than #defining the symbol to a dysfunctional alias.
33865         Reported by John W. Eaton <jwe@gnu.org>.
33866
33867 2010-03-28  Bruno Haible  <bruno@clisp.org>
33868
33869         Fix link errors on mingw.
33870         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
33871         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
33872         $(LIBSOCKET).
33873         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
33874         $(LIBSOCKET).
33875
33876 2010-03-28  Bruno Haible  <bruno@clisp.org>
33877             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33878
33879         lib-ignore: Determine different options for different compilers.
33880         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
33881         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
33882         Add comments.
33883         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
33884         * NEWS: Mention the change.
33885
33886 2010-03-27  Bruno Haible  <bruno@clisp.org>
33887
33888         Remove unused GNULIB_XYZ macro definitions.
33889         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
33890         * modules/fseek (configure.ac): Likewise.
33891         * modules/ioctl (configure.ac): Likewise.
33892         * modules/open (configure.ac): Likewise.
33893         * modules/stdlib-safer (configure.ac): Likewise.
33894
33895 2010-03-27  Bruno Haible  <bruno@clisp.org>
33896
33897         Add a remark about certain modules.
33898         * modules/malloc (Comment): New section.
33899         * modules/realloc (Comment): Likewise.
33900         * modules/sigpipe (Comment): Likewise.
33901
33902 2010-03-27  Bruno Haible  <bruno@clisp.org>
33903
33904         Resolve conflict between the two kinds of module indicators.
33905         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
33906         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
33907         * modules/canonicalize (configure.ac): Invoke
33908         gl_MODULE_INDICATOR_FOR_TESTS.
33909         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
33910         GNULIB_XYZ.
33911         * tests/test-dirent-c++.cc: Likewise.
33912         * tests/test-dirent-safer.c: Likewise.
33913         * tests/test-dup2.c: Likewise.
33914         * tests/test-fchdir.c: Likewise.
33915         * tests/test-fcntl-h-c++.cc: Likewise.
33916         * tests/test-getopt.c: Likewise.
33917         * tests/test-getopt.h: Likewise.
33918         * tests/test-langinfo-c++.cc: Likewise.
33919         * tests/test-locale-c++.cc: Likewise.
33920         * tests/test-math-c++.cc: Likewise.
33921         * tests/test-pty-c++.cc: Likewise.
33922         * tests/test-search-c++.cc: Likewise.
33923         * tests/test-signal-c++.cc: Likewise.
33924         * tests/test-spawn-c++.cc: Likewise.
33925         * tests/test-stdio-c++.cc: Likewise.
33926         * tests/test-stdlib-c++.cc: Likewise.
33927         * tests/test-string-c++.cc: Likewise.
33928         * tests/test-sys_ioctl-c++.cc: Likewise.
33929         * tests/test-sys_select-c++.cc: Likewise.
33930         * tests/test-sys_socket-c++.cc: Likewise.
33931         * tests/test-sys_stat-c++.cc: Likewise.
33932         * tests/test-sys_time-c++.cc: Likewise.
33933         * tests/test-time-c++.cc: Likewise.
33934         * tests/test-unistd-c++.cc: Likewise.
33935         * tests/test-wchar-c++.cc: Likewise.
33936         * tests/uninorm/test-u8-nfc.c: Likewise.
33937         * tests/uninorm/test-u8-nfd.c: Likewise.
33938         * tests/uninorm/test-u8-nfkc.c: Likewise.
33939         * tests/uninorm/test-u8-nfkd.c: Likewise.
33940         * tests/uninorm/test-u16-nfc.c: Likewise.
33941         * tests/uninorm/test-u16-nfd.c: Likewise.
33942         * tests/uninorm/test-u16-nfkc.c: Likewise.
33943         * tests/uninorm/test-u16-nfkd.c: Likewise.
33944         * tests/uninorm/test-u32-nfc.c: Likewise.
33945         * tests/uninorm/test-u32-nfc-big.c: Likewise.
33946         * tests/uninorm/test-u32-nfd.c: Likewise.
33947         * tests/uninorm/test-u32-nfd-big.c: Likewise.
33948         * tests/uninorm/test-u32-nfkc.c: Likewise.
33949         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
33950         * tests/uninorm/test-u32-nfkd.c: Likewise.
33951         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
33952         * tests/uninorm/test-u32-normalize-big.c: Likewise.
33953
33954 2010-03-27  Bruno Haible  <bruno@clisp.org>
33955
33956         Distinguish two kinds of module indicators.
33957         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
33958         gl_MODULE_INDICATOR.
33959         (gl_MODULE_INDICATOR): New macro.
33960         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
33961         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
33962         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
33963         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
33964         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
33965         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
33966         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
33967         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
33968         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
33969         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
33970         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
33971         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
33972         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
33973         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
33974         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
33975         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
33976         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
33977         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
33978         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
33979         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
33980         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
33981         * modules/cloexec (configure.ac): Likewise.
33982         * modules/getopt-gnu (configure.ac): Likewise.
33983         * modules/uninorm/u8-normalize (configure.ac): Likewise.
33984         * modules/uninorm/u16-normalize (configure.ac): Likewise.
33985         * modules/uninorm/u32-normalize (configure.ac): Likewise.
33986         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
33987
33988 2010-03-27  Bruno Haible  <bruno@clisp.org>
33989
33990         New module description field 'Comment'.
33991         * gnulib-tool: New option --extract-comment.
33992         (func_usage): Document it.
33993         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
33994         (func_get_comment): New function.
33995         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
33996
33997 2010-03-27  Bruno Haible  <bruno@clisp.org>
33998
33999         Addendum to 2010-02-07 commit.
34000         * gnulib-tool (func_usage): Document --extract-applicability option.
34001
34002 2010-03-27  Bruno Haible  <bruno@clisp.org>
34003
34004         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
34005         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
34006         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
34007         rather than link errors.
34008
34009 2010-03-27  Bruno Haible  <bruno@clisp.org>
34010
34011         Avoid side effects from tests-related modules on the compilation of lib.
34012         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
34013         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
34014         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
34015         parameter. Emit into AM_CPPFLAGS a definition of the designated C
34016         macro.
34017         (func_import): Define a witness macro. Assign it a value that depends
34018         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
34019         tests-related modules.
34020         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
34021         Reported by Jim Meyering.
34022
34023 2010-03-27  Bruno Haible  <bruno@clisp.org>
34024
34025         Factorize common .m4 code.
34026         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
34027         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
34028         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
34029         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
34030         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
34031         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
34032         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
34033         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
34034         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
34035         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
34036         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
34037         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
34038         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
34039         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
34040         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
34041         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
34042         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
34043         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
34044         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
34045         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
34046         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
34047         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
34048         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
34049         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
34050         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
34051         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
34052         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
34053         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
34054         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
34055         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
34056         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
34057         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
34058
34059 2010-03-27  Bruno Haible  <bruno@clisp.org>
34060
34061         Fix a compilation error on Cygwin with g++ >= 4.3.
34062         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
34063         if it is undefined or if we alias it to chmod.
34064         (lstat): Don't warn about the use of this function if it is undefined
34065         or if we alias it to stat.
34066         Reported by Simon Josefsson.
34067
34068 2010-03-27  Bruno Haible  <bruno@clisp.org>
34069
34070         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
34071         * modules/getlogin (configure.ac): Update.
34072
34073         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
34074         * modules/getlogin_r (configure.ac): Update.
34075
34076         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
34077         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
34078         * modules/inet_ntop (configure.ac): Update.
34079
34080         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
34081         * modules/inet_pton (configure.ac): Update.
34082
34083         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
34084         * modules/mbslen (configure.ac): Update.
34085
34086         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
34087         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
34088         * modules/forkpty (configure.ac): Update.
34089         * modules/openpty (configure.ac): Update.
34090
34091 2010-03-26  Simon Josefsson  <simon@josefsson.org>
34092
34093         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
34094         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
34095
34096 2010-03-25  Eric Blake  <eblake@redhat.com>
34097
34098         maint: use pragma consistently across replacement headers
34099         * lib/ctype.in.h (system_header): Hoist for consistent placement.
34100         * lib/dirent.in.h (system_header): Likewise.
34101         * lib/errno.in.h (system_header): Likewise.
34102         * lib/float.in.h (system_header): Likewise.
34103         * lib/getopt.in.h (system_header): Likewise.
34104         * lib/iconv.in.h (system_header): Likewise.
34105         * lib/inttypes.in.h (system_header): Likewise.
34106         * lib/langinfo.in.h (system_header): Likewise.
34107         * lib/locale.in.h (system_header): Likewise.
34108         * lib/math.in.h (system_header): Likewise.
34109         * lib/netdb.in.h (system_header): Likewise.
34110         * lib/netinet_in.in.h (system_header): Likewise.
34111         * lib/pty.in.h (system_header): Likewise.
34112         * lib/sched.in.h (system_header): Likewise.
34113         * lib/se-selinux.in.h (system_header): Likewise.
34114         * lib/search.in.h (system_header): Likewise.
34115         * lib/spawn.in.h (system_header): Likewise.
34116         * lib/stdarg.in.h (system_header): Likewise.
34117         * lib/stdint.in.h (system_header): Likewise.
34118         * lib/string.in.h (system_header): Likewise.
34119         * lib/strings.in.h (system_header): Likewise.
34120         * lib/sys_file.in.h (system_header): Likewise.
34121         * lib/sys_ioctl.in.h (system_header): Likewise.
34122         * lib/sys_socket.in.h (system_header): Likewise.
34123         * lib/sys_times.in.h (system_header): Likewise.
34124         * lib/sys_utsname.in.h (system_header): Likewise.
34125         * lib/sys_wait.in.h (system_header): Likewise.
34126         * lib/sysexits.in.h (system_header): Likewise.
34127         * lib/unistd.in.h (system_header): Likewise.
34128         * lib/wctype.in.h (system_header): Likewise.
34129
34130         arpa/inet: fix mingw compilation warning
34131         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
34132         Reported by Matthew Bolte.
34133
34134 2010-03-25  Bruno Haible  <bruno@clisp.org>
34135
34136         Avoid collision between gnulib wrapper and libintl wrapper.
34137         * lib/printf.c (printf): Don't define if a printf wrapper is already
34138         defined in intl/printf.c.
34139         Reported by Michel Boaventura <michel@michelboaventura.com>.
34140
34141 2010-03-25  Bruno Haible  <bruno@clisp.org>
34142
34143         Use ANSI C.
34144         * lib/readutmp.h (getutent): Provide ANSI C prototype.
34145
34146 2010-03-25  Bruno Haible  <bruno@clisp.org>
34147
34148         Minor formatting changes.
34149         * lib/acosl.c: Insert space before function argument list.
34150         * lib/argz.c: Likewise.
34151         * lib/asinl.c: Likewise.
34152         * lib/expl.c: Likewise.
34153         * lib/gen-uni-tables.c: Likewise.
34154         * lib/gettext.h: Likewise.
34155         * lib/glthread/lock.h: Likewise.
34156         * lib/tanl.c: Likewise.
34157         * lib/uniname/uniname.c: Likewise.
34158         * tests/test-idpriv-drop.c: Likewise.
34159         * tests/test-idpriv-droptemp.c: Likewise.
34160         * tests/test-lock.c: Likewise.
34161         * tests/test-tls.c: Likewise.
34162         * lib/argp-help.c: Insert space before function-like macro argument
34163         list.
34164         * lib/memcmp.c: Likewise.
34165         * tests/test-base64.c: Likewise.
34166         * lib/localename.c: Insert space before sizeof's argument list.
34167         * lib/safe-alloc.h: Likewise.
34168         * lib/file-set.h: Insert space before macro argument list.
34169         * tests/test-argp.c: Likewise.
34170         * lib/argp-namefrob.h: Insert space before function parameter list.
34171         * lib/getaddrinfo.c: Likewise.
34172         * lib/netdb.in.h: Likewise.
34173         * lib/parse-duration.h: Likewise.
34174         * lib/parse-duration.c: Likewise.
34175         * lib/poll.c: Likewise.
34176         * lib/select.c: Likewise.
34177         * lib/trim.h: Likewise.
34178         * tests/test-usleep.c: Likewise.
34179         * lib/ldexpl.c: Insert space before function parameter list and before
34180         function argument list.
34181         * lib/logl.c: Likewise.
34182         * lib/sqrtl.c: Likewise.
34183         * lib/trim.c: Likewise.
34184         * lib/cosl.c: Use GNU style indentation. Insert space before function
34185         argument list.
34186         * lib/sinl.c: Likewise.
34187         * lib/tsearch.c: Insert space after 'for'.
34188         Reported by Jim Meyering.
34189
34190 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
34191
34192         * maint.mk (sc_Wundef_boolean): Check for the presence of the
34193         config header before grepping, as it's not present before
34194         autoreconf/configure are run.  Reported by Simon Josefsson.
34195
34196 2010-03-23  Bruno Haible  <bruno@clisp.org>
34197
34198         pt_chown: Make it work with automake < 1.11.
34199         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
34200         Reported by Simon Josefsson.
34201
34202 2010-03-23  Bruno Haible  <bruno@clisp.org>
34203
34204         pt_chown: Don't depend on GPLed modules.
34205         * lib/pt_chown.c: Don't include idpriv.h.
34206         (main): Don't drop privileges.
34207         * modules/pt_chown (Depends-on): Remove idpriv-drop.
34208         Reported by Simon Josefsson.
34209
34210 2010-03-24  Simon Josefsson  <simon@josefsson.org>
34211
34212         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
34213         suggestions from karl@freefriends.org (Karl Berry).
34214
34215 2010-03-22  Eric Blake  <eblake@redhat.com>
34216
34217         gethostname: further tweaks
34218         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
34219         are overriding gethostname.
34220         Suggested by Bruno Haible.
34221
34222 2010-03-21  Bruno Haible  <bruno@clisp.org>
34223
34224         Fix comments.
34225         * lib/forkpty.c (rpl_forkpty): Fix comment.
34226         * lib/openpty.c (rpl_openpty): Likewise.
34227         Reported by Eric Blake.
34228
34229 2010-03-22  Eric Blake  <eblake@redhat.com>
34230
34231         gethostname: fix build on mingw
34232         * lib/unistd.in.h (includes): Work around fact that mingw
34233         <winsock2.h> re-includes <unistd.h>, by avoiding any
34234         redeclarations if we are being included by <winsock2.h>.
34235         Reported by Matthias Bolte.
34236
34237 2010-03-21  Bruno Haible  <bruno@clisp.org>
34238
34239         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
34240         * lib/forkpty.c (forkpty): New replacement function, from glibc with
34241         modifications.
34242         * lib/pty.in.h (forkpty): Update declaration. Add comments.
34243         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
34244         provide the replacement.
34245         * modules/forkpty (Depends-on): Add openpty, login_tty.
34246         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
34247         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
34248         * doc/glibc-functions/forkpty.texi: More supported platforms.
34249         * config/srclist.txt: Add forkpty.c (commented).
34250
34251 2010-03-21  Bruno Haible  <bruno@clisp.org>
34252
34253         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
34254         (Makefile.am): Verify that PTY_LIB is defined.
34255
34256         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
34257
34258 2010-03-21  Bruno Haible  <bruno@clisp.org>
34259
34260         Tests for module 'login_tty'.
34261         * modules/login_tty-tests: New file.
34262         * tests/test-login_tty.c: New file.
34263
34264         New module 'login_tty'.
34265         * lib/login_tty.c: New file.
34266         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
34267         * modules/login_tty: New file.
34268         * doc/glibc-functions/login_tty.texi: Mention the new module.
34269
34270 2010-03-21  Bruno Haible  <bruno@clisp.org>
34271
34272         login_tty: Documentation.
34273         * doc/glibc-functions/login_tty.texi: New file.
34274         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
34275
34276 2010-03-21  Bruno Haible  <bruno@clisp.org>
34277
34278         pty: Consistent macro naming.
34279         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
34280         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
34281         * modules/pty (configure.ac): Update.
34282
34283 2010-03-21  Bruno Haible  <bruno@clisp.org>
34284
34285         Tests for openpty: Make stricter.
34286         * tests/test-openpty.c (main): Add test of canonical processing and
34287         erase.
34288         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
34289
34290         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
34291         * lib/openpty.c (openpty): New replacement function.
34292         * lib/pty.in.h: Include <termios.h>.
34293         (openpty): Update declaration. Add comments.
34294         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
34295         is not declared, arrange to provide the replacement. Check for _getpty
34296         and posix_openpt.
34297         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
34298         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
34299         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
34300         * modules/pty-tests (test_pty_c___LDADD): New variable.
34301         * doc/glibc-functions/openpty.texi: More supported platforms.
34302
34303 2010-03-21  Bruno Haible  <bruno@clisp.org>
34304
34305         setenv: Tweaks.
34306         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
34307         the test program.
34308         * doc/posix-functions/setenv.texi: Update platforms list.
34309
34310 2010-03-21  Bruno Haible  <bruno@clisp.org>
34311
34312         New module 'unlockpt'.
34313         * lib/unlockpt.c: New file, from glibc with modifications.
34314         * m4/unlockpt.m4: New file.
34315         * modules/unlockpt: New file.
34316         * lib/stdlib.in.h (unlockpt): New declaration.
34317         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
34318         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
34319         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
34320         HAVE_UNLOCKPT.
34321         * doc/posix-functions/unlockpt.texi: Mention the new module.
34322         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
34323         * config/srclist.txt: Add unlockpt.c (commented).
34324
34325 2010-03-21  Jim Meyering  <meyering@redhat.com>
34326
34327         maint.mk: prohibit inclusion of "intprops.h" without use
34328         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
34329
34330 2010-03-21  Bruno Haible  <bruno@clisp.org>
34331
34332         New module 'grantpt'.
34333         * lib/grantpt.c: New file, from glibc with modifications.
34334         * m4/grantpt.m4: New file.
34335         * modules/grantpt: New file.
34336         * lib/stdlib.in.h (grantpt): New declaration.
34337         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
34338         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
34339         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
34340         HAVE_GRANTPT.
34341         * doc/posix-functions/grantpt.texi: Mention the new module.
34342         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
34343         * config/srclist.txt: Add grantpt.c (commented).
34344
34345 2010-03-21  Bruno Haible  <bruno@clisp.org>
34346
34347         New module 'pt_chown'.
34348         * lib/pt_chown.c: New file, from glibc with modifications.
34349         * lib/pty-private.h: New file, from glibc with modifications.
34350         * modules/pt_chown: New file.
34351         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
34352
34353 2010-03-21  Bruno Haible  <bruno@clisp.org>
34354
34355         Tests for module 'ptsname'.
34356         * modules/ptsname-tests: New file.
34357         * tests/test-ptsname.c: New file.
34358
34359         New module 'ptsname'.
34360         * lib/ptsname.c: New file, from glibc with modifications.
34361         * m4/ptsname.m4: New file.
34362         * modules/ptsname: New file.
34363         * lib/stdlib.in.h (ptsname): New declaration.
34364         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
34365         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
34366         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
34367         HAVE_PTSNAME.
34368         * doc/posix-functions/ptsname.texi: Mention the new module.
34369         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
34370         * config/srclist.txt: Add ptsname.c (commented).
34371
34372 2010-03-21  Bruno Haible  <bruno@clisp.org>
34373
34374         Tests for module 'ttyname_r'.
34375         * modules/ttyname_r-tests: New file.
34376         * tests/test-ttyname_r.c: New file.
34377
34378         New module 'ttyname_r'.
34379         * lib/ttyname_r.c: New file.
34380         * m4/ttyname_r.m4: New file.
34381         * modules/ttyname_r: New file.
34382         * lib/unistd.in.h (ttyname_r): New declaration.
34383         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
34384         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
34385         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
34386         HAVE_TTYNAME_R.
34387         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
34388         * doc/posix-functions/ttyname_r.texi: Mention the new module.
34389
34390 2010-03-20  Bruno Haible  <bruno@clisp.org>
34391
34392         signal: Undefine macro definitions in C++ mode.
34393         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
34394         sigfillset): Undefine macro definitions from the system header in C++
34395         mode.
34396         Reported by John W. Eaton <jwe@gnu.org>.
34397
34398 2010-03-20  Bruno Haible  <bruno@clisp.org>
34399
34400         Ensure no #include statements inside extern "C" { ... }.
34401         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
34402         contain #include statements.
34403         * lib/time.in.h: Likewise.
34404
34405 2010-03-20  Bruno Haible  <bruno@clisp.org>
34406
34407         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
34408         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
34409         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
34410         Reported by John W. Eaton <jwe@gnu.org>.
34411
34412 2010-03-20  Bruno Haible  <bruno@clisp.org>
34413
34414         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
34415         Reported by Jim Meyering.
34416
34417 2010-03-20  Bruno Haible  <bruno@clisp.org>
34418
34419         pipe: Set errno upon failure.
34420         * lib/pipe.h: Specify that when -1 is returned, errno is set.
34421         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
34422         errno value in error message.
34423
34424 2010-03-20  Bruno Haible  <bruno@clisp.org>
34425             Jim Meyering  <meyering@redhat.com>
34426
34427         lchown: Avoid "unused variable" warning.
34428         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
34429
34430 2010-03-20  Bruno Haible  <bruno@clisp.org>
34431
34432         Work around unlink() bug on MacOS X 10.5.6.
34433         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
34434         attempting to unlink a parent directory.
34435         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
34436         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
34437         activate for the replacement function.
34438         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
34439
34440 2010-03-20  Bruno Haible  <bruno@clisp.org>
34441
34442         Fix link errors on Solaris 8.
34443         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
34444         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
34445
34446 2010-03-19  Jim Meyering  <meyering@redhat.com>
34447
34448         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
34449         The _LIBC implementation of build_range_exp correctly honors the
34450         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
34451         However, the non-_LIBC implementation would ignore that syntax-bit
34452         flag and return REG_ERANGE unconditionally.
34453         This change makes it honor that flag.
34454         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
34455         Make two pointer parameters "const".
34456         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
34457         (parse_bracket_exp): Update caller.
34458
34459         regex.m4: correct the reversed range endpoint ([b-a]) test
34460         * m4/regex.m4: When requiring that [b-a] evoke failure,
34461         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
34462         test pass once again for x86-based systems.
34463
34464 2010-03-19  Bruno Haible  <bruno@clisp.org>
34465
34466         scandir: Fix link error on Solaris 8.
34467         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
34468         macros.
34469
34470 2010-03-19  Bruno Haible  <bruno@clisp.org>
34471
34472         getusershell: Fix documentation.
34473         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
34474         module.
34475         * doc/glibc-functions/setusershell.texi: Likewise.
34476
34477         getusershell: Provide declaration, missing on Solaris 9.
34478         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
34479         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
34480         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
34481         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
34482         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34483         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
34484         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
34485         HAVE_GETUSERSHELL.
34486         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
34487
34488 2010-03-19  Bruno Haible  <bruno@clisp.org>
34489
34490         wctype: Provide iswblank function.
34491         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
34492         exists and is fine.
34493         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
34494         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
34495         * tests/test-wctype.c (main): Re-enable the iswblank tests.
34496         * doc/posix-functions/iswblank.texi: Update.
34497
34498 2010-03-19  Bruno Haible  <bruno@clisp.org>
34499
34500         Tests of module 'pty' in C++ mode.
34501         * modules/pty-tests: New file.
34502         * tests/test-pty-c++.cc: New file.
34503         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
34504
34505 2010-03-19  Eric Blake  <eblake@redhat.com>
34506
34507         logb: fix documentation
34508         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
34509         1.5 declaration bug.
34510
34511         forkpty, openpty: prefer glibc's const-safe prototype
34512         * lib/forkpty.c (rpl_forkpty): New file.
34513         * lib/openpty.c (rpl_openpty): Likewise.
34514         * modules/forkpty (Files): Distribute it.
34515         * modules/openpty (Files): Likewise.
34516         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
34517         check...
34518         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
34519         replacement for for non-const BSD signature.
34520         * modules/pty (Makefile.am): Substitute witnesses.
34521         * lib/pty.in.h (forkpty, openpty): Declare replacements.
34522         * tests/test-forkpty.c: Update signature check.
34523         * tests/test-openpty.c: Likewise.
34524         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
34525         * doc/glibc-functions/openpty.texi (openpty): Likewise.
34526
34527         forkpty, openpty: split functions into new modules
34528         * modules/pty (Makefile.am): Substitute new witnesses.
34529         (Libraries): Move library detection...
34530         * modules/forkpty: ...into new module.
34531         * modules/openpty: Another new module.
34532         * modules/pty-tests: Rename and split...
34533         * modules/forkpty-tests: ...to this...
34534         * modules/openpty-tests: ...and this.
34535         * tests/test-pty.c: Rename and split...
34536         * tests/test-forkpty.c: ...to this...
34537         * tests/test-openpty.c: ...and this.
34538         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
34539         (gl_PTY): Split library searching...
34540         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
34541         (gl_FORKPTY, gl_OPENPTY): New macros.
34542         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
34543         * NEWS: Mention the split.
34544         * MODULES.html.sh (Misc): Document the modules.
34545         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
34546         * doc/glibc-functions/openpty.texi (openpty): Likewise.
34547
34548         pty: improve replacement header
34549         * lib/pty.in.h: New file.
34550         * modules/pty (Files): Ship it.
34551         (Makefile.am): Always build replacement.
34552         * m4/pty.m4: Rename...
34553         * m4/pty_h.m4: ...to this.
34554         (gl_PTY): Modernize setting of witness macros; update check of
34555         forkpty to take proper advantage of cache.
34556         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
34557
34558         getopt: avoid compiler warning
34559         * lib/getopt.c (attribute_hidden): Remove unused macro.
34560
34561 2010-03-18  Bruno Haible  <bruno@clisp.org>
34562
34563         Fix link errors on Solaris 8.
34564         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
34565         * modules/search-tests (test_search_c___LDADD): Likewise.
34566         * modules/signal-tests (test_signal_c___LDADD): Likewise.
34567         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
34568         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
34569         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
34570         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
34571         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
34572         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
34573
34574 2010-03-18  Bruno Haible  <bruno@clisp.org>
34575
34576         Fix bug introduced on 2010-03-14.
34577         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
34578         (gl_SPAWN_H): Require it.
34579         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
34580         Reported by Simon Josefsson.
34581
34582 2010-03-18  Bruno Haible  <bruno@clisp.org>
34583
34584         Fix typo introduced on 2009-12-31.
34585         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
34586         posix_spawn_file_actions_adddup2.
34587
34588 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
34589         and Eric Blake  <eblake@redhat.com>
34590
34591         test-vc-list-files-git: make more robust
34592         * tests/test-vc-list-files-git.sh: Unset problematic environment
34593         variables.  Chain commands together.
34594
34595 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
34596
34597         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
34598         `AC_CHECK_DECL' invocation.
34599
34600 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
34601
34602         * lib/inttostr.c (inttostr): Make sure the invocation of verify
34603         appears before executable statements. Suggested by Petr Sumbera
34604         <Petr.Sumbera@Sun.COM>.
34605
34606 2010-03-14  Bruno Haible  <bruno@clisp.org>
34607
34608         * tests/test-flock.c (test_exclusive): Comment out a test that causes
34609         portability problems. Instead use a simpler test.
34610         (main): Check that invalid arguments are rejected only on Linux.
34611
34612 2010-03-14  Bruno Haible  <bruno@clisp.org>
34613
34614         Fix bug introduced on 2009-12-31.
34615         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
34616         gl_PREREQ_SYS_H_WINSOCK2 always.
34617         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
34618         SYS_SOCKET_H variable.
34619         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
34620         Update comments.
34621         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
34622         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
34623         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
34624         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
34625         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
34626
34627 2010-03-14  Bruno Haible  <bruno@clisp.org>
34628
34629         Fix values returned by sinl, cosl.
34630         * lib/trigl.h: Add specification comments.
34631         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
34632         that combines the values from the precomputed table with the values of
34633         the Chebyshev polynomials.
34634
34635 2010-03-14  Bruno Haible  <bruno@clisp.org>
34636
34637         Fix compilation error when modules 'posix_spawn[p]' are not used.
34638         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
34639         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
34640
34641 2010-03-14  Bruno Haible  <bruno@clisp.org>
34642
34643         Fix compilation error on mingw when module 'time_r' is not used.
34644         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
34645         is 1.
34646         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
34647         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
34648         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
34649         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
34650
34651 2010-03-14  Bruno Haible  <bruno@clisp.org>
34652
34653         Fix compilation error with Sun C.
34654         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
34655         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
34656         instead of GCC specific ULONG_LONG_MAX.
34657         * lib/xstrtoll.c: Likewise.
34658         * lib/xstrtoull.c: Likewise.
34659
34660 2010-03-13  Bruno Haible  <bruno@clisp.org>
34661
34662         Allow the user to disable C++ code and tests.
34663         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
34664         (gl_PROG_ANSI_CXX): Require it.
34665
34666 2010-03-13  Bruno Haible  <bruno@clisp.org>
34667
34668         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
34669         cases.
34670
34671 2010-03-13  Bruno Haible  <bruno@clisp.org>
34672
34673         Test that gnulib does not break the standard C++ headers.
34674         * tests/test-locale-c++2.cc: New file.
34675         * modules/locale-tests (Files): Add it.
34676         (Makefile.am): Compile it for test-locale-c++.
34677         * tests/test-math-c++2.cc: New file.
34678         * modules/math-tests (Files): Add it.
34679         (Makefile.am): Compile it for test-math-c++.
34680         * tests/test-signal-c++2.cc: New file.
34681         * modules/signal-tests (Files): Add it.
34682         (Makefile.am): Compile it for test-signal-c++.
34683         * tests/test-stdio-c++2.cc: New file.
34684         * modules/stdio-tests (Files): Add it.
34685         (Makefile.am): Compile it for test-stdio-c++.
34686         * tests/test-stdlib-c++2.cc: New file.
34687         * modules/stdlib-tests (Files): Add it.
34688         (Makefile.am): Compile it for test-stdlib-c++.
34689         * tests/test-string-c++2.cc: New file.
34690         * modules/string-tests (Files): Add it.
34691         (Makefile.am): Compile it for test-string-c++.
34692         * tests/test-time-c++2.cc: New file.
34693         * modules/time-tests (Files): Add it.
34694         (Makefile.am): Compile it for test-time-c++.
34695         Reported by John W. Eaton <jwe@gnu.org>.
34696
34697 2010-03-13  Bruno Haible  <bruno@clisp.org>
34698
34699         * gnulib-tool (func_usage): Clarify which options are available for
34700         --create-testdir and --create-megatestdir.
34701
34702 2010-03-13  Bruno Haible  <bruno@clisp.org>
34703
34704         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
34705         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
34706         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
34707         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
34708         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
34709         when appropriate.
34710         Reported by Jim Meyering.
34711
34712 2010-03-12  Simon Josefsson  <simon@josefsson.org>
34713
34714         * gnulib-tool (func_import): Explain origin of code.
34715
34716 2010-03-12  Bruno Haible  <bruno@clisp.org>
34717
34718         Fix problem with automake's definition of CXXLINK.
34719         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
34720         Reported by Simon Josefsson and Ludovic Courtès.
34721
34722 2010-03-12  Bruno Haible  <bruno@clisp.org>
34723
34724         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
34725         stable releases.
34726
34727 2010-03-11  Bruno Haible  <bruno@clisp.org>
34728
34729         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
34730         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
34731         whether the system provides one variant or multiple variants of the
34732         function.
34733         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
34734         C++ compilers.
34735         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
34736         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
34737         Reported by Jim Meyering.
34738
34739 2010-03-09  Simon Josefsson  <simon@josefsson.org>
34740
34741         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
34742
34743 2010-03-08  Bruno Haible  <bruno@clisp.org>
34744
34745         gnulib-tool: Add support for --libtool in --create-testdir.
34746         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
34747         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
34748
34749 2010-03-08  Eric Blake  <eblake@redhat.com>
34750
34751         gnulib-tool.texi: mention possibility of git submodule
34752         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
34753         submodules.
34754         * doc/.gitignore: Ignore another generated file.
34755
34756 2010-03-08  Karl Berry  <karl@gnu.org>
34757
34758         * doc/gnulib-tool.texi (VCS Issues): Mention third option
34759         of committing gnulib files while skipping others.
34760
34761 2010-03-07  Bruno Haible  <bruno@clisp.org>
34762
34763         Tests of module 'wctype' in C++ mode.
34764         * tests/test-wctype-c++.cc: New file.
34765         * modules/wctype-tests (Files): Add it and tests/signature.h.
34766         (Depends-on): Add ansi-c++-opt.
34767         (Makefile.am): Arrange to compile and run test-wctype-c++.
34768
34769         Tests of module 'wchar' in C++ mode.
34770         * tests/test-wchar-c++.cc: New file.
34771         * modules/wchar-tests (Files): Add it and tests/signature.h.
34772         (Depends-on): Add ansi-c++-opt.
34773         (Makefile.am): Arrange to compile and run test-wchar-c++.
34774         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
34775         gl_MODULE_INDICATOR.
34776
34777         Tests of module 'unistd' in C++ mode.
34778         * tests/test-unistd-c++.cc: New file.
34779         * modules/unistd-tests (Files): Add it and tests/signature.h.
34780         (Depends-on): Add ansi-c++-opt.
34781         (Makefile.am): Arrange to compile and run test-unistd-c++.
34782         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
34783         gl_MODULE_INDICATOR.
34784
34785         Tests of module 'time' in C++ mode.
34786         * tests/test-time-c++.cc: New file.
34787         * modules/time-tests (Files): Add it and tests/signature.h.
34788         (Depends-on): Add ansi-c++-opt.
34789         (Makefile.am): Arrange to compile and run test-time-c++.
34790         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
34791
34792         Tests of module 'sys_time' in C++ mode.
34793         * tests/test-sys_time-c++.cc: New file.
34794         * modules/sys_time-tests (Files): Add it and tests/signature.h.
34795         (Depends-on): Add ansi-c++-opt.
34796         (Makefile.am): Arrange to compile and run test-sys_time-c++.
34797         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
34798         gl_MODULE_INDICATOR.
34799
34800         Tests of module 'sys_stat' in C++ mode.
34801         * tests/test-sys_stat-c++.cc: New file.
34802         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
34803         (Depends-on): Add ansi-c++-opt.
34804         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
34805         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
34806         gl_MODULE_INDICATOR.
34807
34808         Tests of module 'sys_socket' in C++ mode.
34809         * tests/test-sys_socket-c++.cc: New file.
34810         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
34811         (Depends-on): Add ansi-c++-opt.
34812         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
34813         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
34814         gl_MODULE_INDICATOR.
34815
34816         Tests of module 'sys_select' in C++ mode.
34817         * tests/test-sys_select-c++.cc: New file.
34818         * modules/sys_select-tests (Files): Add it and tests/signature.h.
34819         (Depends-on): Add ansi-c++-opt.
34820         (Makefile.am): Arrange to compile and run test-sys_select-c++.
34821         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
34822         gl_MODULE_INDICATOR.
34823
34824         Tests of module 'sys_ioctl' in C++ mode.
34825         * tests/test-sys_ioctl-c++.cc: New file.
34826         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
34827         (Depends-on): Add ansi-c++-opt.
34828         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
34829         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
34830         gl_MODULE_INDICATOR.
34831
34832         Tests of module 'string' in C++ mode.
34833         * tests/test-string-c++.cc: New file.
34834         * modules/string-tests (Files): Add it and tests/signature.h.
34835         (Depends-on): Add ansi-c++-opt.
34836         (Makefile.am): Arrange to compile and run test-string-c++.
34837         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
34838         gl_MODULE_INDICATOR.
34839
34840         Tests of module 'stdlib' in C++ mode.
34841         * tests/test-stdlib-c++.cc: New file.
34842         * modules/stdlib-tests (Files): Add it and tests/signature.h.
34843         (Depends-on): Add ansi-c++-opt.
34844         (Makefile.am): Arrange to compile and run test-stdlib-c++.
34845         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
34846         gl_MODULE_INDICATOR.
34847
34848         Tests of module 'stdio' in C++ mode.
34849         * tests/test-stdio-c++.cc: New file.
34850         * modules/stdio-tests (Files): Add it and tests/signature.h.
34851         (Depends-on): Add ansi-c++-opt.
34852         (Makefile.am): Arrange to compile and run test-stdio-c++.
34853         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
34854         gl_MODULE_INDICATOR.
34855
34856         Tests of module 'spawn' in C++ mode.
34857         * tests/test-spawn-c++.cc: New file.
34858         * modules/spawn-tests (Files): Add it and tests/signature.h.
34859         (Depends-on): Add ansi-c++-opt.
34860         (Makefile.am): Arrange to compile and run test-spawn-c++.
34861         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
34862         gl_MODULE_INDICATOR.
34863
34864         Tests of module 'signal' in C++ mode.
34865         * tests/test-signal-c++.cc: New file.
34866         * modules/signal-tests (Files): Add it and tests/signature.h.
34867         (Depends-on): Add ansi-c++-opt.
34868         (Makefile.am): Arrange to compile and run test-signal-c++.
34869         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
34870         gl_MODULE_INDICATOR.
34871
34872         Tests of module 'search' in C++ mode.
34873         * tests/test-search-c++.cc: New file.
34874         * modules/search-tests (Files): Add it and tests/signature.h.
34875         (Depends-on): Add ansi-c++-opt.
34876         (Makefile.am): Arrange to compile and run test-search-c++.
34877         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
34878         gl_MODULE_INDICATOR.
34879
34880         Tests of module 'math' in C++ mode.
34881         * tests/test-math-c++.cc: New file.
34882         * modules/math-tests (Files): Add it and tests/signature.h.
34883         (Depends-on): Add ansi-c++-opt.
34884         (Makefile.am): Arrange to compile and run test-math-c++.
34885         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
34886
34887         Tests of module 'locale' in C++ mode.
34888         * tests/test-locale-c++.cc: New file.
34889         * modules/locale-tests (Files): Add it and tests/signature.h.
34890         (Depends-on): Add ansi-c++-opt.
34891         (Makefile.am): Arrange to compile and run test-locale-c++.
34892         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
34893         gl_MODULE_INDICATOR.
34894
34895         Tests of module 'langinfo' in C++ mode.
34896         * tests/test-langinfo-c++.cc: New file.
34897         * modules/langinfo-tests (Files): Add it and tests/signature.h.
34898         (Depends-on): Add ansi-c++-opt.
34899         (Makefile.am): Arrange to compile and run test-langinfo-c++.
34900         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
34901         gl_MODULE_INDICATOR.
34902
34903         Tests of module 'iconv-h' in C++ mode.
34904         * tests/test-iconv-h-c++.cc: New file.
34905         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
34906         (Depends-on): Add ansi-c++-opt.
34907         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
34908
34909         Tests of module 'glob' in C++ mode.
34910         * tests/test-glob-c++.cc: New file.
34911         * modules/glob-tests (Files): Add it.
34912         (Depends-on): Add ansi-c++-opt.
34913         (Makefile.am): Arrange to compile and run test-glob-c++.
34914
34915         Tests of module 'fcntl-h' in C++ mode.
34916         * tests/test-fcntl-h-c++.cc: New file.
34917         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
34918         (Depends-on): Add ansi-c++-opt.
34919         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
34920         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
34921         gl_MODULE_INDICATOR.
34922
34923         Tests of module 'dirent' in C++ mode.
34924         * tests/test-dirent-c++.cc: New file.
34925         * modules/dirent-tests (Files): Add it and tests/signature.h.
34926         (Depends-on): Add ansi-c++-opt.
34927         (Makefile.am): Arrange to compile and run test-dirent-c++.
34928         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
34929         gl_MODULE_INDICATOR.
34930
34931         New module 'ansi-c++-opt'.
34932         * modules/ansi-c++-opt: New file.
34933         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
34934
34935         Document C++ namespace mode.
34936         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
34937
34938         wctype: Avoid #define replacements in C++ mode.
34939         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
34940         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
34941         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
34942         In C++, define a namespaced alias symbol.
34943         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
34944         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
34945         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
34946         rule.
34947
34948         wchar: Avoid #define replacements in C++ mode.
34949         * lib/wchar.in.h: Include c++defs.h.
34950         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
34951         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
34952         symbol.
34953         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
34954         * modules/wchar (Depends-on): Add c++defs.
34955         (Makefile.am): Update wchar.h rule.
34956
34957         unistd: Avoid #define replacements in C++ mode.
34958         * lib/unistd.in.h: Include c++defs.h.
34959         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
34960         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
34961         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
34962         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
34963         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
34964         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
34965         symbol.
34966         (environ): Update.
34967         * modules/unistd (Depends-on): Add c++defs.
34968         (Makefile.am): Update unistd.h rule.
34969
34970         time: Avoid #define replacements in C++ mode.
34971         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
34972         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
34973         define a namespaced alias symbol.
34974         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
34975         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
34976         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
34977         * modules/time (Depends-on): Add c++defs, warn-on-use.
34978         (Makefile.am): Update time.h rule.
34979         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
34980         * modules/nanosleep (configure.ac): Likewise.
34981         * modules/strptime (configure.ac): Likewise.
34982         * modules/timegm (configure.ac): Likewise.
34983
34984         sys_time: Avoid #define replacements in C++ mode.
34985         * lib/sys_time.in.h: Include c++defs.h.
34986         (gettimeofday): In C++, define a namespaced alias symbol.
34987         * modules/sys_time (Depends-on): Add c++defs.
34988         (Makefile.am): Update sys/time.h rule.
34989
34990         sys_stat: Avoid #define replacements in C++ mode.
34991         * lib/sys_stat.in.h: Include c++defs.h.
34992         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
34993         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
34994         namespaced alias symbol.
34995         In C++, define a namespaced alias symbol.
34996         * modules/sys_stat (Depends-on): Add c++defs.
34997         (Makefile.am): Update sys/stat.h rule.
34998
34999         sys_socket: Avoid #define replacements in C++ mode.
35000         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
35001         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
35002         definitions also when the system has a <sys/socket.h>.
35003         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
35004         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
35005         In C++, define a namespaced alias symbol.
35006         * modules/sys_socket (Depends-on): Add c++defs.
35007         (Makefile.am): Update sys/socket.h rule.
35008
35009         sys_select: Avoid #define replacements in C++ mode.
35010         * lib/sys_select.in.h: Include c++defs.h. Enable the function
35011         definitions also when the system has a <sys/select.h>.
35012         (select): In C++, define a namespaced alias symbol.
35013         * modules/sys_select (Depends-on): Add c++defs.
35014         (Makefile.am): Update sys/select.h rule.
35015
35016         sys_ioctl: Avoid #define replacements in C++ mode.
35017         * lib/sys_ioctl.in.h: Include c++defs.h.
35018         (ioctl): In C++, define a namespaced alias symbol.
35019         * modules/sys_ioctl (Depends-on): Add c++defs.
35020         (Makefile.am): Update sys/ioctl.h rule.
35021
35022         string: Avoid #define replacements in C++ mode.
35023         * lib/string.in.h: Include c++defs.h.
35024         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
35025         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
35026         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
35027         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
35028         strsignal, strverscmp): In C++, define a namespaced alias symbol.
35029         * modules/string (Depends-on): Add c++defs.
35030         (Makefile.am): Update string.h rule.
35031
35032         stdlib: Avoid #define replacements in C++ mode.
35033         * lib/stdlib.in.h: Include c++defs.h.
35034         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
35035         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
35036         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
35037         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
35038         symbol.
35039         * modules/stdlib (Depends-on): Add c++defs.
35040         (Makefile.am): Update stdlib.h rule.
35041
35042         stdio: Avoid #define replacements in C++ mode.
35043         * lib/stdio.in.h: Include c++defs.h.
35044         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
35045         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
35046         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
35047         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
35048         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
35049         namespaced alias symbol.
35050         * modules/stdio (Depends-on): Add c++defs.
35051         (Makefile.am): Update stdio.h rule.
35052
35053         spawn: Avoid #define replacements in C++ mode.
35054         * lib/spawn.in.h: Include c++defs.h.
35055         (posix_spawn, posix_spawnp, posix_spawnattr_init,
35056         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
35057         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
35058         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
35059         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
35060         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
35061         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
35062         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
35063         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
35064         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
35065         In C++, define a namespaced alias symbol.
35066         * modules/spawn (Depends-on): Add c++defs.
35067         (Makefile.am): Update spawn.h rule.
35068
35069         signal: Avoid #define replacements in C++ mode.
35070         * lib/signal.in.h: Include c++defs.h.
35071         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
35072         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
35073         namespaced alias symbol.
35074         * modules/signal (Depends-on): Add c++defs.
35075         (Makefile.am): Update signal.h rule.
35076
35077         search: Avoid #define replacements in C++ mode.
35078         * lib/search.in.h: Include c++defs.h.
35079         (_gl_search_compar_fn, _gl_search_action_fn): New types.
35080         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
35081         symbol.
35082         * modules/search (Depends-on): Add c++defs.
35083         (Makefile.am): Update search.h rule.
35084
35085         math: Avoid #define replacements in C++ mode.
35086         * lib/math.in.h: Include c++defs.h.
35087         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
35088         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
35089         trunc, truncl): In C++, define a namespaced alias symbol.
35090         * modules/math (Depends-on): Add c++defs.
35091         (Makefile.am): Update math.h rule.
35092
35093         locale: Avoid #define replacements in C++ mode.
35094         * lib/locale.in.h: Include c++defs.h.
35095         (duplocale): In C++, define a namespaced alias symbol.
35096         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
35097         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
35098         * modules/locale (Depends-on): Add c++defs.
35099         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
35100
35101         langinfo: Avoid #define replacements in C++ mode.
35102         * lib/langinfo.in.h: Include c++defs.h.
35103         (nl_langinfo): In C++, define a namespaced alias symbol.
35104         * modules/langinfo (Depends-on): Add c++defs.
35105         (Makefile.am): Update langinfo.h rule.
35106
35107         iconv-h: Avoid #define replacements in C++ mode.
35108         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
35109         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
35110         symbol.
35111         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
35112         whenever iconv is present.
35113         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
35114         (Makefile.am): Update iconv.h rule.
35115
35116         glob: Avoid #define replacements in C++ mode.
35117         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
35118         (_gl_glob_errfunc_fn): New type.
35119         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
35120         symbol.
35121         * modules/glob (Depends-on): Add c++defs, warn-on-use.
35122         (Makefile.am): Update glob.h rule.
35123
35124         fcntl-h: Avoid #define replacements in C++ mode.
35125         * lib/fcntl.in.h: Include c++defs.h.
35126         (fcntl, open, openat): In C++, define a namespaced alias symbol.
35127         * modules/fcntl-h (Depends-on): Add c++defs.
35128         (Makefile.am): Update fcntl.h rule.
35129
35130         dirent: Avoid #define replacements in C++ mode.
35131         * lib/dirent.in.h: Include c++defs.h.
35132         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
35133         namespaced alias symbol.
35134         (dirfd): Update declaration.
35135         * modules/dirent (Depends-on): Add c++defs.
35136         (Makefile.am): Update dirent.h rule.
35137
35138         ctype: Make it usable in C++ code.
35139         * lib/ctype.in.h: Include c++defs.h.
35140         (isblank): Declare as extern "C".
35141         * modules/ctype (Depends-on): Add c++defs.
35142         (Makefile.am): Update ctype.h rule.
35143
35144         New module 'c++defs'.
35145         * modules/c++defs: New file.
35146         * build-aux/c++defs.h: New file.
35147         Reported by John W. Eaton <jwe@gnu.org>.
35148
35149 2010-03-07  Bruno Haible  <bruno@clisp.org>
35150
35151         logb: Provide missing declaration for Cygwin.
35152         * lib/math.in.h (logb): New declaration.
35153         * m4/logb.m4: New file.
35154         * modules/logb (Files): Add m4/logb.m4.
35155         (Depends-on): Add math.
35156         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
35157         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
35158         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
35159         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
35160         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
35161
35162 2010-03-07  Bruno Haible  <bruno@clisp.org>
35163
35164         Fix test-cond link error.
35165         * tests/test-cond.c: Include <stdio.h>.
35166
35167 2010-03-07  Bruno Haible  <bruno@clisp.org>
35168
35169         Fix test-dirent-safer link error.
35170         * modules/dirent-safer-tests (Makefile.am): Define
35171         test_dirent_safer_LDADD.
35172
35173 2010-03-07  Bruno Haible  <bruno@clisp.org>
35174
35175         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
35176         among default module list.
35177
35178 2010-03-07  Bruno Haible  <bruno@clisp.org>
35179
35180         Fix link error on platforms with GNU libiconv.
35181         * modules/unistr/u8-strcoll-tests (Makefile): Define
35182         test_u8_strcoll_LDADD.
35183         * modules/unistr/u16-strcoll-tests (Makefile): Define
35184         test_u16_strcoll_LDADD.
35185         * modules/unistr/u32-strcoll-tests (Makefile): Define
35186         test_u32_strcoll_LDADD.
35187
35188 2010-03-07  Bruno Haible  <bruno@clisp.org>
35189
35190         Use POSIX declarations for socket functions.
35191         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
35192         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
35193         rpl_sendto): Change declaration to match POSIX.
35194         * lib/connect.c (rpl_connect): Likewise.
35195         * lib/accept.c (rpl_accept): Likewise.
35196         * lib/bind.c (rpl_bind): Likewise.
35197         * lib/getpeername.c (rpl_getpeername): Likewise.
35198         * lib/getsockname.c (rpl_getsockname): Likewise.
35199         * lib/recv.c (rpl_recv): Likewise.
35200         * lib/send.c (rpl_send): Likewise.
35201         * lib/recvfrom.c (rpl_recvfrom): Likewise.
35202         * lib/sendto.c (rpl_sendto): Likewise.
35203
35204 2010-03-06  Bruno Haible  <bruno@clisp.org>
35205
35206         Clarify access, euidaccess, faccessat.
35207         * doc/posix-functions/faccessat.texi: Mention security problem under
35208         "Other problems", not "Portability problems".
35209         * doc/posix-functions/access.texi: Likewise. Mention a related security
35210         problem.
35211         * doc/glibc-functions/euidaccess.texi: Mention security problems.
35212         * lib/euidaccess.c: Add comments about platforms.
35213         * lib/unistd.in.h (access, euidaccess): Add warnings.
35214
35215 2010-03-07  Bruno Haible  <bruno@clisp.org>
35216
35217         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
35218         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
35219         (POSIX_SPAWN_SETSCHEDULER): Likewise.
35220         (POSIX_SPAWN_USEVFORK): Define in a way that works when
35221         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
35222         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
35223         declare when POSIX_SPAWN_SETSCHEDULER is zero.
35224         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
35225         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
35226         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
35227         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
35228         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
35229         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
35230         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
35231         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
35232         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
35233         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
35234         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
35235         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
35236         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
35237         Likewise.
35238         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
35239         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
35240         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
35241         Likewise.
35242         * tests/test-spawn.c (main): Make it work when
35243         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
35244
35245 2010-03-07  Bruno Haible  <bruno@clisp.org>
35246
35247         Fix incorrect Makefile.am generation in German locale.
35248         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
35249         Execute sed command with character range in C locale.
35250
35251 2010-03-06  Bruno Haible  <bruno@clisp.org>
35252
35253         Tests for module 'iconv-h'.
35254         * modules/iconv-h-tests: New file.
35255         * tests/test-iconv-h.c: New file.
35256
35257         New module 'iconv-h'.
35258         * modules/iconv-h: New file.
35259         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
35260         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
35261         (configure.ac): Remove gl_ICONV_H.
35262         (Makefile.am): Remove rule for iconv.h.
35263
35264 2010-03-06  Bruno Haible  <bruno@clisp.org>
35265
35266         More consistent naming of *.m4 files.
35267         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
35268         * modules/wctype (Files): Update.
35269
35270         More consistent naming of *.m4 files.
35271         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
35272         * modules/wchar (Files): Update.
35273
35274 2010-03-06  Jim Meyering  <meyering@redhat.com>
35275
35276         euidaccess: relax license to LGPLv2+
35277         * modules/euidaccess (License): Relax to LGPLv2+.
35278
35279 2010-03-06  Bruno Haible  <bruno@clisp.org>
35280
35281         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
35282         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
35283         (Makefile.am): Augment lib_SOURCES instead.
35284
35285 2010-03-04  Jim Meyering  <meyering@redhat.com>
35286
35287         utime: remove obsolete module
35288         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
35289         unnecessary for years, and has been marked as obsolete for 10 months.
35290         * modules/utime: Remove file.
35291         * lib/utime.c: Remove file.
35292         * m4/utime.m4: Remove file.
35293         * m4/utimes-null.m4: Remove file.
35294         * doc/posix-functions/utime.texi (utime): Remove reference to
35295         the module.  Move the sole "fixed by gnulib" item into the
35296         "problems not fixed by Gnulib" list.
35297         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
35298
35299 2010-03-05  Simon Josefsson  <simon@josefsson.org>
35300
35301         * modules/exit (License): Relax license to LGPLv2+.
35302         (Status): Mark as obsolete.
35303         * NEWS: Mention deprecated 'exit' module.
35304         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
35305         of now obsolete 'exit'.
35306
35307 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35308
35309         fts-lgpl: remove unused module
35310         * modules/fts-lgpl: Remove.
35311         * MODULES.html.sh (func_all_modules): Adjust.
35312         * check-module (find_included_lib_files): Adjust.
35313         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
35314
35315 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
35316
35317         copy-acl: enhance Solaris ACL error handling
35318         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
35319         * lib/set-mode-acl.c (qset_acl): Likewise.
35320
35321 2010-03-02  Bruno Haible  <bruno@clisp.org>
35322
35323         spawn: Don't override the system defined values on FreeBSD 8.
35324         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
35325         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
35326         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
35327         if HAVE_POSIX_SPAWN is 1.
35328         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
35329
35330 2010-03-01  Bruno Haible  <bruno@clisp.org>
35331
35332         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
35333         regarding Automake.
35334
35335 2010-02-25  Bruno Haible  <bruno@clisp.org>
35336
35337         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
35338         * gnulib-tool: Define 'echo' as a function only before the ksh alias
35339         setting, not afterwards.
35340         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
35341
35342 2010-02-24  Eric Blake  <eblake@redhat.com>
35343
35344         bootstrap, git-version-gen: use timestamp
35345         * build-aux/git-version-gen (scriptversion): Force UTC.
35346         * build-aux/bootstrap (scriptversion): New variable.
35347
35348         bootstrap: allow older git
35349         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
35350         older than 1.6.4.  Requested by the libvirt project.
35351
35352 2010-02-23  Eric Blake  <eblake@redhat.com>
35353
35354         warn-on-use: work with old autoconf
35355         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
35356         AS_VAR semantics of autoconf 2.60.
35357         Reported by Bruno Haible.
35358
35359         bootstrap: improve some comments
35360         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
35361         clarification comments.
35362
35363         gettimeofday: provide correct function
35364         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
35365         when replacement is declared, otherwise provide gettimeofday.
35366         Reported by Michael Goffioul.
35367
35368 2010-02-23  Jim Meyering  <meyering@redhat.com>
35369
35370         lib-ignore: relax license to "unlimited", not LGPLv2+
35371         * modules/lib-ignore (License): Relax to "unlimited".
35372
35373 2010-02-23  Jim Meyering  <meyering@redhat.com>
35374
35375         lib-ignore: relax license to LGPLv2+
35376         * modules/lib-ignore (License): Relax to LGPLv2+.
35377
35378 2010-02-22  Eric Blake  <eblake@redhat.com>
35379
35380         lseek: avoid bash 3.2 broken pipe bug
35381         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
35382         warning from bash 3.2.
35383         Reported by Ben Pfaff, with analysis from Bruno Haible.
35384
35385         bootstrap: support non-FSF copyright holder
35386         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
35387         bootstrap.conf override of COPYRIGHT_HOLDER.
35388         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
35389
35390         bootstrap: interoperate with gettext 0.14.1
35391         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
35392
35393         bootstrap: allow for alternate submodule location
35394         * build-aux/bootstrap (gnulib_path): New variable; use instead of
35395         hardcoding submodule location.
35396         (gnulib_mk): Allow direct use of Makefile.am.
35397
35398         bootstrap: use GNULIB_SRCDIR to reduce disk usage
35399         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
35400         rather than reconfiguring where the submodule points.
35401
35402         gettimeofday: restore support for platforms that lack function
35403         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
35404         replacement if function is missing.
35405         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
35406         * modules/sys_time (Makefile.am): Substitute it.
35407         * lib/sys_time.in.h (gettimeofday): Check it.
35408         Reported by Michael Goffioul.
35409
35410 2010-02-21  Bruno Haible  <bruno@clisp.org>
35411
35412         * lib/stdio.in.h (obstack_printf): Fix typo.
35413
35414 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
35415
35416         vc-list-files: use bzr ls's -R option
35417         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
35418         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
35419
35420 2010-02-21  Jim Meyering  <meyering@redhat.com>
35421
35422         init.sh: fix EXEEXT shims to work also for names like test-prog
35423         * tests/init.sh: Re-exec a better shell, when needed.
35424         If the current shell lacks support for posix $(...), an init.sh-using
35425         test will now try to find a shell that supports that.  If EXEEXT is
35426         nonempty, we also require support for hyphen-in-alias-name and shell
35427         substitutions like ${var#glob}.  Failure to find such a shell results
35428         in a skipped test.
35429
35430 2010-02-21  Bruno Haible  <bruno@clisp.org>
35431
35432         Really work around around "broken pipe" error message from bash 3.2.
35433         * gnulib-tool (func_reset_sigpipe): Remove function.
35434         (echo): In bash 3.2, define to a function that uses printf.
35435         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
35436
35437 2010-02-20  Bruno Haible  <bruno@clisp.org>
35438
35439         Restore support for automake 1.9.6 with autoconf 2.61.
35440         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
35441         Reported by James Youngman <jay@gnu.org>.
35442
35443 2010-02-20  Bruno Haible  <bruno@clisp.org>
35444
35445         Improve *printf warning condition.
35446         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
35447         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
35448         and the function is overridden due to SIGPIPE emulation.
35449
35450 2010-02-20  Bruno Haible  <bruno@clisp.org>
35451
35452         * lib/stdio.in.h: Tweak comments.
35453
35454 2010-02-19  Bruno Haible  <bruno@clisp.org>
35455
35456         Make it easier to find modules. New gnulib-tool option '--find'.
35457         * gnulib-tool: New option --find.
35458         (func_usage): Document it.
35459         (func_sanitize_modulelist): New function, extracted from
35460         func_all_modules.
35461         (func_all_modules): Invoke it.
35462         * doc/gnulib-tool.texi (Which modules?): New node.
35463
35464 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
35465
35466         * lib/sys_select.in.h: Provide select replacement even if
35467         sys/select.h exists on a system, for Interix.
35468
35469 2010-02-18  Jim Meyering  <meyering@redhat.com>
35470
35471         init.sh: don't use $(...) just yet
35472         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
35473         to accommodate e.g., Solaris' /bin/sh.
35474
35475 2010-02-17  Bruno Haible  <bruno@clisp.org>
35476
35477         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
35478         Reported by Ludovic Courtès <ludo@gnu.org>.
35479
35480 2010-02-16  Simon Josefsson  <simon@josefsson.org>
35481
35482         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
35483         linking with -lintl.
35484
35485 2010-02-17  Simon Josefsson  <simon@josefsson.org>
35486
35487         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
35488         if not provided by the system's netdb.h.  Reported by
35489         ludo@gnu.org (Ludovic Courtès).
35490
35491 2010-02-15  Jim Meyering  <meyering@redhat.com>
35492
35493         init.sh: improve portability and efficiency
35494         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
35495         "dummy" in a for loop.
35496         Use '!', not '^' to select the complement of a character set used
35497         in a "case" statement.
35498         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
35499         Suggestions from Eric Blake.
35500
35501         init.sh: automatically accommodate programs with the .exe suffix
35502         Automatically arrange for an invocation of "prog" to execute the
35503         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
35504         may use the simpler "prog", yet still work when built on a system
35505         that requires specifying the added suffix.
35506         Do this by constructing a function named "prog" that invokes
35507         "prog.exe" for each .exe file in selected directories.
35508         * tests/init.sh (find_exe_basenames_): New function.
35509         (create_exe_shim_functions_): New function.
35510         (path_prepend_): Use it.
35511
35512         maint.mk: mark syntax-check sc_*.m rules as .PHONY
35513         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
35514         "make -t syntax-check" doesn't create a ton of sc_*.m files.
35515
35516 2010-02-14  Jim Meyering  <meyering@redhat.com>
35517
35518         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
35519         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
35520         (sc_prohibit_hash_pjw_without_use): New rule.
35521
35522         maint.mk: allow the default upload destination dir to be overridden
35523         * top/maint.mk (upload_dest_dir_): Define with a default that
35524         preserves the status quo.
35525         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
35526         Reported by Peter Simons.
35527
35528         maint.mk: prohibit inclusion of "hash.h" without_use
35529         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
35530
35531 2010-02-10  Jim Meyering  <meyering@redhat.com>
35532
35533         maint.mk: prohibit inclusion of "ignore-value.h" without_use
35534         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
35535
35536 2010-02-09  Eric Blake  <ebb9@byu.net>
35537         and Bruno Haible  <bruno@clisp.org>
35538
35539         obstack-printf-posix: ensure declaration
35540         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
35541         extracted from gl_FUNC_OBSTACK_PRINTF.
35542         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
35543         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
35544         Likewise.
35545         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
35546         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
35547         0.
35548
35549 2010-02-08  Bruno Haible  <bruno@clisp.org>
35550
35551         gnulib-tool: Fix typo in 2010-02-07 commit.
35552         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
35553         Reported by Eric Blake.
35554
35555 2010-02-07  Bruno Haible  <bruno@clisp.org>
35556
35557         gnulib-tool: Fix up caching patches.
35558         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
35559         option --no-cache. Use associative arrays when supported by the shell.
35560         (sed_comments): New variable.
35561         (modcache): Renamed from do_cache.
35562         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
35563         abbreviate unnecessarily.
35564         (have_associative): New variable.
35565         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
35566         way also for ksh and zsh.
35567         (func_init_sed_convert_to_cache_statements): New function, extracted
35568         from func_cache_lookup_module. Add support for associative arrays.
35569         Don't set the c_MODULE_cached variable here. Ignore all lines before
35570         the first field header. Remove only the final newline, not all trailing
35571         newlines. Support empty fields correctly. Limit the use of 'eval' to
35572         assignments.
35573         (func_get_description, func_get_status, func_get_notice,
35574         func_get_applicability, func_get_filelist, func_get_dependencies,
35575         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
35576         func_get_automake_snippet, func_get_include_directive,
35577         func_get_link_directive, func_get_license, func_get_maintainer):
35578         Update documentation. List the unoptimized code first. Add support for
35579         associative arrays. Limit the use of 'eval' to assignments.
35580         (func_get_applicability): Undo stylistic pessimisations.
35581         (func_get_automake_snippet, func_get_include_directive): Reduce code
35582         duplication.
35583         (func_modules_transitive_closure, func_modules_add_dummy,
35584         func_modules_notice, func_modules_to_filelist, func_add_file,
35585         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
35586         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
35587         func_create_testdir, func_create_megatestdir): Update documentation.
35588
35589 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35590
35591         * gnulib-tool (func_cache_lookup_module): Store the module name
35592         belonging to the cache variable; error out if two different
35593         module names map to the same cache variable name.
35594
35595 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35596
35597         gnulib-tool: Make caching optional.
35598         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
35599         Update matching short versions of --no-changelog.
35600         (func_usage): Update.
35601         (sed_extract_cache_prog): Renamed from ...
35602         (sed_extract_prog): ... this; revert to old extraction script.
35603         (func_get_description, func_get_status)
35604         (func_get_notice, func_get_applicability, func_get_filelist)
35605         (func_get_dependencies, func_get_autoconf_early_snippet)
35606         (func_get_autoconf_snippet, func_get_automake_snippet)
35607         (func_get_include_directive, func_get_link_directive)
35608         (func_get_license, func_get_maintainer): If $do_cache is false,
35609         use old, non-caching extraction scripts.
35610         Suggestion by Bruno Haible.
35611
35612 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35613
35614         gnulib-tool: cache module metainformation.
35615         * gnulib-tool (sed_extract_prog): Match newline before each
35616         header, and rewrite header to a shell variable suffix.
35617         (func_cache_var, func_cache_lookup_module): New functions,
35618         to turn a module name into a cache variable prefix, and to
35619         look up and cache module metainformation.
35620         (func_get_description, func_get_status)
35621         (func_get_notice, func_get_applicability, func_get_filelist)
35622         (func_get_dependencies, func_get_autoconf_early_snippet)
35623         (func_get_autoconf_snippet, func_get_automake_snippet)
35624         (func_get_include_directive, func_get_link_directive)
35625         (func_get_license, func_get_maintainer): Use
35626         func_cache_lookup_module.
35627
35628 2010-02-07  Bruno Haible  <bruno@clisp.org>
35629
35630         fnctl: Fix missing dependency.
35631         * modules/fcntl (Depends-on): Add getdtablesize.
35632         Reported by John W. Eaton <jwe@gnu.org>.
35633
35634 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
35635
35636         Argp: fix recognition of short alias options.
35637
35638         * lib/argp-parse.c (convert_options): Fix improper use of
35639         `|' between character values.
35640         * tests/test-argp.c (group1_option): New alias option
35641         --read (-r).
35642         (group1_parser): Special handling for 'r'.
35643         (test15): New test case.
35644         (test_fun): Add test15.
35645         * tests/test-argp-2.sh: Update expected --help and --usage
35646         outputs.
35647
35648 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
35649
35650         * tests/test-argp.c: Fix indentation.
35651
35652 2010-02-04  Eric Blake  <ebb9@byu.net>
35653
35654         gettimeofday: expose type of second argument
35655         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
35656         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
35657         * tests/test-gettimeofday.c: Use it to silence warning.
35658         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
35659         the issue.
35660
35661 2010-02-03  Jim Meyering  <meyering@redhat.com>
35662
35663         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
35664         * lib/regcomp.c (TYPE_SIGNED): Define.
35665         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
35666
35667         regcomp.c: avoid a new -Wshadow warning
35668         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
35669
35670 2010-02-01  Jim Meyering  <meyering@redhat.com>
35671
35672         removing useless parentheses in cpp #define directives
35673         For motivation, see commit c0221df4, "define STREQ(a,b)
35674         consistently, removing useless parentheses"
35675         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
35676         * lib/mountlist.c (MNT_IGNORE): Likewise.
35677         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
35678
35679 2010-02-01  Eric Blake  <ebb9@byu.net>
35680
35681         sys_time: use link-warning
35682         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
35683         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
35684         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
35685         * modules/sys_time (Depends-on): Add warn-on-use.
35686         (Makefile.am): Always build replacement.
35687         (configure.ac): Update substitutions.
35688         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
35689         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
35690         bother with SYS_TIME_H.
35691         * modules/gettimeofday (configure.ac): Declare indicator.
35692         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
35693         in use.
35694
35695         closein-tests: silence compiler warning
35696         * tests/test-closein.c (main): Ignore fread result.
35697         * modules/closein-tests (Depends-on): Add ignore-value.
35698
35699         tests: silence warning about system return
35700         * tests/test-areadlink-with-size.c (main): Ignore system result.
35701         * tests/test-areadlink.c (main): Likewise.
35702         * tests/test-areadlinkat-with-size.c (main): Likewise.
35703         * tests/test-areadlinkat.c (main): Likewise.
35704         * tests/test-canonicalize-lgpl.c (main): Likewise.
35705         * tests/test-canonicalize.c (main): Likewise.
35706         * tests/test-chown.c (main): Likewise.
35707         * tests/test-fchownat.c (main): Likewise.
35708         * tests/test-fdutimensat.c (main): Likewise.
35709         * tests/test-fstatat.c (main): Likewise.
35710         * tests/test-futimens.c (main): Likewise.
35711         * tests/test-lchown.c (main): Likewise.
35712         * tests/test-link.c (main): Likewise.
35713         * tests/test-linkat.c (main): Likewise.
35714         * tests/test-lstat.c (main): Likewise.
35715         * tests/test-mkdir.c (main): Likewise.
35716         * tests/test-mkdirat.c (main): Likewise.
35717         * tests/test-mkfifo.c (main): Likewise.
35718         * tests/test-mkfifoat.c (main): Likewise.
35719         * tests/test-mknod.c (main): Likewise.
35720         * tests/test-readlink.c (main): Likewise.
35721         * tests/test-remove.c (main): Likewise.
35722         * tests/test-rename.c (main): Likewise.
35723         * tests/test-renameat.c (main): Likewise.
35724         * tests/test-rmdir.c (main): Likewise.
35725         * tests/test-symlink.c (main): Likewise.
35726         * tests/test-symlinkat.c (main): Likewise.
35727         * tests/test-unlink.c (main): Likewise.
35728         * tests/test-unlinkat.c (main): Likewise.
35729         * tests/test-utimens.c (main): Likewise.
35730         * tests/test-utimensat.c (main): Likewise.
35731         * modules/areadlink-tests (Depends-on): Add ignore-value.
35732         * modules/areadlink-with-size-tests (Depends-on): Likewise.
35733         * modules/areadlinkat-tests (Depends-on): Likewise.
35734         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
35735         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
35736         * modules/canonicalize-tests (Depends-on): Likewise.
35737         * modules/chown-tests (Depends-on): Likewise.
35738         * modules/fdutimensat-tests (Depends-on): Likewise.
35739         * modules/futimens-tests (Depends-on): Likewise.
35740         * modules/lchown-tests (Depends-on): Likewise.
35741         * modules/link-tests (Depends-on): Likewise.
35742         * modules/linkat-tests (Depends-on): Likewise.
35743         * modules/lstat-tests (Depends-on): Likewise.
35744         * modules/mkdir-tests (Depends-on): Likewise.
35745         * modules/mkfifo-tests (Depends-on): Likewise.
35746         * modules/mkfifoat-tests (Depends-on): Likewise.
35747         * modules/mknod-tests (Depends-on): Likewise.
35748         * modules/openat-tests (Depends-on): Likewise.
35749         * modules/readlink-tests (Depends-on): Likewise.
35750         * modules/remove-tests (Depends-on): Likewise.
35751         * modules/rename-tests (Depends-on): Likewise.
35752         * modules/renameat-tests (Depends-on): Likewise.
35753         * modules/rmdir-tests (Depends-on): Likewise.
35754         * modules/symlink-tests (Depends-on): Likewise.
35755         * modules/symlinkat-tests (Depends-on): Likewise.
35756         * modules/unlink-tests (Depends-on): Likewise.
35757         * modules/utimens-tests (Depends-on): Likewise.
35758         * modules/utimensat-tests (Depends-on): Likewise.
35759
35760 2010-01-31  Bruno Haible  <bruno@clisp.org>
35761
35762         Perform the same test for many <math.h> functions.
35763         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
35764         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
35765         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
35766         of gl_MATHFUNC.
35767         * modules/acos (configure.ac): Likewise.
35768         * modules/asin (configure.ac): Likewise.
35769         * modules/atan (configure.ac): Likewise.
35770         * modules/atan2 (configure.ac): Likewise.
35771         * modules/cbrt (configure.ac): Likewise.
35772         * modules/copysign (configure.ac): Likewise.
35773         * modules/cos (configure.ac): Likewise.
35774         * modules/cosh (configure.ac): Likewise.
35775         * modules/erf (configure.ac): Likewise.
35776         * modules/erfc (configure.ac): Likewise.
35777         * modules/exp (configure.ac): Likewise.
35778         * modules/fmod (configure.ac): Likewise.
35779         * modules/hypot (configure.ac): Likewise.
35780         * modules/j0 (configure.ac): Likewise.
35781         * modules/j1 (configure.ac): Likewise.
35782         * modules/jn (configure.ac): Likewise.
35783         * modules/lgamma (configure.ac): Likewise.
35784         * modules/log (configure.ac): Likewise.
35785         * modules/log10 (configure.ac): Likewise.
35786         * modules/log1p (configure.ac): Likewise.
35787         * modules/pow (configure.ac): Likewise.
35788         * modules/remainder (configure.ac): Likewise.
35789         * modules/sin (configure.ac): Likewise.
35790         * modules/sinh (configure.ac): Likewise.
35791         * modules/tan (configure.ac): Likewise.
35792         * modules/tanh (configure.ac): Likewise.
35793         * modules/y0 (configure.ac): Likewise.
35794         * modules/y1 (configure.ac): Likewise.
35795         * modules/yn (configure.ac): Likewise.
35796         Suggested by Paolo Bonzini.
35797
35798 2010-01-31  Bruno Haible  <bruno@clisp.org>
35799
35800         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
35801
35802 2010-01-31  Bruno Haible  <bruno@clisp.org>
35803
35804         Work around getdelim() bug on FreeBSD 8.0.
35805         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
35806         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
35807         not work.
35808         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
35809         is 1.
35810         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
35811         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
35812         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
35813         a non-zero size.
35814         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
35815
35816 2010-01-31  Bruno Haible  <bruno@clisp.org>
35817
35818         Work around getline() bug on FreeBSD 8.0.
35819         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
35820         and a non-zero size.
35821         * tests/test-getline.c (main): Likewise.
35822         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
35823         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
35824
35825 2010-01-28  Eric Blake  <ebb9@byu.net>
35826
35827         regex: fix build failure
35828         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
35829         platforms.
35830
35831 2010-01-28  Jim Meyering  <meyering@redhat.com>
35832
35833         regex: do not ignore memory allocation failure
35834         * lib/regex_internal.c (create_cd_newstate): Detect
35835         re_node_set_init_copy failure.   Extracted from glibc commit
35836         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
35837
35838         regex: sync more white-space changes from libc
35839         * lib/regex_internal.c: White-space only changes.
35840         * lib/regexec.c: Likewise.
35841
35842         regex: add many uses of __attribute_warn_unused_result__
35843         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
35844         * lib/regexec.c: Likewise.
35845         Extracted from a messy glibc commit.
35846
35847         regcomp.c: spelling and merge-artifact from glibc
35848         * lib/regcomp.c: Merge remainder of glibc's
35849         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
35850
35851         regcomp.c: sync white-space changes from glibc
35852         * lib/regcomp.c: Merge to accommodate white space
35853         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
35854
35855         regcomp.c: do not ignore internal return values
35856         * lib/regcomp.c: Do not ignore internal return values.
35857         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
35858         but without its white-space changes and spelling fixes.
35859
35860         regex_internal.h: define __attribute_warn_unused_result__
35861         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
35862
35863         maint: add a syntax-check rule to check for vulnerable Makefile.in
35864         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
35865
35866 2010-01-27  Jim Meyering  <meyering@redhat.com>
35867
35868         ncftpput-ftp: clean up spaces
35869         * build-aux/ncftpput-ftp: Make Copyright line consistent.
35870         Remove trailing blanks.
35871
35872 2010-01-27  Simon Josefsson  <simon@josefsson.org>
35873
35874         * build-aux/git-version-gen: Fix copyright statement.
35875         * build-aux/gnupload: Likewise.
35876         * tests/test-arcfour.c: Likewise.
35877         * tests/test-arctwo.c: Likewise.
35878         * tests/test-count-one-bits.c: Likewise.
35879         * tests/test-crc.c: Likewise.
35880         * tests/test-des.c: Likewise.
35881         * tests/test-gc-arcfour.c: Likewise.
35882         * tests/test-gc-arctwo.c: Likewise.
35883         * tests/test-gc-des.c: Likewise.
35884         * tests/test-gc-hmac-md5.c: Likewise.
35885         * tests/test-gc-hmac-sha1.c: Likewise.
35886         * tests/test-gc-md2.c: Likewise.
35887         * tests/test-gc-md4.c: Likewise.
35888         * tests/test-gc-md5.c: Likewise.
35889         * tests/test-gc-pbkdf2-sha1.c: Likewise.
35890         * tests/test-gc-rijndael.c: Likewise.
35891         * tests/test-gc-sha1.c: Likewise.
35892         * tests/test-gc.c: Likewise.
35893         * tests/test-gethostname.c: Likewise.
35894         * tests/test-gettimeofday.c: Likewise.
35895         * tests/test-hash.c: Likewise.
35896         * tests/test-hmac-md5.c: Likewise.
35897         * tests/test-hmac-sha1.c: Likewise.
35898         * tests/test-md2.c: Likewise.
35899         * tests/test-md4.c: Likewise.
35900         * tests/test-md5.c: Likewise.
35901         * tests/test-memchr.c: Likewise.
35902         * tests/test-memchr2.c: Likewise.
35903         * tests/test-memcmp.c: Likewise.
35904         * tests/test-memmem.c: Likewise.
35905         * tests/test-memrchr.c: Likewise.
35906         * tests/test-rawmemchr.c: Likewise.
35907         * tests/test-read-file.c: Likewise.
35908         * tests/test-rijndael.c: Likewise.
35909         * tests/test-sockets.c: Likewise.
35910         * tests/test-strchrnul.c: Likewise.
35911         * tests/test-strstr.c: Likewise.
35912         * tests/test-strtod.c: Likewise.
35913         * build-aux/ncftpput-ftp: Likewise.
35914
35915 2010-01-26  Eric Blake  <ebb9@byu.net>
35916
35917         ignore-value: update recommended header name
35918         * modules/ignore-value (Include): Only use <> for headers that
35919         exist in glibc.
35920
35921 2010-01-26  Jim Meyering  <meyering@redhat.com>
35922
35923         test-userspec.c: avoid compiler warnings
35924         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
35925         and "initialization discards qualifiers..." warnings.
35926         Put the first "uid" in its own scope, and make char* members "const".
35927
35928 2010-01-25  Bruno Haible  <bruno@clisp.org>
35929
35930         gnulib-tool: Make warning diagnostics consistent.
35931         * gnulib-tool (func_warning): New function.
35932         Use it everywhere where gnulib-tool produces output to stderr and it is
35933         not a fatal error.
35934
35935 2010-01-25  Bruno Haible  <bruno@clisp.org>
35936
35937         Fix test dependencies.
35938         * modules/xstrtol-tests (Depends-on): Add inttypes.
35939         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
35940
35941 2010-01-25 Pádraig Brady <P@draigBrady.com>
35942
35943         syntax-check: detect incorrect boolean macro values in config.h
35944         * modules/maintainer-makefile (configure.ac): Parameterize the location
35945         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
35946         The logic is from Eric Blake and the location indicated by Jim Meyering.
35947         Note the more natural CONFIG_HEADER name is prohibited by automake
35948         for backwards compatibility reasons.
35949         * top/maint.mk (sc_Wundef_boolean): New rule.
35950
35951 2010-01-25  Jim Meyering  <meyering@redhat.com>
35952
35953         bootstrap: detect MacOS 10.6's shasum, too
35954         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
35955         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
35956
35957 2010-01-23  Jim Meyering  <meyering@redhat.com>
35958
35959         xstrtoll: new module
35960         * modules/xstrtoll: New file.
35961         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
35962         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
35963         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
35964         ./configure fails if you use this module and lack "long long".
35965         * modules/xstrtoll-tests: New module.
35966         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
35967         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
35968         new init.sh-based test framework.
35969
35970 2010-01-24  Bruno Haible  <bruno@clisp.org>
35971
35972         Tests for module 'yn'.
35973         * modules/yn-tests: New file.
35974         * tests/test-yn.c: New file.
35975
35976         Tests for module 'y1'.
35977         * modules/y1-tests: New file.
35978         * tests/test-y1.c: New file.
35979
35980         Tests for module 'y0'.
35981         * modules/y0-tests: New file.
35982         * tests/test-y0.c: New file.
35983
35984         Tests for module 'tanh'.
35985         * modules/tanh-tests: New file.
35986         * tests/test-tanh.c: New file.
35987
35988         Tests for module 'tan'.
35989         * modules/tan-tests: New file.
35990         * tests/test-tan.c: New file.
35991
35992         Tests for module 'sqrt'.
35993         * modules/sqrt-tests: New file.
35994         * tests/test-sqrt.c: New file.
35995
35996         Tests for module 'sinh'.
35997         * modules/sinh-tests: New file.
35998         * tests/test-sinh.c: New file.
35999
36000         Tests for module 'sin'.
36001         * modules/sin-tests: New file.
36002         * tests/test-sin.c: New file.
36003
36004         Tests for module 'rint'.
36005         * modules/rint-tests: New file.
36006         * tests/test-rint.c: New file.
36007
36008         Tests for module 'remainder'.
36009         * modules/remainder-tests: New file.
36010         * tests/test-remainder.c: New file.
36011
36012         Tests for module 'pow'.
36013         * modules/pow-tests: New file.
36014         * tests/test-pow.c: New file.
36015
36016         Tests for module 'nextafter'.
36017         * modules/nextafter-tests: New file.
36018         * tests/test-nextafter.c: New file.
36019
36020         Tests for module 'modf'.
36021         * modules/modf-tests: New file.
36022         * tests/test-modf.c: New file.
36023
36024         Tests for module 'logb'.
36025         * modules/logb-tests: New file.
36026         * tests/test-logb.c: New file.
36027
36028         Tests for module 'log1p'.
36029         * modules/log1p-tests: New file.
36030         * tests/test-log1p.c: New file.
36031
36032         Tests for module 'log10'.
36033         * modules/log10-tests: New file.
36034         * tests/test-log10.c: New file.
36035
36036         Tests for module 'log'.
36037         * modules/log-tests: New file.
36038         * tests/test-log.c: New file.
36039
36040         Tests for module 'lgamma'.
36041         * modules/lgamma-tests: New file.
36042         * tests/test-lgamma.c: New file.
36043
36044         Tests for module 'ldexp'.
36045         * modules/ldexp-tests: New file.
36046         * tests/test-ldexp.c: New file.
36047
36048         Tests for module 'jn'.
36049         * modules/jn-tests: New file.
36050         * tests/test-jn.c: New file.
36051
36052         Tests for module 'j1'.
36053         * modules/j1-tests: New file.
36054         * tests/test-j1.c: New file.
36055
36056         Tests for module 'j0'.
36057         * modules/j0-tests: New file.
36058         * tests/test-j0.c: New file.
36059
36060         Tests for module 'hypot'.
36061         * modules/hypot-tests: New file.
36062         * tests/test-hypot.c: New file.
36063
36064         Tests for module 'fmod'.
36065         * modules/fmod-tests: New file.
36066         * tests/test-fmod.c: New file.
36067
36068         Tests for module 'fabs'.
36069         * modules/fabs-tests: New file.
36070         * tests/test-fabs.c: New file.
36071
36072         Tests for module 'exp'.
36073         * modules/exp-tests: New file.
36074         * tests/test-exp.c: New file.
36075
36076         Tests for module 'erfc'.
36077         * modules/erfc-tests: New file.
36078         * tests/test-erfc.c: New file.
36079
36080         Tests for module 'erf'.
36081         * modules/erf-tests: New file.
36082         * tests/test-erf.c: New file.
36083
36084         Tests for module 'cosh'.
36085         * modules/cosh-tests: New file.
36086         * tests/test-cosh.c: New file.
36087
36088         Tests for module 'cos'.
36089         * modules/cos-tests: New file.
36090         * tests/test-cos.c: New file.
36091
36092         Tests for module 'copysign'.
36093         * modules/copysign-tests: New file.
36094         * tests/test-copysign.c: New file.
36095
36096         Tests for module 'cbrt'.
36097         * modules/cbrt-tests: New file.
36098         * tests/test-cbrt.c: New file.
36099
36100         Tests for module 'atan2'.
36101         * modules/atan2-tests: New file.
36102         * tests/test-atan2.c: New file.
36103
36104         Tests for module 'atan'.
36105         * modules/atan-tests: New file.
36106         * tests/test-atan.c: New file.
36107
36108         Tests for module 'asin'.
36109         * modules/asin-tests: New file.
36110         * tests/test-asin.c: New file.
36111
36112         Tests for module 'acos'.
36113         * modules/acos-tests: New file.
36114         * tests/test-acos.c: New file.
36115
36116 2010-01-24  Bruno Haible  <bruno@clisp.org>
36117
36118         Fix tests for common <math.h> functions.
36119         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
36120         code snippet that references the function pointer, rather than merely
36121         calling the function. Substitute the FUNC_LIBM variable.
36122         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
36123         * modules/acos (configure.ac): Likewise.
36124         * modules/asin (configure.ac): Likewise.
36125         * modules/atan (configure.ac): Likewise.
36126         * modules/atan2 (configure.ac): Likewise.
36127         * modules/cbrt (configure.ac): Likewise.
36128         * modules/copysign (configure.ac): Likewise.
36129         * modules/cos (configure.ac): Likewise.
36130         * modules/cosh (configure.ac): Likewise.
36131         * modules/erf (configure.ac): Likewise.
36132         * modules/erfc (configure.ac): Likewise.
36133         * modules/exp (configure.ac): Likewise.
36134         * modules/fabs (configure.ac): Likewise.
36135         * modules/fmod (configure.ac): Likewise.
36136         * modules/hypot (configure.ac): Likewise.
36137         * modules/j0 (configure.ac): Likewise.
36138         * modules/j1 (configure.ac): Likewise.
36139         * modules/jn (configure.ac): Likewise.
36140         * modules/ldexp (configure.ac): Likewise.
36141         * modules/lgamma (configure.ac): Likewise.
36142         * modules/log (configure.ac): Likewise.
36143         * modules/log10 (configure.ac): Likewise.
36144         * modules/log1p (configure.ac): Likewise.
36145         * modules/logb (configure.ac): Likewise.
36146         * modules/modf (configure.ac): Likewise.
36147         * modules/nextafter (configure.ac): Likewise.
36148         * modules/pow (configure.ac): Likewise.
36149         * modules/remainder (configure.ac): Likewise.
36150         * modules/rint (configure.ac): Likewise.
36151         * modules/sin (configure.ac): Likewise.
36152         * modules/sinh (configure.ac): Likewise.
36153         * modules/tan (configure.ac): Likewise.
36154         * modules/tanh (configure.ac): Likewise.
36155         * modules/y0 (configure.ac): Likewise.
36156         * modules/y1 (configure.ac): Likewise.
36157         * modules/yn (configure.ac): Likewise.
36158
36159 2010-01-24  Bruno Haible  <bruno@clisp.org>
36160
36161         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
36162         * tests/test-acosl.c (x): New variable.
36163         (main): Store argument in x and fetch it from x.
36164         * tests/test-asinl.c (x): New variable.
36165         (main): Store argument in x and fetch it from x.
36166         * tests/test-atanl.c (x): New variable.
36167         (main): Store argument in x and fetch it from x.
36168         * tests/test-cosl.c (x): New variable.
36169         (main): Store argument in x and fetch it from x.
36170         * tests/test-expl.c (x): New variable.
36171         (main): Store argument in x and fetch it from x.
36172         * tests/test-logl.c (x): New variable.
36173         (main): Store argument in x and fetch it from x.
36174         * tests/test-sinl.c (x): New variable.
36175         (main): Store argument in x and fetch it from x.
36176         * tests/test-sqrtl.c (x): New variable.
36177         (main): Store argument in x and fetch it from x.
36178         * tests/test-tanl.c (x): New variable.
36179         (main): Store argument in x and fetch it from x.
36180
36181 2010-01-24  Bruno Haible  <bruno@clisp.org>
36182
36183         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
36184         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
36185         assignments to the initial TESTS_ENVIRONMENT.
36186         * doc/gnulib.texi (Unit test modules): Document it.
36187         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
36188         TESTS_ENVIRONMENT.
36189         * modules/btowc-tests (Makefile.am): Likewise.
36190         * modules/c-stack-tests (Makefile.am): Likewise.
36191         * modules/c-strcase-tests (Makefile.am): Likewise.
36192         * modules/copy-file-tests (Makefile.am): Likewise.
36193         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
36194         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
36195         * modules/mbrtowc-tests (Makefile.am): Likewise.
36196         * modules/mbscasecmp-tests (Makefile.am): Likewise.
36197         * modules/mbscasestr-tests (Makefile.am): Likewise.
36198         * modules/mbschr-tests (Makefile.am): Likewise.
36199         * modules/mbscspn-tests (Makefile.am): Likewise.
36200         * modules/mbsinit-tests (Makefile.am): Likewise.
36201         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
36202         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
36203         * modules/mbspbrk-tests (Makefile.am): Likewise.
36204         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
36205         * modules/mbsrchr-tests (Makefile.am): Likewise.
36206         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
36207         * modules/mbsspn-tests (Makefile.am): Likewise.
36208         * modules/mbsstr-tests (Makefile.am): Likewise.
36209         * modules/nl_langinfo-tests (Makefile.am): Likewise.
36210         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
36211         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
36212         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
36213         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
36214         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
36215         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
36216         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
36217         * modules/wcrtomb-tests (Makefile.am): Likewise.
36218         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
36219         * modules/wcsrtombs-tests (Makefile.am): Likewise.
36220         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
36221         assignments from TESTS_ENVIRONMENT.
36222         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
36223         augmentation.
36224         * modules/argp-version-etc-tests (Makefile.am): Likewise.
36225         * modules/atexit-tests (Makefile.am): Likewise.
36226         * modules/binary-io-tests (Makefile.am): Likewise.
36227         * modules/closein-tests (Makefile.am): Likewise.
36228         * modules/dprintf-posix-tests (Makefile.am): Likewise.
36229         * modules/exclude-tests (Makefile.am): Likewise.
36230         * modules/fflush-tests (Makefile.am): Likewise.
36231         * modules/fpending-tests (Makefile.am): Likewise.
36232         * modules/fprintf-posix-tests (Makefile.am): Likewise.
36233         * modules/freadahead-tests (Makefile.am): Likewise.
36234         * modules/freadptr-tests (Makefile.am): Likewise.
36235         * modules/freadseek-tests (Makefile.am): Likewise.
36236         * modules/fseek-tests (Makefile.am): Likewise.
36237         * modules/fseeko-tests (Makefile.am): Likewise.
36238         * modules/ftell-tests (Makefile.am): Likewise.
36239         * modules/ftello-tests (Makefile.am): Likewise.
36240         * modules/idpriv-drop-tests (Makefile.am): Likewise.
36241         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
36242         * modules/lseek-tests (Makefile.am): Likewise.
36243         * modules/parse-duration-tests (Makefile.am): Likewise.
36244         * modules/perror-tests (Makefile.am): Likewise.
36245         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
36246         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
36247         * modules/pipe-tests (Makefile.am): Likewise.
36248         * modules/pread-tests (Makefile.am): Likewise.
36249         * modules/printf-posix-tests (Makefile.am): Likewise.
36250         * modules/select-tests (Makefile.am): Likewise.
36251         * modules/sigpipe-tests (Makefile.am): Likewise.
36252         * modules/tsearch-tests (Makefile.am): Likewise.
36253         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
36254         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
36255         * modules/uniname/uniname-tests (Makefile.am): Likewise.
36256         * modules/uniwidth/width-tests (Makefile.am): Likewise.
36257         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
36258         * modules/version-etc-tests (Makefile.am): Likewise.
36259         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
36260         * modules/vprintf-posix-tests (Makefile.am): Likewise.
36261         * modules/xalloc-die-tests (Makefile.am): Likewise.
36262         * modules/xprintf-posix-tests (Makefile.am): Likewise.
36263         * modules/xstrtoimax-tests (Makefile.am): Likewise.
36264         * modules/xstrtol-tests (Makefile.am): Likewise.
36265         * modules/xstrtoumax-tests (Makefile.am): Likewise.
36266         * modules/yesno-tests (Makefile.am): Likewise.
36267         Suggested by Jim Meyering.
36268
36269 2010-01-24  Bruno Haible  <bruno@clisp.org>
36270
36271         More documentation.
36272         * doc/gnulib.texi (Writing modules): New chapter.
36273         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
36274         the new chapter.
36275
36276 2010-01-24  Jim Meyering  <meyering@redhat.com>
36277
36278         maint.mk: do not prepend "./" after filtering
36279         * top/maint.mk (_prepend_srcdir_prefix): New variable
36280         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
36281         "./" when $(srcdir) is ".".
36282
36283         define STREQ(a,b) consistently, removing useless parentheses
36284         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
36285         since the only risk is that "a" or "b" contains an unparenthesized
36286         comma, but if either did that, STREQ would have 3 or more arguments.
36287         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
36288         * lib/fts.c (STREQ): Remove unnecessary parentheses.
36289         * lib/hash-triple.c (STREQ): Likewise.
36290         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
36291         * lib/getugroups.c (STREQ): Likewise.
36292
36293 2010-01-23  Jim Meyering  <meyering@redhat.com>
36294
36295         maint.mk: fix syntax-check in a non-srcdir build directory
36296         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
36297         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
36298
36299 2010-01-22  Jim Meyering  <meyering@redhat.com>
36300
36301         userspec: add unit tests
36302         * tests/test-userspec.c: New file.
36303         * modules/userspec-tests: Likewise.
36304
36305 2010-01-21  Jim Meyering  <meyering@redhat.com>
36306
36307         maint.mk: handle source file names containing "." robustly
36308         * top/maint.mk (_dot_escaped_srcdir): Define.
36309         (VC_LIST): Use it in LHS of sed substitution.
36310
36311 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
36312
36313         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
36314         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
36315         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
36316         from a non-srcdir build.
36317
36318 2010-01-20  Eric Blake  <ebb9@byu.net>
36319
36320         warn-on-use: use instead of link-warning
36321         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
36322         * modules/unistd (Depends-on, Makefile.am): Likewise.
36323         * modules/arpa_inet (Depends-on): Replace link-warning with
36324         warn-on-use.
36325         (Makefile.am): Update rules accordingly.
36326         * modules/ctype (Depends-on, Makefile.am): Likewise.
36327         * modules/dirent (Depends-on, Makefile.am): Likewise.
36328         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
36329         * modules/inttypes (Depends-on, Makefile.am): Likewise.
36330         * modules/langinfo (Depends-on, Makefile.am): Likewise.
36331         * modules/locale (Depends-on, Makefile.am): Likewise.
36332         * modules/math (Depends-on, Makefile.am): Likewise.
36333         * modules/search (Depends-on, Makefile.am): Likewise.
36334         * modules/signal (Depends-on, Makefile.am): Likewise.
36335         * modules/spawn (Depends-on, Makefile.am): Likewise.
36336         * modules/stdlib (Depends-on, Makefile.am): Likewise.
36337         * modules/string (Depends-on, Makefile.am): Likewise.
36338         * modules/strings (Depends-on, Makefile.am): Likewise.
36339         * modules/sys_file (Depends-on, Makefile.am): Likewise.
36340         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
36341         * modules/sys_select (Depends-on, Makefile.am): Likewise.
36342         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
36343         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
36344         * modules/sys_times (Depends-on, Makefile.am): Likewise.
36345         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
36346         * modules/wchar (Depends-on, Makefile.am): Likewise.
36347         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
36348         should be poisoned.
36349         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
36350         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
36351         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
36352         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
36353         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
36354         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
36355         * m4/math_h.m4 (gl_MATH_H): Likewise.
36356         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
36357         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
36358         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
36359         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
36360         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
36361         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
36362         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
36363         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
36364         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
36365         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
36366         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
36367         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
36368         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
36369         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
36370         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
36371         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
36372         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
36373         GL_LINK_WARNING.
36374         * lib/ctype.in.h: Likewise.
36375         * lib/dirent.in.h: Likewise.
36376         * lib/fcntl.in.h: Likewise.
36377         * lib/inttypes.in.h: Likewise.
36378         * lib/langinfo.in.h: Likewise.
36379         * lib/locale.in.h: Likewise.
36380         * lib/math.in.h: Likewise.
36381         * lib/search.in.h: Likewise.
36382         * lib/signal.in.h: Likewise.
36383         * lib/spawn.in.h: Likewise.
36384         * lib/stdio.in.h: Likewise.
36385         * lib/stdlib.in.h: Likewise.
36386         * lib/string.in.h: Likewise.
36387         * lib/strings.in.h: Likewise.
36388         * lib/sys_file.in.h: Likewise.
36389         * lib/sys_ioctl.in.h: Likewise.
36390         * lib/sys_select.in.h: Likewise.
36391         * lib/sys_socket.in.h: Likewise.
36392         * lib/sys_stat.in.h: Likewise.
36393         * lib/sys_times.in.h: Likewise.
36394         * lib/sys_utsname.in.h: Likewise.
36395         * lib/unistd.in.h: Likewise.
36396         * lib/wchar.in.h: Likewise.
36397
36398 2010-01-20  Bruno Haible  <bruno@clisp.org>
36399
36400         Avoid duplicate -lm.
36401         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
36402         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
36403         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
36404         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
36405         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
36406         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
36407         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
36408         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
36409         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
36410         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
36411         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
36412         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
36413         Reported by Paolo Bonzini.
36414
36415 2010-01-19  Bruno Haible  <bruno@clisp.org>
36416
36417         langinfo, nl_langinfo: Relicense under LGPLv2+.
36418         * modules/langinfo (License): Change to LGPLv2+.
36419         * modules/nl_langinfo (License): Likewise.
36420         Patch by David Lutterkort <lutter@redhat.com>.
36421
36422 2010-01-19  Bruno Haible  <bruno@clisp.org>
36423
36424         Avoid compilation error with cc on OSF/1 5.1.
36425         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
36426         statement, not before.
36427         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36428
36429 2010-01-18  Bruno Haible  <bruno@clisp.org>
36430
36431         Avoid a link error due to the __printf__ symbol.
36432         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
36433         and 2.6.x.
36434         (__format__, __printf__): Remove definitions.
36435         * lib/argp-fmtstream.h: Likewise.
36436         * lib/argp.h: Likewise.
36437         * lib/error.h: Likewise.
36438         * lib/vasnprintf.h: Likewise.
36439         * lib/xprintf.h: Likewise.
36440         * lib/xvasprintf.h: Likewise.
36441         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36442
36443 2010-01-18  Bruno Haible  <bruno@clisp.org>
36444
36445         Tests for module 'tanl'.
36446         * modules/tanl-tests: New file.
36447         * tests/test-tanl.c: New file.
36448
36449         Tests for module 'sqrtl'.
36450         * modules/sqrtl-tests: New file.
36451         * tests/test-sqrtl.c: New file.
36452
36453         Tests for module 'sinl'.
36454         * modules/sinl-tests: New file.
36455         * tests/test-sinl.c: New file.
36456
36457         Tests for module 'logl'.
36458         * modules/logl-tests: New file.
36459         * tests/test-logl.c: New file.
36460
36461         Tests for module 'expl'.
36462         * modules/expl-tests: New file.
36463         * tests/test-expl.c: New file.
36464
36465         Tests for module 'cosl'.
36466         * modules/cosl-tests: New file.
36467         * tests/test-cosl.c: New file.
36468
36469         Tests for module 'atanl'.
36470         * modules/atanl-tests: New file.
36471         * tests/test-atanl.c: New file.
36472
36473         Tests for module 'asinl'.
36474         * modules/asinl-tests: New file.
36475         * tests/test-asinl.c: New file.
36476
36477         Tests for module 'acosl'.
36478         * modules/acosl-tests: New file.
36479         * tests/test-acosl.c: New file.
36480
36481         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
36482         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
36483         tanl): Use the standard gnulib idiom.
36484         * lib/cosl.c: Don't include trigl.c and sincosl.c.
36485         * lib/sinl.c: Likewise.
36486         * lib/tanl.c: Don't include trigl.c.
36487         (kernel_tanl): Make static.
36488         * lib/sincosl.c: Include trigl.h first.
36489         * lib/trigl.c: Likewise.
36490         * m4/acosl.m4: New file.
36491         * m4/asinl.m4: New file.
36492         * m4/atanl.m4: New file.
36493         * m4/cosl.m4: New file.
36494         * m4/expl.m4: New file.
36495         * m4/logl.m4: New file.
36496         * m4/sinl.m4: New file.
36497         * m4/sqrtl.m4: New file.
36498         * m4/tanl.m4: New file.
36499         * m4/mathl.m4: Remove file.
36500         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
36501         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
36502         Don't initialize GNULIB_MATHL.
36503         * modules/acosl: New file.
36504         * modules/asinl: New file.
36505         * modules/atanl: New file.
36506         * modules/cosl: New file.
36507         * modules/expl: New file.
36508         * modules/logl: New file.
36509         * modules/sinl: New file.
36510         * modules/sqrtl: New file.
36511         * modules/tanl: New file.
36512         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
36513         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
36514         substitute GNULIB_MATHL.
36515         * modules/mathl: Rewritten.
36516         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
36517         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
36518         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
36519         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
36520         * doc/posix-functions/expl.texi: Mention the 'expl' module.
36521         * doc/posix-functions/logl.texi: Mention the 'logl' module.
36522         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
36523         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
36524         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
36525
36526 2010-01-18  Bruno Haible  <bruno@clisp.org>
36527
36528         sqrt: Make gl_FUNC_SQRT requirable.
36529         * m4/sqrt.m4: New file.
36530         * modules/sqrt (Files): Add it.
36531         (configure.ac): Invoke gl_FUNC_SQRT.
36532
36533 2010-01-18  Bruno Haible  <bruno@clisp.org>
36534
36535         New modules for common <math.h> functions.
36536         * m4/mathfunc.m4: New file.
36537         * modules/acos: New file.
36538         * modules/asin: New file.
36539         * modules/atan: New file.
36540         * modules/atan2: New file.
36541         * modules/cbrt: New file.
36542         * modules/copysign: New file.
36543         * modules/cos: New file.
36544         * modules/cosh: New file.
36545         * modules/erf: New file.
36546         * modules/erfc: New file.
36547         * modules/exp: New file.
36548         * modules/fabs: New file.
36549         * modules/fmod: New file.
36550         * modules/hypot: New file.
36551         * modules/j0: New file.
36552         * modules/j1: New file.
36553         * modules/jn: New file.
36554         * modules/ldexp: New file.
36555         * modules/lgamma: New file.
36556         * modules/log: New file.
36557         * modules/log10: New file.
36558         * modules/log1p: New file.
36559         * modules/logb: New file.
36560         * modules/modf: New file.
36561         * modules/nextafter: New file.
36562         * modules/pow: New file.
36563         * modules/remainder: New file.
36564         * modules/rint: New file.
36565         * modules/sin: New file.
36566         * modules/sinh: New file.
36567         * modules/sqrt: New file.
36568         * modules/tan: New file.
36569         * modules/tanh: New file.
36570         * modules/y0: New file.
36571         * modules/y1: New file.
36572         * modules/yn: New file.
36573         * doc/posix-functions/acos.texi: Mention the 'acos' module.
36574         * doc/posix-functions/asin.texi: Mention the 'asin' module.
36575         * doc/posix-functions/atan.texi: Mention the 'atan' module.
36576         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
36577         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
36578         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
36579         * doc/posix-functions/cos.texi: Mention the 'cos' module.
36580         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
36581         * doc/posix-functions/erf.texi: Mention the 'erf' module.
36582         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
36583         * doc/posix-functions/exp.texi: Mention the 'exp' module.
36584         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
36585         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
36586         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
36587         * doc/posix-functions/j0.texi: Mention the 'j0' module.
36588         * doc/posix-functions/j1.texi: Mention the 'j1' module.
36589         * doc/posix-functions/jn.texi: Mention the 'jn' module.
36590         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
36591         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
36592         * doc/posix-functions/log.texi: Mention the 'log' module.
36593         * doc/posix-functions/log10.texi: Mention the 'log10' module.
36594         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
36595         * doc/posix-functions/logb.texi: Mention the 'logb' module.
36596         * doc/posix-functions/modf.texi: Mention the 'modf' module.
36597         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
36598         * doc/posix-functions/pow.texi: Mention the 'pow' module.
36599         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
36600         * doc/posix-functions/rint.texi: Mention the 'rint' module.
36601         * doc/posix-functions/sin.texi: Mention the 'sin' module.
36602         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
36603         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
36604         * doc/posix-functions/tan.texi: Mention the 'tan' module.
36605         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
36606         * doc/posix-functions/y0.texi: Mention the 'y0' module.
36607         * doc/posix-functions/y1.texi: Mention the 'y1' module.
36608         * doc/posix-functions/yn.texi: Mention the 'yn' module.
36609
36610 2010-01-18  Jim Meyering  <meyering@redhat.com>
36611
36612         ignore-value: relax license to LGPLv2+
36613         * modules/ignore-value (License): Relax to LGPLv2+.
36614
36615         getdate: don't leak when TZ contains two or more '"'s
36616         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
36617         double quote in TZ after the first one.
36618
36619         readtokens: do not leak internal token_lengths buffer
36620         * lib/readtokens.c (readtokens): Free the local, lengths,
36621         when the supplied "token_lengths" parameter is NULL.
36622
36623 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36624
36625         Fix a couple of missing LIBTHREAD link failures on AIX.
36626         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
36627         $(LIBTHREAD).
36628         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
36629
36630         Link test-poll against INET_PTON_LIB.
36631         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
36632         for inet_pton on Solaris 10.
36633
36634 2010-01-17  Bruno Haible  <bruno@clisp.org>
36635
36636         unistdio/*-sprintf: Fix typo in module description.
36637         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
36638         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
36639         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
36640         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
36641         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
36642         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
36643         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
36644         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36645
36646 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36647
36648         gnulib-tool: fix filelist for AIX, HP-UX ksh.
36649         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
36650         variables in shell case patterns, for AIX and HP-UX ksh.
36651
36652         Split large sed scripts, for HP-UX sed.
36653         * modules/stdio: Split sed scripts around 50 sed commands,
36654         to avoid HP-UX limit of 99 commands, in the near future.
36655         * modules/string: Likewise.
36656         * modules/unistd: Likewise.
36657
36658         gnulib-tool: avoid writing in the current directory.
36659         * gnulib-tool (func_emit_lib_Makefile_am)
36660         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
36661         not in the current directory, so concurrent gnulib-tool
36662         instances do not interfere.
36663
36664 2010-01-16  Jim Meyering  <meyering@redhat.com>
36665
36666         doc: update users.txt
36667         * users.txt: Add grep.
36668         (diffutils, gzip): Update URLs.
36669
36670 2010-01-12  Bruno Haible  <bruno@clisp.org>
36671
36672         posix_spawn: Avoid test failure on Cygwin.
36673         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
36674         characters.
36675         Reported by Simon Josefsson.
36676
36677 2010-01-12  Bruno Haible  <bruno@clisp.org>
36678
36679         * tests/test-cond.c (main): When skipping the test, show the reason.
36680
36681 2010-01-12  Simon Josefsson  <simon@josefsson.org>
36682
36683         * lib/striconv.c (str_cd_iconv): Avoid if before free.
36684
36685 2010-01-12  Simon Josefsson  <simon@josefsson.org>
36686
36687         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
36688         VC_LIST_ALWAYS_EXCLUDE_REGEX.
36689
36690 2010-01-12  Eric Blake  <ebb9@byu.net>
36691
36692         build: guarantee AS_VAR_IF
36693         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
36694         (gl_AS_VAR_IF): Move...
36695         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
36696         Reported by Simon Josefsson.
36697
36698 2010-01-12  Simon Josefsson  <simon@josefsson.org>
36699
36700         * lib/stdio.in.h: Fix typo.
36701
36702 2010-01-12  Simon Josefsson  <simon@josefsson.org>
36703
36704         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
36705         libgpg-error.
36706
36707 2010-01-12  Simon Josefsson  <simon@josefsson.org>
36708
36709         * tests/test-xalloc-die.sh: Use $EXEEXT.
36710
36711 2010-01-12  Simon Josefsson  <simon@josefsson.org>
36712             Bruno Haible  <bruno@clisp.org>
36713
36714         getlogin, getlogin_r: Avoid test failure.
36715         * tests/test-getlogin.c: Include <stdio.h>.
36716         (main): Skip the test when the function fails because stdin is not a
36717         tty.
36718         * tests/test-getlogin_r.c: Include <stdio.h>.
36719         (main): Skip the test when the function fails because stdin is not a
36720         tty.
36721
36722 2010-01-11  Eric Blake  <ebb9@byu.net>
36723
36724         tests: avoid more large file warnings
36725         * tests/test-fflush.c: Avoid warning about ftell use.
36726         * tests/test-fseek.c: Avoid warning about fseek use.
36727
36728 2010-01-10  Bruno Haible  <bruno@clisp.org>
36729
36730         nproc: Work better on Linux when /proc and /sys are not mounted.
36731         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
36732         as lower bound when, on glibc/Linux systems,
36733         sysconf (_SC_NPROCESSORS_CONF) returns 1.
36734         Suggested by Pádraig Brady <P@draigbrady.com>.
36735         Reported by Dmitry V. Levin <ldv@altlinux.org>.
36736
36737         nproc: Refactor.
36738         * lib/nproc.c (num_processors_via_affinity_mask): New function,
36739         extracted from num_processors.
36740         (num_processors): Call it.
36741
36742 2010-01-11  Jim Meyering  <meyering@redhat.com>
36743
36744         utimecmp: avoid new warning from upcoming gcc-4.5.0
36745         * lib/utimecmp.c (BILLION): Define using #define rather than an
36746         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
36747
36748 2010-01-11  Eric Blake  <ebb9@byu.net>
36749
36750         math: add portability warnings for classification macros
36751         * modules/math (Depends-on): Add warn-on-use.
36752         (Makefile.am): Provide new substitutions.
36753         * m4/math_h.m4 (gl_MATH_H): Require inline.
36754         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
36755         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
36756         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
36757         implement warnings.
36758
36759         unistd: warn on use of environ without module
36760         * modules/unistd (Depends-on): Add warn-on-use.
36761         (Makefile.am): Provide new substitutions.
36762         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
36763         * lib/unistd.in.h (environ): Wrap with a warning helper function.
36764
36765         stdio: warn on suspicious uses
36766         * modules/stdio (Depends-on): Add warn-on-use.
36767         (Makefile.am): Provide new substitutions.
36768         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
36769         fseeko.
36770         * lib/stdio.in.h (gets): Always warn on use.
36771         (fseek, ftell): Adjust when warnings are issued, and honor
36772         _GL_NO_LARGE_FILES as a way to silence the warning.
36773         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
36774         any warning about large file offsets.
36775         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
36776         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
36777         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
36778         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
36779         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
36780         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
36781         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
36782         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
36783
36784         warn-on-use: new module
36785         * modules/warn-on-use: New file.
36786         * build-aux/warn-on-use.h: Likewise.
36787         * m4/warn-on-use.m4: Likewise.
36788         * MODULES.html.sh (Support for building): Mention it.
36789
36790 2010-01-10  Bruno Haible  <bruno@clisp.org>
36791
36792         Tests for module 'unistr/u32-strdup'.
36793         * modules/unistr/u32-strdup-tests: New file.
36794         * tests/unistr/test-u32-strdup.c: New file.
36795
36796         Tests for module 'unistr/u16-strdup'.
36797         * modules/unistr/u16-strdup-tests: New file.
36798         * tests/unistr/test-u16-strdup.c: New file.
36799
36800         Tests for module 'unistr/u8-strdup'.
36801         * modules/unistr/u8-strdup-tests: New file.
36802         * tests/unistr/test-u8-strdup.c: New file.
36803         * tests/unistr/test-strdup.h: New file.
36804
36805         Tests for module 'unistr/u32-strncmp'.
36806         * modules/unistr/u32-strncmp-tests: New file.
36807         * tests/unistr/test-u32-strncmp.c: New file.
36808
36809         Tests for module 'unistr/u16-strncmp'.
36810         * modules/unistr/u16-strncmp-tests: New file.
36811         * tests/unistr/test-u16-strncmp.c: New file.
36812
36813         Tests for module 'unistr/u8-strncmp'.
36814         * modules/unistr/u8-strncmp-tests: New file.
36815         * tests/unistr/test-u8-strncmp.c: New file.
36816         * tests/unistr/test-strncmp.h: New file.
36817
36818         Tests for module 'unistr/u32-strcoll'.
36819         * modules/unistr/u32-strcoll-tests: New file.
36820         * tests/unistr/test-u32-strcoll.c: New file.
36821
36822         Tests for module 'unistr/u16-strcoll'.
36823         * modules/unistr/u16-strcoll-tests: New file.
36824         * tests/unistr/test-u16-strcoll.c: New file.
36825
36826         Tests for module 'unistr/u8-strcoll'.
36827         * modules/unistr/u8-strcoll-tests: New file.
36828         * tests/unistr/test-u8-strcoll.c: New file.
36829
36830         Tests for module 'unistr/u32-strcmp'.
36831         * modules/unistr/u32-strcmp-tests: New file.
36832         * tests/unistr/test-u32-strcmp.c: New file.
36833         * tests/unistr/test-u32-strcmp.h: New file.
36834
36835         Tests for module 'unistr/u16-strcmp'.
36836         * modules/unistr/u16-strcmp-tests: New file.
36837         * tests/unistr/test-u16-strcmp.c: New file.
36838         * tests/unistr/test-u16-strcmp.h: New file.
36839
36840         Tests for module 'unistr/u8-strcmp'.
36841         * modules/unistr/u8-strcmp-tests: New file.
36842         * tests/unistr/test-u8-strcmp.c: New file.
36843         * tests/unistr/test-u8-strcmp.h: New file.
36844         * tests/unistr/test-strcmp.h: New file.
36845
36846         Tests for module 'unistr/u32-strncat'.
36847         * modules/unistr/u32-strncat-tests: New file.
36848         * tests/unistr/test-u32-strncat.c: New file.
36849
36850         Tests for module 'unistr/u16-strncat'.
36851         * modules/unistr/u16-strncat-tests: New file.
36852         * tests/unistr/test-u16-strncat.c: New file.
36853
36854         Tests for module 'unistr/u8-strncat'.
36855         * modules/unistr/u8-strncat-tests: New file.
36856         * tests/unistr/test-u8-strncat.c: New file.
36857         * tests/unistr/test-strncat.h: New file.
36858
36859         Tests for module 'unistr/u32-strcat'.
36860         * modules/unistr/u32-strcat-tests: New file.
36861         * tests/unistr/test-u32-strcat.c: New file.
36862
36863         Tests for module 'unistr/u16-strcat'.
36864         * modules/unistr/u16-strcat-tests: New file.
36865         * tests/unistr/test-u16-strcat.c: New file.
36866
36867         Tests for module 'unistr/u8-strcat'.
36868         * modules/unistr/u8-strcat-tests: New file.
36869         * tests/unistr/test-u8-strcat.c: New file.
36870         * tests/unistr/test-strcat.h: New file.
36871
36872         Tests for module 'unistr/u32-stpncpy'.
36873         * modules/unistr/u32-stpncpy-tests: New file.
36874         * tests/unistr/test-u32-stpncpy.c: New file.
36875
36876         Tests for module 'unistr/u16-stpncpy'.
36877         * modules/unistr/u16-stpncpy-tests: New file.
36878         * tests/unistr/test-u16-stpncpy.c: New file.
36879
36880         Tests for module 'unistr/u8-stpncpy'.
36881         * modules/unistr/u8-stpncpy-tests: New file.
36882         * tests/unistr/test-u8-stpncpy.c: New file.
36883         * tests/unistr/test-stpncpy.h: New file.
36884
36885         Tests for module 'unistr/u32-strncpy'.
36886         * modules/unistr/u32-strncpy-tests: New file.
36887         * tests/unistr/test-u32-strncpy.c: New file.
36888
36889         Tests for module 'unistr/u16-strncpy'.
36890         * modules/unistr/u16-strncpy-tests: New file.
36891         * tests/unistr/test-u16-strncpy.c: New file.
36892
36893         Tests for module 'unistr/u8-strncpy'.
36894         * modules/unistr/u8-strncpy-tests: New file.
36895         * tests/unistr/test-u8-strncpy.c: New file.
36896         * tests/unistr/test-strncpy.h: New file.
36897
36898         Tests for module 'unistr/u32-stpcpy'.
36899         * modules/unistr/u32-stpcpy-tests: New file.
36900         * tests/unistr/test-u32-stpcpy.c: New file.
36901
36902         Tests for module 'unistr/u16-stpcpy'.
36903         * modules/unistr/u16-stpcpy-tests: New file.
36904         * tests/unistr/test-u16-stpcpy.c: New file.
36905
36906         Tests for module 'unistr/u8-stpcpy'.
36907         * modules/unistr/u8-stpcpy-tests: New file.
36908         * tests/unistr/test-u8-stpcpy.c: New file.
36909         * tests/unistr/test-stpcpy.h: New file.
36910
36911         Tests for module 'unistr/u32-strcpy'.
36912         * modules/unistr/u32-strcpy-tests: New file.
36913         * tests/unistr/test-u32-strcpy.c: New file.
36914
36915         Tests for module 'unistr/u16-strcpy'.
36916         * modules/unistr/u16-strcpy-tests: New file.
36917         * tests/unistr/test-u16-strcpy.c: New file.
36918
36919         Tests for module 'unistr/u8-strcpy'.
36920         * modules/unistr/u8-strcpy-tests: New file.
36921         * tests/unistr/test-u8-strcpy.c: New file.
36922         * tests/unistr/test-strcpy.h: New file.
36923
36924         Tests for module 'unistr/u32-strnlen'.
36925         * modules/unistr/u32-strnlen-tests: New file.
36926         * tests/unistr/test-u32-strnlen.c: New file.
36927
36928         Tests for module 'unistr/u16-strnlen'.
36929         * modules/unistr/u16-strnlen-tests: New file.
36930         * tests/unistr/test-u16-strnlen.c: New file.
36931
36932         Tests for module 'unistr/u8-strnlen'.
36933         * modules/unistr/u8-strnlen-tests: New file.
36934         * tests/unistr/test-u8-strnlen.c: New file.
36935         * tests/unistr/test-strnlen.h: New file.
36936
36937         Tests for module 'unistr/u32-strlen'.
36938         * modules/unistr/u32-strlen-tests: New file.
36939         * tests/unistr/test-u32-strlen.c: New file.
36940
36941         Tests for module 'unistr/u16-strlen'.
36942         * modules/unistr/u16-strlen-tests: New file.
36943         * tests/unistr/test-u16-strlen.c: New file.
36944
36945         Tests for module 'unistr/u8-strlen'.
36946         * modules/unistr/u8-strlen-tests: New file.
36947         * tests/unistr/test-u8-strlen.c: New file.
36948
36949         Tests for module 'unistr/u32-prev'.
36950         * modules/unistr/u32-prev-tests: New file.
36951         * tests/unistr/test-u32-prev.c: New file.
36952
36953         Tests for module 'unistr/u16-prev'.
36954         * modules/unistr/u16-prev-tests: New file.
36955         * tests/unistr/test-u16-prev.c: New file.
36956
36957         Tests for module 'unistr/u8-prev'.
36958         * modules/unistr/u8-prev-tests: New file.
36959         * tests/unistr/test-u8-prev.c: New file.
36960
36961         Tests for module 'unistr/u32-next'.
36962         * modules/unistr/u32-next-tests: New file.
36963         * tests/unistr/test-u32-next.c: New file.
36964
36965         Tests for module 'unistr/u16-next'.
36966         * modules/unistr/u16-next-tests: New file.
36967         * tests/unistr/test-u16-next.c: New file.
36968
36969         Tests for module 'unistr/u8-next'.
36970         * modules/unistr/u8-next-tests: New file.
36971         * tests/unistr/test-u8-next.c: New file.
36972
36973         Tests for module 'unistr/u32-strmbtouc'.
36974         * modules/unistr/u32-strmbtouc-tests: New file.
36975         * tests/unistr/test-u32-strmbtouc.c: New file.
36976
36977         Tests for module 'unistr/u16-strmbtouc'.
36978         * modules/unistr/u16-strmbtouc-tests: New file.
36979         * tests/unistr/test-u16-strmbtouc.c: New file.
36980
36981         Tests for module 'unistr/u8-strmbtouc'.
36982         * modules/unistr/u8-strmbtouc-tests: New file.
36983         * tests/unistr/test-u8-strmbtouc.c: New file.
36984
36985         Tests for module 'unistr/u32-strmblen'.
36986         * modules/unistr/u32-strmblen-tests: New file.
36987         * tests/unistr/test-u32-strmblen.c: New file.
36988
36989         Tests for module 'unistr/u16-strmblen'.
36990         * modules/unistr/u16-strmblen-tests: New file.
36991         * tests/unistr/test-u16-strmblen.c: New file.
36992
36993         Tests for module 'unistr/u8-strmblen'.
36994         * modules/unistr/u8-strmblen-tests: New file.
36995         * tests/unistr/test-u8-strmblen.c: New file.
36996
36997         Tests for module 'unistr/u32-cpy-alloc'.
36998         * modules/unistr/u32-cpy-alloc-tests: New file.
36999         * tests/unistr/test-u32-cpy-alloc.c: New file.
37000
37001         Tests for module 'unistr/u16-cpy-alloc'.
37002         * modules/unistr/u16-cpy-alloc-tests: New file.
37003         * tests/unistr/test-u16-cpy-alloc.c: New file.
37004
37005         Tests for module 'unistr/u8-cpy-alloc'.
37006         * modules/unistr/u8-cpy-alloc-tests: New file.
37007         * tests/unistr/test-u8-cpy-alloc.c: New file.
37008         * tests/unistr/test-cpy-alloc.h: New file.
37009
37010         Tests for module 'unistr/u32-mbsnlen'.
37011         * modules/unistr/u32-mbsnlen-tests: New file.
37012         * tests/unistr/test-u32-mbsnlen.c: New file.
37013
37014         Tests for module 'unistr/u16-mbsnlen'.
37015         * modules/unistr/u16-mbsnlen-tests: New file.
37016         * tests/unistr/test-u16-mbsnlen.c: New file.
37017
37018         Tests for module 'unistr/u8-mbsnlen'.
37019         * modules/unistr/u8-mbsnlen-tests: New file.
37020         * tests/unistr/test-u8-mbsnlen.c: New file.
37021
37022         Tests for module 'unistr/u32-chr'.
37023         * modules/unistr/u32-chr-tests: New file.
37024         * tests/unistr/test-u32-chr.c: New file.
37025
37026         Tests for module 'unistr/u16-chr'.
37027         * modules/unistr/u16-chr-tests: New file.
37028         * tests/unistr/test-u16-chr.c: New file.
37029
37030         Tests for module 'unistr/u8-chr'.
37031         * modules/unistr/u8-chr-tests: New file.
37032         * tests/unistr/test-u8-chr.c: New file.
37033         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
37034
37035         Tests for module 'unistr/u32-cmp2'.
37036         * modules/unistr/u32-cmp2-tests: New file.
37037         * tests/unistr/test-u32-cmp2.c: New file.
37038
37039         Tests for module 'unistr/u16-cmp2'.
37040         * modules/unistr/u16-cmp2-tests: New file.
37041         * tests/unistr/test-u16-cmp2.c: New file.
37042
37043         Tests for module 'unistr/u8-cmp2'.
37044         * modules/unistr/u8-cmp2-tests: New file.
37045         * tests/unistr/test-u8-cmp2.c: New file.
37046         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
37047
37048         Tests for module 'unistr/u32-cmp'.
37049         * modules/unistr/u32-cmp-tests: New file.
37050         * tests/unistr/test-u32-cmp.c: New file.
37051
37052         Tests for module 'unistr/u16-cmp'.
37053         * modules/unistr/u16-cmp-tests: New file.
37054         * tests/unistr/test-u16-cmp.c: New file.
37055
37056         Tests for module 'unistr/u8-cmp'.
37057         * modules/unistr/u8-cmp-tests: New file.
37058         * tests/unistr/test-u8-cmp.c: New file.
37059         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
37060
37061         Tests for module 'unistr/u32-set'.
37062         * modules/unistr/u32-set-tests: New file.
37063         * tests/unistr/test-u32-set.c: New file.
37064
37065         Tests for module 'unistr/u16-set'.
37066         * modules/unistr/u16-set-tests: New file.
37067         * tests/unistr/test-u16-set.c: New file.
37068
37069         Tests for module 'unistr/u8-set'.
37070         * modules/unistr/u8-set-tests: New file.
37071         * tests/unistr/test-u8-set.c: New file.
37072         * tests/unistr/test-set.h: New file.
37073
37074         Tests for module 'unistr/u32-move'.
37075         * modules/unistr/u32-move-tests: New file.
37076         * tests/unistr/test-u32-move.c: New file.
37077
37078         Tests for module 'unistr/u16-move'.
37079         * modules/unistr/u16-move-tests: New file.
37080         * tests/unistr/test-u16-move.c: New file.
37081
37082         Tests for module 'unistr/u8-move'.
37083         * modules/unistr/u8-move-tests: New file.
37084         * tests/unistr/test-u8-move.c: New file.
37085         * tests/unistr/test-move.h: New file.
37086
37087         Tests for module 'unistr/u32-cpy'.
37088         * modules/unistr/u32-cpy-tests: New file.
37089         * tests/unistr/test-u32-cpy.c: New file.
37090
37091         Tests for module 'unistr/u16-cpy'.
37092         * modules/unistr/u16-cpy-tests: New file.
37093         * tests/unistr/test-u16-cpy.c: New file.
37094
37095         Tests for module 'unistr/u8-cpy'.
37096         * modules/unistr/u8-cpy-tests: New file.
37097         * tests/unistr/test-u8-cpy.c: New file.
37098         * tests/unistr/test-cpy.h: New file.
37099
37100 2010-01-09  Bruno Haible  <bruno@clisp.org>
37101
37102         Tests for module 'unistr/u32-uctomb'.
37103         * modules/unistr/u32-uctomb-tests: New file.
37104         * tests/unistr/test-u32-uctomb.c: New file.
37105
37106         Tests for module 'unistr/u16-uctomb'.
37107         * modules/unistr/u16-uctomb-tests: New file.
37108         * tests/unistr/test-u16-uctomb.c: New file.
37109
37110         Tests for module 'unistr/u8-uctomb'.
37111         * modules/unistr/u8-uctomb-tests: New file.
37112         * tests/unistr/test-u8-uctomb.c: New file.
37113
37114         Tests for module 'unistr/u32-mbtoucr'.
37115         * modules/unistr/u32-mbtoucr-tests: New file.
37116         * tests/unistr/test-u32-mbtoucr.c: New file.
37117
37118         Tests for module 'unistr/u16-mbtoucr'.
37119         * modules/unistr/u16-mbtoucr-tests: New file.
37120         * tests/unistr/test-u16-mbtoucr.c: New file.
37121
37122         Tests for module 'unistr/u8-mbtoucr'.
37123         * modules/unistr/u8-mbtoucr-tests: New file.
37124         * tests/unistr/test-u8-mbtoucr.c: New file.
37125
37126         Tests for module 'unistr/u32-mbtouc'.
37127         * modules/unistr/u32-mbtouc-tests: New file.
37128         * tests/unistr/test-u32-mbtouc.c: New file.
37129
37130         Tests for module 'unistr/u16-mbtouc'.
37131         * modules/unistr/u16-mbtouc-tests: New file.
37132         * tests/unistr/test-u16-mbtouc.c: New file.
37133
37134         Tests for module 'unistr/u8-mbtouc'.
37135         * modules/unistr/u8-mbtouc-tests: New file.
37136         * tests/unistr/test-u8-mbtouc.c: New file.
37137
37138         Tests for module 'unistr/u32-mbtouc-unsafe'.
37139         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
37140         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
37141         * tests/unistr/test-u32-mbtouc.h: New file.
37142
37143         Tests for module 'unistr/u16-mbtouc-unsafe'.
37144         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
37145         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
37146         * tests/unistr/test-u16-mbtouc.h: New file.
37147
37148         Tests for module 'unistr/u8-mbtouc-unsafe'.
37149         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
37150         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
37151         * tests/unistr/test-u8-mbtouc.h: New file.
37152
37153         Tests for module 'unistr/u32-mblen'.
37154         * modules/unistr/u32-mblen-tests: New file.
37155         * tests/unistr/test-u32-mblen.c: New file.
37156
37157         Tests for module 'unistr/u16-mblen'.
37158         * modules/unistr/u16-mblen-tests: New file.
37159         * tests/unistr/test-u16-mblen.c: New file.
37160
37161         Tests for module 'unistr/u8-mblen'.
37162         * modules/unistr/u8-mblen-tests: New file.
37163         * tests/unistr/test-u8-mblen.c: New file.
37164
37165         Tests for module 'unistr/u32-to-u16'.
37166         * modules/unistr/u32-to-u16-tests: New file.
37167         * tests/unistr/test-u32-to-u16.c: New file.
37168
37169         Tests for module 'unistr/u32-to-u8'.
37170         * modules/unistr/u32-to-u8-tests: New file.
37171         * tests/unistr/test-u32-to-u8.c: New file.
37172
37173         Tests for module 'unistr/u16-to-u32'.
37174         * modules/unistr/u16-to-u32-tests: New file.
37175         * tests/unistr/test-u16-to-u32.c: New file.
37176
37177         Tests for module 'unistr/u16-to-u8'.
37178         * modules/unistr/u16-to-u8-tests: New file.
37179         * tests/unistr/test-u16-to-u8.c: New file.
37180
37181         Tests for module 'unistr/u8-to-u32'.
37182         * modules/unistr/u8-to-u32-tests: New file.
37183         * tests/unistr/test-u8-to-u32.c: New file.
37184
37185         Tests for module 'unistr/u8-to-u16'.
37186         * modules/unistr/u8-to-u16-tests: New file.
37187         * tests/unistr/test-u8-to-u16.c: New file.
37188
37189         Tests for module 'unistr/u32-check'.
37190         * modules/unistr/u32-check-tests: New file.
37191         * tests/unistr/test-u32-check.c: New file.
37192
37193         Tests for module 'unistr/u16-check'.
37194         * modules/unistr/u16-check-tests: New file.
37195         * tests/unistr/test-u16-check.c: New file.
37196
37197         Tests for module 'unistr/u8-check'.
37198         * modules/unistr/u8-check-tests: New file.
37199         * tests/unistr/test-u8-check.c: New file.
37200
37201         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
37202         (category_equals): New function.
37203         (main): Add more tests.
37204         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
37205
37206         * tests/unictype/test-bidi_byname.c (main): Add more tests.
37207
37208 2010-01-10  Bruno Haible  <bruno@clisp.org>
37209
37210         unistr/u*-strcoll: Try harder to distinguish different strings.
37211         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
37212         compare s1 and s2 to see if they are different.
37213
37214 2010-01-10  Bruno Haible  <bruno@clisp.org>
37215
37216         unistr/u*-stpncpy: Fix the return value.
37217         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
37218         description of the return value consistent with stpncpy in glibc.
37219         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
37220         written non-NUL unit.
37221
37222 2010-01-10  Bruno Haible  <bruno@clisp.org>
37223
37224         unistr/u*-next: Add missing dependencies.
37225         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
37226         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
37227         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
37228
37229 2010-01-10  Bruno Haible  <bruno@clisp.org>
37230
37231         unistr/u8-mbsnlen: Fix return value for incomplete character.
37232         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
37233         u8_mblen.
37234         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
37235         Remove unistr/u8-mblen.
37236         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
37237         u16_mblen.
37238         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
37239         Remove unistr/u16-mblen.
37240
37241 2010-01-10  Bruno Haible  <bruno@clisp.org>
37242
37243         wchar: Fix compilation error when <wchar.h> is used from coreutils.
37244         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
37245         Reported by Brian Gough <bjg@gnu.org> and
37246         Chris Clayton <chris2553@googlemail.com> via
37247         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
37248
37249 2010-01-09  Bruno Haible  <bruno@clisp.org>
37250
37251         unistr/u16-to-u32: Reject invalid input.
37252         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
37253         u16_mbtouc.
37254         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
37255         Remove unistr/u16-mbtouc.
37256
37257         unistr/u16-to-u8: Reject invalid input.
37258         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
37259         u16_mbtouc.
37260         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
37261         Remove unistr/u16-mbtouc.
37262
37263         unistr/u8-to-u32: Reject invalid input.
37264         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
37265         u8_mbtouc.
37266         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
37267         Remove unistr/u8-mbtouc.
37268
37269         unistr/u8-to-u16: Reject invalid input.
37270         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
37271         u8_mbtouc.
37272         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
37273         Remove unistr/u8-mbtouc.
37274
37275 2010-01-09  Bruno Haible  <bruno@clisp.org>
37276
37277         Tests for module 'getlogin'.
37278         * modules/getlogin-tests: New file.
37279         * tests/test-getlogin.c: New file.
37280
37281         New module 'getlogin'.
37282         * lib/unistd.in.h (getlogin): New declaration.
37283         * lib/getlogin.c: New file.
37284         * m4/getlogin.m4: New file.
37285         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
37286         HAVE_GETLOGIN.
37287         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
37288         HAVE_GETLOGIN.
37289         * modules/getlogin: New file.
37290         * doc/posix-functions/getlogin.texi: Mention the new module.
37291         Reported by John W. Eaton <jwe@gnu.org>.
37292
37293 2010-01-09  Bruno Haible  <bruno@clisp.org>
37294
37295         getlogin_r: Support for native Windows.
37296         * lib/getlogin_r.c: Include <windows.h>
37297         (getlogin_r): Implement for native Windows.
37298         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
37299         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
37300         via John W. Eaton <jwe@gnu.org>.
37301
37302 2010-01-09  Bruno Haible  <bruno@clisp.org>
37303
37304         getlogin_r: Small fixes.
37305         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
37306         succeeds.
37307         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
37308         before testing whether getlogin_r is declared. No need to set
37309         HAVE_DECL_GETLOGIN_R to 1.
37310         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
37311
37312 2010-01-09  Bruno Haible  <bruno@clisp.org>
37313
37314         * lib/unistd.in.h (getlogin_r): Add comment.
37315
37316 2010-01-09  Bruno Haible  <bruno@clisp.org>
37317
37318         Tests for module 'getlogin_r'.
37319         * modules/getlogin_r-tests: New file.
37320         * tests/test-getlogin_r.c: New file.
37321
37322 2010-01-09  Jim Meyering  <meyering@redhat.com>
37323
37324         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
37325         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
37326         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
37327
37328 2010-01-08  Simon Josefsson  <simon@josefsson.org>
37329
37330         * lib/dup2.c (rpl_dup2): Improve comment.
37331
37332 2010-01-08  Eric Blake  <ebb9@byu.net>
37333
37334         maint.mk: allow packages to add makefile @@ exceptions
37335         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
37336         (sc_makefile_check): Rename...
37337         (sc_makefile_at_at_check): ...to this, and use hook.
37338
37339         dup2: work around mingw bug
37340         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
37341         Reported by Simon Josefsson.
37342
37343 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
37344
37345         glob: Fix C++ compilation.
37346         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
37347         C++.
37348
37349 2010-01-07  Bruno Haible  <bruno@clisp.org>
37350
37351         Fix indentation of wctype.in.h, broken since 2007-01-06.
37352         * lib/wctype.in.h: Fix indentation of preprocessor directives.
37353
37354 2010-01-07  Bruno Haible  <bruno@clisp.org>
37355
37356         mbslen: Avoid collision with system function.
37357         * lib/string.in.h [MirBSD]: Include <wchar.h>.
37358         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
37359         * m4/mbslen.m4: New file.
37360         * modules/mbslen (Files): Add it.
37361         (configure.ac): Invoke gl_MBSLEN.
37362         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
37363         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
37364         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
37365         via Ian Beckwith <ianb@erislabs.net>.
37366
37367 2010-01-07  Bruno Haible  <bruno@clisp.org>
37368
37369         dirent: Document the last fix.
37370         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
37371
37372 2010-01-07  Bruno Haible  <bruno@clisp.org>
37373
37374         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
37375         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
37376         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
37377         va_list are defined.
37378         * doc/posix-headers/stdio.texi: Document the bug of missing types.
37379         Reported by Eric Blake.
37380
37381 2010-01-07  Bruno Haible  <bruno@clisp.org>
37382
37383         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
37384         * modules/xlist (Depends-on): Add 'list',
37385         * modules/xoset (Depends-on): Add 'oset'.
37386         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37387
37388 2010-01-07  Bruno Haible  <bruno@clisp.org>
37389
37390         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
37391         * doc/posix-functions/strncasecmp.texi: Likewise.
37392
37393 2010-01-07  Bruno Haible  <bruno@clisp.org>
37394
37395         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
37396
37397 2010-01-07  John W. Eaton  <jwe@octave.org>
37398
37399         wctype: allow C++ use
37400         * lib/wctype.in.h: Add extern "C" block for C++.
37401
37402 2010-01-06  Eric Blake  <ebb9@byu.net>
37403
37404         maint.mk: detect incorrect GFDL usage
37405         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
37406
37407 2010-01-06  Jim Meyering  <meyering@redhat.com>
37408         and Eric Blake  <ebb9@byu.net>
37409
37410         maint.mk: ignore multi-line copyright in NEWS
37411         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
37412
37413 2010-01-06  Eric Blake  <ebb9@byu.net>
37414
37415         select: add missing dependency
37416         * modules/select-tests (Depends-on): Move sockets dependency...
37417         * modules/select (Depends-on): ...here.
37418         Reported by Ian Beckwith.
37419
37420         doc: regenerate INSTALL
37421         * doc/INSTALL: Reflect recent autoconf update.
37422         * doc/INSTALL.ISO: Likewise.
37423         * doc/INSTALL.UTF-8: Likewise.
37424
37425         pread: fix compilation on glibc
37426         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
37427         Reported by Ralf Wildenhues.
37428
37429         dirent: fix test failure
37430         * lib/dirent.in.h (includes): Guarantee ino_t.
37431         Reported by Ralf Wildenhues.
37432
37433 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
37434
37435         linkat, renameat: avoid bad free
37436         * lib/at-func2.c (at_func2): Fix typo.
37437         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
37438
37439 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37440
37441         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
37442         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
37443         to avoid failure of symlink test later.
37444
37445 2010-01-06  Eric Blake  <ebb9@byu.net>
37446
37447         stdio, unistd: guarantee ssize_t
37448         * lib/unistd.in.h (includes): Ensure that types required by POSIX
37449         2008 are exposed when needed.
37450         * lib/stdio.in.h (includes): Likewise.
37451         Reported by Ralf Wildenhues.
37452
37453 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
37454
37455         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
37456         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
37457         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
37458
37459 2010-01-06  Jim Meyering  <meyering@redhat.com>
37460
37461         readtokens: this module *does* require xalloc.h
37462         It uses only functions that were omitted by the old syntax-check rule.
37463         * lib/readtokens.c: Include "xalloc.h" once again.
37464         * modules/readtokens (Depends-on): Add xalloc.
37465         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
37466
37467 2010-01-05  Eric Blake  <ebb9@byu.net>
37468
37469         maint: support 'make announcement' from a VPATH build
37470         * top/maint.mk (announcement): Look for correct NEWS file.
37471
37472 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
37473
37474         utimens (fdutimens): ignore a negative FD, per contract
37475         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
37476         when we have a valid file descriptor.  Otherwise, using a brand
37477         new glibc (with just-patched futimens that now fails with EBADF)
37478         would cause this function to fail with ENOSYS.
37479         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
37480         See also http://bugzilla.redhat.com/552320.
37481
37482 2010-01-05  Eric Blake  <ebb9@byu.net>
37483
37484         strcase: document what it provides
37485         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
37486         gnulib module.
37487         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
37488         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
37489
37490 2010-01-05  Jim Meyering  <meyering@redhat.com>
37491
37492         maint: remove useless inclusions of "xalloc.h"
37493         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
37494         * lib/readtokens.c: Likewise.
37495         * lib/same.c: Likewise.
37496         * modules/getloadavg (Depends-on): Remove xalloc.
37497         * modules/readtokens: Likewise.
37498         * modules/same: Likewise.
37499
37500         maint.mk: include 4 more function names in alloca.h-checking regexp
37501         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
37502         regexp.  Before, we would give a false-positive (saying alloca.h
37503         is included unnecessarily) when the only uses involved omitted symbols.
37504
37505         xalloc.h: use consistent formatting
37506         * lib/xalloc.h: Move declarations to start in the first column.
37507
37508 2010-01-05  Eric Blake  <ebb9@byu.net>
37509
37510         mkdir: avoid xalloc
37511         * lib/mkdir.c (includes): Drop unused header.
37512         Reported by John W. Eaton.
37513
37514 2010-01-04  Jim Meyering  <meyering@redhat.com>
37515
37516         nl_langinfo: avoid configure-time syntax error
37517         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
37518         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
37519         the empty string.  Don't let that provoke a shell syntax error.
37520
37521         regcomp, regexec, fnmatch: avoid array bounds read error
37522         * lib/regcomp.c (build_equiv_class): From glibc:
37523         Use only the low 24 bits of a findidx return value as an index
37524         into the weights array.  Patch by Ulrich Drepper:
37525         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
37526         * lib/regexec.c (check_node_accept_bytes): Likewise.
37527         * lib/fnmatch_loop.c (FCT): Likewise.
37528
37529         regcomp: skip collseq lookup when there are no rules
37530         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
37531         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
37532
37533         regcomp: recognize ill-formed { } expressions
37534         * lib/regcomp.c (parse_dup_op): From glibc:
37535         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
37536
37537         regcomp: fix typo in comment
37538         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
37539         s/satisfy/satisfies/.
37540
37541         regcomp: sync from glibc: remove dead store
37542         * lib/regcomp.c (duplicate_node_closure): Remove useless
37543         search_duplicated_node call and dead store.
37544
37545         regcomp: sync from glibc; always use nl_langinfo
37546         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
37547         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
37548         * modules/regex (Depends-on): Add nl_langinfo.
37549
37550 2010-01-04  Eric Blake  <ebb9@byu.net>
37551
37552         fdopendir: fix configure test
37553         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
37554
37555 2010-01-01  Bruno Haible  <bruno@clisp.org>
37556
37557         wchar: Remove unused configure check.
37558         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
37559
37560 2010-01-01  Eric Blake  <ebb9@byu.net>
37561
37562         headers: make check of system header explicit
37563         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
37564         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
37565         ourselves.
37566         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
37567         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
37568         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
37569         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
37570         internals.
37571         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
37572         missing.
37573         Suggested by Bruno Haible.
37574
37575 2010-01-01  Jim Meyering  <meyering@redhat.com>
37576
37577         ChangeLog: tweak to eliminate unnecessary copyright line
37578         * ChangeLog: Remove a copyright line that was mistakenly updated
37579         by today's update-copyright run.  Reported by Eric Blake.
37580
37581         test-update-copyright: don't let envvar setting cause test failure
37582         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
37583
37584 2010-01-01  Bruno Haible  <bruno@clisp.org>
37585
37586         localename: Avoid gcc warning.
37587         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
37588         function if it is not used.
37589
37590 2010-01-01  Jim Meyering  <meyering@redhat.com>
37591
37592         update nearly all FSF copyright year lists to include 2010
37593         Use the same procedure as for 2009, outlined in
37594         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
37595
37596         version-etc: set COPYRIGHT_YEAR to 2010
37597         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
37598
37599 2009-12-31  Eric Blake  <ebb9@byu.net>
37600
37601         doc: correct availability of cygwin 1.5.x getopt
37602         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
37603         variables.
37604         * doc/posix-functions/opterr.texi (opterr): Likewise.
37605         * doc/posix-functions/optind.texi (optind): Likewise.
37606         * doc/posix-functions/optopt.texi (optopt): Likewise.
37607         * doc/posix-functions/tzname.texi (tzname): Likewise.
37608
37609         openat: update maintainer
37610         * modules/openat (Maintainer): Add myself.
37611
37612         utimens: avoid shadowing warning
37613         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
37614         buffers into one, to avoid shadowing, as well as avoiding a
37615         redundant stat.
37616         Reported by Jim Meyering.
37617
37618         test-dup2: avoid compiler warning
37619         * tests/test-dup2.c (is_inheritable): Only define if used.
37620
37621 2010-01-01  Bruno Haible  <bruno@clisp.org>
37622
37623         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
37624         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
37625         defined, use wctomb instead of wcrtomb.
37626
37627 2010-01-01  Bruno Haible  <bruno@clisp.org>
37628
37629         iconv: Reject native Solaris iconv.
37630         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
37631         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
37632
37633 2009-12-31  Bruno Haible  <bruno@clisp.org>
37634
37635         * tests/test-signal.c (main): Remove test of 'SIG'.
37636
37637 2009-12-31  Bruno Haible  <bruno@clisp.org>
37638
37639         spawn: Fix incomplete fix.
37640         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
37641         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
37642         warnings for GNULIB_POSIXCHECK again.
37643         Reported by Eric Blake.
37644
37645 2009-12-31  Bruno Haible  <bruno@clisp.org>
37646
37647         Avoid namespace pollution on glibc systems.
37648         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
37649         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
37650         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
37651         glibc systems.
37652
37653 2009-12-31  Bruno Haible  <bruno@clisp.org>
37654
37655         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
37656         (gl_REPLACE_WCHAR_H): Turn into a no-op.
37657         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
37658         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
37659         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
37660         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
37661         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
37662
37663 2009-12-31  Bruno Haible  <bruno@clisp.org>
37664
37665         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
37666         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
37667         afterwards.
37668
37669 2009-12-31  Bruno Haible  <bruno@clisp.org>
37670
37671         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
37672         SYS_UTSNAME_H.
37673
37674 2009-12-31  Bruno Haible  <bruno@clisp.org>
37675
37676         spawn: Fix misapplied patch.
37677         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
37678         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
37679         warnings for GNULIB_POSIXCHECK.
37680
37681 2009-12-31  Bruno Haible  <bruno@clisp.org>
37682
37683         times: Update after sys_times changed.
37684         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
37685         * modules/times (Files): Add it.
37686         (configure.ac): Invoke gl_FUNC_TIMES.
37687
37688 2009-12-31  Bruno Haible  <bruno@clisp.org>
37689
37690         Use AC_C_INLINE where necessary.
37691         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
37692         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
37693         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
37694         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
37695         * m4/mbfile.m4 (gl_MBFILE): Likewise.
37696         * m4/mbiter.m4 (gl_MBITER): Likewise.
37697         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
37698         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
37699         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
37700         * modules/u64 (configure.ac): Likewise.
37701
37702 2009-12-31  Bruno Haible  <bruno@clisp.org>
37703
37704         Use AC_C_INLINE instead of module 'inline' where possible.
37705         * modules/inline (Description): Clarify purpose.
37706         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
37707         * modules/count-one-bits (Depends-on): Remove inline.
37708         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
37709         * modules/openat (Depends-on): Remove inline.
37710         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
37711         instead of depending on module 'inline'.
37712         * modules/filevercmp (Depends-on, configure.ac): Likewise.
37713         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
37714         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
37715         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
37716         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
37717         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
37718         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
37719         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
37720         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
37721         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
37722         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
37723         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
37724         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
37725         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
37726         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
37727         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
37728         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
37729         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
37730         Likewise.
37731         * modules/unictype/property-ascii-hex-digit (Depends-on,
37732         configure.ac): Likewise.
37733         * modules/unictype/property-bidi-arabic-digit (Depends-on,
37734         configure.ac): Likewise.
37735         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
37736         configure.ac): Likewise.
37737         * modules/unictype/property-bidi-block-separator (Depends-on,
37738         configure.ac): Likewise.
37739         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
37740         configure.ac): Likewise.
37741         * modules/unictype/property-bidi-common-separator (Depends-on,
37742         configure.ac): Likewise.
37743         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
37744         Likewise.
37745         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
37746         configure.ac): Likewise.
37747         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
37748         configure.ac): Likewise.
37749         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
37750         configure.ac): Likewise.
37751         * modules/unictype/property-bidi-european-digit (Depends-on,
37752         configure.ac): Likewise.
37753         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
37754         configure.ac): Likewise.
37755         * modules/unictype/property-bidi-left-to-right (Depends-on,
37756         configure.ac): Likewise.
37757         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
37758         configure.ac): Likewise.
37759         * modules/unictype/property-bidi-other-neutral (Depends-on,
37760         configure.ac): Likewise.
37761         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
37762         Likewise.
37763         * modules/unictype/property-bidi-segment-separator (Depends-on,
37764         configure.ac): Likewise.
37765         * modules/unictype/property-bidi-whitespace (Depends-on,
37766         configure.ac): Likewise.
37767         * modules/unictype/property-combining (Depends-on, configure.ac):
37768         Likewise.
37769         * modules/unictype/property-composite (Depends-on, configure.ac):
37770         Likewise.
37771         * modules/unictype/property-currency-symbol (Depends-on,
37772         configure.ac): Likewise.
37773         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
37774         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
37775         Likewise.
37776         * modules/unictype/property-default-ignorable-code-point (Depends-on,
37777         configure.ac): Likewise.
37778         * modules/unictype/property-deprecated (Depends-on, configure.ac):
37779         Likewise.
37780         * modules/unictype/property-diacritic (Depends-on, configure.ac):
37781         Likewise.
37782         * modules/unictype/property-extender (Depends-on, configure.ac):
37783         Likewise.
37784         * modules/unictype/property-format-control (Depends-on, configure.ac):
37785         Likewise.
37786         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
37787         Likewise.
37788         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
37789         Likewise.
37790         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
37791         Likewise.
37792         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
37793         Likewise.
37794         * modules/unictype/property-hyphen (Depends-on, configure.ac):
37795         Likewise.
37796         * modules/unictype/property-id-continue (Depends-on, configure.ac):
37797         Likewise.
37798         * modules/unictype/property-id-start (Depends-on, configure.ac):
37799         Likewise.
37800         * modules/unictype/property-ideographic (Depends-on, configure.ac):
37801         Likewise.
37802         * modules/unictype/property-ids-binary-operator (Depends-on,
37803         configure.ac): Likewise.
37804         * modules/unictype/property-ids-trinary-operator (Depends-on,
37805         configure.ac): Likewise.
37806         * modules/unictype/property-ignorable-control (Depends-on,
37807         configure.ac): Likewise.
37808         * modules/unictype/property-iso-control (Depends-on, configure.ac):
37809         Likewise.
37810         * modules/unictype/property-join-control (Depends-on, configure.ac):
37811         Likewise.
37812         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
37813         Likewise.
37814         * modules/unictype/property-line-separator (Depends-on, configure.ac):
37815         Likewise.
37816         * modules/unictype/property-logical-order-exception (Depends-on,
37817         configure.ac): Likewise.
37818         * modules/unictype/property-lowercase (Depends-on, configure.ac):
37819         Likewise.
37820         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
37821         * modules/unictype/property-non-break (Depends-on, configure.ac):
37822         Likewise.
37823         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
37824         Likewise.
37825         * modules/unictype/property-numeric (Depends-on, configure.ac):
37826         Likewise.
37827         * modules/unictype/property-other-alphabetic (Depends-on,
37828         configure.ac): Likewise.
37829         * modules/unictype/property-other-default-ignorable-code-point
37830         (Depends-on, configure.ac): Likewise.
37831         * modules/unictype/property-other-grapheme-extend (Depends-on,
37832         configure.ac): Likewise.
37833         * modules/unictype/property-other-id-continue (Depends-on,
37834         configure.ac): Likewise.
37835         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
37836         Likewise.
37837         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
37838         Likewise.
37839         * modules/unictype/property-other-math (Depends-on, configure.ac):
37840         Likewise.
37841         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
37842         Likewise.
37843         * modules/unictype/property-paired-punctuation (Depends-on,
37844         configure.ac): Likewise.
37845         * modules/unictype/property-paragraph-separator (Depends-on,
37846         configure.ac): Likewise.
37847         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
37848         Likewise.
37849         * modules/unictype/property-pattern-white-space (Depends-on,
37850         configure.ac): Likewise.
37851         * modules/unictype/property-private-use (Depends-on, configure.ac):
37852         Likewise.
37853         * modules/unictype/property-punctuation (Depends-on, configure.ac):
37854         Likewise.
37855         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
37856         Likewise.
37857         * modules/unictype/property-radical (Depends-on, configure.ac):
37858         Likewise.
37859         * modules/unictype/property-sentence-terminal (Depends-on,
37860         configure.ac): Likewise.
37861         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
37862         Likewise.
37863         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
37864         * modules/unictype/property-terminal-punctuation (Depends-on,
37865         configure.ac): Likewise.
37866         * modules/unictype/property-titlecase (Depends-on, configure.ac):
37867         Likewise.
37868         * modules/unictype/property-unassigned-code-value (Depends-on,
37869         configure.ac): Likewise.
37870         * modules/unictype/property-unified-ideograph (Depends-on,
37871         configure.ac): Likewise.
37872         * modules/unictype/property-uppercase (Depends-on, configure.ac):
37873         Likewise.
37874         * modules/unictype/property-variation-selector (Depends-on,
37875         configure.ac): Likewise.
37876         * modules/unictype/property-white-space (Depends-on, configure.ac):
37877         Likewise.
37878         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
37879         Likewise.
37880         * modules/unictype/property-xid-start (Depends-on, configure.ac):
37881         Likewise.
37882         * modules/unictype/property-zero-width (Depends-on, configure.ac):
37883         Likewise.
37884         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
37885         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
37886         Likewise.
37887
37888 2009-12-31  Bruno Haible  <bruno@clisp.org>
37889
37890         Remove unnecessary AC_C_INLINE invocation.
37891         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
37892         since 2009-08-21.
37893
37894 2009-12-31  Jim Meyering  <meyering@redhat.com>
37895
37896         maint.mk: don't require explicit gpg_key_ID in cfg.mk
37897         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
37898         With this change, we can all remove the gpg_key_ID = ... definition
37899         from our respective cfg.mk files.
37900
37901         maint.mk: create announcement template in ~/, not in /tmp
37902         * top/maint.mk (emit_upload_commands): Adjust.
37903         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
37904         Remove temporary file, .ci-msg.
37905
37906 2009-12-31  Eric Blake  <ebb9@byu.net>
37907
37908         link-warning: always build headers with link warnings
37909         * modules/arpa_inet (Makefile.am): Always build replacement
37910         header.
37911         * modules/ctype (Makefile.am): Likewise.
37912         * modules/dirent (Makefile.am): Likewise.
37913         * modules/inttypes (Makefile.am): Likewise.
37914         * modules/langinfo (Makefile.am): Likewise.
37915         * modules/locale (Makefile.am): Likewise.
37916         * modules/spawn (Makefile.am): Likewise.
37917         * modules/sys_file (Makefile.am): Likewise.
37918         * modules/sys_ioctl (Makefile.am): Likewise.
37919         * modules/sys_select (Makefile.am): Likewise.
37920         * modules/sys_socket (Makefile.am): Likewise.
37921         * modules/sys_times (Makefile.am): Likewise.
37922         * modules/sys_utsname (Makefile.am): Likewise.
37923         * modules/sys_wait (Makefile.am): Likewise.
37924         * modules/wchar (Makefile.am): Likewise.
37925         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
37926         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
37927         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
37928         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
37929         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
37930         Likewise.
37931         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
37932         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
37933         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
37934         Likewise.
37935         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
37936         Likewise.
37937         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
37938         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
37939         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
37940         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
37941         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
37942         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
37943         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
37944         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
37945         (gl_WCHAR_H_DEFAULTS): Likewise.
37946
37947 2009-12-31  Eric Blake  <ebb9@byu.net>
37948
37949         signal, spawn: use link warnings
37950         * lib/signal.in.h (sigset_t): Make unconditional.
37951         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
37952         (sigpending, sigprocmask, sigaction): Add link warnings.
37953         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
37954         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
37955         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
37956         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
37957         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
37958         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
37959         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
37960         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
37961         (posix_spawn_file_actions_destroy)
37962         (posix_spawn_file_actions_addopen)
37963         (posix_spawn_file_actions_addclose)
37964         (posix_spawn_file_actions_adddup2): Likewise.
37965         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
37966         * tests/test-signal.c (main): Enhance test.
37967
37968         spawn: improve wrapper support
37969         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
37970         (gl_SPAWN_H_DEFAULTS): New defaults.
37971         * modules/spawn (Makefile.am): Substitute them.
37972         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
37973         Only declare if missing or broken.
37974
37975         sys_times, sys_utsname: use include_next
37976         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
37977         header.
37978         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
37979         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
37980         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
37981         * modules/sys_times (Depends-on): Add include_next.
37982         (Makefile.am): Substitute additional values.
37983         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
37984         * lib/sys_times.in.h (includes): Include native header, if
37985         available.
37986         * lib/sys_utsname.in.h (includes): Likewise.
37987         * tests/test-sys_times.c (main): Enhance test.
37988
37989         fdutimensat: revert prior patch
37990         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
37991         utimens.h.
37992         Reported by Bruno Haible.
37993
37994 2009-12-30  Eric Blake  <ebb9@byu.net>
37995
37996         sys_wait: drop link-warning dependency
37997         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
37998         link-warning efforts.
37999         * lib/sys_wait.in.h: Likewise.
38000
38001         fdutimensat: remove bogus dependency
38002         * modules/fdutimensat (Depends-on): Drop inline.
38003
38004         unistd: fix typo
38005         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
38006
38007 2009-12-30  Bruno Haible  <bruno@clisp.org>
38008
38009         Fix compilation error with Solaris cc.
38010         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
38011         * lib/unicase/u16-is-invariant.c: Likewise.
38012         * lib/unicase/u32-is-invariant.c: Likewise.
38013         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
38014
38015 2009-12-30  Bruno Haible  <bruno@clisp.org>
38016
38017         Fix test crash.
38018         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
38019         locales.
38020         Reported by Simon Josefsson <simon@josefsson.org>.
38021
38022 2009-12-30  Bruno Haible  <bruno@clisp.org>
38023
38024         Fix compilation error on most platforms.
38025         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
38026         Reported by Simon Josefsson <simon@josefsson.org>
38027         and Nelson H. F. Beebe <beebe@math.utah.edu>.
38028
38029 2009-12-30  Eric Blake  <ebb9@byu.net>
38030
38031         futimens, utimensat: work around ntfs-3g bug
38032         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
38033         a ctime bug is present, and expand workaround to cover ntfs-3g.
38034         * lib/utimens.c (fdutimens, lutimens): Likewise.
38035         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
38036         (validate_timespec): Adjust return value.
38037         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
38038         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
38039         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
38040
38041 2009-12-29  Eric Blake  <ebb9@byu.net>
38042
38043         link-warning: make usage consistent
38044         * modules/ctype (Depends-on): Add link-warning.
38045         (Makefile.am): Update rules accordingly.
38046         * modules/langinfo (Depends-on, Makefile.am): Likewise.
38047         * modules/locale (Depends-on, Makefile.am): Likewise.
38048         * modules/sys_file (Makefile.am): Likewise.
38049         * modules/getopt-posix (Makefile.am): Delete unused link warning
38050         efforts.
38051         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
38052         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
38053         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
38054         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
38055
38056         stdio: remove unused variables
38057         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
38058         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
38059         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
38060
38061         tests: test more substitute headers
38062         * modules/ctype-tests: New file.
38063         * modules/dirent-tests: Likewise.
38064         * modules/spawn-tests: Likewise.
38065         * modules/sys_file-tests: Likewise.
38066         * modules/sys_ioctl-tests: Likewise.
38067         * modules/sys_wait-tests: Likewise.
38068         * tests/test-ctype.c: Likewise.
38069         * tests/test-dirent.c: Likewise.
38070         * tests/test-spawn.c: Likewise.
38071         * tests/test-sys_file.c: Likewise.
38072         * tests/test-sys_ioctl.c: Likewise.
38073         * tests/test-sys_wait.c: Likewise.
38074         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
38075         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
38076         whether or not flock is in use.
38077
38078         tests: remove License section from module
38079         * modules/arpa_inet-tests: Remove unneeded section.
38080         * modules/byteswap-tests: Likewise.
38081         * modules/ceilf-tests: Likewise.
38082         * modules/ceill-tests: Likewise.
38083         * modules/crypto/des-tests: Likewise.
38084         * modules/crypto/gc-arcfour-tests: Likewise.
38085         * modules/crypto/gc-arctwo-tests: Likewise.
38086         * modules/crypto/gc-des-tests: Likewise.
38087         * modules/crypto/gc-hmac-md5-tests: Likewise.
38088         * modules/crypto/gc-hmac-sha1-tests: Likewise.
38089         * modules/crypto/gc-md2-tests: Likewise.
38090         * modules/crypto/gc-md4-tests: Likewise.
38091         * modules/crypto/gc-md5-tests: Likewise.
38092         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
38093         * modules/crypto/gc-rijndael-tests: Likewise.
38094         * modules/crypto/gc-sha1-tests: Likewise.
38095         * modules/crypto/gc-tests: Likewise.
38096         * modules/crypto/md2-tests: Likewise.
38097         * modules/crypto/md4-tests: Likewise.
38098         * modules/fcntl-h-tests: Likewise.
38099         * modules/floorf-tests: Likewise.
38100         * modules/floorl-tests: Likewise.
38101         * modules/frexp-nolibm-tests: Likewise.
38102         * modules/frexp-tests: Likewise.
38103         * modules/frexpl-nolibm-tests: Likewise.
38104         * modules/frexpl-tests: Likewise.
38105         * modules/getaddrinfo-tests: Likewise.
38106         * modules/inttypes-tests: Likewise.
38107         * modules/isfinite-tests: Likewise.
38108         * modules/isinf-tests: Likewise.
38109         * modules/ldexpl-tests: Likewise.
38110         * modules/locale-tests: Likewise.
38111         * modules/math-tests: Likewise.
38112         * modules/netdb-tests: Likewise.
38113         * modules/netinet_in-tests: Likewise.
38114         * modules/printf-frexp-tests: Likewise.
38115         * modules/printf-frexpl-tests: Likewise.
38116         * modules/priv-set-tests: Likewise.
38117         * modules/random_r-tests: Likewise.
38118         * modules/round-tests: Likewise.
38119         * modules/roundf-tests: Likewise.
38120         * modules/roundl-tests: Likewise.
38121         * modules/search-tests: Likewise.
38122         * modules/select-tests: Likewise.
38123         * modules/signal-tests: Likewise.
38124         * modules/stdbool-tests: Likewise.
38125         * modules/stddef-tests: Likewise.
38126         * modules/stdint-tests: Likewise.
38127         * modules/stdio-tests: Likewise.
38128         * modules/stdlib-tests: Likewise.
38129         * modules/string-tests: Likewise.
38130         * modules/strings-tests: Likewise.
38131         * modules/sys_select-tests: Likewise.
38132         * modules/sys_socket-tests: Likewise.
38133         * modules/sys_stat-tests: Likewise.
38134         * modules/sys_time-tests: Likewise.
38135         * modules/sys_utsname-tests: Likewise.
38136         * modules/sysexits-tests: Likewise.
38137         * modules/time-tests: Likewise.
38138         * modules/trunc-tests: Likewise.
38139         * modules/truncf-tests: Likewise.
38140         * modules/truncl-tests: Likewise.
38141         * modules/tsearch-tests: Likewise.
38142         * modules/unistd-tests: Likewise.
38143         * modules/wchar-tests: Likewise.
38144         * modules/wctype-tests: Likewise.
38145
38146         tests: fix license on several tests
38147         * tests/test-des.c: Update to GPLv3+.
38148         * tests/test-flock.c: Likewise.
38149         * tests/test-fsync.c: Likewise.
38150         * tests/test-futimens.h: Likewise.
38151         * tests/test-gc-arcfour.c: Likewise.
38152         * tests/test-gc-arctwo.c: Likewise.
38153         * tests/test-gc-des.c: Likewise.
38154         * tests/test-gc-hmac-md5.c: Likewise.
38155         * tests/test-gc-hmac-sha1.c: Likewise.
38156         * tests/test-gc-md2.c: Likewise.
38157         * tests/test-gc-md4.c: Likewise.
38158         * tests/test-gc-md5.c: Likewise.
38159         * tests/test-gc-pbkdf2-sha1.c: Likewise.
38160         * tests/test-gc-rijndael.c: Likewise.
38161         * tests/test-gc-sha1.c: Likewise.
38162         * tests/test-gc.c: Likewise.
38163         * tests/test-getcwd.c: Likewise.
38164         * tests/test-link.c: Likewise.
38165         * tests/test-link.h: Likewise.
38166         * tests/test-lutimens.h: Likewise.
38167         * tests/test-md2.c: Likewise.
38168         * tests/test-md4.c: Likewise.
38169         * tests/test-mkdir.h: Likewise.
38170         * tests/test-rename.c: Likewise.
38171         * tests/test-rename.h: Likewise.
38172         * tests/test-safe-alloc.c: Likewise.
38173         * tests/test-utimens-common.h: Likewise.
38174         * tests/test-utimens.h: Likewise.
38175
38176         maint: sync license texts
38177         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
38178         * doc/gpl-3.0.texi: Revert copyright year update.
38179         * doc/lgpl-3.0.texi: Likewise.
38180
38181 2009-12-29  Jim Meyering  <meyering@redhat.com>
38182
38183         update nearly all FSF copyright year lists to include 2009
38184         The files named by the following are exempted:
38185             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
38186               test -f "$dst" && { echo "$dst"; continue; }
38187               test -d "$dst" || continue
38188               echo "$dst"/$(basename "$src")
38189             done > exempt
38190             git ls-files tests/unictype >> exempt
38191         In the remaining files, convert to all-interval notation if
38192         - there is already at least one year interval like 2000-2003
38193         - the file is maintained by me
38194         - the file is in lib/uni*/, where that style already prevails
38195         Otherwise, use update-copyright's default.
38196
38197 2009-12-29  Simon Josefsson  <simon@josefsson.org>
38198         and Eric Blake  <ebb9@byu.net>
38199
38200         tests: don't require debug system() to pass
38201         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
38202         * tests/test-rmdir.h (test_rmdir_func): Likewise.
38203         * tests/test-unlink.h (test_unlink_func): Likewise.
38204         * tests/test-fstatat.c (main): ...into callers.
38205         * tests/test-lstat.c (main): Likewise.
38206         * tests/test-rmdir.c (main): Likewise.
38207         * tests/test-unlink.c (main): Likewise.
38208         * tests/test-unlinkat.c (main): Likewise.
38209         * tests/test-areadlink-with-size.c (main): Don't require a
38210         debug-only system call to pass, aiding cross-testing to mingw.
38211         * tests/test-areadlink.c (main): Likewise.
38212         * tests/test-areadlinkat-with-size.c (main): Likewise.
38213         * tests/test-areadlinkat.c (main): Likewise.
38214         * tests/test-canonicalize-lgpl.c (main): Likewise.
38215         * tests/test-canonicalize.c (main): Likewise.
38216         * tests/test-chown.c (main): Likewise.
38217         * tests/test-fchownat.c (main): Likewise.
38218         * tests/test-lchown.c (main): Likewise.
38219         * tests/test-fdutimensat.c (main): Likewise.
38220         * tests/test-futimens.c (main): Likewise.
38221         * tests/test-link.c (main): Likewise.
38222         * tests/test-linkat.c (main): Likewise.
38223         * tests/test-mkdir.c (main): Likewise.
38224         * tests/test-mkdirat.c (main): Likewise.
38225         * tests/test-mkfifo.c (main): Likewise.
38226         * tests/test-mkfifoat.c (main): Likewise.
38227         * tests/test-mknod.c (main): Likewise.
38228         * tests/test-readlink.c (main): Likewise.
38229         * tests/test-remove.c (main): Likewise.
38230         * tests/test-rename.c (main): Likewise.
38231         * tests/test-renameat.c (main): Likewise.
38232         * tests/test-symlink.c (main): Likewise.
38233         * tests/test-symlinkat.c (main): Likewise.
38234         * tests/test-utimens.c (main): Likewise.
38235         * tests/test-utimensat.c (main): Likewise.
38236
38237 2009-12-29  Simon Josefsson  <simon@josefsson.org>
38238
38239         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
38240         on $(UNUSED_PARAMETER_H) to avoid build failure.
38241
38242 2009-12-28  Jim Meyering  <meyering@redhat.com>
38243
38244         update-copyright: you may specify a max. line length other than 72
38245         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
38246
38247         maint: use consistent FSF copyright line syntax
38248         * lib/posixtm.c: Add missing comma in FSF copyright line.
38249         * lib/posixtm.h: Likewise.
38250         * lib/getugroups.c: Add missing ", Inc.".
38251
38252         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
38253         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
38254         FSF copyright line.  Remove trailing blanks.
38255
38256 2009-12-28  Eric Blake  <ebb9@byu.net>
38257
38258         test-dup2: reduce dependencies
38259         * modules/cloexec (Configure.ac): Set witness.
38260         * modules/dup2-tests (Depends-on): Drop cloexec.
38261         * tests/test-dup2.c (main): Skip portion of test if cloexec module
38262         not present.
38263         Suggested by Bruno Haible.
38264
38265 2009-12-26  Bruno Haible  <bruno@clisp.org>
38266
38267         Remove an unneeded dependency.
38268         * modules/fseterr (Depends-on): Remove dup2.
38269
38270 2009-12-26  Eric Blake  <ebb9@byu.net>
38271
38272         tests: use macros.h in more places
38273         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
38274         (ASSERT_STREAM): Provide default of stderr.
38275         * tests/test-dirent-safer.c: Include macros.h, using alternate
38276         stream for assertions.
38277         * tests/test-dup-safer.c: Likewise.
38278         * tests/test-freopen-safer.c: Likewise.
38279         * tests/test-getopt.c: Likewise.
38280         * tests/test-openat-safer.c: Likewise.
38281         * tests/test-pipe.c: Likewise.
38282         * tests/test-popen-safer.c: Likewise.
38283         * modules/dirent-safer-tests (Files): Include macros.h.
38284         * modules/unistd-safer-tests (Files): Likewise.
38285         * modules/freopen-safer-tests (Files): Likewise.
38286         * modules/getopt-posix-tests (Files): Likewise.
38287         * modules/openat-safer-tests (Files): Likewise.
38288         * modules/pipe-tests (Files): Likewise.
38289
38290 2009-12-26  Bruno Haible  <bruno@clisp.org>
38291
38292         javacomp: Portability fix.
38293         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
38294         that it also works on Solaris.
38295
38296 2009-12-26  Bruno Haible  <bruno@clisp.org>
38297
38298         localename: Fix storage allocation of gl_locale_name_thread's result.
38299         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
38300         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
38301         all platforms that have 'uselocale'.
38302         (gl_locale_name_thread_unsafe): New function, extracted from
38303         gl_locale_name_thread.
38304         (gl_locale_name_thread): Call struniq on all platforms that have
38305         'uselocale'.
38306         * tests/test-localename.c (test_locale_name_thread): Check that the
38307         resulting strings are permanently allocated.
38308         * modules/localename-tests (Depends-on): Add strdup.
38309
38310 2009-12-26  Bruno Haible  <bruno@clisp.org>
38311
38312         * tests/test-localename.c (categories): Fill in the strings.
38313
38314 2009-12-26  Jim Meyering  <meyering@redhat.com>
38315
38316         isdir: complete the removal of m4/isdir.m4
38317         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
38318
38319         isdir: clean up, since at least grep still uses it
38320         * lib/isdir.c: Include "isdir.h".
38321         (S_ISDIR): Remove now-unneeded definition.
38322         * modules/isdir (Files): Add lib/isdir.h.
38323         * lib/isdir.h: New file, with declaration.
38324         * m4/isdir.m4: Remove file -- unneeded.
38325
38326 2009-12-25  Bruno Haible  <bruno@clisp.org>
38327
38328         selinux-h: Make generated .h files standalone.
38329         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
38330         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
38331         * lib/se-selinux.in.h: Likewise.
38332         * modules/selinux-h (Depends-on): Add unused-parameter.
38333         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
38334         selinux/selinux.h and selinux/context.h.
38335         Suggested by Eric Blake.
38336
38337 2009-12-25  Bruno Haible  <bruno@clisp.org>
38338
38339         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
38340         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
38341         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
38342         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
38343         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
38344
38345 2009-12-24  Bruno Haible  <bruno@clisp.org>
38346
38347         openat: Fix warning.
38348         * lib/openat-proc.c: Include <unistd.h>.
38349
38350 2009-12-24  Bruno Haible  <bruno@clisp.org>
38351
38352         New module 'unused-parameter'.
38353         * build-aux/unused-parameter.h: New file, extracted from earlier
38354         gnulib-common.m4.
38355         * modules/unused-parameter: New file.
38356         * lib/unistr.h: Include unused-parameter.h.
38357         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
38358         _GL_UNUSED.
38359         * modules/unistr/base (Depends-on): Add unused-parameter.
38360
38361 2009-12-24  Bruno Haible  <bruno@clisp.org>
38362
38363         Add missing dependencies to 'extensions' module.
38364         * m4/extensions.m4: Add comment.
38365         * modules/accept4 (Depends-on): Add extensions.
38366         * modules/dup3 (Depends-on): Likewise.
38367         * modules/fcntl (Depends-on): Likewise.
38368         * modules/futimens (Depends-on): Likewise.
38369         * modules/mknod (Depends-on): Likewise.
38370         * modules/pipe2 (Depends-on): Likewise.
38371         * modules/stat-time (Depends-on): Likewise.
38372         * modules/strcasestr-simple (Depends-on): Likewise.
38373         * modules/strsignal (Depends-on): Likewise.
38374         * modules/utimensat (Depends-on): Likewise.
38375         * modules/localcharset (Depends-on): Likewise. Needed because of
38376         gl_FCNTL_O_FLAGS.
38377         * modules/wcrtomb (Depends-on): Likewise. Needed because of
38378         AC_TYPE_MBSTATE_T.
38379         * modules/wcsnrtombs (Depends-on): Likewise.
38380         * modules/wcsrtombs (Depends-on): Likewise.
38381
38382 2009-12-24  Bruno Haible  <bruno@clisp.org>
38383
38384         binary-io: Avoid gcc warning due to SET_BINARY.
38385         * lib/binary-io.h (SET_BINARY): Cast the result to void.
38386         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
38387
38388 2009-12-24  Bruno Haible  <bruno@clisp.org>
38389
38390         Avoid future namespace pollution on glibc systems.
38391         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
38392         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
38393         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
38394         glibc systems.
38395
38396 2009-12-24  Bruno Haible  <bruno@clisp.org>
38397
38398         Refactor common macros used in tests.
38399         * tests/macros.h: New file.
38400         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
38401         and/or <stdlib.h>, if appropriate.
38402         (ASSERT, SIZEOF): Remove macros.
38403         * tests/test-areadlink-with-size.c: Likewise.
38404         * tests/test-areadlinkat.c: Likewise.
38405         * tests/test-areadlinkat-with-size.c: Likewise.
38406         * tests/test-argmatch.c: Likewise.
38407         * tests/test-argv-iter.c: Likewise.
38408         * tests/test-array-mergesort.c: Likewise.
38409         * tests/test-array_list.c: Likewise.
38410         * tests/test-array_oset.c: Likewise.
38411         * tests/test-avltree_list.c: Likewise.
38412         * tests/test-avltree_oset.c: Likewise.
38413         * tests/test-avltreehash_list.c: Likewise.
38414         * tests/test-base64.c: Likewise.
38415         * tests/test-binary-io.c: Likewise.
38416         * tests/test-bitrotate.c: Likewise.
38417         * tests/test-btowc.c: Likewise.
38418         * tests/test-byteswap.c: Likewise.
38419         * tests/test-c-ctype.c: Likewise.
38420         * tests/test-c-stack.c: Likewise.
38421         * tests/test-c-strcasecmp.c: Likewise.
38422         * tests/test-c-strcasestr.c: Likewise.
38423         * tests/test-c-strncasecmp.c: Likewise.
38424         * tests/test-c-strstr.c: Likewise.
38425         * tests/test-canonicalize-lgpl.c: Likewise.
38426         * tests/test-canonicalize.c: Likewise.
38427         * tests/test-carray_list.c: Likewise.
38428         * tests/test-ceilf1.c: Likewise.
38429         * tests/test-ceilf2.c: Likewise.
38430         * tests/test-ceill.c: Likewise.
38431         * tests/test-chown.c: Likewise.
38432         * tests/test-cloexec.c: Likewise.
38433         * tests/test-copy-acl.c: Likewise.
38434         * tests/test-copy-file.c: Likewise.
38435         * tests/test-count-one-bits.c: Likewise.
38436         * tests/test-dprintf-posix.c: Likewise.
38437         * tests/test-dup2.c: Likewise.
38438         * tests/test-dup3.c: Likewise.
38439         * tests/test-duplocale.c: Likewise.
38440         * tests/test-fbufmode.c: Likewise.
38441         * tests/test-fchdir.c: Likewise.
38442         * tests/test-fchownat.c: Likewise.
38443         * tests/test-fcntl-safer.c: Likewise.
38444         * tests/test-fcntl.c: Likewise.
38445         * tests/test-fdopendir.c: Likewise.
38446         * tests/test-fdutimensat.c: Likewise.
38447         * tests/test-fflush2.c: Likewise.
38448         * tests/test-file-has-acl.c: Likewise.
38449         * tests/test-filevercmp.c: Likewise.
38450         * tests/test-flock.c: Likewise.
38451         * tests/test-floorf1.c: Likewise.
38452         * tests/test-floorf2.c: Likewise.
38453         * tests/test-floorl.c: Likewise.
38454         * tests/test-fnmatch.c: Likewise.
38455         * tests/test-fopen.h: Likewise.
38456         * tests/test-fpending.c: Likewise.
38457         * tests/test-fprintf-posix.c: Likewise.
38458         * tests/test-fpurge.c: Likewise.
38459         * tests/test-freadable.c: Likewise.
38460         * tests/test-freadahead.c: Likewise.
38461         * tests/test-freading.c: Likewise.
38462         * tests/test-freadptr.c: Likewise.
38463         * tests/test-freadptr2.c: Likewise.
38464         * tests/test-freadseek.c: Likewise.
38465         * tests/test-freopen.c: Likewise.
38466         * tests/test-frexp.c: Likewise.
38467         * tests/test-frexpl.c: Likewise.
38468         * tests/test-fseek.c: Likewise.
38469         * tests/test-fseeko.c: Likewise.
38470         * tests/test-fstatat.c: Likewise.
38471         * tests/test-fstrcmp.c: Likewise.
38472         * tests/test-fsync.c: Likewise.
38473         * tests/test-ftell.c: Likewise.
38474         * tests/test-ftello.c: Likewise.
38475         * tests/test-func.c: Likewise.
38476         * tests/test-futimens.c: Likewise.
38477         * tests/test-fwritable.c: Likewise.
38478         * tests/test-fwriting.c: Likewise.
38479         * tests/test-getcwd.c: Likewise.
38480         * tests/test-getdate.c: Likewise.
38481         * tests/test-getdelim.c: Likewise.
38482         * tests/test-getdtablesize.c: Likewise.
38483         * tests/test-getgroups.c: Likewise.
38484         * tests/test-getline.c: Likewise.
38485         * tests/test-getndelim2.c: Likewise.
38486         * tests/test-glob.c: Likewise.
38487         * tests/test-hash.c: Likewise.
38488         * tests/test-i-ring.c: Likewise.
38489         * tests/test-iconv-utf.c: Likewise.
38490         * tests/test-iconv.c: Likewise.
38491         * tests/test-idpriv-drop.c: Likewise.
38492         * tests/test-idpriv-droptemp.c: Likewise.
38493         * tests/test-inet_ntop.c: Likewise.
38494         * tests/test-inet_pton.c: Likewise.
38495         * tests/test-isblank.c: Likewise.
38496         * tests/test-isfinite.c: Likewise.
38497         * tests/test-isinf.c: Likewise.
38498         * tests/test-isnan.c: Likewise.
38499         * tests/test-isnand.h: Likewise.
38500         * tests/test-isnanf.h: Likewise.
38501         * tests/test-isnanl.h: Likewise.
38502         * tests/test-lchown.c: Likewise.
38503         * tests/test-ldexpl.c: Likewise.
38504         * tests/test-link.c: Likewise.
38505         * tests/test-linkat.c: Likewise.
38506         * tests/test-linked_list.c: Likewise.
38507         * tests/test-linkedhash_list.c: Likewise.
38508         * tests/test-localename.c: Likewise.
38509         * tests/test-lseek.c: Likewise.
38510         * tests/test-lstat.c: Likewise.
38511         * tests/test-mbmemcasecmp.c: Likewise.
38512         * tests/test-mbmemcasecoll.c: Likewise.
38513         * tests/test-mbrtowc.c: Likewise.
38514         * tests/test-mbscasecmp.c: Likewise.
38515         * tests/test-mbscasestr1.c: Likewise.
38516         * tests/test-mbscasestr2.c: Likewise.
38517         * tests/test-mbscasestr3.c: Likewise.
38518         * tests/test-mbscasestr4.c: Likewise.
38519         * tests/test-mbschr.c: Likewise.
38520         * tests/test-mbscspn.c: Likewise.
38521         * tests/test-mbsinit.c: Likewise.
38522         * tests/test-mbsncasecmp.c: Likewise.
38523         * tests/test-mbsnrtowcs.c: Likewise.
38524         * tests/test-mbspbrk.c: Likewise.
38525         * tests/test-mbspcasecmp.c: Likewise.
38526         * tests/test-mbsrchr.c: Likewise.
38527         * tests/test-mbsrtowcs.c: Likewise.
38528         * tests/test-mbsspn.c: Likewise.
38529         * tests/test-mbsstr1.c: Likewise.
38530         * tests/test-mbsstr2.c: Likewise.
38531         * tests/test-mbsstr3.c: Likewise.
38532         * tests/test-memchr.c: Likewise.
38533         * tests/test-memchr2.c: Likewise.
38534         * tests/test-memcmp.c: Likewise.
38535         * tests/test-memmem.c: Likewise.
38536         * tests/test-memrchr.c: Likewise.
38537         * tests/test-mkdir.c: Likewise.
38538         * tests/test-mkdirat.c: Likewise.
38539         * tests/test-mkfifo.c: Likewise.
38540         * tests/test-mkfifoat.c: Likewise.
38541         * tests/test-mknod.c: Likewise.
38542         * tests/test-nanosleep.c: Likewise.
38543         * tests/test-nl_langinfo.c: Likewise.
38544         * tests/test-obstack-printf.c: Likewise.
38545         * tests/test-open.c: Likewise.
38546         * tests/test-openat.c: Likewise.
38547         * tests/test-pipe-filter-gi1.c: Likewise.
38548         * tests/test-pipe-filter-gi2-main.c: Likewise.
38549         * tests/test-pipe-filter-ii1.c: Likewise.
38550         * tests/test-pipe-filter-ii2-main.c: Likewise.
38551         * tests/test-pipe2.c: Likewise.
38552         * tests/test-popen.h: Likewise.
38553         * tests/test-posixtm.c: Likewise.
38554         * tests/test-pread.c: Likewise.
38555         * tests/test-printf-frexp.c: Likewise.
38556         * tests/test-printf-frexpl.c: Likewise.
38557         * tests/test-printf-posix.c: Likewise.
38558         * tests/test-priv-set.c: Likewise.
38559         * tests/test-quotearg.c: Likewise.
38560         * tests/test-random_r.c: Likewise.
38561         * tests/test-rawmemchr.c: Likewise.
38562         * tests/test-rbtree_list.c: Likewise.
38563         * tests/test-rbtree_oset.c: Likewise.
38564         * tests/test-rbtreehash_list.c: Likewise.
38565         * tests/test-readlink.c: Likewise.
38566         * tests/test-remove.c: Likewise.
38567         * tests/test-rename.c: Likewise.
38568         * tests/test-renameat.c: Likewise.
38569         * tests/test-rmdir.c: Likewise.
38570         * tests/test-round1.c: Likewise.
38571         * tests/test-roundf1.c: Likewise.
38572         * tests/test-roundl.c: Likewise.
38573         * tests/test-safe-alloc.c: Likewise.
38574         * tests/test-sameacls.c: Likewise.
38575         * tests/test-set-mode-acl.c: Likewise.
38576         * tests/test-setenv.c: Likewise.
38577         * tests/test-sigaction.c: Likewise.
38578         * tests/test-signbit.c: Likewise.
38579         * tests/test-sleep.c: Likewise.
38580         * tests/test-snprintf-posix.c: Likewise.
38581         * tests/test-snprintf.c: Likewise.
38582         * tests/test-sprintf-posix.c: Likewise.
38583         * tests/test-stat-time.c: Likewise.
38584         * tests/test-stat.c: Likewise.
38585         * tests/test-strcasestr.c: Likewise.
38586         * tests/test-strchrnul.c: Likewise.
38587         * tests/test-strerror.c: Likewise.
38588         * tests/test-striconv.c: Likewise.
38589         * tests/test-striconveh.c: Likewise.
38590         * tests/test-striconveha.c: Likewise.
38591         * tests/test-strsignal.c: Likewise.
38592         * tests/test-strstr.c: Likewise.
38593         * tests/test-strtod.c: Likewise.
38594         * tests/test-strverscmp.c: Likewise.
38595         * tests/test-symlink.c: Likewise.
38596         * tests/test-symlinkat.c: Likewise.
38597         * tests/test-trunc1.c: Likewise.
38598         * tests/test-trunc2.c: Likewise.
38599         * tests/test-truncf1.c: Likewise.
38600         * tests/test-truncf2.c: Likewise.
38601         * tests/test-truncl.c: Likewise.
38602         * tests/test-uname.c: Likewise.
38603         * tests/test-unlink.c: Likewise.
38604         * tests/test-unlinkat.c: Likewise.
38605         * tests/test-unsetenv.c: Likewise.
38606         * tests/test-usleep.c: Likewise.
38607         * tests/test-utimens.c: Likewise.
38608         * tests/test-utimensat.c: Likewise.
38609         * tests/test-vasnprintf-posix.c: Likewise.
38610         * tests/test-vasnprintf-posix2.c: Likewise.
38611         * tests/test-vasnprintf.c: Likewise.
38612         * tests/test-vasprintf-posix.c: Likewise.
38613         * tests/test-vasprintf.c: Likewise.
38614         * tests/test-vdprintf-posix.c: Likewise.
38615         * tests/test-vfprintf-posix.c: Likewise.
38616         * tests/test-vprintf-posix.c: Likewise.
38617         * tests/test-vsnprintf-posix.c: Likewise.
38618         * tests/test-vsnprintf.c: Likewise.
38619         * tests/test-vsprintf-posix.c: Likewise.
38620         * tests/test-wcrtomb.c: Likewise.
38621         * tests/test-wcsnrtombs.c: Likewise.
38622         * tests/test-wcsrtombs.c: Likewise.
38623         * tests/test-wctype.c: Likewise.
38624         * tests/test-wcwidth.c: Likewise.
38625         * tests/test-xfprintf-posix.c: Likewise.
38626         * tests/test-xmemdup0.c: Likewise.
38627         * tests/test-xprintf-posix.c: Likewise.
38628         * tests/test-xvasprintf.c: Likewise.
38629         * tests/unicase/test-locale-language.c: Likewise.
38630         * tests/unicase/test-mapping-part1.h: Likewise.
38631         * tests/unicase/test-predicate-part1.h: Likewise.
38632         * tests/unicase/test-u8-casecmp.c: Likewise.
38633         * tests/unicase/test-u8-casecoll.c: Likewise.
38634         * tests/unicase/test-u8-casefold.c: Likewise.
38635         * tests/unicase/test-u8-is-cased.c: Likewise.
38636         * tests/unicase/test-u8-is-casefolded.c: Likewise.
38637         * tests/unicase/test-u8-is-lowercase.c: Likewise.
38638         * tests/unicase/test-u8-is-titlecase.c: Likewise.
38639         * tests/unicase/test-u8-is-uppercase.c: Likewise.
38640         * tests/unicase/test-u8-tolower.c: Likewise.
38641         * tests/unicase/test-u8-totitle.c: Likewise.
38642         * tests/unicase/test-u8-toupper.c: Likewise.
38643         * tests/unicase/test-u16-casecmp.c: Likewise.
38644         * tests/unicase/test-u16-casecoll.c: Likewise.
38645         * tests/unicase/test-u16-casefold.c: Likewise.
38646         * tests/unicase/test-u16-is-cased.c: Likewise.
38647         * tests/unicase/test-u16-is-casefolded.c: Likewise.
38648         * tests/unicase/test-u16-is-lowercase.c: Likewise.
38649         * tests/unicase/test-u16-is-titlecase.c: Likewise.
38650         * tests/unicase/test-u16-is-uppercase.c: Likewise.
38651         * tests/unicase/test-u16-tolower.c: Likewise.
38652         * tests/unicase/test-u16-totitle.c: Likewise.
38653         * tests/unicase/test-u16-toupper.c: Likewise.
38654         * tests/unicase/test-u32-casecmp.c: Likewise.
38655         * tests/unicase/test-u32-casecoll.c: Likewise.
38656         * tests/unicase/test-u32-casefold.c: Likewise.
38657         * tests/unicase/test-u32-is-cased.c: Likewise.
38658         * tests/unicase/test-u32-is-casefolded.c: Likewise.
38659         * tests/unicase/test-u32-is-lowercase.c: Likewise.
38660         * tests/unicase/test-u32-is-titlecase.c: Likewise.
38661         * tests/unicase/test-u32-is-uppercase.c: Likewise.
38662         * tests/unicase/test-u32-tolower.c: Likewise.
38663         * tests/unicase/test-u32-totitle.c: Likewise.
38664         * tests/unicase/test-u32-toupper.c: Likewise.
38665         * tests/unicase/test-ulc-casecmp.c: Likewise.
38666         * tests/unicase/test-ulc-casecoll.c: Likewise.
38667         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
38668         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
38669         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
38670         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
38671         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
38672         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
38673         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
38674         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
38675         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
38676         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
38677         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
38678         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
38679         * tests/unictype/test-bidi_byname.c: Likewise.
38680         * tests/unictype/test-bidi_name.c: Likewise.
38681         * tests/unictype/test-bidi_of.c: Likewise.
38682         * tests/unictype/test-bidi_test.c: Likewise.
38683         * tests/unictype/test-block_list.c: Likewise.
38684         * tests/unictype/test-block_of.c: Likewise.
38685         * tests/unictype/test-block_test.c: Likewise.
38686         * tests/unictype/test-categ_and.c: Likewise.
38687         * tests/unictype/test-categ_and_not.c: Likewise.
38688         * tests/unictype/test-categ_byname.c: Likewise.
38689         * tests/unictype/test-categ_name.c: Likewise.
38690         * tests/unictype/test-categ_none.c: Likewise.
38691         * tests/unictype/test-categ_of.c: Likewise.
38692         * tests/unictype/test-categ_or.c: Likewise.
38693         * tests/unictype/test-categ_test_withtable.c: Likewise.
38694         * tests/unictype/test-combining.c: Likewise.
38695         * tests/unictype/test-decdigit.c: Likewise.
38696         * tests/unictype/test-digit.c: Likewise.
38697         * tests/unictype/test-mirror.c: Likewise.
38698         * tests/unictype/test-numeric.c: Likewise.
38699         * tests/unictype/test-pr_byname.c: Likewise.
38700         * tests/unictype/test-pr_test.c: Likewise.
38701         * tests/unictype/test-predicate-part1.h: Likewise.
38702         * tests/unictype/test-scripts.c: Likewise.
38703         * tests/unictype/test-sy_c_ident.c: Likewise.
38704         * tests/unictype/test-sy_java_ident.c: Likewise.
38705         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
38706         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
38707         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
38708         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
38709         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
38710         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
38711         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
38712         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
38713         * tests/uninorm/test-canonical-decomposition.c: Likewise.
38714         * tests/uninorm/test-compat-decomposition.c: Likewise.
38715         * tests/uninorm/test-composition.c: Likewise.
38716         * tests/uninorm/test-decomposing-form.c: Likewise.
38717         * tests/uninorm/test-decomposition.c: Likewise.
38718         * tests/uninorm/test-u8-nfc.c: Likewise.
38719         * tests/uninorm/test-u8-nfd.c: Likewise.
38720         * tests/uninorm/test-u8-nfkc.c: Likewise.
38721         * tests/uninorm/test-u8-nfkd.c: Likewise.
38722         * tests/uninorm/test-u8-normcmp.c: Likewise.
38723         * tests/uninorm/test-u8-normcoll.c: Likewise.
38724         * tests/uninorm/test-u16-nfc.c: Likewise.
38725         * tests/uninorm/test-u16-nfd.c: Likewise.
38726         * tests/uninorm/test-u16-nfkc.c: Likewise.
38727         * tests/uninorm/test-u16-nfkd.c: Likewise.
38728         * tests/uninorm/test-u16-normcmp.c: Likewise.
38729         * tests/uninorm/test-u16-normcoll.c: Likewise.
38730         * tests/uninorm/test-u32-nfc.c: Likewise.
38731         * tests/uninorm/test-u32-nfd.c: Likewise.
38732         * tests/uninorm/test-u32-nfkc.c: Likewise.
38733         * tests/uninorm/test-u32-nfkd.c: Likewise.
38734         * tests/uninorm/test-u32-normalize-big.c: Likewise.
38735         * tests/uninorm/test-u32-normcmp.c: Likewise.
38736         * tests/uninorm/test-u32-normcoll.c: Likewise.
38737         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
38738         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
38739         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
38740         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
38741         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
38742         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
38743         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
38744         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
38745         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
38746         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
38747         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
38748         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
38749         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
38750         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
38751         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
38752         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
38753         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
38754         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
38755         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
38756         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
38757         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
38758         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
38759         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
38760         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
38761         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
38762         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
38763         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
38764         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
38765         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
38766         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
38767         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
38768         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
38769         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
38770         * tests/uniwidth/test-u8-strwidth.c: Likewise.
38771         * tests/uniwidth/test-u8-width.c: Likewise.
38772         * tests/uniwidth/test-u16-strwidth.c: Likewise.
38773         * tests/uniwidth/test-u16-width.c: Likewise.
38774         * tests/uniwidth/test-u32-strwidth.c: Likewise.
38775         * tests/uniwidth/test-u32-width.c: Likewise.
38776         * tests/uniwidth/test-uc_width.c: Likewise.
38777         * tests/uniwidth/test-uc_width2.c: Likewise.
38778         * modules/acl-tests (Files): Add tests/macros.h.
38779         * modules/areadlink-tests (Files): Likewise.
38780         * modules/areadlink-with-size-tests (Files): Likewise.
38781         * modules/areadlinkat-tests (Files): Likewise.
38782         * modules/areadlinkat-with-size-tests (Files): Likewise.
38783         * modules/argmatch-tests (Files): Likewise.
38784         * modules/argv-iter-tests (Files): Likewise.
38785         * modules/array-list-tests (Files): Likewise.
38786         * modules/array-mergesort-tests (Files): Likewise.
38787         * modules/array-oset-tests (Files): Likewise.
38788         * modules/avltree-list-tests (Files): Likewise.
38789         * modules/avltree-oset-tests (Files): Likewise.
38790         * modules/avltreehash-list-tests (Files): Likewise.
38791         * modules/base64-tests (Files): Likewise.
38792         * modules/binary-io-tests (Files): Likewise.
38793         * modules/bitrotate-tests (Files): Likewise.
38794         * modules/btowc-tests (Files): Likewise.
38795         * modules/byteswap-tests (Files): Likewise.
38796         * modules/c-ctype-tests (Files): Likewise.
38797         * modules/c-stack-tests (Files): Likewise.
38798         * modules/c-strcase-tests (Files): Likewise.
38799         * modules/c-strcasestr-tests (Files): Likewise.
38800         * modules/c-strstr-tests (Files): Likewise.
38801         * modules/canonicalize-lgpl-tests (Files): Likewise.
38802         * modules/canonicalize-tests (Files): Likewise.
38803         * modules/carray-list-tests (Files): Likewise.
38804         * modules/ceilf-tests (Files): Likewise.
38805         * modules/ceill-tests (Files): Likewise.
38806         * modules/chown-tests (Files): Likewise.
38807         * modules/cloexec-tests (Files): Likewise.
38808         * modules/copy-file-tests (Files): Likewise.
38809         * modules/count-one-bits-tests (Files): Likewise.
38810         * modules/dprintf-posix-tests (Files): Likewise.
38811         * modules/dup2-tests (Files): Likewise.
38812         * modules/dup3-tests (Files): Likewise.
38813         * modules/duplocale-tests (Files): Likewise.
38814         * modules/fbufmode-tests (Files): Likewise.
38815         * modules/fchdir-tests (Files): Likewise.
38816         * modules/fcntl-safer-tests (Files): Likewise.
38817         * modules/fcntl-tests (Files): Likewise.
38818         * modules/fdopendir-tests (Files): Likewise.
38819         * modules/fdutimensat-tests (Files): Likewise.
38820         * modules/fflush-tests (Files): Likewise.
38821         * modules/filevercmp-tests (Files): Likewise.
38822         * modules/flock-tests (Files): Likewise.
38823         * modules/floorf-tests (Files): Likewise.
38824         * modules/floorl-tests (Files): Likewise.
38825         * modules/fnmatch-tests (Files): Likewise.
38826         * modules/fopen-safer-tests (Files): Likewise.
38827         * modules/fopen-tests (Files): Likewise.
38828         * modules/fpending-tests (Files): Likewise.
38829         * modules/fprintf-posix-tests (Files): Likewise.
38830         * modules/fpurge-tests (Files): Likewise.
38831         * modules/freadable-tests (Files): Likewise.
38832         * modules/freadahead-tests (Files): Likewise.
38833         * modules/freading-tests (Files): Likewise.
38834         * modules/freadptr-tests (Files): Likewise.
38835         * modules/freadseek-tests (Files): Likewise.
38836         * modules/freopen-tests (Files): Likewise.
38837         * modules/frexp-nolibm-tests (Files): Likewise.
38838         * modules/frexp-tests (Files): Likewise.
38839         * modules/frexpl-nolibm-tests (Files): Likewise.
38840         * modules/frexpl-tests (Files): Likewise.
38841         * modules/fseek-tests (Files): Likewise.
38842         * modules/fseeko-tests (Files): Likewise.
38843         * modules/fstrcmp-tests (Files): Likewise.
38844         * modules/fsync-tests (Files): Likewise.
38845         * modules/ftell-tests (Files): Likewise.
38846         * modules/ftello-tests (Files): Likewise.
38847         * modules/func-tests (Files): Likewise.
38848         * modules/futimens-tests (Files): Likewise.
38849         * modules/fwritable-tests (Files): Likewise.
38850         * modules/fwriting-tests (Files): Likewise.
38851         * modules/getcwd-tests (Files): Likewise.
38852         * modules/getdate-tests (Files): Likewise.
38853         * modules/getdelim-tests (Files): Likewise.
38854         * modules/getdtablesize-tests (Files): Likewise.
38855         * modules/getgroups-tests (Files): Likewise.
38856         * modules/getline-tests (Files): Likewise.
38857         * modules/getndelim2-tests (Files): Likewise.
38858         * modules/glob-tests (Files): Likewise.
38859         * modules/hash-tests (Files): Likewise.
38860         * modules/i-ring-tests (Files): Likewise.
38861         * modules/iconv-tests (Files): Likewise.
38862         * modules/iconv_open-utf-tests (Files): Likewise.
38863         * modules/idpriv-drop-tests (Files): Likewise.
38864         * modules/idpriv-droptemp-tests (Files): Likewise.
38865         * modules/inet_ntop-tests (Files): Likewise.
38866         * modules/inet_pton-tests (Files): Likewise.
38867         * modules/isblank-tests (Files): Likewise.
38868         * modules/isfinite-tests (Files): Likewise.
38869         * modules/isinf-tests (Files): Likewise.
38870         * modules/isnan-tests (Files): Likewise.
38871         * modules/isnand-nolibm-tests (Files): Likewise.
38872         * modules/isnand-tests (Files): Likewise.
38873         * modules/isnanf-nolibm-tests (Files): Likewise.
38874         * modules/isnanf-tests (Files): Likewise.
38875         * modules/isnanl-nolibm-tests (Files): Likewise.
38876         * modules/isnanl-tests (Files): Likewise.
38877         * modules/lchown-tests (Files): Likewise.
38878         * modules/ldexpl-tests (Files): Likewise.
38879         * modules/link-tests (Files): Likewise.
38880         * modules/linkat-tests (Files): Likewise.
38881         * modules/linked-list-tests (Files): Likewise.
38882         * modules/linkedhash-list-tests (Files): Likewise.
38883         * modules/localename-tests (Files): Likewise.
38884         * modules/lseek-tests (Files): Likewise.
38885         * modules/lstat-tests (Files): Likewise.
38886         * modules/mbmemcasecmp-tests (Files): Likewise.
38887         * modules/mbmemcasecoll-tests (Files): Likewise.
38888         * modules/mbrtowc-tests (Files): Likewise.
38889         * modules/mbscasecmp-tests (Files): Likewise.
38890         * modules/mbscasestr-tests (Files): Likewise.
38891         * modules/mbschr-tests (Files): Likewise.
38892         * modules/mbscspn-tests (Files): Likewise.
38893         * modules/mbsinit-tests (Files): Likewise.
38894         * modules/mbsncasecmp-tests (Files): Likewise.
38895         * modules/mbsnrtowcs-tests (Files): Likewise.
38896         * modules/mbspbrk-tests (Files): Likewise.
38897         * modules/mbspcasecmp-tests (Files): Likewise.
38898         * modules/mbsrchr-tests (Files): Likewise.
38899         * modules/mbsrtowcs-tests (Files): Likewise.
38900         * modules/mbsspn-tests (Files): Likewise.
38901         * modules/mbsstr-tests (Files): Likewise.
38902         * modules/memchr-tests (Files): Likewise.
38903         * modules/memchr2-tests (Files): Likewise.
38904         * modules/memcmp-tests (Files): Likewise.
38905         * modules/memmem-tests (Files): Likewise.
38906         * modules/memrchr-tests (Files): Likewise.
38907         * modules/mkdir-tests (Files): Likewise.
38908         * modules/mkfifo-tests (Files): Likewise.
38909         * modules/mkfifoat-tests (Files): Likewise.
38910         * modules/mknod-tests (Files): Likewise.
38911         * modules/nanosleep-tests (Files): Likewise.
38912         * modules/nl_langinfo-tests (Files): Likewise.
38913         * modules/obstack-printf-tests (Files): Likewise.
38914         * modules/open-tests (Files): Likewise.
38915         * modules/openat-tests (Files): Likewise.
38916         * modules/pipe-filter-gi-tests (Files): Likewise.
38917         * modules/pipe-filter-ii-tests (Files): Likewise.
38918         * modules/pipe2-tests (Files): Likewise.
38919         * modules/popen-safer-tests (Files): Likewise.
38920         * modules/popen-tests (Files): Likewise.
38921         * modules/posixtm-tests (Files): Likewise.
38922         * modules/pread-tests (Files): Likewise.
38923         * modules/printf-frexp-tests (Files): Likewise.
38924         * modules/printf-frexpl-tests (Files): Likewise.
38925         * modules/printf-posix-tests (Files): Likewise.
38926         * modules/priv-set-tests (Files): Likewise.
38927         * modules/quotearg-tests (Files): Likewise.
38928         * modules/random_r-tests (Files): Likewise.
38929         * modules/rawmemchr-tests (Files): Likewise.
38930         * modules/rbtree-list-tests (Files): Likewise.
38931         * modules/rbtree-oset-tests (Files): Likewise.
38932         * modules/rbtreehash-list-tests (Files): Likewise.
38933         * modules/readlink-tests (Files): Likewise.
38934         * modules/remove-tests (Files): Likewise.
38935         * modules/rename-tests (Files): Likewise.
38936         * modules/renameat-tests (Files): Likewise.
38937         * modules/rmdir-tests (Files): Likewise.
38938         * modules/round-tests (Files): Likewise.
38939         * modules/roundf-tests (Files): Likewise.
38940         * modules/roundl-tests (Files): Likewise.
38941         * modules/safe-alloc-tests (Files): Likewise.
38942         * modules/setenv-tests (Files): Likewise.
38943         * modules/sigaction-tests (Files): Likewise.
38944         * modules/signbit-tests (Files): Likewise.
38945         * modules/sleep-tests (Files): Likewise.
38946         * modules/snprintf-posix-tests (Files): Likewise.
38947         * modules/snprintf-tests (Files): Likewise.
38948         * modules/sprintf-posix-tests (Files): Likewise.
38949         * modules/stat-tests (Files): Likewise.
38950         * modules/stat-time-tests (Files): Likewise.
38951         * modules/strcasestr-tests (Files): Likewise.
38952         * modules/strchrnul-tests (Files): Likewise.
38953         * modules/strerror-tests (Files): Likewise.
38954         * modules/striconv-tests (Files): Likewise.
38955         * modules/striconveh-tests (Files): Likewise.
38956         * modules/striconveha-tests (Files): Likewise.
38957         * modules/strsignal-tests (Files): Likewise.
38958         * modules/strstr-tests (Files): Likewise.
38959         * modules/strtod-tests (Files): Likewise.
38960         * modules/strverscmp-tests (Files): Likewise.
38961         * modules/symlink-tests (Files): Likewise.
38962         * modules/symlinkat-tests (Files): Likewise.
38963         * modules/trunc-tests (Files): Likewise.
38964         * modules/truncf-tests (Files): Likewise.
38965         * modules/truncl-tests (Files): Likewise.
38966         * modules/uname-tests (Files): Likewise.
38967         * modules/unicase/cased-tests (Files): Likewise.
38968         * modules/unicase/ignorable-tests (Files): Likewise.
38969         * modules/unicase/locale-language-tests (Files): Likewise.
38970         * modules/unicase/tolower-tests (Files): Likewise.
38971         * modules/unicase/totitle-tests (Files): Likewise.
38972         * modules/unicase/toupper-tests (Files): Likewise.
38973         * modules/unicase/u8-casecmp-tests (Files): Likewise.
38974         * modules/unicase/u8-casecoll-tests (Files): Likewise.
38975         * modules/unicase/u8-casefold-tests (Files): Likewise.
38976         * modules/unicase/u8-is-cased-tests (Files): Likewise.
38977         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
38978         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
38979         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
38980         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
38981         * modules/unicase/u8-tolower-tests (Files): Likewise.
38982         * modules/unicase/u8-totitle-tests (Files): Likewise.
38983         * modules/unicase/u8-toupper-tests (Files): Likewise.
38984         * modules/unicase/u16-casecmp-tests (Files): Likewise.
38985         * modules/unicase/u16-casecoll-tests (Files): Likewise.
38986         * modules/unicase/u16-casefold-tests (Files): Likewise.
38987         * modules/unicase/u16-is-cased-tests (Files): Likewise.
38988         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
38989         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
38990         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
38991         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
38992         * modules/unicase/u16-tolower-tests (Files): Likewise.
38993         * modules/unicase/u16-totitle-tests (Files): Likewise.
38994         * modules/unicase/u16-toupper-tests (Files): Likewise.
38995         * modules/unicase/u32-casecmp-tests (Files): Likewise.
38996         * modules/unicase/u32-casecoll-tests (Files): Likewise.
38997         * modules/unicase/u32-casefold-tests (Files): Likewise.
38998         * modules/unicase/u32-is-cased-tests (Files): Likewise.
38999         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
39000         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
39001         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
39002         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
39003         * modules/unicase/u32-tolower-tests (Files): Likewise.
39004         * modules/unicase/u32-totitle-tests (Files): Likewise.
39005         * modules/unicase/u32-toupper-tests (Files): Likewise.
39006         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
39007         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
39008         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
39009         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
39010         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
39011         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
39012         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
39013         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
39014         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
39015         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
39016         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
39017         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
39018         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
39019         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
39020         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
39021         * modules/unictype/bidicategory-name-tests (Files): Likewise.
39022         * modules/unictype/bidicategory-of-tests (Files): Likewise.
39023         * modules/unictype/bidicategory-test-tests (Files): Likewise.
39024         * modules/unictype/block-list-tests (Files): Likewise.
39025         * modules/unictype/block-of-tests (Files): Likewise.
39026         * modules/unictype/block-test-tests (Files): Likewise.
39027         * modules/unictype/category-C-tests (Files): Likewise.
39028         * modules/unictype/category-Cc-tests (Files): Likewise.
39029         * modules/unictype/category-Cf-tests (Files): Likewise.
39030         * modules/unictype/category-Cn-tests (Files): Likewise.
39031         * modules/unictype/category-Co-tests (Files): Likewise.
39032         * modules/unictype/category-Cs-tests (Files): Likewise.
39033         * modules/unictype/category-L-tests (Files): Likewise.
39034         * modules/unictype/category-Ll-tests (Files): Likewise.
39035         * modules/unictype/category-Lm-tests (Files): Likewise.
39036         * modules/unictype/category-Lo-tests (Files): Likewise.
39037         * modules/unictype/category-Lt-tests (Files): Likewise.
39038         * modules/unictype/category-Lu-tests (Files): Likewise.
39039         * modules/unictype/category-M-tests (Files): Likewise.
39040         * modules/unictype/category-Mc-tests (Files): Likewise.
39041         * modules/unictype/category-Me-tests (Files): Likewise.
39042         * modules/unictype/category-Mn-tests (Files): Likewise.
39043         * modules/unictype/category-N-tests (Files): Likewise.
39044         * modules/unictype/category-Nd-tests (Files): Likewise.
39045         * modules/unictype/category-Nl-tests (Files): Likewise.
39046         * modules/unictype/category-No-tests (Files): Likewise.
39047         * modules/unictype/category-P-tests (Files): Likewise.
39048         * modules/unictype/category-Pc-tests (Files): Likewise.
39049         * modules/unictype/category-Pd-tests (Files): Likewise.
39050         * modules/unictype/category-Pe-tests (Files): Likewise.
39051         * modules/unictype/category-Pf-tests (Files): Likewise.
39052         * modules/unictype/category-Pi-tests (Files): Likewise.
39053         * modules/unictype/category-Po-tests (Files): Likewise.
39054         * modules/unictype/category-Ps-tests (Files): Likewise.
39055         * modules/unictype/category-S-tests (Files): Likewise.
39056         * modules/unictype/category-Sc-tests (Files): Likewise.
39057         * modules/unictype/category-Sk-tests (Files): Likewise.
39058         * modules/unictype/category-Sm-tests (Files): Likewise.
39059         * modules/unictype/category-So-tests (Files): Likewise.
39060         * modules/unictype/category-Z-tests (Files): Likewise.
39061         * modules/unictype/category-Zl-tests (Files): Likewise.
39062         * modules/unictype/category-Zp-tests (Files): Likewise.
39063         * modules/unictype/category-Zs-tests (Files): Likewise.
39064         * modules/unictype/category-and-not-tests (Files): Likewise.
39065         * modules/unictype/category-and-tests (Files): Likewise.
39066         * modules/unictype/category-byname-tests (Files): Likewise.
39067         * modules/unictype/category-name-tests (Files): Likewise.
39068         * modules/unictype/category-none-tests (Files): Likewise.
39069         * modules/unictype/category-of-tests (Files): Likewise.
39070         * modules/unictype/category-or-tests (Files): Likewise.
39071         * modules/unictype/category-test-withtable-tests (Files): Likewise.
39072         * modules/unictype/combining-class-tests (Files): Likewise.
39073         * modules/unictype/ctype-alnum-tests (Files): Likewise.
39074         * modules/unictype/ctype-alpha-tests (Files): Likewise.
39075         * modules/unictype/ctype-blank-tests (Files): Likewise.
39076         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
39077         * modules/unictype/ctype-digit-tests (Files): Likewise.
39078         * modules/unictype/ctype-graph-tests (Files): Likewise.
39079         * modules/unictype/ctype-lower-tests (Files): Likewise.
39080         * modules/unictype/ctype-print-tests (Files): Likewise.
39081         * modules/unictype/ctype-punct-tests (Files): Likewise.
39082         * modules/unictype/ctype-space-tests (Files): Likewise.
39083         * modules/unictype/ctype-upper-tests (Files): Likewise.
39084         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
39085         * modules/unictype/decimal-digit-tests (Files): Likewise.
39086         * modules/unictype/digit-tests (Files): Likewise.
39087         * modules/unictype/mirror-tests (Files): Likewise.
39088         * modules/unictype/numeric-tests (Files): Likewise.
39089         * modules/unictype/property-alphabetic-tests (Files): Likewise.
39090         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
39091         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
39092         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
39093         Likewise.
39094         * modules/unictype/property-bidi-block-separator-tests (Files):
39095         Likewise.
39096         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
39097         Likewise.
39098         * modules/unictype/property-bidi-common-separator-tests (Files):
39099         Likewise.
39100         * modules/unictype/property-bidi-control-tests (Files): Likewise.
39101         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
39102         Likewise.
39103         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
39104         Likewise.
39105         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
39106         Likewise.
39107         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
39108         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
39109         Likewise.
39110         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
39111         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
39112         Likewise.
39113         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
39114         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
39115         * modules/unictype/property-bidi-segment-separator-tests (Files):
39116         Likewise.
39117         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
39118         * modules/unictype/property-byname-tests (Files): Likewise.
39119         * modules/unictype/property-combining-tests (Files): Likewise.
39120         * modules/unictype/property-composite-tests (Files): Likewise.
39121         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
39122         * modules/unictype/property-dash-tests (Files): Likewise.
39123         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
39124         * modules/unictype/property-default-ignorable-code-point-tests (Files):
39125         Likewise.
39126         * modules/unictype/property-deprecated-tests (Files): Likewise.
39127         * modules/unictype/property-diacritic-tests (Files): Likewise.
39128         * modules/unictype/property-extender-tests (Files): Likewise.
39129         * modules/unictype/property-format-control-tests (Files): Likewise.
39130         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
39131         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
39132         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
39133         * modules/unictype/property-hex-digit-tests (Files): Likewise.
39134         * modules/unictype/property-hyphen-tests (Files): Likewise.
39135         * modules/unictype/property-id-continue-tests (Files): Likewise.
39136         * modules/unictype/property-id-start-tests (Files): Likewise.
39137         * modules/unictype/property-ideographic-tests (Files): Likewise.
39138         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
39139         * modules/unictype/property-ids-trinary-operator-tests (Files):
39140         Likewise.
39141         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
39142         * modules/unictype/property-iso-control-tests (Files): Likewise.
39143         * modules/unictype/property-join-control-tests (Files): Likewise.
39144         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
39145         * modules/unictype/property-line-separator-tests (Files): Likewise.
39146         * modules/unictype/property-logical-order-exception-tests (Files):
39147         Likewise.
39148         * modules/unictype/property-lowercase-tests (Files): Likewise.
39149         * modules/unictype/property-math-tests (Files): Likewise.
39150         * modules/unictype/property-non-break-tests (Files): Likewise.
39151         * modules/unictype/property-not-a-character-tests (Files): Likewise.
39152         * modules/unictype/property-numeric-tests (Files): Likewise.
39153         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
39154         * modules/unictype/property-other-default-ignorable-code-point-tests
39155         (Files): Likewise.
39156         * modules/unictype/property-other-grapheme-extend-tests (Files):
39157         Likewise.
39158         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
39159         * modules/unictype/property-other-id-start-tests (Files): Likewise.
39160         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
39161         * modules/unictype/property-other-math-tests (Files): Likewise.
39162         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
39163         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
39164         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
39165         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
39166         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
39167         * modules/unictype/property-private-use-tests (Files): Likewise.
39168         * modules/unictype/property-punctuation-tests (Files): Likewise.
39169         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
39170         * modules/unictype/property-radical-tests (Files): Likewise.
39171         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
39172         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
39173         * modules/unictype/property-space-tests (Files): Likewise.
39174         * modules/unictype/property-terminal-punctuation-tests (Files):
39175         Likewise.
39176         * modules/unictype/property-test-tests (Files): Likewise.
39177         * modules/unictype/property-titlecase-tests (Files): Likewise.
39178         * modules/unictype/property-unassigned-code-value-tests (Files):
39179         Likewise.
39180         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
39181         * modules/unictype/property-uppercase-tests (Files): Likewise.
39182         * modules/unictype/property-variation-selector-tests (Files): Likewise.
39183         * modules/unictype/property-white-space-tests (Files): Likewise.
39184         * modules/unictype/property-xid-continue-tests (Files): Likewise.
39185         * modules/unictype/property-xid-start-tests (Files): Likewise.
39186         * modules/unictype/property-zero-width-tests (Files): Likewise.
39187         * modules/unictype/scripts-tests (Files): Likewise.
39188         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
39189         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
39190         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
39191         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
39192         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
39193         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
39194         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
39195         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
39196         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
39197         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
39198         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
39199         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
39200         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
39201         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
39202         * modules/uninorm/composition-tests (Files): Likewise.
39203         * modules/uninorm/decomposing-form-tests (Files): Likewise.
39204         * modules/uninorm/decomposition-tests (Files): Likewise.
39205         * modules/uninorm/filter-tests (Files): Likewise.
39206         * modules/uninorm/nfc-tests (Files): Likewise.
39207         * modules/uninorm/nfd-tests (Files): Likewise.
39208         * modules/uninorm/nfkc-tests (Files): Likewise.
39209         * modules/uninorm/nfkd-tests (Files): Likewise.
39210         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
39211         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
39212         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
39213         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
39214         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
39215         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
39216         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
39217         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
39218         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
39219         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
39220         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
39221         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
39222         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
39223         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
39224         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
39225         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
39226         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
39227         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
39228         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
39229         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
39230         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
39231         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
39232         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
39233         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
39234         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
39235         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
39236         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
39237         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
39238         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
39239         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
39240         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
39241         * modules/uniwidth/u8-width-tests (Files): Likewise.
39242         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
39243         * modules/uniwidth/u16-width-tests (Files): Likewise.
39244         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
39245         * modules/uniwidth/u32-width-tests (Files): Likewise.
39246         * modules/uniwidth/width-tests (Files): Likewise.
39247         * modules/unlink-tests (Files): Likewise.
39248         * modules/unsetenv-tests (Files): Likewise.
39249         * modules/usleep-tests (Files): Likewise.
39250         * modules/utimens-tests (Files): Likewise.
39251         * modules/utimensat-tests (Files): Likewise.
39252         * modules/vasnprintf-posix-tests (Files): Likewise.
39253         * modules/vasnprintf-tests (Files): Likewise.
39254         * modules/vasprintf-posix-tests (Files): Likewise.
39255         * modules/vasprintf-tests (Files): Likewise.
39256         * modules/vdprintf-posix-tests (Files): Likewise.
39257         * modules/vfprintf-posix-tests (Files): Likewise.
39258         * modules/vprintf-posix-tests (Files): Likewise.
39259         * modules/vsnprintf-posix-tests (Files): Likewise.
39260         * modules/vsnprintf-tests (Files): Likewise.
39261         * modules/vsprintf-posix-tests (Files): Likewise.
39262         * modules/wcrtomb-tests (Files): Likewise.
39263         * modules/wcsnrtombs-tests (Files): Likewise.
39264         * modules/wcsrtombs-tests (Files): Likewise.
39265         * modules/wctype-tests (Files): Likewise.
39266         * modules/wcwidth-tests (Files): Likewise.
39267         * modules/xmemdup0-tests (Files): Likewise.
39268         * modules/xprintf-posix-tests (Files): Likewise.
39269         * modules/xvasprintf-tests (Files): Likewise.
39270
39271 2009-12-24  Eric Blake  <ebb9@byu.net>
39272
39273         test-nanosleep: fix typo
39274         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
39275         patch.
39276         Reported by Bruno Haible.
39277
39278 2009-12-24  Bruno Haible  <bruno@clisp.org>
39279
39280         Reduce namespace pollution on glibc systems.
39281         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
39282         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
39283         systems.
39284         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
39285         <getopt.h> on glibc systems.
39286         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
39287         systems.
39288         * lib/fcntl.c: Include <unistd.h> here instead.
39289
39290 2009-12-24  Bruno Haible  <bruno@clisp.org>
39291
39292         * lib/stdlib.in.h (includes): Fix typo in today's commit.
39293
39294 2009-12-24  Eric Blake  <ebb9@byu.net>
39295
39296         tests: add signature checks
39297         * tests/signature.h (SIGNATURE_CHECK): New file.
39298         * modules/atexit-tests (Files): Use it.
39299         * modules/btowc-tests (Files): Likewise.
39300         * modules/canonicalize-lgpl-tests (Files): Likewise.
39301         * modules/ceilf-tests (Files): Likewise.
39302         * modules/ceill-tests (Files): Likewise.
39303         * modules/chown-tests (Files): Likewise.
39304         * modules/dprintf-posix-tests (Files): Likewise.
39305         * modules/dup2-tests (Files): Likewise.
39306         * modules/dup3-tests (Files): Likewise.
39307         * modules/duplocale-tests (Files): Likewise.
39308         * modules/fchdir-tests (Files): Likewise.
39309         * modules/fcntl-tests (Files): Likewise.
39310         * modules/fdopendir-tests (Files): Likewise.
39311         * modules/fflush-tests (Files): Likewise.
39312         * modules/flock-tests (Files): Likewise.
39313         * modules/floorf-tests (Files): Likewise.
39314         * modules/floorl-tests (Files): Likewise.
39315         * modules/fnmatch-tests (Files): Likewise.
39316         * modules/fopen-tests (Files): Likewise.
39317         * modules/fprintf-posix-tests (Files): Likewise.
39318         * modules/freopen-tests (Files): Likewise.
39319         * modules/frexp-nolibm-tests (Files): Likewise.
39320         * modules/frexp-tests (Files): Likewise.
39321         * modules/frexpl-nolibm-tests (Files): Likewise.
39322         * modules/frexpl-tests (Files): Likewise.
39323         * modules/fseek-tests (Files): Likewise.
39324         * modules/fseeko-tests (Files): Likewise.
39325         * modules/fsync-tests (Files): Likewise.
39326         * modules/ftell-tests (Files): Likewise.
39327         * modules/ftello-tests (Files): Likewise.
39328         * modules/futimens-tests (Files): Likewise.
39329         * modules/getaddrinfo-tests (Files): Likewise.
39330         * modules/getcwd-tests (Files): Likewise.
39331         * modules/getdelim-tests (Files): Likewise.
39332         * modules/getdtablesize-tests (Files): Likewise.
39333         * modules/getgroups-tests (Files): Likewise.
39334         * modules/gethostname-tests (Files): Likewise.
39335         * modules/getline-tests (Files): Likewise.
39336         * modules/getopt-posix-tests (Files): Likewise.
39337         * modules/gettimeofday-tests (Files): Likewise.
39338         * modules/glob-tests (Files): Likewise.
39339         * modules/iconv-tests (Files): Likewise.
39340         * modules/inet_ntop-tests (Files): Likewise.
39341         * modules/inet_pton-tests (Files): Likewise.
39342         * modules/isblank-tests (Files): Likewise.
39343         * modules/lchown-tests (Files): Likewise.
39344         * modules/ldexpl-tests (Files): Likewise.
39345         * modules/link-tests (Files): Likewise.
39346         * modules/linkat-tests (Files): Likewise.
39347         * modules/lseek-tests (Files): Likewise.
39348         * modules/lstat-tests (Files): Likewise.
39349         * modules/mbrtowc-tests (Files): Likewise.
39350         * modules/mbsinit-tests (Files): Likewise.
39351         * modules/mbsnrtowcs-tests (Files): Likewise.
39352         * modules/mbsrtowcs-tests (Files): Likewise.
39353         * modules/memchr-tests (Files): Likewise.
39354         * modules/memcmp-tests (Files): Likewise.
39355         * modules/memmem-tests (Files): Likewise.
39356         * modules/memrchr-tests (Files): Likewise.
39357         * modules/mkdir-tests (Files): Likewise.
39358         * modules/mkfifo-tests (Files): Likewise.
39359         * modules/mkfifoat-tests (Files): Likewise.
39360         * modules/mknod-tests (Files): Likewise.
39361         * modules/nanosleep-tests (Files): Likewise.
39362         * modules/nl_langinfo-tests (Files): Likewise.
39363         * modules/obstack-printf-tests (Files): Likewise.
39364         * modules/open-tests (Files): Likewise.
39365         * modules/openat-tests (Files): Likewise.
39366         * modules/perror-tests (Files): Likewise.
39367         * modules/pipe2-tests (Files): Likewise.
39368         * modules/poll-tests (Files): Likewise.
39369         * modules/popen-tests (Files): Likewise.
39370         * modules/posix_spawn-tests (Files): Likewise.
39371         * modules/posix_spawnp-tests (Files): Likewise.
39372         * modules/pread-tests (Files): Likewise.
39373         * modules/printf-posix-tests (Files): Likewise.
39374         * modules/pty-tests (Files): Likewise.
39375         * modules/random_r-tests (Files): Likewise.
39376         * modules/rawmemchr-tests (Files): Likewise.
39377         * modules/readlink-tests (Files): Likewise.
39378         * modules/remove-tests (Files): Likewise.
39379         * modules/rename-tests (Files): Likewise.
39380         * modules/renameat-tests (Files): Likewise.
39381         * modules/rmdir-tests (Files): Likewise.
39382         * modules/round-tests (Files): Likewise.
39383         * modules/roundf-tests (Files): Likewise.
39384         * modules/roundl-tests (Files): Likewise.
39385         * modules/select-tests (Files): Likewise.
39386         * modules/setenv-tests (Files): Likewise.
39387         * modules/sigaction-tests (Files): Likewise.
39388         * modules/sleep-tests (Files): Likewise.
39389         * modules/snprintf-posix-tests (Files): Likewise.
39390         * modules/snprintf-tests (Files): Likewise.
39391         * modules/sprintf-posix-tests (Files): Likewise.
39392         * modules/stat-tests (Files): Likewise.
39393         * modules/strcasestr-tests (Files): Likewise.
39394         * modules/strchrnul-tests (Files): Likewise.
39395         * modules/strerror-tests (Files): Likewise.
39396         * modules/strsignal-tests (Files): Likewise.
39397         * modules/strstr-tests (Files): Likewise.
39398         * modules/strtod-tests (Files): Likewise.
39399         * modules/strverscmp-tests (Files): Likewise.
39400         * modules/symlink-tests (Files): Likewise.
39401         * modules/symlinkat-tests (Files): Likewise.
39402         * modules/times-tests (Files): Likewise.
39403         * modules/trunc-tests (Files): Likewise.
39404         * modules/truncf-tests (Files): Likewise.
39405         * modules/truncl-tests (Files): Likewise.
39406         * modules/tsearch-tests (Files): Likewise.
39407         * modules/uname-tests (Files): Likewise.
39408         * modules/unlink-tests (Files): Likewise.
39409         * modules/unsetenv-tests (Files): Likewise.
39410         * modules/usleep-tests (Files): Likewise.
39411         * modules/utimensat-tests (Files): Likewise.
39412         * modules/vasprintf-tests (Files): Likewise.
39413         * modules/vdprintf-posix-tests (Files): Likewise.
39414         * modules/vfprintf-posix-tests (Files): Likewise.
39415         * modules/vprintf-posix-tests (Files): Likewise.
39416         * modules/vsnprintf-posix-tests (Files): Likewise.
39417         * modules/vsnprintf-tests (Files): Likewise.
39418         * modules/vsprintf-posix-tests (Files): Likewise.
39419         * modules/wcrtomb-tests (Files): Likewise.
39420         * modules/wcsnrtombs-tests (Files): Likewise.
39421         * modules/wcsrtombs-tests (Files): Likewise.
39422         * modules/wcwidth-tests (Files): Likewise.
39423         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
39424         * tests/test-isinf.c (isinf): Likewise.
39425         * tests/test-isnan.c (isnan): Likewise.
39426         * tests/test-signbit.c (signbit): Likewise.
39427         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
39428         declaration, either as macro or with correct signature.
39429         (select): Ensure function under test is declared with correct
39430         signature in correct header.
39431         * tests/test-atexit.c (atexit): Likewise.
39432         * tests/test-btowc.c (btowc): Likewise.
39433         * tests/test-canonicalize-lgpl.c (realpath)
39434         (canonicalize_file_name): Likewise.
39435         * tests/test-ceilf1.c (ceilf): Likewise.
39436         * tests/test-ceill.c (ceill): Likewise.
39437         * tests/test-chown.c (chown): Likewise.
39438         * tests/test-dprintf-posix.c (dprintf): Likewise.
39439         * tests/test-dup2.c (dup2): Likewise.
39440         * tests/test-dup3.c (dup3): Likewise.
39441         * tests/test-duplocale.c (duplocale): Likewise.
39442         * tests/test-fchdir.c (fchdir): Likewise.
39443         * tests/test-fchownat.c (fchownat): Likewise.
39444         * tests/test-fcntl.c (fcntl): Likewise.
39445         * tests/test-fdopendir.c (fdopendir): Likewise.
39446         * tests/test-fflush.c (fflush): Likewise.
39447         * tests/test-flock.c (flock): Likewise.
39448         * tests/test-floorf1.c (floorf): Likewise.
39449         * tests/test-floorl.c (floorl): Likewise.
39450         * tests/test-fnmatch.c (fnmatch): Likewise.
39451         * tests/test-fopen.c (fopen): Likewise.
39452         * tests/test-fprintf-posix.c (fprintf): Likewise.
39453         * tests/test-freopen.c (freopen): Likewise.
39454         * tests/test-frexp.c (frexp): Likewise.
39455         * tests/test-frexpl.c (frexpl): Likewise.
39456         * tests/test-fseek.c (fseek): Likewise.
39457         * tests/test-fseeko.c (fseeko): Likewise.
39458         * tests/test-fstatat.c (fstatat): Likewise.
39459         * tests/test-fsync.c (fsync): Likewise.
39460         * tests/test-ftell.c (ftell): Likewise.
39461         * tests/test-ftello.c (ftello): Likewise.
39462         * tests/test-futimens.c (futimens): Likewise.
39463         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
39464         (gai_strerror): Likewise.
39465         * tests/test-getcwd.c (getcwd): Likewise.
39466         * tests/test-getdelim.c (getdelim): Likewise.
39467         * tests/test-getdtablesize.c (getdtablesize): Likewise.
39468         * tests/test-getgroups.c (getgroups): Likewise.
39469         * tests/test-gethostname.c (gethostname): Likewise.
39470         * tests/test-getline.c (getline): Likewise.
39471         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
39472         Likewise.
39473         * tests/test-gettimeofday.c (gettimeofday): Likewise.
39474         * tests/test-glob.c (glob, globfree): Likewise.
39475         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
39476         * tests/test-inet_ntop.c (inet_ntop): Likewise.
39477         * tests/test-inet_pton.c (inet_pton): Likewise.
39478         * tests/test-isblank.c (isblank): Likewise.
39479         * tests/test-lchown.c (lchown): Likewise.
39480         * tests/test-ldexpl.c (ldexpl): Likewise.
39481         * tests/test-link.c (link): Likewise.
39482         * tests/test-linkat.c (linkat): Likewise.
39483         * tests/test-lseek.c (lseek): Likewise.
39484         * tests/test-lstat.c (lstat): Likewise.
39485         * tests/test-mbrtowc.c (mbrtowc): Likewise.
39486         * tests/test-mbsinit.c (mbsinit): Likewise.
39487         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
39488         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
39489         * tests/test-memchr.c (memchr): Likewise.
39490         * tests/test-memcmp.c (memcmp): Likewise.
39491         * tests/test-memmem.c (memmem): Likewise.
39492         * tests/test-memrchr.c (memrchr): Likewise.
39493         * tests/test-mkdir.c (mkdir): Likewise.
39494         * tests/test-mkdirat.c (mkdirat): Likewise.
39495         * tests/test-mkfifo.c (mkfifo): Likewise.
39496         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
39497         * tests/test-mknod.c (mknod): Likewise.
39498         * tests/test-nanosleep.c (nanosleep): Likewise.
39499         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
39500         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
39501         Likewise.
39502         * tests/test-open.c (open): Likewise.
39503         * tests/test-openat.c (openat): Likewise.
39504         * tests/test-perror.c (perror): Likewise.
39505         * tests/test-pipe2.c (pipe2): Likewise.
39506         * tests/test-poll.c (poll): Likewise.
39507         * tests/test-popen.c (popen, pclose): Likewise.
39508         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
39509         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
39510         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
39511         (posix_spawn_file_actions_destroy)
39512         (posix_spawn_file_actions_addclose)
39513         (posix_spawn_file_actions_addopen)
39514         (posix_spawn_file_actions_adddup2): Likewise.
39515         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
39516         * tests/test-pread.c (pread): Likewise.
39517         * tests/test-printf-posix.c (printf): Likewise.
39518         * tests/test-pty.c (openpty, forkpty): Likewise.
39519         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
39520         (random_r): Likewise.
39521         * tests/test-rawmemchr.c (rawmemchr): Likewise.
39522         * tests/test-readlink.c (readlink): Likewise.
39523         * tests/test-remove.c (remove): Likewise.
39524         * tests/test-rename.c (rename): Likewise.
39525         * tests/test-renameat.c (renameat): Likewise.
39526         * tests/test-rmdir.c (rmdir): Likewise.
39527         * tests/test-round1.c (round): Likewise.
39528         * tests/test-roundf1.c (roundf): Likewise.
39529         * tests/test-roundl.c (roundl): Likewise.
39530         * tests/test-setenv.c (setenv): Likewise.
39531         * tests/test-sigaction.c (sigaction): Likewise.
39532         * tests/test-sleep.c (sleep): Likewise.
39533         * tests/test-snprintf.c (snprintf): Likewise.
39534         * tests/test-sprintf-posix.c (sprintf): Likewise.
39535         * tests/test-stat.c (stat): Likewise.
39536         * tests/test-stpncpy.c (stpncpy): Likewise.
39537         * tests/test-strcasestr.c (strcasestr): Likewise.
39538         * tests/test-strchrnul.c (strchrnul): Likewise.
39539         * tests/test-strerror.c (strerror): Likewise.
39540         * tests/test-strsignal.c (strsignal): Likewise.
39541         * tests/test-strstr.c (strstr): Likewise.
39542         * tests/test-strtod.c (strtod): Likewise.
39543         * tests/test-strverscmp.c (strverscmp): Likewise.
39544         * tests/test-symlink.c (symlink): Likewise.
39545         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
39546         * tests/test-times.c (times): Likewise.
39547         * tests/test-trunc1.c (trunc): Likewise.
39548         * tests/test-truncf1.c (truncf): Likewise.
39549         * tests/test-truncl.c (truncl): Likewise.
39550         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
39551         Likewise.
39552         * tests/test-uname.c (uname): Likewise.
39553         * tests/test-unlink.c (unlink): Likewise.
39554         * tests/test-unlinkat.c (unlinkat): Likewise.
39555         * tests/test-unsetenv.c (unsetenv): Likewise.
39556         * tests/test-usleep.c (usleep): Likewise.
39557         * tests/test-utimensat.c (utimensat): Likewise.
39558         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
39559         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
39560         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
39561         * tests/test-vprintf-posix.c (vprintf): Likewise.
39562         * tests/test-vsnprintf.c (vsnprintf): Likewise.
39563         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
39564         * tests/test-wcrtomb.c (wcrtomb): Likewise.
39565         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
39566         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
39567         * tests/test-wcwidth.c (wcwidth): Likewise.
39568
39569         build: pull in conditional headers during GNULIB_POSIXCHECK
39570         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
39571         definitions from any conditionally-included headers.
39572         * lib/stdlib.in.h (includes): Likewise.
39573         * lib/unistd.in.h (includes): Likewise.
39574
39575 2009-12-24  Bruno Haible  <bruno@clisp.org>
39576
39577         * tests/test-argv-iter.c: Include header file being tested immediately
39578         after config.h.
39579         * tests/test-base64.c: Likewise.
39580         * tests/test-flock.c: Likewise.
39581         * tests/test-fsync.c: Likewise.
39582         * tests/test-getdate.c: Likewise.
39583         * tests/test-getndelim2.c: Likewise.
39584         * tests/test-isfinite.c: Likewise.
39585         * tests/test-isinf.c: Likewise.
39586         * tests/test-strerror.c: Likewise.
39587         * tests/test-strsignal.c: Likewise.
39588
39589 2009-12-23  Eric Blake  <ebb9@byu.net>
39590
39591         unistd: work around cygwin bug
39592         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
39593         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
39594         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
39595
39596 2009-12-23  Bruno Haible  <bruno@clisp.org>
39597
39598         localename: More tests.
39599         * tests/test-localename.c (SIZEOF): New macro.
39600         (categories): New variable.
39601         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
39602         test_locale_name_default): Add test w.r.t. thread locale.
39603         (test_locale_name_thread): New function.
39604         (main): Invoke it.
39605
39606         localename: Make aware of thread locale.
39607         * lib/localename.h (gl_locale_name_thread): New declaration.
39608         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
39609         behaviour with respect to thread locale.
39610         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
39611         <langinfo.h>, glthread/lock.h.
39612         (SIZE_BITS): New macro.
39613         (string_hash): New function.
39614         (struct hash_node): New type.
39615         (HASH_TABLE_SIZE): New macro.
39616         (struniq_hash_table, struniq_lock): New variables.
39617         (struniq): New function.
39618         (gl_locale_name_thread): New function.
39619         (gl_locale_name): Invoke it.
39620         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
39621         * modules/localename (Depends-on): Add lock.
39622         Reported by Mike Gran <spk121@yahoo.com>.
39623
39624 2009-12-23  Eric Blake  <ebb9@byu.net>
39625
39626         va-args: new module
39627         * modules/va-args: New file.
39628         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
39629         * MODULES.html.sh (Core language properties): Mention it.
39630
39631         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
39632         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
39633         named alias for __attribute__((__unused__)).
39634         * lib/chown.c: Update client.
39635         * lib/fchmodat.c: Likewise.
39636         * lib/fts.c: Likewise.
39637         * lib/getdate.y: Likewise.
39638         * lib/getgroups.c: Likewise.
39639         * lib/getopt.c: Likewise.
39640         * lib/getugroups.c: Likewise.
39641         * lib/mkdir.c: Likewise.
39642         * lib/mkfifo.c: Likewise.
39643         * lib/mkfifoat.c: Likewise.
39644         * lib/mknod.c: Likewise.
39645         * lib/mknodat.c: Likewise.
39646         * lib/readlink.c: Likewise.
39647         * lib/se-context.in.h: Likewise.
39648         * lib/se-selinux.in.h: Likewise.
39649         * lib/sockets.c: Likewise.
39650         * lib/symlink.c: Likewise.
39651         * lib/symlinkat.c: Likewise.
39652         * lib/unicodeio.c: Likewise.
39653         * lib/unistr.h: Likewise.
39654         * tests/test-areadlink.c: Likewise.
39655         * tests/test-areadlinkat.c: Likewise.
39656         * tests/test-filenamecat.c: Likewise.
39657         * tests/test-fseeko.c: Likewise.
39658         * tests/test-ftello.c: Likewise.
39659         * tests/test-getdate.c: Likewise.
39660         * tests/test-getgroups.c: Likewise.
39661         * tests/test-gethostname.c: Likewise.
39662         * tests/test-quotearg.c: Likewise.
39663         * tests/test-version-etc.c: Likewise.
39664         * tests/test-xalloc-die.c: Likewise.
39665         * tests/test-xfprintf-posix.c: Likewise.
39666         * tests/test-xprintf-posix.c: Likewise.
39667         * tests/test-xvasprintf.c: Likewise.
39668
39669         tests: avoid compiler warnings
39670         * tests/test-fcntl.c (main): Delete unused parameters.
39671         * tests/test-freopen-safer.c (main): Likewise.
39672         * tests/test-xalloc-die.c (main): Mark unused parameters.
39673         * tests/test-fseeko.c (main): Likewise.
39674         * tests/test-ftello.c (main): Likewise.
39675         * tests/test-nanosleep.c (main): Avoid declaration warning.
39676         * tests/test-sleep.c (main): Likewise.
39677         * tests/test-unsetenv.c (main): Silence warning about string
39678         literal.
39679         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
39680
39681 2009-12-23  Bruno Haible  <bruno@clisp.org>
39682
39683         * tests/test-localename.c (test_locale_name): New function, extracted
39684         from main. Also test mixed situations.
39685         (test_locale_name_posix, test_locale_name_environ,
39686         test_locale_name_default): New functions.
39687         (main): Invoke them all.
39688         * modules/localename-tests (configure.ac): Test for newlocale.
39689
39690 2009-12-23  Bruno Haible  <bruno@clisp.org>
39691
39692         unistd: Ensure getcwd gets declared before being overridden.
39693         * lib/unistd.in.h: Conditionally include <io.h>.
39694
39695 2009-12-22  Bruno Haible  <bruno@clisp.org>
39696
39697         wchar: Diagnose broken combination of glibc and gcc versions and flags.
39698         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
39699         (gl_WCHAR_H): Invoke it.
39700         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
39701         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
39702         Reported by Karl Berry <karl@freefriends.org>.
39703
39704 2009-12-22  Eric Blake  <ebb9@byu.net>
39705
39706         math, unistd: avoid redundant includes
39707         * lib/math.in.h (isnan): No need to re-include <math.h>.
39708         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
39709
39710         getsubopt: work around cygwin bug
39711         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
39712         avoid conflicting with system getsubopt.
39713         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
39714         bug.
39715
39716         getopt: synchronize from glibc
39717         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
39718         parameter order.  Adjust all callers.
39719         (_getopt_internal_r, main): Adjust quoting in error messages.
39720         Drop considerations for outdated POSIX 1003.2 error message.
39721         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
39722         callers.
39723         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
39724
39725         test-getopt: test stderr behavior
39726         * modules/getopt-posix-tests (Depends-on): Add dup2.
39727         * tests/test-getopt.c (ASSERT): Avoid stderr.
39728         (main): Move stderr to a temporary file.
39729         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
39730         Instead, add parameter to inform caller if output occurred.
39731         (test_getopt): Adjust all existing tests to expect silence, and
39732         add new tests of leading ":".
39733         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
39734         glibc shortcomings with leading "-:" or "+:" in optstring.
39735         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
39736         Likewise.
39737         * doc/posix-functions/getopt.texi (getopt): Likewise.
39738
39739         test-getopt: enhance test
39740         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
39741         supports optind=0.
39742         * tests/test-getopt.c (OPTIND_MIN): Move...
39743         * tests/test-getopt.h (OPTIND_MIN): ...here.
39744         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
39745         Require that optind=0 works, since modern BSD supports it in
39746         addition to optreset, and since coreutils expects it.
39747         (test_getopt_long_only): New test.
39748         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
39749         glibc shortcomings with 'W;', and enforcement of optind=0.
39750         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
39751         Likewise.
39752
39753 2009-12-21  Bruno Haible  <bruno@clisp.org>
39754
39755         localename: Improvements for MacOS X and Cygwin.
39756         * lib/localename.h (gl_locale_name_environ): New declaration.
39757         * lib/localename.c (gl_locale_name_environ): New function, extracted from
39758         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
39759         (gl_locale_name_posix): Invoke it.
39760         (gl_locale_name_default): Add comments. Use Windows native API also on
39761         Cygwin.
39762
39763 2009-12-21  Bruno Haible  <bruno@clisp.org>
39764
39765         Update list of Win32 locale ids.
39766         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
39767         (LANG_SAMI): Renamed from LANG_SAAMI.
39768         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
39769         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
39770         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
39771         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
39772         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
39773         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
39774         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
39775         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
39776         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
39777         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
39778         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
39779         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
39780         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
39781         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
39782         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
39783         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
39784         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
39785         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
39786         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
39787         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
39788         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
39789         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
39790         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
39791         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
39792         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
39793         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
39794         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
39795         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
39796         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
39797         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
39798         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
39799         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
39800         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
39801         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
39802         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
39803         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
39804         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
39805         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
39806         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
39807         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
39808         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
39809         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
39810         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
39811         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
39812         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
39813         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
39814         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
39815         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
39816         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
39817         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
39818         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
39819         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
39820         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
39821         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
39822         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
39823         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
39824         Add more languages and countries for Sami, Sorbian. Add more countries
39825         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
39826         for Pashto. Change country for Syriac, Tswana.
39827
39828 2009-12-21  Eric Blake  <ebb9@byu.net>
39829
39830         test-utimens: avoid spurious failure
39831         * tests/test-chown.h (nap): Factor...
39832         * tests/nap.h: ...into new file.
39833         * tests/test-lchown.h (nap): Avoid duplication.
39834         * tests/test-utimens-common.h (nap): Use shared implementation,
39835         necessary on file systems with 1-second resolution.
39836         * modules/chown-tests (Files): Include new file.
39837         * modules/fdutimensat-tests (Files): Likewise.
39838         * modules/futimens-tests (Files): Likewise.
39839         * modules/lchown-tests (Files): Likewise.
39840         * modules/openat-tests (Files): Likewise.
39841         * modules/utimens-tests (Files): Likewise.
39842         * modules/utimensat-tests (Files): Likewise.
39843
39844 2009-12-19  Eric Blake  <ebb9@byu.net>
39845
39846         futimens, utimensat: work around Linux bug
39847         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
39848         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
39849         * lib/utimensat.c (rpl_utimensat): Work around it.
39850         * lib/futimens.c (rpl_futimens): Adjust comment.
39851
39852         utimens: work around Linux ctime bug
39853         * lib/utimens.c (detect_ctime_bug): New helper function.
39854         (update_timespec): Differentiate between workaround needed for
39855         this bug vs. what is needed for systems that lack utimensat.
39856         (fdutimens, lutimens): Work around bug.
39857
39858         utimens: check for ctime update
39859         * tests/test-utimens-common.h (check_ctime): Define.
39860         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
39861         * tests/test-futimens.h (test_futimens): Likewise.
39862         * tests/test-lutimens.h (test_lutimens): Likewise.
39863         * doc/posix-functions/futimens.texi (futimens): Document the bug.
39864         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39865
39866 2009-12-19  Bruno Haible  <bruno@clisp.org>
39867
39868         dprintf-posix: Check against memory leak fixed on 2009-12-15.
39869         * tests/test-dprintf-posix2.sh: New file.
39870         * tests/test-dprintf-posix2.c: New file.
39871         * modules/dprintf-posix-tests (Files): Add them.
39872         (configure.ac): Check for getrlimit and setrlimit.
39873         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
39874
39875 2009-12-19  Bruno Haible  <bruno@clisp.org>
39876
39877         fprintf-posix: Check against memory leak fixed on 2009-12-15.
39878         * tests/test-fprintf-posix3.sh: New file.
39879         * tests/test-fprintf-posix3.c: New file.
39880         * modules/fprintf-posix-tests (Files): Add them.
39881         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
39882
39883 2009-12-19  Eric Blake  <ebb9@byu.net>
39884
39885         dirfd: fix prototype
39886         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
39887         * lib/dirfd.c (dirfd): Likewise.
39888
39889         canonicalize: reduce memory usage
39890         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
39891         allocation to size.
39892         Reported by Solar Designer <solar@openwall.com>.
39893
39894 2009-12-19  Bruno Haible  <bruno@clisp.org>
39895
39896         New module attribute 'Applicability'.
39897         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
39898         * gnulib-tool: New option --extract-applicability.
39899         (func_usage): Document it.
39900         (sed_extract_prog): Recognize it.
39901         (func_get_applicability): New function.
39902         (func_import): Generalize handling of 'link-warning' module.
39903         * modules/link-warning (Applicability): New section.
39904         * modules/arg-nonnull (Applicability): New section.
39905         Repoted by Simon Josefsson <simon@josefsson.org>.
39906
39907 2009-12-19  Bruno Haible  <bruno@clisp.org>
39908
39909         fflush: tweak
39910         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
39911         * lib/fseeko.c (rpl_fseeko): Likewise.
39912
39913 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
39914
39915         * lib/gl_list.h: Fix typo in comment.
39916
39917 2009-12-16  Eric Blake  <ebb9@byu.net>
39918
39919         fcntl: use to simplify other modules
39920         * modules/cloexec (Depends-on): Add fcntl.
39921         * modules/fchdir (Depends-on): Likewise.
39922         * modules/fd-safer-flag (Depends-on): Likewise.
39923         * modules/unistd-safer (Depends-on): Likewise.
39924         * modules/dup3 (configure.ac): Set module indicator.
39925         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
39926         missing.
39927         * lib/fchdir.c (_gl_register_dup): Fix comment.
39928         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
39929         * lib/dup-safer.c (dup_safer): Likewise.
39930         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
39931         * lib/dup3.c (dup3): Likewise.
39932         * tests/test-fchdir.c (main): Enhance test.
39933         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
39934
39935         fcntl: port portions of fcntl to mingw
39936         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
39937         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
39938         replacement for mingw.
39939         * modules/fcntl (Description): Update.
39940         (Depends-on): Add dup2.
39941         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
39942         * modules/fcntl-h (Makefile.am): Substitute it.
39943         * lib/fcntl.in.h (fcntl): Update declaration.
39944         (F_DUPFD, F_GETFD): New macros, when needed.
39945         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
39946         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
39947         * tests/test-fcntl.c (check_flags, main): Enhance test for items
39948         we now guarantee.
39949
39950         fcntl: work around cygwin bug in F_DUPFD
39951         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
39952         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
39953         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
39954         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
39955         * doc/posix-functions/fcntl.texi (fcntl): Document it.
39956
39957         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
39958         * modules/fcntl (Files): List new files.
39959         (configure.ac): Run a test.
39960         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
39961         * lib/fcntl.c (rpl_fcntl): Likewise.
39962         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
39963         (gl_FCNTL_H): Always replace fcntl.h.
39964         * modules/fcntl-h (Makefile.am): Substitute witnesses.
39965         * lib/fcntl.in.h (fcntl): Declare replacement.
39966         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
39967         needed, plus a witness.
39968         * doc/posix-functions/fcntl.texi (fcntl): Document this.
39969         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
39970         * tests/test-fcntl.c: New file.
39971         * modules/fcntl-tests: Likewise.
39972
39973         binary-io: avoid potential compilation warning
39974         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
39975         directives.
39976
39977         fflush: avoid compilation error on NetBSD
39978         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
39979         between off_t and fpos_t, since the latter is sometimes a struct.
39980         * lib/fseeko.c (rpl_fseeko): Likewise.
39981         Reported by Alexander Nasonov <alnsn@yandex.ru>.
39982
39983 2009-12-15  Eric Blake  <ebb9@byu.net>
39984
39985         fcntl-h, stdio, sys_ioctl: fix declarations
39986         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
39987         function must not take arguments.
39988         * lib/sys_ioctl.in.h (ioctl): Likewise.
39989         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
39990         (open): Add a link warning.
39991
39992 2009-12-15  Jim Meyering  <meyering@redhat.com>
39993
39994         areadlink, areadlink-with-size: relax license to LGPLv2+
39995         * modules/areadlink (License): Relax to LGPLv2+.
39996         * modules/areadlink-with-size (License): Likewise.
39997
39998 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
39999             Bruno Haible  <bruno@clisp.org>
40000
40001         *printf: Fix memory leak.
40002         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
40003         * lib/vfprintf.c (vfprintf): Likewise.
40004         * lib/dprintf.c (dprintf): Likewise.
40005         * lib/vdprintf.c (vdprintf): Likewise.
40006
40007 2009-12-14  Eric Blake  <ebb9@byu.net>
40008
40009         accept4: adjust module dependencies
40010         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
40011
40012         utimens: one more try at avoiding compiler warning
40013         * lib/utimens.c (lutimens): Lower scope of result.
40014
40015 2009-12-13  Bruno Haible  <bruno@clisp.org>
40016
40017         Move the malloc checking from module 'list' to new module 'xlist'.
40018         * modules/xlist: New file.
40019         * lib/gl_xlist.h: New file.
40020         * lib/gl_xlist.c: New file.
40021         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
40022         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
40023         gl_list_add_last, gl_list_add_before, gl_list_add_after,
40024         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
40025         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
40026         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
40027         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
40028         gl_sortedlist_nx_add): New declarations.
40029         (struct gl_list_implementation): Rename and change methods accordingly.
40030         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
40031         (gl_list_nx_create): Renamed from gl_list_create.
40032         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
40033         (gl_list_nx_set_at): Renamed from gl_list_set_at.
40034         (gl_list_nx_add_first): Renamed from gl_list_add_first.
40035         (gl_list_nx_add_last): Renamed from gl_list_add_last.
40036         (gl_list_nx_add_before): Renamed from gl_list_add_before.
40037         (gl_list_nx_add_after): Renamed from gl_list_add_after.
40038         (gl_list_nx_add_at): Renamed from gl_list_add_at.
40039         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
40040         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
40041         gl_list_create_empty.
40042         (gl_list_nx_create): Renamed from gl_list_create.
40043         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
40044         (gl_list_nx_set_at): Renamed from gl_list_set_at.
40045         (gl_list_nx_add_first): Renamed from gl_list_add_first.
40046         (gl_list_nx_add_last): Renamed from gl_list_add_last.
40047         (gl_list_nx_add_before): Renamed from gl_list_add_before.
40048         (gl_list_nx_add_after): Renamed from gl_list_add_after.
40049         (gl_list_nx_add_at): Renamed from gl_list_add_at.
40050         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
40051         * lib/gl_array_list.c: Don't include xalloc.h.
40052         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
40053         NULL upon out-of-memory.
40054         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
40055         out-of-memory.
40056         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
40057         Change return type to 'int'.
40058         (gl_array_nx_set_at): Renamed from gl_array_set_at.
40059         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
40060         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
40061         upon out-of-memory.
40062         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
40063         upon out-of-memory.
40064         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
40065         upon out-of-memory.
40066         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
40067         upon out-of-memory.
40068         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
40069         out-of-memory.
40070         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
40071         Update.
40072         (gl_array_list_implementation): Update.
40073         * lib/gl_carray_list.c: Don't include xalloc.h.
40074         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
40075         Return NULL upon out-of-memory.
40076         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
40077         out-of-memory.
40078         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
40079         Change return type to 'int'.
40080         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
40081         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
40082         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
40083         upon out-of-memory.
40084         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
40085         upon out-of-memory.
40086         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
40087         out-of-memory.
40088         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
40089         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
40090         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
40091         Update.
40092         (gl_carray_list_implementation): Update.
40093         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
40094         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
40095         gl_linked_create_empty. Return NULL upon out-of-memory.
40096         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
40097         out-of-memory.
40098         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
40099         Change return type to 'int'. Return -1 upon out-of-memory.
40100         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
40101         out-of-memory.
40102         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
40103         upon out-of-memory.
40104         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
40105         upon out-of-memory.
40106         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
40107         NULL upon out-of-memory.
40108         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
40109         upon out-of-memory.
40110         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
40111         out-of-memory.
40112         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
40113         Update.
40114         * lib/gl_linked_list.c: Don't include xalloc.h.
40115         (gl_linked_list_implementation): Update.
40116         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
40117         (add_to_bucket): Change return type to 'int'.
40118         (gl_linkedhash_list_implementation): Update.
40119         * lib/gl_anytree_list1.h (free_subtree): New function.
40120         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
40121         gl_tree_create_empty. Return NULL upon out-of-memory.
40122         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
40123         Change return type to 'int'. Return -1 upon out-of-memory.
40124         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
40125         out-of-memory.
40126         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
40127         (gl_tree_remove_node): New function, moved here from
40128         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
40129         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
40130         Update.
40131         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
40132         malloc, not xmalloc. Return NULL upon out-of-memory.
40133         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
40134         out-of-memory.
40135         (gl_tree_remove_node_from_tree): New function, extracted from
40136         gl_tree_remove_node.
40137         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
40138         upon out-of-memory.
40139         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
40140         out-of-memory.
40141         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
40142         upon out-of-memory.
40143         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
40144         upon out-of-memory.
40145         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
40146         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
40147         not xmalloc. Return NULL upon out-of-memory.
40148         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
40149         out-of-memory.
40150         (gl_tree_remove_node_from_tree): New function, extracted from
40151         gl_tree_remove_node.
40152         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
40153         upon out-of-memory.
40154         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
40155         out-of-memory.
40156         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
40157         upon out-of-memory.
40158         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
40159         upon out-of-memory.
40160         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
40161         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
40162         gl_anytree_list1.h before gl_anyavltree_list2.h.
40163         (gl_avltree_list_implementation): Update.
40164         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
40165         gl_anytree_list1.h before gl_anyavltree_list2.h.
40166         (gl_rbtree_list_implementation): Update.
40167         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
40168         Change return type to 'int'. Return -1 upon out-of-memory. Use
40169         __builtin_expect.
40170         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
40171         (gl_avltreehash_list_implementation): Update.
40172         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
40173         (gl_rbtreehash_list_implementation): Update.
40174         * modules/array-list (Depends-on): Remove xalloc.
40175         * modules/carray-list (Depends-on): Likewise.
40176         * modules/linked-list (Depends-on): Likewise.
40177         * modules/linkedhash-list (Depends-on): Likewise.
40178         * modules/avltree-list (Depends-on): Likewise.
40179         * modules/rbtree-list (Depends-on): Likewise.
40180         * modules/avltreehash-list (Depends-on): Likewise.
40181         * modules/rbtreehash-list (Depends-on): Likewise.
40182
40183         * modules/xsublist: New file.
40184         * lib/gl_xsublist.h: New file.
40185         * lib/gl_xsublist.c: New file.
40186         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
40187         (gl_sublist_nx_create): New declaration.
40188         * lib/gl_sublist.c: Don't include xalloc.h.
40189         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
40190         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
40191         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
40192         Change return type to 'int'. Return -1 upon out-of-memory.
40193         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
40194         upon out-of-memory.
40195         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
40196         NULL upon out-of-memory.
40197         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
40198         upon out-of-memory.
40199         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
40200         NULL upon out-of-memory.
40201         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
40202         NULL upon out-of-memory.
40203         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
40204         upon out-of-memory.
40205         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
40206         (gl_sublist_list_implementation): Update.
40207         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
40208         upon out-of-memory.
40209         * modules/sublist (Depends-on): Remove xalloc.
40210
40211         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
40212         * tests/test-carray_list.c: Likewise.
40213         * tests/test-linked_list.c: Likewise.
40214         * tests/test-linkedhash_list.c: Likewise.
40215         * tests/test-avltree_list.c: Likewise.
40216         * tests/test-rbtree_list.c: Likewise.
40217         * tests/test-avltreehash_list.c: Likewise.
40218         * tests/test-rbtreehash_list.c: Likewise.
40219         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
40220         * modules/carray-list-tests (Makefile.am): Likewise.
40221         * modules/linked-list-tests (Makefile.am): Likewise.
40222         * modules/linkedhash-list-tests (Makefile.am): Likewise.
40223         * modules/avltree-list-tests (Makefile.am): Likewise.
40224         * modules/rbtree-list-tests (Makefile.am): Likewise.
40225         * modules/avltreehash-list-tests (Makefile.am): Likewise.
40226         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
40227
40228         * NEWS: Mention the changes.
40229
40230         * lib/clean-temp.c: Include gl_xlist.h.
40231         * modules/clean-temp (Depends-on): Add xlist.
40232
40233         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
40234         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
40235
40236         * tests/test-array_oset.c: Include gl_xlist.h.
40237         * modules/array-oset-tests (Depends-on): Add xlist.
40238
40239         Reported by José E. Marchesi <jemarch@gnu.org>.
40240
40241 2009-12-13  Bruno Haible  <bruno@clisp.org>
40242
40243         Move the malloc checking from module 'oset' to new module 'xoset'.
40244         * modules/xoset: New file.
40245         * lib/gl_xoset.h: New file.
40246         * lib/gl_xoset.c: New file.
40247         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
40248         declarations.
40249         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
40250         (struct gl_oset_implementation): Rename and change methods accordingly.
40251         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
40252         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
40253         'int'. Mark as __warn_unused_result__.
40254         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
40255         gl_oset_create_empty.
40256         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
40257         'int'.
40258         * lib/gl_array_oset.c: Don't include xalloc.h.
40259         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
40260         malloc, not xmalloc.
40261         (grow): Change return type to 'int'. Don't call xalloc_die.
40262         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
40263         to 'int'.
40264         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
40265         'int'.
40266         (gl_array_oset_implementation): Update.
40267         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
40268         gl_tree_create_empty.
40269         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
40270         'int'.
40271         * lib/gl_avltree_oset.c: Don't include xalloc.h.
40272         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
40273         xmalloc.
40274         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
40275         not xmalloc.
40276         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
40277         xmalloc.
40278         (gl_avltree_oset_implementation): Update.
40279         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
40280         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
40281         xmalloc.
40282         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
40283         not xmalloc.
40284         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
40285         xmalloc.
40286         (gl_rbtree_oset_implementation): Update.
40287         * modules/array-oset (Depends-on): Remove xalloc.
40288         * modules/avltree-oset (Depends-on): Likewise.
40289         * modules/rbtree-oset (Depends-on): Likewise.
40290         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
40291         * tests/test-avltree_oset.c: Likewise.
40292         * tests/test-rbtree_oset.c: Likewise.
40293         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
40294         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
40295         * modules/rbtree-oset-tests (Makefile.am): Likewise.
40296         * NEWS: Mention the change.
40297
40298 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
40299
40300         maint.mk: allow a project to override release-prep commands
40301         * top/maint.mk (alpha, beta, stable): Move release-preparatory
40302         commands into a new rule.
40303         (release-prep): New rule.
40304         (release-prep-hook): New overridable variable.
40305
40306 2009-12-13  Bruno Haible  <bruno@clisp.org>
40307
40308         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
40309
40310 2009-12-13  Jim Meyering  <meyering@redhat.com>
40311
40312         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
40313         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
40314
40315 2009-12-12  Bruno Haible  <bruno@clisp.org>
40316
40317         duplocale: Tweak.
40318         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
40319
40320 2009-12-12  Karl Berry  <karl@gnu.org>
40321
40322         * config/srclist.txt (strtoll.c): tab changes, no more sync.
40323
40324 2009-12-12  Bruno Haible  <bruno@clisp.org>
40325
40326         * m4/po.m4: Undo incorrect untabification.
40327
40328 2009-12-12  Bruno Haible  <bruno@clisp.org>
40329
40330         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
40331         * modules/c-strtod (Depends-on): Add locale.
40332         * modules/c-strtold (Depends-on): Likewise.
40333
40334 2009-12-12  Bruno Haible  <bruno@clisp.org>
40335
40336         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
40337
40338 2009-12-11  Eric Blake  <ebb9@byu.net>
40339
40340         setenv: relax requirement in light of POSIX ruling
40341         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
40342         not NULL.
40343         * tests/test-setenv.c (main): Relax test.
40344         * tests/test-unsetenv.c (main): Likewise.
40345         * doc/posix-functions/setenv.texi (setenv): Document this.
40346         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
40347
40348 2009-12-11  Bruno Haible  <bruno@clisp.org>
40349
40350         New module 'fd-safer-flag'.
40351         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
40352         * lib/dup-safer.c (dup_safer_flag): Remove function.
40353         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
40354         * lib/fd-safer.c (fd_safer_flag): Remove function.
40355         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
40356         * modules/cloexec (configure.ac): Drop indicator macro.
40357         * modules/fd-safer-flag: New file.
40358         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
40359         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
40360         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
40361
40362 2009-12-11  Bruno Haible  <bruno@clisp.org>
40363
40364         Tests for module 'nl_langinfo'.
40365         * modules/nl_langinfo-tests: New file.
40366         * tests/test-nl_langinfo.sh: New file.
40367         * tests/test-nl_langinfo.c: New file.
40368
40369         New module 'nl_langinfo'.
40370         * lib/nl_langinfo.c: New file.
40371         * m4/nl_langinfo.m4: New file.
40372         * modules/nl_langinfo: New file.
40373         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
40374
40375 2009-12-11  Bruno Haible  <bruno@clisp.org>
40376
40377         Tests for module 'langinfo'.
40378         * modules/langinfo-tests: New file.
40379         * tests/test-langinfo.c: New file.
40380
40381         New module 'langinfo'.
40382         * lib/langinfo.in.h: New file.
40383         * m4/langinfo_h.m4: New file.
40384         * modules/langinfo: New file.
40385         * doc/posix-headers/langinfo.texi: Mention the new module.
40386
40387 2009-12-11  Bruno Haible  <bruno@clisp.org>
40388
40389         * lib/config.charset: Untabify.
40390
40391 2009-12-11  Bruno Haible  <bruno@clisp.org>
40392
40393         * modules/unistd-safer (configure.ac): Drop indicator macro.
40394
40395 2009-12-11  Bruno Haible  <bruno@clisp.org>
40396
40397         Move pipe2-safer code to its own file.
40398         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
40399         * lib/pipe-safer.c (pipe2_safer): Remove function.
40400         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
40401         (Makefile.am): Add it to lib_SOURCES.
40402
40403 2009-12-10  Bruno Haible  <bruno@clisp.org>
40404
40405         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
40406
40407 2009-12-10  Bruno Haible  <bruno@clisp.org>
40408
40409         Declare which arguments expect non-NULL values, for GCC and clang.
40410         * build-aux/arg-nonnull.h: New file.
40411         * modules/arg-nonnull: New file.
40412         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
40413         (inet_ntop, inet_pton): Use it.
40414         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
40415         (closedir, dirfd, opendir, scandir, alphasort): Use it.
40416         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
40417         (open, openat): Use it.
40418         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
40419         (fnmatch): Use it.
40420         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
40421         (getopt, getopt_long, getopt_long_only): Use it.
40422         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
40423         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
40424         Use it.
40425         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
40426         (iconv_open): Use it.
40427         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
40428         (strtoimax, strtoumax): Use it.
40429         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
40430         (duplocale): Use it.
40431         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
40432         (frexp, frexpl): Use it.
40433         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
40434         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
40435         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
40436         (tsearch, tfind, tdelete, twalk): Use it.
40437         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
40438         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
40439         sigpending): Use it.
40440         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
40441         (posix_spawn, posix_spawnp, posix_spawnattr_init,
40442         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
40443         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
40444         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
40445         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
40446         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
40447         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
40448         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
40449         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
40450         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
40451         Use it.
40452         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
40453         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
40454         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
40455         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
40456         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
40457         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
40458         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
40459         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
40460         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
40461         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
40462         strtoull, unsetenv): Use it.
40463         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
40464         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
40465         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
40466         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
40467         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
40468         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
40469         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
40470         (strcasecmp, strncasecmp): Use it.
40471         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
40472         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
40473         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
40474         rpl_setsockopt): Use it.
40475         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
40476         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
40477         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
40478         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
40479         (gettimeofday): Use it.
40480         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
40481         (times): Use it.
40482         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
40483         (uname): Use it.
40484         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
40485         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
40486         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
40487         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
40488         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
40489         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
40490         unlinkat, write): Use it.
40491         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
40492         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
40493         * lib/argv-iter.h: Include arg-nonnull.h.
40494         (_ATTRIBUTE_NONNULL_): Remove macro.
40495         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
40496         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
40497         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
40498         optimization.
40499         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
40500         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
40501         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
40502         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
40503         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
40504         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
40505         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
40506         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
40507         * modules/arpa_inet (Depends-on): Add arg-nonnull.
40508         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
40509         * modules/dirent (Depends-on): Add arg-nonnull.
40510         (Makefile.am): Insert arg-nonnull.h into dirent.h.
40511         * modules/fcntl-h (Depends-on): Add arg-nonnull.
40512         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
40513         * modules/fnmatch (Depends-on): Add arg-nonnull.
40514         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
40515         * modules/getopt-posix (Depends-on): Add arg-nonnull.
40516         (Makefile.am): Insert arg-nonnull.h into getopt.h.
40517         * modules/glob (Depends-on): Add arg-nonnull.
40518         (Makefile.am): Insert arg-nonnull.h into glob.h.
40519         * modules/iconv_open (Depends-on): Add arg-nonnull.
40520         (Makefile.am): Insert arg-nonnull.h into iconv.h.
40521         * modules/inttypes (Depends-on): Add arg-nonnull.
40522         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
40523         * modules/locale (Depends-on): Add arg-nonnull.
40524         (Makefile.am): Insert arg-nonnull.h into locale.h.
40525         * modules/math (Depends-on): Add arg-nonnull.
40526         (Makefile.am): Insert arg-nonnull.h into math.h.
40527         * modules/netdb (Depends-on): Add arg-nonnull.
40528         (Makefile.am): Insert arg-nonnull.h into netdb.h.
40529         * modules/search (Depends-on): Add arg-nonnull.
40530         (Makefile.am): Insert arg-nonnull.h into search.h.
40531         * modules/signal (Depends-on): Add arg-nonnull.
40532         (Makefile.am): Insert arg-nonnull.h into signal.h.
40533         * modules/spawn (Depends-on): Add arg-nonnull.
40534         (Makefile.am): Insert arg-nonnull.h into spawn.h.
40535         * modules/stdio (Depends-on): Add arg-nonnull.
40536         (Makefile.am): Insert arg-nonnull.h into stdio.h.
40537         * modules/stdlib (Depends-on): Add arg-nonnull.
40538         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
40539         * modules/string (Depends-on): Add arg-nonnull.
40540         (Makefile.am): Insert arg-nonnull.h into string.h.
40541         * modules/strings (Depends-on): Add arg-nonnull.
40542         (Makefile.am): Insert arg-nonnull.h into strings.h.
40543         * modules/sys_socket (Depends-on): Add arg-nonnull.
40544         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
40545         * modules/sys_stat (Depends-on): Add arg-nonnull.
40546         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
40547         * modules/sys_time (Depends-on): Add arg-nonnull.
40548         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
40549         * modules/sys_times (Depends-on): Add arg-nonnull.
40550         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
40551         * modules/sys_utsname (Depends-on): Add arg-nonnull.
40552         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
40553         * modules/time (Depends-on): Add arg-nonnull.
40554         (Makefile.am): Insert arg-nonnull.h into time.h.
40555         * modules/unistd (Depends-on): Add arg-nonnull.
40556         (Makefile.am): Insert arg-nonnull.h into unistd.h.
40557         * modules/wchar (Depends-on): Add arg-nonnull.
40558         (Makefile.am): Insert arg-nonnull.h into wchar.h.
40559         * modules/argv-iter (Depends-on): Add arg-nonnull.
40560         * tests/test-canonicalize.c (null_ptr): New function.
40561         (main): Use it.
40562         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
40563         (main): Use it.
40564         * tests/test-memmem.c (null_ptr): New function.
40565         (main): Use it.
40566         Reported by Jim Meyering.
40567
40568 2009-12-10  Bruno Haible  <bruno@clisp.org>
40569
40570         Use spaces for indentation, not tabs.
40571         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
40572         * m4/*.m4: Untabify.
40573         * build-aux/*.h: Untabify.
40574         * tests/**/*.[hc]: Untabify.
40575         * README: New section "Indent with spaces, not TABs", based on
40576         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
40577         * NEWS: Mention the change.
40578
40579 2009-12-10  Bruno Haible  <bruno@clisp.org>
40580
40581         pty test: Fix link error.
40582         * modules/pty-tests (Makefile.am): Add the default LDADD value to
40583         test_pty_LDADD.
40584
40585 2009-12-07  Simon Josefsson  <simon@josefsson.org>
40586
40587         * modules/pty: New file.
40588         * modules/pty-tests: New file.
40589         * m4/pty.m4: New file.
40590         * tests/test-pty.c: New file.
40591         * doc/glibc-headers/pty.texi: Modified.
40592         * doc/glibc-functions/forkpty.texi: Modified.
40593         * doc/glibc-functions/openpty.texi: Modified.
40594
40595 2009-12-10  Bruno Haible  <bruno@clisp.org>
40596
40597         Avoid syntax error in C++ mode.
40598         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
40599
40600 2009-12-10  Bruno Haible  <bruno@clisp.org>
40601
40602         Use sed with option -e.
40603         * gnulib-tool (func_version, func_emit_copyright_notice,
40604         func_emit_initmacro_end, func_import, func_create_testdir): Pass
40605         option -e to sed.
40606         * modules/link-warning (Makefile.am): Likewise.
40607
40608 2009-12-10  Jim Meyering  <meyering@redhat.com>
40609
40610         mgetgroups: do not write bytes beyond end of malloc'd buffer
40611         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
40612         username, we call getgroups with a one-element-shorter buffer,
40613         but still told it the length was original, max_n_groups.
40614
40615 2009-12-09  Eric Blake  <ebb9@byu.net>
40616
40617         cloexec: relax license
40618         * modules/cloexec (Maintainer): Add myself.
40619         (License): Use LGPL, not GPL.
40620
40621         link-warning: optimize generation
40622         * modules/link-warning (Makefile.am): Reduce process usage.
40623
40624 2009-12-09  Bruno Haible  <bruno@clisp.org>
40625
40626         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
40627         workaround was added on 2009-11-17.
40628
40629 2009-12-09  Jim Meyering  <meyering@redhat.com>
40630             Bruno Haible  <bruno@clisp.org>
40631
40632         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
40633         * modules/link-warning (Makefile.am): Make the comment-removing sed
40634         command more robust in the face of bootstrap-prepended comment lines.
40635
40636 2009-12-09  Bruno Haible  <bruno@clisp.org>
40637
40638         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
40639         most one group.
40640
40641 2009-12-09  Simon Josefsson <simon@josefsson.org>
40642             Bruno Haible  <bruno@clisp.org>
40643
40644         * build-aux/link-warning.h: Add copyright notice.
40645         * modules/link-warning (Makefile.am): Generate link-warning.h from
40646         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
40647         * NEWS: Mention change in link-warning module.
40648         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
40649         * modules/dirent (Makefile.am): Add dependency to dirent.h.
40650         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
40651         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
40652         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
40653         * modules/math (Makefile.am): Add dependency to math.h.
40654         * modules/search (Makefile.am): Add dependency to search.h.
40655         * modules/signal (Makefile.am): Add dependency to signal.h.
40656         * modules/spawn (Makefile.am): Add dependency to spawn.h.
40657         * modules/stdio (Makefile.am): Add dependency to stdio.h.
40658         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
40659         * modules/string (Makefile.am): Add dependency to string.h.
40660         * modules/strings (Makefile.am): Add dependency to strings.h.
40661         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
40662         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
40663         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
40664         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
40665         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
40666         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
40667         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
40668         * modules/unistd (Makefile.am): Add dependency to unistd.h.
40669         * modules/wchar (Makefile.am): Add dependency to wchar.h.
40670
40671 2009-12-09  Bruno Haible  <bruno@clisp.org>
40672
40673         fchdir: Optimize away rpl_fstat when possible.
40674         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
40675         REPLACE_OPEN_DIRECTORY.
40676         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
40677
40678 2009-12-09  Bruno Haible  <bruno@clisp.org>
40679
40680         * lib/fchdir.c: Update comment.
40681
40682 2009-12-09  Bruno Haible  <bruno@clisp.org>
40683
40684         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
40685
40686 2009-12-08  Eric Blake  <ebb9@byu.net>
40687
40688         fchdir: avoid memory leak on re-registration.
40689         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
40690
40691 2009-12-08  Jim Meyering  <meyering@redhat.com>
40692
40693         init.sh: avoid Solaris 10 /bin/sh portability problem
40694         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
40695         sourced script:
40696           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
40697           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
40698           bar
40699         tests/init.sh relied on that, accepting a --set-path=DIR argument,
40700         and two tests used that idiom.
40701         * tests/init.sh: Update suggested usage comments.
40702         (path_prepend_): New function, to be used in place
40703         of the --src-path=DIR option.
40704         (setup_): Move PATH-prepending code into path_prepend_.
40705         * tests/test-pread.sh: Adapt to new usage.
40706         * tests/test-xalloc-die.sh: Likewise.
40707
40708 2009-12-08  Simon Josefsson  <simon@josefsson.org>
40709
40710         * doc/gnulib.texi (Glibc pty.h): Add.
40711         * doc/glibc-functions/forkpty.texi: Add.
40712         * doc/glibc-functions/openpty.texi: Add.
40713         Suggested by Bruno Haible.
40714
40715 2009-12-08  Eric Blake  <ebb9@byu.net>
40716
40717         fchdir: fix logic bugs
40718         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
40719         * tests/test-fchdir.c (main): Enhance test.
40720         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
40721         is in use.
40722
40723         dup2: fix logic bugs
40724         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
40725         REPLACE_DUP2 to decide when rpl_dup2 is needed.
40726         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
40727         exists.
40728         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
40729
40730 2009-12-07  Eric Blake  <ebb9@byu.net>
40731
40732         unlink: fix m4 detection
40733         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
40734
40735         unistd-safer: add unit test
40736         * modules/unistd-safer-tests: New file.
40737         * tests/test-dup-safer.c: Likewise.
40738         * tests/test-cloexec.c (setmode): Avoid compiler warning.
40739         * tests/test-dup2.c (setmode): Likewise.
40740         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
40741
40742         cloexec: preserve text vs. binary across dup_cloexec
40743         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
40744         mode.
40745         * modules/dup2-tests (Depends-on): Add binary-io.
40746         * modules/cloexec-tests (Depends-on): Likewise.
40747         * tests/test-dup2.c (setmode, is_mode): New helpers.
40748         (main): Add tests that translation mode is preserved.
40749         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
40750         Reported by Bruno Haible.
40751
40752         mgetgroups: reduce duplicate listings
40753         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
40754         resulting array.
40755         * tests/test-chown.h (test_chown): Simplify client.
40756         * tests/test-lchown.h (test_lchown): Likewise.
40757
40758 2009-12-06  Bruno Haible  <bruno@clisp.org>
40759
40760         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
40761         value.
40762
40763 2009-12-06  Bruno Haible  <bruno@clisp.org>
40764
40765         * lib/progname.c: Include stdio.h, stdlib.h.
40766         (set_program_name): Reject a NULL argument.
40767
40768 2009-12-05  Eric Blake  <ebb9@byu.net>
40769
40770         pipe2-safer: new module
40771         * modules/pipe2-safer: New file.
40772         * lib/unistd-safer.h (pipe2_safer): New prototype.
40773         * lib/unistd--.h (pipe2): New wrapper.
40774         * lib/pipe-safer.c (pipe2_safer): New function.
40775         * modules/pipe (Depends-on): Add pipe2-safer.
40776         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
40777
40778         stdlib-safer: preserve cloexec flag for mkostemp[s]
40779         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
40780         fd_safer_flag.
40781
40782         unistd-safer: allow preservation of cloexec status via flag
40783         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
40784         prototypes.
40785         * lib/dup-safer.c (dup_safer_flag): New function.
40786         * lib/fd-safer.c (fd_safer_flag): Likewise.
40787         * modules/cloexec (configure.ac): Set witness.
40788
40789         test-dup2: enhance test
40790         * modules/dup2-tests (Depends-on): Add cloexec.
40791         * tests/test-dup2.c (main): Enhance test.
40792
40793         cloexec: add dup_cloexec
40794         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
40795         header and comments.
40796         * lib/cloexec.c (set_cloexec_flag): Add comments.
40797         (dup_cloexec): New function, with mingw implementation borrowed
40798         from...
40799         * lib/w32spawn.h (dup_noinherit): ...here.
40800         * modules/execute (Depends-on): Add cloexec.
40801         * modules/pipe (Depends-on): Likewise.
40802         * modules/cloexec (Depends-on): Add dup2.
40803         * modules/cloexec-tests (Files): New file.
40804         * tests/test-cloexec.c: Likewise.
40805
40806         test-xalloc-die: fix test for mingw
40807         * modules/xalloc-die-tests (Files): Add tests/init.sh.
40808         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
40809         directory and .exe suffix off argv[0] output.
40810
40811         test-fseeko: fix test for mingw
40812         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
40813         than undefining fseek, so test will pass on mingw.
40814
40815 2009-12-05  Bruno Haible  <bruno@clisp.org>
40816
40817         * lib/progname.h (set_program_name): Clarify specification.
40818         * lib/progname.c (set_program_name): Likewise.
40819         Reported by Jim Meyering.
40820
40821 2009-12-05  Jim Meyering  <meyering@redhat.com>
40822
40823         maint.mk: backslash-escape parens in default regexp
40824         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
40825         backslash-escape the literal parentheses.
40826
40827         maint.mk: news-date-check: use grep -E
40828         * top/maint.mk (today): Define a Make variable, not a...
40829         (news-date-check): ...shell variable.
40830         (news-date-regexp): Use the Make variable.
40831         Use grep's -E option.  Change the failing diagnostic to mention
40832         the variable, $(news-date-regexp).
40833
40834 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
40835
40836         maintainer-makefile: allow customization of NEWS entry format
40837         * top/maint.mk (news-date-regexp): New overridable variable.
40838         (news-date-check): Use it.
40839
40840 2009-12-04  Eric Blake  <ebb9@byu.net>
40841
40842         mgetgroups: add xgetgroups, and avoid ENOSYS failures
40843         * lib/mgetgroups.h (xgetgroups): New prototype.
40844         * lib/mgetgroups.c (xgetgroups): New wrapper.
40845         (mgetgroups): Handle ENOSYS.
40846         * modules/mgetgroups (Depends-on): Add realloc.
40847         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
40848
40849         mgetgroups: avoid argument promotion issues with -1
40850         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
40851         for invalid gid_t.
40852         * tests/test-chown.h (getegid, test_chown): Likewise.
40853         * tests/test-lchown.h (getegid, test_lchown): Likewise.
40854
40855 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
40856
40857         exclude: Fix header file problems.
40858         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
40859
40860 2009-12-01  Jim Meyering  <meyering@redhat.com>
40861
40862         fts: fts_open: do not let an empty string cause immediate failure
40863         This is required in support of GNU rm, for which the command
40864         "rm A '' B" must process and remove both A and B, in spite of
40865         the empty string argument.
40866         * lib/fts.c (fts_open): Do not let the presence of an empty string
40867         cause fts_open to fail immediately.  Most fts-using tools must be
40868         able to process all arguments, in order, and can be expected to
40869         diagnose such arguments themselves.
40870
40871 2009-11-30  Eric Blake  <ebb9@byu.net>
40872
40873         utimens: fix compilation error
40874         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
40875         Declare variable at right scope.
40876
40877 2009-11-29  Jim Meyering  <meyering@redhat.com>
40878
40879         bootstrap: handle perl-5.11's changed --version output
40880         * build-aux/bootstrap (get_version): Handle perl separately,
40881         since perl-5.11's --version output is different.
40882
40883 2009-11-28  Jim Meyering  <meyering@redhat.com>
40884
40885         userspec: depend on the inttostr module, too
40886         * modules/userspec (Depends-on): Add inttostr.
40887
40888         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
40889         * lib/userspec.c (parse_with_separator): Do not accept a user ID
40890         number of MAXUID when it evaluates to (uid_t) -1.
40891         Likewise for group ID.  Reported by Matt McCutchen in
40892         <http://savannah.gnu.org/bugs/?28113>
40893
40894         userspec: reformat to use spaces, not TABs
40895         * lib/userspec.c: Expand TABs to spaces.
40896         Add Emacs' "indent-tabs-mode: nil" hint.
40897
40898 2009-11-27  Eric Blake  <ebb9@byu.net>
40899
40900         getopt-gnu: flush out another BSD bug
40901         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
40902         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
40903         flush out BSD bug.
40904         * tests/test-getopt.h (test_getopt): End lists with NULL.
40905         * tests/test-getopt_long.h (test_getopt_long): Likewise.
40906         (test_getopt_long_posix): Enhance test.
40907         * modules/getopt-posix-tests (Depends-on): Add stdbool.
40908         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
40909         getopt-gnu.
40910         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
40911         Likewise.
40912
40913 2009-11-27  Simon Josefsson  <simon@josefsson.org>
40914
40915         * modules/idpriv-droptemp-tests (Notice): Fix text.
40916
40917 2009-11-27  Jim Meyering  <meyering@redhat.com>
40918
40919         test-xalloc-die: avoid spurious failure due to libtool argv difference
40920         In a libtool-enabled project, this test would fail due to a difference
40921         in the emitted program name, e.g.,
40922         -test-xalloc-die: memory exhausted
40923         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
40924         Use program to avoid that.
40925         * modules/xalloc-die-tests (Depends-on): Add progname.
40926         * tests/test-xalloc-die.c: Include progname.h".
40927         (program_name): Remove decl.
40928         (main): Call set_program_name.
40929         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
40930
40931 2009-11-26  Richard Jones  <rjones@redhat.com>
40932
40933         w32sock: leave win32 error in place.
40934         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
40935
40936 2009-11-26  Eric Blake  <ebb9@byu.net>
40937
40938         init.sh: suggest to use skip_ and fail_ functions in comments
40939         * tests/init.sh: Add a sentence.
40940
40941 2009-11-25  Bruno Haible  <bruno@clisp.org>
40942
40943         init.sh: add documentation in comments
40944         * tests/init.sh: Add some developer and user documentation.
40945
40946 2009-11-26  Jim Meyering  <meyering@redhat.com>
40947
40948         init.sh: accommodate even those who specify bogus srcdir manually
40949         * tests/init.sh: Normally, srcdir is guaranteed by automake and
40950         configure-time tests to be sanitized, so that there is no need to
40951         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
40952         (with no double quotes) suffices.  However, since tests may be
40953         invoked manually, and since you may explicitly set srcdir to the
40954         name of a directory containing spaces, do quote its uses here.
40955         * tests/test-pread.sh: Likewise.
40956         Suggested by Bruno Haible.
40957
40958         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
40959         * tests/test-pread.sh: Write no data into the pipe, because
40960         test-pread actually reads none.  This avoids a diagnostic,
40961         "bash: echo: write error: Broken pipe", that arises in the unusual
40962         event something is ignoring SIGPIPE, and might be interpreted
40963         as some sort of failure.  Reported by Bruno Haible.
40964
40965 2009-11-25  Jim Meyering  <meyering@redhat.com>
40966
40967         test-pread: cover failure with ESPIPE and EINVAL
40968         * tests/test-pread.c (main): Test for failure, too.
40969         * tests/test-pread.sh: Invoke with stdin on a pipe.
40970         Suggested by Eric Blake.
40971
40972         pread: improvement and fix
40973         * modules/pread (Depends-on): Depend on lseek, for portability to
40974         e.g., mingw.  Suggested by Eric Blake.
40975         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
40976
40977         unistd.in.h: correct declaration of pread
40978         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
40979         Reported by Richard W.M. Jones.
40980
40981         test-pread.sh: distribute the test script
40982         * modules/pread-tests (Files): Include test-pread.sh.
40983
40984         test-pread.sh: clean up
40985         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
40986         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
40987         That is unnecessary, since it's always ".".
40988         Suggestion from Eric Blake.
40989
40990         test-pread.sh: make executable
40991         * tests/test-pread.sh: Set executable bit.
40992         Reported by Eric Blake.
40993
40994         correct typo in test-pread.sh
40995         * tests/test-pread.sh: Add #! line.
40996
40997         test pread
40998         * tests/test-pread.c: New file.
40999         * tests/test-pread.sh: Likewise.
41000         * modules/pread-tests: Likewise.
41001
41002         pread: new module
41003         * modules/pread: New file.
41004         * lib/unistd.in.h (pread): Define/declare.
41005         * lib/pread.c (pread): New file.
41006         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
41007         * modules/unistd (Makefile.am): Substitute witnesses.
41008         * doc/posix-functions/pread.texi (pread): Update.
41009         * MODULES.html.sh: Add pread.
41010
41011 2009-11-25  Jim Meyering  <meyering@redhat.com>
41012
41013         tests/init.sh: new file to be used via most *.sh tests
41014         * tests/init.sh: New file.
41015
41016 2009-11-25  Eric Blake  <ebb9@byu.net>
41017
41018         utimens: work around older Linux failure with symlinks
41019         * lib/utimens.c (lutimensat_works_really): New variable.
41020         (fdutimens, lutimens): Use it to manage kernels that support
41021         nanosecond times on files, but not on symlinks.
41022         Reported by OndÅ™ej Vašík.
41023
41024         utimes: fix configure grammar
41025         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
41026
41027 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
41028
41029         regex: Fix fastmap for multibyte character ranges.
41030         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
41031         characters when a multibyte character range is included.
41032
41033 2009-11-22  Andy Wingo  <wingo@pobox.com>
41034
41035         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
41036         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
41037
41038 2009-11-24  Bruno Haible  <bruno@clisp.org>
41039
41040         doc: Most *_l functions exist in MacOS X 10.5.
41041         * doc/posix-functions/duplocale.texi: Update platforms list.
41042         * doc/posix-functions/freelocale.texi: Likewise.
41043         * doc/posix-functions/newlocale.texi: Likewise.
41044         * doc/posix-functions/uselocale.texi: Likewise.
41045         * doc/posix-functions/isalnum_l.texi: Likewise.
41046         * doc/posix-functions/isalpha_l.texi: Likewise.
41047         * doc/posix-functions/isblank_l.texi: Likewise.
41048         * doc/posix-functions/iscntrl_l.texi: Likewise.
41049         * doc/posix-functions/isdigit_l.texi: Likewise.
41050         * doc/posix-functions/isgraph_l.texi: Likewise.
41051         * doc/posix-functions/islower_l.texi: Likewise.
41052         * doc/posix-functions/isprint_l.texi: Likewise.
41053         * doc/posix-functions/ispunct_l.texi: Likewise.
41054         * doc/posix-functions/isspace_l.texi: Likewise.
41055         * doc/posix-functions/isupper_l.texi: Likewise.
41056         * doc/posix-functions/iswalnum_l.texi: Likewise.
41057         * doc/posix-functions/iswalpha_l.texi: Likewise.
41058         * doc/posix-functions/iswblank_l.texi: Likewise.
41059         * doc/posix-functions/iswcntrl_l.texi: Likewise.
41060         * doc/posix-functions/iswctype_l.texi: Likewise.
41061         * doc/posix-functions/iswdigit_l.texi: Likewise.
41062         * doc/posix-functions/iswgraph_l.texi: Likewise.
41063         * doc/posix-functions/iswlower_l.texi: Likewise.
41064         * doc/posix-functions/iswprint_l.texi: Likewise.
41065         * doc/posix-functions/iswpunct_l.texi: Likewise.
41066         * doc/posix-functions/iswspace_l.texi: Likewise.
41067         * doc/posix-functions/iswupper_l.texi: Likewise.
41068         * doc/posix-functions/iswxdigit_l.texi: Likewise.
41069         * doc/posix-functions/isxdigit_l.texi: Likewise.
41070         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
41071         * doc/posix-functions/strcasecmp_l.texi: Likewise.
41072         * doc/posix-functions/strcoll_l.texi: Likewise.
41073         * doc/posix-functions/strfmon_l.texi: Likewise.
41074         * doc/posix-functions/strftime_l.texi: Likewise.
41075         * doc/posix-functions/strncasecmp_l.texi: Likewise.
41076         * doc/posix-functions/strxfrm_l.texi: Likewise.
41077         * doc/posix-functions/tolower_l.texi: Likewise.
41078         * doc/posix-functions/toupper_l.texi: Likewise.
41079         * doc/posix-functions/towctrans_l.texi: Likewise.
41080         * doc/posix-functions/towlower_l.texi: Likewise.
41081         * doc/posix-functions/towupper_l.texi: Likewise.
41082         * doc/posix-functions/wcscoll_l.texi: Likewise.
41083         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
41084         * doc/posix-functions/wctrans_l.texi: Likewise.
41085         * doc/posix-functions/wctype_l.texi: Likewise.
41086         * doc/glibc-functions/strptime_l.texi: Likewise.
41087         * doc/glibc-functions/strtod_l.texi: Likewise.
41088         * doc/glibc-functions/strtof_l.texi: Likewise.
41089         * doc/glibc-functions/strtol_l.texi: Likewise.
41090         * doc/glibc-functions/strtold_l.texi: Likewise.
41091         * doc/glibc-functions/strtoll_l.texi: Likewise.
41092         * doc/glibc-functions/strtoul_l.texi: Likewise.
41093         * doc/glibc-functions/strtoull_l.texi: Likewise.
41094         * doc/glibc-functions/wcsftime_l.texi: Likewise.
41095         * doc/glibc-functions/wcstod_l.texi: Likewise.
41096         * doc/glibc-functions/wcstof_l.texi: Likewise.
41097         * doc/glibc-functions/wcstol_l.texi: Likewise.
41098         * doc/glibc-functions/wcstold_l.texi: Likewise.
41099         * doc/glibc-functions/wcstoll_l.texi: Likewise.
41100         * doc/glibc-functions/wcstoul_l.texi: Likewise.
41101         * doc/glibc-functions/wcstoull_l.texi: Likewise.
41102
41103 2009-11-24  Bruno Haible  <bruno@clisp.org>
41104
41105         duplocale: Fix logic bug.
41106         * lib/duplocale.c: Don't include <langinfo.h>.
41107         (_NL_LOCALE_NAME): Remove macro.
41108         (rpl_duplocale): Use setlocale instead of nl_langinfo.
41109         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
41110
41111 2009-11-23  Jim Meyering  <meyering@redhat.com>
41112
41113         test-update-copyright: don't hard-code /usr/bin/perl
41114         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
41115         perl to print the current year.  Gilles Espinasse reported that
41116         the replaced use of perl was hard-coded as /usr/bin/perl.
41117
41118 2009-11-23  Bruno Haible  <bruno@clisp.org>
41119
41120         duplocale: Add support for glibc 2.3.x.
41121         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
41122
41123 2009-11-22  Bruno Haible  <bruno@clisp.org>
41124
41125         vasnprintf: Tiny optimization.
41126         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
41127         MacOS X.
41128
41129 2009-11-22  Bruno Haible  <bruno@clisp.org>
41130
41131         Tests for module 'duplocale'.
41132         * modules/duplocale-tests: New file.
41133         * tests/test-duplocale.c: New file.
41134
41135         New module 'duplocale'.
41136         * m4/duplocale.m4: New file.
41137         * lib/locale.in.h (duplocale): New declaration.
41138         * lib/duplocale.c: New file.
41139         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
41140         gl_LOCALE_H_DEFAULTS): New macros.
41141         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
41142         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
41143         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
41144         REPLACE_DUPLOCALE.
41145         * modules/duplocale: New file.
41146         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
41147
41148 2009-11-22  Bruno Haible  <bruno@clisp.org>
41149
41150         * modules/locale-tests (configure.ac): Test for newlocale function.
41151         * tests/test-locale.c: When the system has extended locale functions,
41152         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
41153
41154         locale: Make locale_t available when possible.
41155         * lib/locale.in.h: Include <xlocale.h> when it exists.
41156         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
41157         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
41158         * modules/locale (Depends-on): Add extensions.
41159         (Makefile.am): Also substitute HAVE_XLOCALE_H.
41160         * doc/posix-headers/locale.texi: Document the problem with locale_t.
41161
41162 2009-11-22  Bruno Haible  <bruno@clisp.org>
41163
41164         Add comments.
41165         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
41166         invocation.
41167         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
41168         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
41169         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
41170
41171 2009-11-22  Bruno Haible  <bruno@clisp.org>
41172
41173         error: account for the possibility of freopen (stdout).
41174         * lib/error.c: Include <unistd.h>.
41175         (flush_stdout): New function, extracted from error and error_at_line.
41176         Determine stdout's fd dynamically.
41177         (error, error_at_line): Invoke flush_stdout.
41178         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
41179         * modules/error (Depends-on): Add unistd.
41180
41181 2009-11-22  Bruno Haible  <bruno@clisp.org>
41182
41183         diffseq: Add comment.
41184         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
41185
41186 2009-11-22  Jim Meyering  <meyering@redhat.com>
41187
41188         c-stack: avoid defining an unused static function
41189         * lib/c-stack.c (find_stack_direction): Do not define this function
41190         when it will not be used.
41191
41192         diffseq: avoid spurious gcc warnings
41193         * lib/diffseq.h (IF_LINT2): Define.
41194         (compareseq): Use it to initialize two members of "part".
41195         This avoids two used-uninitialized warnings.
41196
41197 2009-11-21  Jim Meyering  <meyering@redhat.com>
41198
41199         c-stack: avoid "ignoring return value of `write'" warning
41200         * lib/c-stack.c: Include "ignore-value.h".
41201         (die): Explicitly ignore each write return value.
41202         * modules/c-stack (Depends-on): Add ignore-value.
41203
41204 2009-11-21  Bruno Haible  <bruno@clisp.org>
41205
41206         diffseq: reduce scope of variable 'best'.
41207         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
41208         variable, earlier used for two different purposes.
41209
41210 2009-11-21  Jim Meyering  <meyering@redhat.com>
41211
41212         diffseq: remove useless assignment to "best"
41213         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
41214         assignment.  At that point "best" is already guaranteed to be zero.
41215
41216 2009-11-20  Eric Blake  <ebb9@byu.net>
41217
41218         build: mention ftp redirector in release announcements
41219         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
41220         values that used to come from cfg.mk; mention FTP redirect URL.
41221         * build-aux/announce-gen: Mention the mirror list.
41222         Suggested by Karl Berry.
41223
41224         nanosleep: improve port to mingw
41225         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
41226         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
41227         LIB_NANOSLEEP, but only when needed.
41228         * modules/select (Link): Document LIBSOCKET.
41229         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
41230         enough.
41231
41232         nanosleep: work around cygwin bug
41233         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
41234         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
41235         bug.
41236         (getnow): Delete, not needed.
41237         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
41238         LIB_CLOCK_GETTIME.
41239         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
41240         clock-time, gettime.
41241         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
41242         bug.
41243         * modules/nanosleep-tests: New test.
41244         * tests/test-nanosleep.c: New file.
41245
41246         sleep: work around cygwin bug
41247         * lib/sleep.c (rpl_sleep): Work around the bug.
41248         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
41249         (gl_PREREQ_SLEEP): Delete unused macro.
41250         * modules/sleep (Depends-on): Add verify.
41251         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
41252         * modules/unistd (Makefile.am): Substitute witness.
41253         * lib/unistd.in.h (sleep): Update prototype.
41254         * doc/posix-functions/sleep.texi (sleep): Document the bug.
41255         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
41256         * modules/sleep-tests (Depends-on): Check for alarm.
41257
41258 2009-11-20  Jim Meyering  <meyering@redhat.com>
41259
41260         maint.mk: improve sc_prohibit_magic_number_exit
41261         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
41262         so it does not match uses like System.exit(1).
41263         Add comments showing how to correct all offenders.
41264
41265 2009-11-19  Eric Blake  <ebb9@byu.net>
41266
41267         xalloc-die-tests: add missing library
41268         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
41269
41270         test-xvasprintf: silence compiler warnings
41271         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
41272         empty string from gcc.
41273
41274 2009-11-19  Jim Meyering  <meyering@redhat.com>
41275
41276         xfreopen: new module, from coreutils
41277         * modules/xfreopen: New module.
41278         * lib/xfreopen.c: New file.
41279         * lib/xfreopen.h: New file.
41280         * MODULES.html.sh (File stream based Input/Output"): Add it.
41281
41282 2009-11-19  Eric Blake  <ebb9@byu.net>
41283
41284         manywarnings: depend on warnings
41285         * modules/manywarnings (Depends-on): Add warnings.
41286
41287         build: avoid compiler warnings
41288         * lib/select.c (rpl_select): Delete unused variable.
41289         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
41290
41291 2009-11-18  Eric Blake  <ebb9@byu.net>
41292
41293         tests: avoid false negative with --with-packager
41294         * tests/test-version-etc.sh: Discard packager information.
41295         * tests/test-argp-version-etc-1.sh: Likewise.
41296         Reported by Mike Frysinger.
41297
41298         utimens: fix regression on Solaris
41299         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
41300         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
41301         can only change fd timestamps via futimesat.  Instead, use an
41302         additional witness macro to avoid BSD bug.
41303         Reported by Jim Meyering.
41304
41305 2009-11-17  Eric Blake  <ebb9@byu.net>
41306
41307         usleep: use it to simplify tests
41308         * modules/stat-time-tests (Depends-on): Add usleep.
41309         (configure.ac): Drop usleep check.
41310         * modules/chown-tests (Depends-on, configure.ac): Likewise.
41311         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
41312         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
41313         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
41314         * modules/openat-tests (Depends-on, configure.ac): Likewise.
41315         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
41316         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
41317         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
41318         Likewise.
41319         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
41320         * tests/test-lchown.h (nap): Likewise.
41321         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
41322         * tests/test-stat-time.c (nap): Likewise.
41323         * tests/test-utimens-common.h (nap): Update comments.
41324
41325         usleep: new module
41326         * modules/usleep: New file.
41327         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
41328         * lib/usleep.c (usleep): Likewise.
41329         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
41330         * modules/unistd (Makefile.am): Substitute witnesses.
41331         * lib/unistd.in.h (usleep): Add declaration.
41332         * doc/pastposix-functions/usleep.texi (usleep): Document this.
41333         * MODULES.html.sh (Date and time): Likewise.
41334         * modules/usleep-tests (Depends-on): New test.
41335         * tests/test-usleep.c: New file.
41336
41337         chown: work around OpenBSD bug
41338         * lib/chown.c (rpl_chown): Work around the bug.
41339         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
41340         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
41341         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
41342         * modules/chown (Depends-on): Add stdbool.
41343         * modules/lchown (Depends-on): Likewise.
41344         * doc/posix-functions/chown.texi (chown): Document the bug.
41345         * doc/posix-functions/lchown.texi (lchown): Likewise.
41346         * tests/test-lchown.h (test_chown): Relax test.
41347
41348         mkstemp: avoid conflict with C++ keyword template
41349         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
41350         * lib/mkostemp.c (mkostemp): Likewise.
41351         * lib/mkostemps.c (mkostemps): Likewise.
41352         * lib/mkstemp.c (mkstemp): Likewise.
41353         * lib/mkstemps.c (mkstemps): Likewise.
41354
41355         xalloc-die-tests: optimize
41356         * tests/test-xalloc-die.sh: Reduce number of processes.
41357
41358 2009-11-17  Simon Josefsson  <simon@josefsson.org>
41359
41360         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
41361         patch from ludo@gnu.org (Ludovic Courtès).
41362
41363 2009-11-17  Jim Meyering  <meyering@redhat.com>
41364
41365         version-etc: use proper license string
41366         * modules/version-etc (License): Use LGPL, not LGPLv3+.
41367         * modules/version-etc-fsf: Likewise.
41368
41369 2009-11-17  Simon Josefsson  <simon@josefsson.org>
41370
41371         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
41372         printed to stdout.  Deal with EOL differences.
41373
41374 2009-11-17  Eric Blake  <ebb9@byu.net>
41375
41376         unsetenv: work around Solaris bug
41377         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
41378         * lib/unsetenv.c (rpl_unsetenv): Work around it.
41379         Reported by Jim Meyering.
41380
41381         vasnprintf: avoid compiler warnings
41382         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
41383         variables.
41384         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
41385
41386 2009-11-17  Simon Josefsson  <simon@josefsson.org>
41387
41388         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
41389         settings since xalloc-die is no longer the self test,
41390         xalloc-die.sh is.
41391
41392 2009-11-17  Jim Meyering  <meyering@redhat.com>
41393
41394         test-xalloc-die.sh: make the code agree with the commit log
41395         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
41396         at the end, just in case you happen to have a test-xalloc-die
41397         program in some other PATH directory.
41398
41399         test-xalloc-die.sh: fix a portability bug
41400         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
41401         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
41402         Otherwise, argv[0] (as often seen in diagnostics) would be too
41403         system-dependent, sometimes with, and sometimes without the leading "./".
41404
41405         version-etc-fsf: relax license to LGPLv3+
41406         * modules/version-etc-fsf (License): Relax license.
41407
41408 2009-11-16  Eric Blake  <ebb9@byu.net>
41409
41410         xalloc-die-tests: avoid printing null pointer
41411         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
41412         shell script.
41413         * tests/test-xalloc-die.c (program_name): Declare.
41414         * tests/test-xalloc-die.sh (tmpfiles): New file.
41415
41416         setenv, unsetenv: work around various bugs
41417         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
41418         (setenv) [HAVE_SETENV]: Work around bugs.
41419         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
41420         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
41421         for bugs.
41422         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
41423         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
41424         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
41425         * modules/stdlib (Makefile.am): Update substitutions.
41426         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
41427         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
41428         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
41429         * modules/setenv-tests: New test.
41430         * modules/unsetenv-tests: Likewise.
41431         * tests/test-setenv.c: New file.
41432         * tests/test-unsetenv.c: Likewise.
41433
41434 2009-11-16  Jim Meyering  <meyering@redhat.com>
41435
41436         version-etc: relax license to LGPLv3+
41437         * modules/version-etc (License): Relax license.
41438
41439         better AC_REQUIRE expanded-before-required-warning avoidance
41440         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
41441         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
41442         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
41443         which is no longer needed.
41444
41445 2009-11-16  Eric Blake  <ebb9@byu.net>
41446
41447         test-freading: clean up temporary file
41448         * tests/test-freading.c (main): Remove file on success, and use
41449         ASSERT more liberally.
41450         Reported by Jim Meyering.
41451
41452 2009-11-16  Jim Meyering  <meyering@redhat.com>
41453
41454         avoid new AC_REQUIRE expanded-before-required warnings
41455         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
41456         merely using it.
41457         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
41458         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
41459
41460 2009-11-15  Simon Josefsson  <simon@josefsson.org>
41461
41462         * tests/test-xalloc-die.c: New file.
41463         * modules/xalloc-die-tests: New file.
41464         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
41465         XFAIL_TESTS so it can be appended by modules.
41466
41467 2009-11-15  Simon Josefsson  <simon@josefsson.org>
41468
41469         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
41470         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
41471
41472 2009-11-14  Eric Blake  <ebb9@byu.net>
41473
41474         fnmatch: avoid compiler warning
41475         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
41476         to silence compiler warning about mismatch signedness in ?:.
41477         Reported by Robert Millan.
41478
41479         intprops: add double-inclusion guard
41480         * lib/intprops.h: Allow idempotent includes.
41481         Suggested by Bruce Korb.
41482
41483         openat: detect Solaris fchownat bug
41484         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
41485         penalizing glibc chownat when only lchownat is broken.
41486         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
41487         trailing slash bugs.
41488         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
41489         * modules/openat-tests (Files): Include more files.
41490         (Depends-on): Add mgetgroups, sleep, stat-time.
41491         (configure.ac): Add additional checks.
41492         (Makefile.am): Build new test.
41493         * tests/test-fchownat.c: New file.
41494
41495         lchown: detect Solaris and FreeBSD bug
41496         * lib/lchown.c (rpl_lchown): Work around bug.
41497         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
41498         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41499         * modules/unistd (Makefile.am): Populate it.
41500         * lib/unistd.in.h (lchown): Update declaration.
41501         * doc/posix-functions/lchown.texi (lchown): Document the bug.
41502         * modules/lchown-tests: New file.
41503         * tests/test-lchown.h (test_lchown): Likewise.
41504         * tests/test-lchown.c (main): Likewise.
41505
41506         chown: detect Solaris and FreeBSD bug
41507         * lib/chown.c (rpl_chown): Work around bug.
41508         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
41509         (gl_PREREQ_CHOWN): Delete.
41510         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41511         * modules/unistd (Makefile.am): Populate it.
41512         * lib/unistd.in.h (chown): Update declaration.
41513         * lib/lchown.c (chown): Update client.
41514         * modules/lchown (Depends-on): Add lstat.
41515         * doc/posix-functions/chown.texi (chown): Document the bug.
41516         * doc/posix-functions/getgroups.texi (getgroups): Document
41517         getgroups pitfall.
41518         * modules/chown-tests: New file.
41519         * tests/test-chown.h (test_chown): Likewise.
41520         * tests/test-chown.c (main): Likewise.
41521
41522 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
41523
41524         gnulib-tool: correctly detect absence of m4 directories
41525         * gnulib-tool: Avoid extra newline on data passed to wc -l.
41526
41527 2009-11-14  Jim Meyering  <meyering@redhat.com>
41528
41529         maint.mk: Prohibit inclusion of "xalloc.h" without use.
41530         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
41531
41532 2009-11-14  John W. Eaton  <jwe@gnu.org>
41533
41534         strftime.h: wrap function declaration in extern "C" block
41535         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
41536
41537 2009-11-13  Eric Blake  <ebb9@byu.net>
41538
41539         getgroups: avoid compiler warning
41540         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
41541
41542         getgroups: work around FreeBSD bug
41543         * lib/getgroups.c (rpl_getgroups): Work around the bug.
41544         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
41545         * doc/posix-functions/getgroups.texi (getgroups): Document it.
41546         * tests/test-getgroups.c (main): Fix buffer overrun.
41547
41548         getgroups: avoid compilation failure
41549         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
41550         * modules/getgroups (Depends-on): Add stdint.
41551
41552 2009-11-13  Jim Meyering  <meyering@redhat.com>
41553
41554         test-getgroups: avoid compilation failure
41555         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
41556
41557 2009-11-13  Eric Blake  <ebb9@byu.net>
41558
41559         mgetgroups: new module, taken from coreutils
41560         * modules/mgetgroups: New file.
41561         * lib/mgetgroups.h: Likewise.
41562         * lib/mgetgroups.c (mgetgroups): Likewise.
41563         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
41564         * MODULES.html.sh (Users and groups): Mention it.
41565
41566         getgroups: don't expose GETGROUPS_T to user
41567         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
41568         an element at a time if GETGROUPS_T is wrong size.
41569         * lib/getugroups.h (getugroups): Change signature.
41570         * lib/unistd.in.h (getgroups): Likewise.
41571         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
41572         signature needs fixing.
41573         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
41574         AC_TYPE_GETGROUPS.
41575         * modules/group-member (Depends-on): Add getgroups.
41576         * lib/group-member.c (group_info, get_group_info): Use gid_t.
41577         (group_member): Rely on getgroups replacement.
41578         * lib/getugroups.c (getugroups): Use gid_t.
41579         * tests/test-getgroups.c (main): Likewise.
41580         * NEWS: Mention the signature change.
41581         * doc/posix-functions/getgroups.texi (getgroups): Mention the
41582         problem with signature.
41583         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
41584         GETGROUPS_T is still useful for setgroups.
41585
41586         getgroups, getugroups: provide stubs for mingw
41587         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
41588         * lib/getugroups.c (getugroups): Likewise.
41589         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
41590         function.  Modernize replacement scheme.
41591         (gl_PREREQ_GETGROUPS): Delete.
41592         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
41593         * modules/getgroups (configure.ac): Declare witness.
41594         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
41595         * modules/unistd (Depends-on): Substitute witness.
41596         * lib/unistd.in.h (getgroups): Declare replacement.
41597
41598         getgroups: avoid calling exit
41599         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
41600         drop xalloc.
41601         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
41602         dependencies.
41603         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
41604         exiting, in the rare case of malloc failure.
41605
41606         getgroups: fix logic error
41607         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
41608         has more than 20 groups.
41609         * modules/getgroups-tests: New test.
41610         * tests/test-getgroups.c: New file.
41611
41612 2009-11-13  Simon Josefsson  <simon@josefsson.org>
41613
41614         * tests/test-base64.c: Improve.
41615
41616 2009-11-13  Simon Josefsson  <simon@josefsson.org>
41617
41618         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
41619         Blake <ebb9@byu.net>.
41620
41621 2009-11-13  Simon Josefsson  <simon@josefsson.org>
41622
41623         * tests/test-xvasprintf.c: Add %s%s related checks.
41624
41625 2009-11-12  Eric Blake  <ebb9@byu.net>
41626
41627         version-etc: match standards.texi style
41628         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
41629         and use <> only for URLs.
41630
41631 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
41632
41633         fts: do not fail on a submount during traversal
41634         * lib/fts.c (fts_build): Read the stat info again after opening
41635         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
41636         Original report at http://bugzilla.redhat.com/501848.
41637
41638 2009-11-12  Jim Meyering  <meyering@redhat.com>
41639
41640         bootstrap: sync from coreutils
41641         * build-aux/bootstrap (bootstrap_epilogue): New function.
41642         Use git_modules_config in one more place.  This make bootstrap's
41643         --gnulib-srcdir option more useful for testing.
41644
41645         bootstrap: generalize autoheader check
41646         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
41647         AC_CONFIG_HEADERS.
41648
41649 2009-11-11  Eric Blake  <ebb9@byu.net>
41650
41651         mkfifoat: use new modules for Solaris and BSD bugs
41652         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
41653         * lib/mkfifoat.c (mknodat): Split...
41654         * lib/mknodat.c (mknodat): ...into new file.
41655         * modules/mkfifoat (Files): Ship new file.
41656         (Depends-on): Add mkfifo, mknod.
41657         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
41658         (Depends-on): Add symlink.
41659         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
41660         redundant with test_mkfifo.h.
41661         (do_mkfifoat, do_mknodat): New helpers.
41662
41663         mknod: new module
41664         * modules/mknod: New file.
41665         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
41666         * lib/mknod.c (mknod): Likewise.
41667         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
41668         defaults.
41669         * modules/sys_stat (Makefile.am): Substitute them.
41670         * lib/sys_stat.in.h (mknod): Declare replacement.
41671         * MODULES.html.sh (Support for systems lacking POSIX:2008):
41672         Document it.
41673         * doc/posix-functions/mknod.texi (mknod): Likewise.
41674         * modules/mknod-tests: New test.
41675         * tests/test-mknod.c: Likewise.
41676
41677         mkfifo: new module
41678         * modules/mkfifo: New file.
41679         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
41680         * lib/mkfifo.c (mkfifo): Likewise.
41681         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
41682         defaults.
41683         * modules/sys_stat (Makefile.am): Substitute them.
41684         * lib/sys_stat.in.h (mkfifo): Declare replacement.
41685         * MODULES.html.sh (Support for systems lacking POSIX:2008):
41686         Document it.
41687         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
41688         * modules/mkfifo-tests: New test.
41689         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
41690         from test-mkfifoat.c.
41691         * tests/test-mkfifo.c: New file.
41692
41693         readlink: detect FreeBSD bug
41694         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
41695         slash on symlink.
41696         * doc/posix-functions/readlink.texi (readlink): Document the bug.
41697         * tests/test-readlink.h (test_readlink): Enhance test.
41698
41699         symlink: detect FreeBSD bug
41700         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
41701         slash on symlink.
41702         * doc/posix-functions/symlink.texi (symlink): Document the bug.
41703         * tests/test-symlink.h (test_symlink): Enhance test.
41704
41705 2009-11-10  Eric Blake  <ebb9@byu.net>
41706
41707         link: detect FreeBSD bug
41708         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
41709         symlink.
41710         * doc/posix-functions/link.texi (link): Document the bug.
41711         * tests/test-link.h (test_link): Enhance test.
41712         * tests/test-linkat.c (main): Update caller.
41713
41714         unlink, remove: detect FreeBSD bug
41715         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
41716         slash on symlink.
41717         * doc/posix-functions/unlink.texi (unlink): Document the bug.
41718         * doc/posix-functions/remove.texi (remove): Likewise.
41719         * tests/test-unlink.h (test_unlink): Enhance test.
41720         * tests/test-remove.c (main): Likewise.
41721
41722 2009-11-09  Eric Blake  <ebb9@byu.net>
41723
41724         rename: detect FreeBSD bug
41725         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
41726         slash on symlink.
41727         * modules/renameat-tests (Depends-on): Add filenamecat.
41728         * tests/test-rename.h (test_rename): Allow one more errno.
41729         * tests/test-renameat.c (main): Likewise.
41730         * doc/posix-functions/rename.texi (rename): Document the bug.
41731
41732         open: detect FreeBSD bug
41733         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
41734         symlink.
41735         * doc/posix-functions/open.texi (open): Document the bug.
41736         * doc/posix-functions/utimes.texi (utimes): Likewise.
41737         * tests/test-open.h (test_open): Add parameters, and test symlink
41738         handling.
41739         * tests/test-open.c (main): Adjust caller.
41740         * tests/test-fcntl-safer.c (main): Likewise.
41741         * modules/open-tests (Depends-on): Add stdbool, symlink.
41742         * modules/fcntl-safer-tests (Depends-on): Likewise.
41743         * tests/test-openat.c (main): Add test-open tests.
41744
41745         stat: detect FreeBSD bug
41746         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
41747         symlink.
41748         * doc/posix-functions/stat.texi (stat): Document the bug.
41749         * tests/test-stat.h (test_stat_func): Add argument.
41750         * tests/test-stat.c (main): Adjust caller.
41751         * tests/test-fstatat.c (main): Likewise.
41752         * modules/stat-tests (Depends-on): Add stdbool, symlink.
41753         Reported by Jim Meyering.
41754
41755 2009-11-09  James Youngman  <jay@gnu.org>
41756
41757         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
41758         * lib/strftime.c: Correct placement of #include "ignore-value.h".
41759
41760 2009-11-08  Jim Meyering  <meyering@redhat.com>
41761
41762         utimens: remove invalid futimesat call
41763         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
41764         It used the file descriptor of the target file as the DIR_FD
41765         parameter and NULL as the file name.  That caused failure with
41766         errno == EFAULT on FreeBSD-8.0-rc2
41767
41768 2009-11-07  Eric Blake  <ebb9@byu.net>
41769
41770         fflush, freadseek: use fseeko, not fseek
41771         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
41772         (clear_ungetc_buffer): Avoid potential problems on large files.
41773         * lib/freadseek.c (freadseek): Likewise.
41774         * modules/freadseek (Depends-on): Add fseeko.
41775         * modules/fseek (configure.ac): Set a witness.
41776         * tests/test-fflush.c (main): Use fseeko.
41777         * tests/test-fpurge.c (fseek): Disable link warning.
41778         * tests/test-freadable.c (fseek): Likewise.
41779         * tests/test-freading.c (fseek): Likewise.
41780         * tests/test-fseeko.c (fseek): Likewise.
41781         * tests/test-ftell.c (fseek): Likewise.
41782         * tests/test-ftello.c (fseek): Likewise.
41783         * tests/test-fwritable.c (fseek): Likewise.
41784         * tests/test-fwriting.c (fseek): Likewise.
41785
41786 2009-11-06  Simon Josefsson  <simon@josefsson.org>
41787
41788         * modules/memchr (Depends-on): Drop getpagesize dependency.
41789
41790 2009-11-06  Simon Josefsson  <simon@josefsson.org>
41791
41792         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
41793         Reported by Ludovic Courtès.
41794         * build-aux/pmccabe2html: Improve example usage.
41795         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
41796
41797 2009-11-06  Jim Meyering  <meyering@redhat.com>
41798
41799         do-release-commit-and-tag: New module.
41800         Automate the release-commit and tag process.
41801         * build-aux/do-release-commit-and-tag: New script, from coreutils.
41802         * modules/do-release-commit-and-tag: New file.
41803         * MODULES.html.sh (Support for maintaining and releasing): Add it.
41804
41805 2009-11-06  Simon Josefsson  <simon@josefsson.org>
41806
41807         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
41808         because test-select.c uses inet_pton.
41809
41810 2009-11-06  Simon Josefsson  <simon@josefsson.org>
41811
41812         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
41813         GETADDRINFO_LIB.  Bump serial number.
41814         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
41815         Suggested by Eric Blake <ebb9@byu.net>.
41816
41817 2009-11-05  Eric Blake  <ebb9@byu.net>
41818
41819         strtod: detect darwin bug
41820         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
41821         Reported by Leo Davis.
41822
41823         freopen-safer: new module
41824         * modules/freopen-safer: New module.
41825         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
41826         * lib/freopen-safer.c (freopen_safer): New file.
41827         * lib/stdio-safer.h (freopen_safer): New declaration.
41828         * lib/stdio--.h (freopen): New override.
41829         * MODULES.html.sh (File stream based Input/Output): Mention it.
41830         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
41831         freopen-safer module.
41832         * doc/posix-functions/stderr.texi (stderr): Likewise.
41833         * doc/posix-functions/stdin.texi (stdin): Likewise.
41834         * doc/posix-functions/stdout.texi (stdout): Likewise.
41835         * modules/freopen-safer-tests: New test.
41836         * tests/test-reopen-safer.c: New file.
41837
41838 2009-11-05  Jim Meyering  <meyering@redhat.com>
41839
41840         maint.mk: Prohibit inclusion of "close-stream.h" without use.
41841         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
41842
41843 2009-11-05  Simon Josefsson  <simon@josefsson.org>
41844
41845         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
41846
41847 2009-11-05  Simon Josefsson  <simon@josefsson.org>
41848
41849         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
41850
41851 2009-11-05  Simon Josefsson  <simon@josefsson.org>
41852
41853         Fix link error.
41854         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
41855         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
41856
41857 2009-11-05  Simon Josefsson  <simon@josefsson.org>
41858
41859         * tests/test-func.c: Also test value of __func__.
41860
41861 2009-11-05  Simon Josefsson  <simon@josefsson.org>
41862
41863         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
41864         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
41865
41866 2009-11-05  Bruno Haible  <bruno@clisp.org>
41867
41868         Fix link error.
41869         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
41870         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
41871         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
41872
41873 2009-11-05  Bruno Haible  <bruno@clisp.org>
41874
41875         Tests for module 'inet_pton'.
41876         * modules/inet_pton-tests: New file.
41877         * tests/test-inet_pton.c: New file.
41878
41879 2009-11-05  Bruno Haible  <bruno@clisp.org>
41880
41881         Tests for module 'inet_ntop'.
41882         * modules/inet_ntop-tests: New file.
41883         * tests/test-inet_ntop.c: New file.
41884
41885 2009-11-04  Eric Blake  <ebb9@byu.net>
41886
41887         stdlib-safer: wrap all mkstemp variants
41888         * modules/mkostemp (configure.ac): Set witness.
41889         * modules/mkostemps (configure.ac): Likewise.
41890         * modules/mkstemps (configure.ac): Likewise.
41891         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
41892         (mkstemps_safer): Wrap more functions.
41893         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
41894         wrapping.
41895         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
41896         (mkstemps_safer): Implement the wrappers.
41897
41898         mkstemps, mkostemps: new modules
41899         * modules/mkostemps: New module.
41900         * modules/mkstemps: Likewise.
41901         * lib/mkostemps.c (mkostemps): New file.
41902         * lib/mkstemps.c (mkstemps): Likewise.
41903         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
41904         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
41905         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
41906         * modules/stdlib (Makefile.am): Substitute them.
41907         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
41908         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
41909         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
41910         * doc/gnulib.texi (Glibc stdlib.h): Include them.
41911         * MODULES.html.sh (File system functions): Mention them.
41912
41913         tempname: resync from glibc
41914         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
41915         same values for __GT_FILE as glibc.  Abort even when assertions
41916         are disabled.
41917         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
41918         match its value otherwise.  Allow idempotent inclusion.
41919         * lib/mkdtemp.c (mkdtemp): Adjust caller.
41920         * lib/mkostemp.c (mkostemp): Likewise.
41921         * lib/mkstemp.c (mkstemp): Likewise.
41922         * lib/tmpfile.c (tmpfile): Likewise.
41923         * NEWS: Document this.
41924
41925         utimens: fix use of futimens on older Linux
41926         * lib/utimens.c (fdutimens): Use updated, rather than original,
41927         timespec to avoid bug in older Linux kernel.
41928         Reported by Simon Josefsson.
41929
41930 2009-11-04  Bruno Haible  <bruno@clisp.org>
41931
41932         Make num_processors more flexible and consistent.
41933         * lib/nproc.h (enum nproc_query): New type.
41934         (num_processors): Add a 'query' argument.
41935         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
41936         (num_processors): Add a 'query' argument. Test the value of the
41937         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
41938         mingw, count the number of CPUs available for the current process.
41939         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
41940         Check for sched_getaffinity and sched_getaffinity_np.
41941         * modules/nproc (Depends-on): Add c-ctype, extensions.
41942         * NEWS: Mention the change.
41943
41944 2009-11-03  Bruno Haible  <bruno@clisp.org>
41945
41946         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
41947
41948 2009-11-03  Jim Meyering  <meyering@redhat.com>
41949
41950         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
41951         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
41952         if it is defined.
41953
41954 2009-11-02  Eric Blake  <ebb9@byu.net>
41955
41956         mktime, timegm: share common declaration
41957         * lib/mktime-internal.h: New file.
41958         * lib/mktime.c: Use it rather than open-coding a declaration.
41959         * lib/timegm.c: Likewise.
41960         * modules/mktime (Files): Ship it.
41961         * modules/timegm (Files): Likewise.
41962         Suggested by Bruno Haible.
41963
41964         test-update-copyright: update test to match script changes
41965         * tests/test-update-copyright.sh: Avoid hard-coding perl
41966         location.  Don't update *.bak created by earlier runs.
41967
41968 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
41969             Simon Josefsson  <simon@josefsson.org>
41970             Bruno Haible  <bruno@clisp.org>
41971
41972         Fix link error on Solaris 8.
41973         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
41974         also in libnsl. Define also INET_PTON_LIB.
41975         * modules/inet_pton (Link): New section.
41976
41977 2009-11-02  Simon Josefsson  <simon@josefsson.org>
41978             Bruno Haible  <bruno@clisp.org>
41979
41980         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
41981         * modules/inet_ntop (Link): New section.
41982         Reported by Boyan Kasarov <bkasarov@gmail.com>.
41983
41984 2009-11-02  Eric Blake  <ebb9@byu.net>
41985
41986         maint: avoid compiler warnings in m4 macros
41987         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
41988         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
41989
41990 2009-11-02  Simon Josefsson  <simon@josefsson.org>
41991
41992         * m4/pmccabe2html.m4: Remove file.
41993         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
41994         function.  Change maintainer.
41995         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
41996         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
41997         Courtès).
41998
41999 2009-10-31  Eric Blake  <ebb9@byu.net>
42000
42001         fseeko: fix m4 regression
42002         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
42003         regression from 2009-10-27.
42004         Reported by Ralf Wildenhues.
42005
42006 2009-10-31  Jim Meyering  <meyering@redhat.com>
42007
42008         inttostr: aesthetics and improved (compile-time) safety
42009         Define inttype_is_signed rather than inttype_is_unsigned,
42010         since the sole use is via "#if inttype_is_signed".
42011         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
42012         inttype_is_unsigned.
42013         * lib/offtostr.c (inttype_is_signed): Likewise.
42014         * lib/uinttostr.c (inttype_is_signed): Likewise.
42015         * lib/umaxtostr.c (inttype_is_signed): Likewise.
42016         * lib/inttostr.c (inttostr): Use verify to cross-check the
42017         inttype_is_signed value and the signedness of the actual type.
42018         * modules/inttostr (Depends-on): Add verify.
42019
42020 2009-10-30  Eric Blake  <ebb9@byu.net>
42021
42022         build: avoid compiler warnings
42023         * lib/fchmodat.c (lchmod): Mark unused variables.
42024         * lib/getopt.c (_getopt_initialize): Likewise.
42025         * lib/mktime.c (__mktime_internal): Provide prototype.
42026         * lib/inttostr.c (inttostr): Avoid compiler warning even with
42027         older gcc that do not understand #pragma GCC diagnostic.
42028         * lib/uinttostr.c (inttype_is_unsigned): Define.
42029         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
42030
42031 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
42032
42033         stat: fix compilation on AIX
42034         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
42035         only see struct stat64.
42036
42037 2009-10-30  Eric Blake  <ebb9@byu.net>
42038
42039         exclude: make more robust
42040         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
42041         rather than masking a coding bug.
42042         Suggested by Bruno Haible.
42043
42044 2009-10-30  Jim Meyering  <meyering@redhat.com>
42045
42046         perl scripts: remove #!/usr/bin/perl in favor of more portable...
42047         Rather than putting #!/usr/bin/perl on the first line,
42048         start with a variant of what's recommended by "man perlrun" that
42049         invokes the first "perl" program from your shell's search path.
42050         * build-aux/gitlog-to-changelog: Replace #!... as above.
42051         Add a "Local Variables" perl mode setting.
42052         Prompted by a patch from Ludovic Courtès.
42053         Improved by Eric Blake.
42054         * build-aux/useless-if-before-free: Likewise.
42055         * build-aux/announce-gen: Likewise.
42056         * build-aux/update-copyright: Likewise.
42057
42058 2009-10-29  Eric Blake  <ebb9@byu.net>
42059
42060         filenamecat-lgpl: adjust clients
42061         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
42062         filenamecat.
42063         * modules/renameat (Depends-on): Likewise.
42064
42065         filenamecat: split into filenamecat-lgpl
42066         * modules/filenamecat-lgpl: New module.
42067         * modules/filenamecat (Files): Move library-safe files into
42068         filenamecat-lgpl.
42069         (Depends-on): Add filenamecat-lgpl.
42070         (configure.ac): Declare witness.
42071         * lib/filenamecat.h (file_name_concat): Only declare when using
42072         GPL module.
42073         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
42074         Move...
42075         * lib/filenamecat-lgpl.c: ...into new file.
42076         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
42077         (gl_FILE_NAME_CONCAT): Use it.
42078         * MODULES.html.sh (File system functions): Mention new module.
42079
42080         argp: avoid memory leak
42081         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
42082         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
42083         base_name, since the latter malloc()s and can call exit().
42084         Leak introduced 2006-07-03.
42085
42086         dirname-lgpl: adjust clients that don't need full dirname
42087         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
42088         * modules/filenamecat (Depends-on): Likewise.
42089         * modules/linkat (Depends-on): Likewise.
42090         * modules/mkancesdirs (Depends-on): Likewise.
42091         * modules/mkdir (Depends-on): Likewise.
42092         * modules/openat (Depends-on): Likewise.
42093         * modules/savewd (Depends-on): Likewise.
42094         * modules/rename (Depends-on): Likewise.
42095         (License): Relax license.
42096         * modules/mkdir-tests (Depends-on): Drop progname.
42097         (Makefile.am): Delete unneeded LDADD.
42098         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
42099
42100         dirname: split into dirname-lgpl
42101         * modules/dirname-lgpl: New module.
42102         * modules/dirname (Files): Move library-safe files into
42103         dirname-lgpl.
42104         (Depends-on): Add dirname-lgpl.
42105         (configure.ac): Declare witness.
42106         * modules/double-slash-root (License): Relax license.
42107         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
42108         module.
42109         * lib/dirname.c (dir_len, mdir_name): Move...
42110         * lib/dirname-lgpl.c: ...into new file.
42111         * lib/basename.c (last_component, base_len): Move...
42112         * lib/basename-lgpl.c: ...into new file.
42113         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
42114         (gl_DIRNAME): Use it.
42115         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
42116         Mention new module.
42117         * modules/dirname-tests (Depends-on): Add progname.
42118         * tests/test-dirname.c (program_name): Delete.
42119
42120         mkdir: make safe for libraries
42121         * modules/mkdir (Depends-on): Drop xalloc.
42122         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
42123         exit.
42124
42125         tests: avoid some compiler warnings
42126         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
42127         literals.
42128         * tests/test-memchr.c (main): Avoid type mismatch.
42129         * tests/test-arpa_inet.c (main): Avoid unused parameters.
42130         * tests/test-base64.c (main): Likewise.
42131         * tests/test-getdelim.c (main): Likewise.
42132         * tests/test-gethostname.c (main): Likewise.
42133         * tests/test-getline.c (main): Likewise.
42134         * tests/test-netinet_in.c (main): Likewise.
42135         * tests/test-select.c (open_server_socket, main): Likewise.
42136         * tests/test-select-stdin.c (main): Likewise.
42137         * tests/test-sockets.c (main): Likewise.
42138         * tests/test-strsignal.c (main): Likewise.
42139         * tests/test-sys_select.c (main): Likewise.
42140         * tests/test-sys_socket.c (main): Likewise.
42141         * tests/test-u64.c (main): Likewise.
42142         * tests/test-xfprintf-posix.c (main): Likewise.
42143         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
42144
42145         sockets: avoid compiler warning
42146         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
42147
42148         maint: detect usage(1) and other suspicious exits
42149         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
42150
42151 2009-10-29  Jim Meyering  <meyering@redhat.com>
42152
42153         timespec: long-to-int truncation could make timespec_cmp malfunction
42154         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
42155         a multiple of 2^32 nanoseconds as no difference.
42156
42157 2009-10-28  Jim Meyering  <meyering@redhat.com>
42158
42159         fprintftime: wrap macro code argument in "do {...} while(0)"
42160         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
42161         cpy macro must be a statement that can be followed by a semicolon.
42162         Now that the else clause contains a comment and is hence longer
42163         than one line, I require curly braces.  That in turn requires
42164         that we wrap this code block in the standard do...while(0).
42165
42166         fprintftime: remove stray semicolon from previous change
42167         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
42168
42169         fprintftime: avoid a warning about ignored fwrite return value
42170         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
42171         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
42172         that is unsafe.
42173         * modules/fprintftime (Depends-on): Add ignore-value.
42174
42175         exclude: avoid an unwarranted warning
42176         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
42177
42178 2009-10-27  Eric Blake  <ebb9@byu.net>
42179
42180         fseek: avoid compilation failure when fflush is replaced
42181         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
42182         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
42183         module is in use.
42184         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
42185         module is not in use; since REPLACE_FSEEK worked otherwise.
42186         (GNULIB_FTELLO): Likewise for ftell.
42187         Reported by Ian Beckwith and others.
42188
42189 2009-10-27  Bruno Haible  <bruno@clisp.org>
42190
42191         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
42192         Reported by Jim Meyering.
42193
42194 2009-10-27  Jim Meyering  <jim@meyering.net>
42195             Bruno Haible  <bruno@clisp.org>
42196
42197         Avoid warning despite dropping the return value of fwrite.
42198         * lib/unicodeio.c: Include ignore-value.h.
42199         (fwrite_success_callback): Explicitly ignore fwrite's return value.
42200         * modules/unicodeio (Depends-on): Add ignore-value.
42201
42202 2009-10-26  Eric Blake  <ebb9@byu.net>
42203
42204         areadlinkat: fix fallback path
42205         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
42206         pointer and zero.
42207
42208 2009-10-22  Pádraig Brady  <P@draigBrady.com>
42209
42210         Use a better IO block size for modern systems
42211         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
42212         * lib/md2.c: Likewise.
42213         * lib/md4.c: Likewise.
42214         * lib/md5.c: Likewise.
42215         * lib/sha1.c: Likewise.
42216         * lib/sha256.c: Likewise.
42217         * lib/sha512.c: Likewise.
42218
42219 2009-10-22  Eric Blake  <ebb9@byu.net>
42220
42221         tests: avoid several compiler warnings
42222         * tests/test-getcwd.c (main): Avoid buffer underflow.
42223         * tests/test-getdate.c (main): String literals are not safe with
42224         putenv, so use setenv.  Declare unused argument.
42225         * modules/getdate-tests (Depends-on): Add setenv.
42226         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
42227         problems with string literals in char *.
42228         * tests/test-hash.c (main): Avoid shadowing declaration.
42229         (insert_new): Treat string literals as char const *.
42230         * tests/test-getopt.h (test_getopt): Likewise.
42231         (getopt_loop): Alter types to minimize casting elsewhere.
42232         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
42233         (test_getopt_long_posix): Likewise.
42234         (do_getopt_long): Add wrapper to minimize casting.
42235         * tests/test-atexit.c (clear_temp_file): Use void.
42236         * tests/test-areadlink-with-size.c (main): Declare unused
42237         arguments.
42238         * tests/test-areadlink.c (main): Likewise.
42239         * tests/test-areadlinkat-with-size.c (main): Likewise.
42240         * tests/test-areadlinkat.c (main): Likewise.
42241         * tests/test-canonicalize-lgpl.c (main): Likewise.
42242         * tests/test-canonicalize.c (main): Likewise.
42243         * tests/test-dirent-safer.c (main): Likewise.
42244         * tests/test-dirname.c (main): Likewise.
42245         * tests/test-dup2.c (main): Likewise.
42246         * tests/test-fchdir.c (main): Likewise.
42247         * tests/test-fcntl-h.c (main): Likewise.
42248         * tests/test-fcntl-safer.c (main): Likewise.
42249         * tests/test-fdopendir.c (main): Likewise.
42250         * tests/test-fdutimensat.c (main): Likewise.
42251         * tests/test-fflush.c (main): Likewise.
42252         * tests/test-filenamecat.c (main): Likewise.
42253         * tests/test-filevercmp.c (main): Likewise.
42254         * tests/test-fopen-safer.c (main): Likewise.
42255         * tests/test-fopen.c (main): Likewise.
42256         * tests/test-fpending.c (main): Likewise.
42257         * tests/test-fpurge.c (main): Likewise.
42258         * tests/test-freading.c (main): Likewise.
42259         * tests/test-fstatat.c (main): Likewise.
42260         * tests/test-fsync.c (main): Likewise.
42261         * tests/test-futimens.c (main): Likewise.
42262         * tests/test-getndelim2.c (main): Likewise.
42263         * tests/test-gettimeofday.c (main): Likewise.
42264         * tests/test-getopt.c (main): Likewise.
42265         * tests/test-i-ring.c (main): Likewise.
42266         * tests/test-inttypes.c (main): Likewise.
42267         * tests/test-link.c (main): Likewise.
42268         * tests/test-lstat.c (main): Likewise.
42269         * tests/test-math.c (main): Likewise.
42270         * tests/test-md5.c (main): Likewise.
42271         * tests/test-memchr2.c (main): Likewise.
42272         * tests/test-memrchr.c (main): Likewise.
42273         * tests/test-mkdir.c (main): Likewise.
42274         * tests/test-mkdirat.c (main): Likewise.
42275         * tests/test-mkfifoat.c (main): Likewise.
42276         * tests/test-open.c (main): Likewise.
42277         * tests/test-openat-safer.c (main): Likewise.
42278         * tests/test-openat.c (main): Likewise.
42279         * tests/test-quotearg.c (main): Likewise.
42280         * tests/test-rawmemchr.c (main): Likewise.
42281         * tests/test-readlink.c (main): Likewise.
42282         * tests/test-remove.c (main): Likewise.
42283         * tests/test-rename.c (main): Likewise.
42284         * tests/test-renameat.c (main): Likewise.
42285         * tests/test-rmdir.c (main): Likewise.
42286         * tests/test-sha1.c (main): Likewise.
42287         * tests/test-signal.c (main): Likewise.
42288         * tests/test-sigaction.c (main): Likewise.
42289         * tests/test-stat.c (main): Likewise.
42290         * tests/test-stat-time.c (main): Likewise.
42291         * tests/test-stddef.c (main): Likewise.
42292         * tests/test-stdint.c (main): Likewise.
42293         * tests/test-stdio.c (main): Likewise.
42294         * tests/test-stdlib.c (main): Likewise.
42295         * tests/test-strchrnul.c (main): Likewise.
42296         * tests/test-strerror.c (main): Likewise.
42297         * tests/test-string.c (main): Likewise.
42298         * tests/test-strtod.c (main): Likewise.
42299         * tests/test-strverscmp.c (main): Likewise.
42300         * tests/test-symlink.c (main): Likewise.
42301         * tests/test-symlinkat.c (main): Likewise.
42302         * tests/test-sys_stat.c (main): Likewise.
42303         * tests/test-sys_time.c (main): Likewise.
42304         * tests/test-time.c (main): Likewise.
42305         * tests/test-unistd.c (main): Likewise.
42306         * tests/test-unlink.c (main): Likewise.
42307         * tests/test-unlinkat.c (main): Likewise.
42308         * tests/test-utimens.c (main): Likewise.
42309         * tests/test-utimensat.c (main): Likewise.
42310         * tests/test-version-etc.c (main): Likewise.
42311         * tests/test-wchar.c (main): Likewise.
42312         * tests/test-wctype.c (main): Likewise.
42313         * tests/test-xprintf-posix.c (main): Likewise.
42314         * tests/test-posixtm.c (main): Likewise.
42315         (STREQ): Delete unused macro.
42316         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
42317         shadowed variables.
42318         * tests/test-memchr.c (main): Likewise.
42319
42320 2009-10-21  Eric Blake  <ebb9@byu.net>
42321
42322         areadlinkat: avoid failure on older glibc
42323         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
42324         rather than mis-comparing 0 against FUNC_RESULT of char*.
42325
42326 2009-10-21  Bruno Haible  <bruno@clisp.org>
42327
42328         * modules/stpncpy (License): Relicense under LGPLv2+.
42329         Reported by David Lutterkort <lutter@redhat.com>.
42330
42331 2009-10-20  Eric Blake  <ebb9@byu.net>
42332
42333         utimensat: work around Solaris 9 bug
42334         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
42335         has trailing slash bugs.
42336         * tests/test-lutimens.h (test_lutimens): Enhance test.
42337         * tests/test-utimens.h (test_utimens): Likewise.
42338         * doc/posix-functions/utime.texi (utime): Enhance documentation.
42339         * doc/posix-functions/utimes.texi (utimes): Likewise.
42340         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
42341         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
42342         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
42343         * doc/posix-functions/futimens.texi (futimens): Likewise.
42344
42345         fdutimensat: new module
42346         * modules/fdutimensat: New file.
42347         * lib/fdutimensat.c (fdutimensat): Likewise.
42348         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
42349         * MODULES.html.sh (File system functions): Mention module.
42350         * modules/fdutimensat-tests: New test.
42351         * tests/test-fdutimensat.c: Likewise.
42352
42353         doc: regenerate INSTALL
42354         * doc/INSTALL: Reflect recent autoconf update.
42355         * doc/INSTALL.ISO: Likewise.
42356         * doc/INSTALL.UTF-8: Likewise.
42357
42358 2009-10-20  Pádraig Brady  <P@draigBrady.com>
42359
42360         acl: warn if ACL support is not detected
42361         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
42362
42363 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
42364
42365         * lib/nproc.h: Add extern "C" block for C++.
42366
42367 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
42368             Bruno Haible  <bruno@clisp.org>
42369
42370         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
42371         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
42372         * doc/posix-functions/isalpha.texi: Likewise.
42373         * doc/posix-functions/isblank.texi: Likewise.
42374         * doc/posix-functions/iscntrl.texi: Likewise.
42375         * doc/posix-functions/isdigit.texi: Likewise.
42376         * doc/posix-functions/isgraph.texi: Likewise.
42377         * doc/posix-functions/islower.texi: Likewise.
42378         * doc/posix-functions/isprint.texi: Likewise.
42379         * doc/posix-functions/ispunct.texi: Likewise.
42380         * doc/posix-functions/isspace.texi: Likewise.
42381         * doc/posix-functions/isupper.texi: Likewise.
42382         * doc/posix-functions/isxdigit.texi: Likewise.
42383
42384 2009-10-18  Bruno Haible  <bruno@clisp.org>
42385
42386         Tests for module 'isblank'.
42387         * modules/isblank-tests: New file.
42388         * tests/test-isblank.c: New file.
42389
42390         New module 'isblank'.
42391         * lib/isblank.c: New file.
42392         * m4/isblank.m4: New file.
42393         * modules/isblank: New file.
42394         * doc/posix-functions/isblank.texi: Mention the new module.
42395
42396 2009-10-18  Bruno Haible  <bruno@clisp.org>
42397
42398         New module 'ctype'.
42399         * lib/ctype.in.h: New file.
42400         * m4/ctype.m4: New file.
42401         * modules/ctype: New file.
42402         * doc/posix-headers/ctype.texi: Mention the new module.
42403
42404 2009-10-18  Jim Meyering  <meyering@redhat.com>
42405
42406         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
42407         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
42408         right after its initialization, rather than farther down.
42409         Keeping these in close proximity makes it easier to ensure
42410         that each such variable is initialized.  E.g.,
42411
42412             LIB_CLOCK_GETTIME=
42413             AC_SUBST([LIB_CLOCK_GETTIME])
42414
42415         This change also increments these serial numbers.
42416         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
42417         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
42418         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
42419
42420 2009-10-18  Bruno Haible  <bruno@clisp.org>
42421
42422         Don't let environment variables perturb build.
42423         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
42424         (gl_PREREQ_GETHRXTIME): ... not here.
42425
42426 2009-10-18  Bruno Haible  <bruno@clisp.org>
42427
42428         Avoid symlink attack in localcharset module.
42429         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
42430         (O_NOFOLLOW): Define fallback.
42431         (get_charset_aliases): Don't open the file if it is a symbolic link.
42432         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
42433         gl_FCNTL_H.
42434         (gl_FCNTL_H): Require it.
42435         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
42436         * modules/localcharset (Files): Add m4/fcntl_h.m4.
42437         Reported by Fergal Glynn <fglynn@veracode.com>.
42438
42439 2009-10-18  Bruno Haible  <bruno@clisp.org>
42440
42441         Implement nproc for mingw.
42442         * lib/nproc.c: Include <windows.h>
42443         (num_processors): On native Windows platforms, try GetSystemInfo.
42444
42445 2009-10-18  Bruno Haible  <bruno@clisp.org>
42446
42447         Implement nproc for IRIX.
42448         * lib/nproc.c: Include <sys/sysmp.h>.
42449         (num_processors): On IRIX systems, try sysmp.
42450         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
42451
42452 2009-10-18  Bruno Haible  <bruno@clisp.org>
42453
42454         Implement nproc for HP-UX.
42455         * lib/nproc.c: Include <sys/pstat.h>
42456         (num_processors): On HP-UX systems, try pstat_getdynamic.
42457         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
42458         pstat_getdynamic.
42459
42460 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
42461             Bruno Haible  <bruno@clisp.org>
42462
42463         Implement nproc for NetBSD, OpenBSD.
42464         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
42465         (ARRAY_SIZE): New macro.
42466         (num_processors): On BSD systems, try sysctl of HW_NCPU.
42467         * m4/nproc.m4: New file.
42468         * modules/nproc (Files): Add m4/nproc.m4.
42469         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
42470         (Makefile.am): Instead, augment lib_SOURCES.
42471
42472 2009-10-18  Bruno Haible  <bruno@clisp.org>
42473
42474         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
42475         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
42476         sys/param.h.
42477
42478 2009-10-16  Eric Blake  <ebb9@byu.net>
42479
42480         utimensat: new module
42481         * modules/utimensat: New file.
42482         * lib/utimensat.c (utimensat): Likewise.
42483         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
42484         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
42485         so we can work around Linux bugs.
42486         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
42487         * modules/sys_stat (Makefile.am): Substitute them.
42488         * lib/sys_stat.in.h (utimensat): Declare it.
42489         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
42490         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
42491         * modules/utimensat-tests: New test.
42492         * tests/test-utimensat.c: Likewise.
42493
42494         utimens: let lutimens work on non-symlinks
42495         * lib/utimens.c (lutimens): Fall back to utimens rather than
42496         failing with ENOSYS, when file is not a symlink.
42497         (utimens): Reduce redirection.
42498         * tests/test-lutimens.h (test_lutimens): Update test to cover
42499         non-symlinks.
42500         * tests/test-utimens.h (test_utimens): Update test to cover
42501         symlinks.
42502         * tests/test-utimens.c (main): Update caller.
42503
42504         utimens: cache whether utimensat syscall works
42505         * lib/utimens.c (utimensat_works_really): New cache variable.
42506         (fdutimens, lutimens): Use it to avoid failing syscall.
42507
42508         test-stat-time, test-utimens: improve portability
42509         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
42510         ext4 on alpha, and for cygwin.
42511         * tests/test-utimens-common.h: New file.
42512         (nap): Factor delays into single function.
42513         * tests/test-lutimens.h (test_lutimens): Use new header.
42514         * tests/test-futimens.h (test_futimens): Likewise.
42515         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
42516         timestamps to occur from same machine, as was done previously for
42517         test_utimens.
42518         * modules/utimens-tests (Files): Ship new file.
42519         * modules/futimens-tests (Files): Likewise.
42520         Reported in part by Jim Meyering.
42521
42522         sys_stat: sort replacement declarations
42523         * lib/sys_stat.in.h: Sort declarations.
42524         * lib/futimens.c (futimens): Fix typo.
42525
42526 2009-10-15  Jim Meyering  <meyering@redhat.com>
42527
42528         don't let environment settings perturb build
42529         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
42530         could cause a configure-time and/or build-time malfunction.
42531         Typically, a configure-time function-in-library test is performed
42532         via code like this:
42533
42534           LIB_VAR=
42535           AC_SUBST([LIB_VAR])
42536           prefix_saved_LIBS=$LIBS
42537             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
42538                        [test "$ac_cv_search_FUNC" = "none required" ||
42539                         LIB_VAR=$ac_cv_search_FUNC])
42540           LIBS=$prefix_saved_LIBS
42541
42542         However, in each of the files affected by this change, the LIB_VAR=
42543         initialization was omitted.  Thus, when set in the environment, its
42544         value would propagate into generated Makefiles when FUNC is not found
42545         in LIB_NAME.
42546         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
42547         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
42548         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
42549
42550 2009-10-14  Eric Blake  <ebb9@byu.net>
42551
42552         fchdir: avoid infinite recursion in mingw
42553         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
42554         recursing.
42555
42556         test-stat-time: port to mingw
42557         * tests/test-stat-time.c (force_unlink): Return a value.
42558         (test_ctime) [W32]: Fix compilation error.
42559         (nap): Don't call usleep with too large an argument.  Use
42560         force_unlink.
42561         * doc/pastposix-functions/usleep.texi (usleep): Document the
42562         portability issue.
42563
42564 2009-10-13  Jim Meyering  <meyering@redhat.com>
42565
42566         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
42567         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
42568         * modules/pipe-filter-ii: Likewise.
42569         * modules/sys_socket-tests: Likewise.
42570         * modules/tsearch-tests: Likewise.
42571         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
42572         (check): Depend on it.
42573
42574 2009-10-12  Eric Blake  <ebb9@byu.net>
42575
42576         utimens-tests: port to NFS file systems
42577         * tests/test-utimens.h (test_utimens): Refactor utimecmp
42578         comparisons to avoid spurious failures from timestamp drift
42579         between NFS machines.
42580
42581 2009-10-12  Eric Blake  <ebb9@byu.net>
42582
42583         stat-time-tests: minor cleanups
42584         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
42585         * tests/test-stat-time.c (nap): Separate assignment from call.
42586         Suggested by Paolo Bonzini and Bruno Haible.
42587
42588         sys_stat: guarantee struct timespec
42589         * lib/sys_stat.in.h (includes): Always include <time.h>
42590         * modules/sys_stat (Depends-on): Add time.
42591         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
42592         mode_t permission values.
42593         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
42594         get at subsecond timestamps.
42595
42596 2009-10-10  Eric Blake  <ebb9@byu.net>
42597
42598         futimens: new module
42599         * modules/futimens: New file.
42600         * lib/futimens.c (futimens): Likewise.
42601         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
42602         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
42603         we can work around Linux bugs.
42604         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
42605         * modules/sys_stat (Makefile.am): Substitute them.
42606         * lib/sys_stat.in.h (futimens): Declare it.
42607         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
42608         * doc/posix-functions/futimens.texi (futimens): Likewise.
42609         * modules/futimens-tests: New test.
42610         * tests/test-futimens.c: Likewise.
42611
42612         utimens: introduce fdutimens
42613         * lib/utimens.h (fdutimens): New prototype.
42614         * lib/utimens.c (gl_futimens): Move guts...
42615         (fdutimens): ...to new interface.
42616         * tests/test-utimens.c (do_fdutimens): Use it.
42617
42618         utimens: add UTIME_NOW and UTIME_OMIT support
42619         * lib/utimens.c (validate_timespec, update_timespec): New helper
42620         functions.
42621         (gl_futimens, lutimens): Use them.
42622         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
42623         stdbool, sys_stat.
42624         (Link): Mention resulting library dependency.
42625         * modules/utimecmp (Link): Likewise.
42626         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
42627         (Makefile.am): Pick up library dependency.
42628         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
42629         definition.
42630         * tests/test-sys_stat.c: Test the definitions.
42631         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
42632         * NEWS: Document library dependency.
42633
42634         utimecmp: support symlink timestamps
42635         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
42636         hashing when possible.  Use pathconf when available.
42637         (SYSCALL_RESOLUTION): Recognize tighter resolution.
42638         * modules/utimecmp (Depends-on): Add lstat.
42639
42640         utimens: add lutimens interface
42641         * lib/utimens.c (lutimens): New function.
42642         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
42643         * lib/utimens.h (lutimens): Declare new interface.
42644         * tests/test-utimens.c (main): Enhance test.
42645         * tests/test-lutimens.h (test_lutimens): New file.
42646         * modules/utimens-tests (Files): Distribute it.
42647         (Depends-on): Add symlink.
42648         (configure.ac): Check for usleep.
42649
42650         utimens: validate futimens usage
42651         * lib/utimens.c (gl_futimens): Require valid fd up front, using
42652         fewer syscalls on failure later on.  Avoid compiler warning on
42653         mingw.
42654         * modules/utimens (Depends-on): Add dup2.
42655
42656         utimens: add test
42657         * modules/utimens-tests: New test.
42658         * tests/test-utimens.h: New file.
42659         * tests/test-futimens.h: Likewise.
42660         * tests/test-utimens.c: Likewise.
42661
42662         doc: mention timestamp portability issues
42663         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
42664         instead.
42665         * doc/posix-functions/utime.texi (utime): Likewise.
42666         * doc/posix-functions/utimes.texi (utimes): Likewise.
42667         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
42668         instead.
42669         * doc/posix-functions/futimens.texi (futimens): Mention utimens
42670         module.
42671         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
42672         Mention weakness with symlink timestamps.
42673         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
42674         to utimensat/futimens instead.
42675         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
42676
42677         test-dup2: enhance test
42678         * tests/test-dup2.c (main): Also check AT_FDCWD.
42679
42680         test-stat-time: avoid more spurious failures
42681         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
42682         xfs; and avoid race if the two timestamps cross quantization edge.
42683
42684         relocatable: prefer 'file system' over 'filesystem'
42685         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
42686         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
42687         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
42688         * doc/relocatable.texi (Enabling Relocatability): Likewise.
42689         * lib/relocatable.c (compute_curr_prefix): Likewise.
42690
42691 2009-10-10  Jim Meyering  <meyering@redhat.com>
42692
42693         stat-time-tests: check for the usleep function
42694         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
42695
42696 2009-10-10  Bruno Haible  <bruno@clisp.org>
42697
42698         * modules/xnanosleep: Put the Link section after the Include section.
42699
42700 2009-10-09  Eric Blake  <ebb9@byu.net>
42701
42702         dup2: work around FreeBSD 6.1 bug
42703         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
42704         * doc/posix-functions/dup2.texi (dup2): Document it.
42705         Reported by Nelson H. F. Beebe and Jim Meyering.
42706
42707         test-stat-time: port to buggy NFS clients
42708         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
42709         (test_ctime): Also skip test if mtime and ctime are skewed.
42710
42711         maint: prefer 'file system' over 'filesystem'
42712         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
42713         * doc/posix-functions/lstat.texi (lstat): Likewise.
42714         * lib/file-has-acl.c (file_has_acl): Likewise.
42715         * lib/fwriteerror.c [TEST]: Likewise.
42716         * tests/test-areadlink.h (test_areadlink): Likewise.
42717         * tests/test-areadlinkat-with-size.c (main): Likewise.
42718         * tests/test-areadlinkat.c (main): Likewise.
42719         * tests/test-canonicalize-lgpl.c (main): Likewise.
42720         * tests/test-canonicalize.c (main): Likewise.
42721         * tests/test-fstatat.c (main): Likewise.
42722         * tests/test-linkat.c (main): Likewise.
42723         * tests/test-lstat.h (test_lstat_func): Likewise.
42724         * tests/test-mkdir.h (test_mkdir): Likewise.
42725         * tests/test-readlink.h (test_readlink): Likewise.
42726         * tests/test-remove.c (main): Likewise.
42727         * tests/test-rename.h (test_rename): Likewise.
42728         * tests/test-renameat.c (main): Likewise.
42729         * tests/test-rmdir.h (test_rmdir_func): Likewise.
42730         * tests/test-symlink.h (test_symlink): Likewise.
42731         * tests/test-symlinkat.c (main): Likewise.
42732         * tests/test-unlink.h (test_unlink_func): Likewise.
42733         * tests/test-unlinkat.c (main): Likewise.
42734
42735         maint: make realtime library usage explicit
42736         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
42737         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
42738         * modules/settime (Link): Likewise.
42739         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
42740
42741         test-stat-time: speed up execution
42742         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
42743         warning on mingw.
42744         (nap): New helper function.
42745         (prepare_test): Use it to reduce sleep time.
42746         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
42747         execution.
42748         * modules/stat-time-tests (configure.ac): Check for usleep.
42749
42750 2009-10-09  Jim Meyering  <meyering@redhat.com>
42751
42752         selinux-h: always use getfilecon wrappers
42753         * lib/getfilecon.c: New file.
42754         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
42755         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
42756         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
42757         (fgetfilecon): Provide a stub.
42758         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
42759         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
42760         file unconditionally.
42761         When <selinux/selinux.h> is found, arrange to use wrappers.
42762         * modules/selinux-h (Files): Add getfilecon.c.
42763         (Makefile.am): Substitute include-next-related bits
42764         into the now-always-generated selinux/selinux.h file.
42765         * doc/glibc-functions/lgetfilecon.texi: New file.
42766         * doc/glibc-functions/fgetfilecon.texi: New file.
42767         * doc/glibc-functions/getfilecon.texi: New file.
42768         * doc/glibc-functions/getfilecon-desc.texi: New file.
42769         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
42770         which to pull in the new files.
42771         * MODULES.html.sh (Misc): Add selinux-h.
42772
42773 2009-10-08  Jim Meyering  <meyering@redhat.com>
42774
42775         unistd: fix comment typo
42776         * lib/unistd.in.h (euidaccess): Fix a comment typo.
42777
42778 2009-10-08  Eric Blake  <ebb9@byu.net>
42779
42780         areadlink: use SIZE_MAX consistently
42781         * modules/areadlink (Depends-on): Add stdint.
42782         * modules/areadlink-with-size (Depends-on): Likewise.
42783         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
42784         gives NULL; drop sys/types, since unistd gives size_t; and add
42785         stdint for SIZE_MAX.
42786         (SIZE_MAX): Rely on headers.
42787         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
42788         and add stdint.
42789         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
42790         (SIZE_MAX): Likewise.
42791         (INITIAL_BUF_SIZE): Turn into enum.
42792         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
42793
42794 2009-10-08  Jim Meyering  <meyering@redhat.com>
42795
42796         areadlinkat: avoid compilation failure
42797         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
42798         Fix typo in comment.
42799
42800 2009-10-07  Eric Blake  <ebb9@byu.net>
42801
42802         areadlinkat-with-size: new module
42803         * modules/areadlinkat-with-size: New module.
42804         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
42805         * lib/areadlink.h (areadlinkat): Declare it.
42806         * MODULES.html.sh (File system functions): Mention it.
42807         * modules/areadlinkat-with-size-tests: New test.
42808         * tests/test-areadlinkat-with-size.c: New file.
42809
42810         xreadlinkat: new module
42811         * modules/xreadlinkat: New module.
42812         * lib/xreadlinkat.c (xreadlinkat): New file.
42813         * lib/xreadlink.h (xreadlinkat): Declare it.
42814         * MODULES.html.sh (File system functions): Mention it.
42815
42816         areadlinkat: new module
42817         * lib/at-func.c (FUNC_FAIL): New define.
42818         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
42819         * modules/areadlinkat: New module.
42820         * lib/linkat.c (areadlinkat): Move...
42821         * lib/areadlinkat.c (areadlinkat): ...to new file.
42822         * lib/areadlink.h (areadlinkat): Declare it.
42823         * modules/linkat (Depends-on): Add areadlinkat.
42824         * MODULES.html.sh (File system functions): Mention it.
42825         * modules/areadlinkat-tests: New test.
42826         * tests/test-areadlinkat.c: New file.
42827
42828         areadlink, areadlink-with-size: add tests
42829         * modules/areadlink-tests: New test.
42830         * modules/areadlink-with-size-tests: Likewise.
42831         * tests/test-areadlink.h: New file.
42832         * tests/test-areadlink.c: Likewise.
42833         * tests/test-areadlink-with-size.c: Likewise.
42834
42835         maint: minor cleanups
42836         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
42837         _UNUSED_PARAMETER_ instead.
42838         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
42839         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
42840         * modules/linkat-tests (Files): Distribute test-link.h.
42841
42842         openat, utimens: whitespace cleanup
42843         * lib/openat.c: Prefer space throughout, rather than mix of 8
42844         spaces vs. tabs.
42845         * lib/at-func.c: Likewise.
42846         * lib/utimens.c: Likewise.
42847
42848         openat: avoid using wrong fd
42849         * lib/openat.c (openat_permissive): Reject user's fd if saving the
42850         working directory chooses same fd.
42851         * lib/at-func.c (AT_FUNC_NAME): Likewise.
42852
42853         mkdir, mkdirat: fix cygwin 1.5.x bug
42854         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
42855         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
42856         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
42857         bug.
42858         (gl_PREREQ_MKDIR): Delete unused macro.
42859         * modules/mkdir (Files): Track file rename.
42860         (configure.ac): Update macro name.
42861         * modules/openat (Depends-on): Add mkdir.
42862         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
42863
42864         mkdir, mkdirat: add tests
42865         * modules/mkdir-tests: New test.
42866         * tests/test-mkdir.h: New file.
42867         * tests/test-mkdir.c: Likewise.
42868         * tests/test-mkdirat.c: Likewise.
42869         * modules/openat-tests (Files): Add new files.
42870         (Makefile.am): Run new test.
42871
42872 2009-10-06  Eric Blake  <ebb9@byu.net>
42873
42874         doc: tweak *at function documentation
42875         * doc/posix-functions/faccessat.texi (faccessat): Mention
42876         known issue with replacement.
42877         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
42878         * doc/posix-functions/linkat.texi (linkat): Likewise.
42879         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
42880         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
42881         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
42882         * doc/posix-functions/renameat.texi (renameat): Likewise.
42883         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
42884
42885         openat: fix GNU/Hurd bug in unlinkat
42886         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
42887         broken.
42888         * doc/posix-functions/unlink.texi (unlink): Document this.
42889         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
42890
42891         fdopendir: fix GNU/Hurd bug
42892         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
42893         allowing non-directory fds.
42894         * lib/fdopendir.c (rpl_fdopendir): Work around it.
42895         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
42896         * modules/dirent (Makefile.am): Substitute it.
42897         * lib/dirent.in.h (fdopendir): Declare replacement.
42898         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
42899         * tests/test-fdopendir.c (main): Test something other than
42900         /dev/null, since on Hurd that behaves like a directory.
42901
42902         test-symlink: port to GNU/Hurd
42903         * tests/test-symlink.h (test_symlink): Relax expected errno.
42904
42905         doc: tweak more cygwin information
42906         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
42907         now compatible with glibc.
42908         * doc/posix-functions/getopt.texi (getopt): Likewise.
42909
42910         getopt-gnu: add another test
42911         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
42912         guarantee behavior relied on by m4.
42913         * tests/test-getopt.c (main): Use it.
42914         * modules/getopt-posix-tests (Depends-on): Add setenv.
42915         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
42916
42917         getopt: fix compilation on darwin
42918         * lib/getopt.in.h (includes): Leave breadcrumbs during system
42919         include.
42920         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
42921         Reported by Ludovic Courtès.
42922
42923 2009-10-06  Bruno Haible  <bruno@clisp.org>
42924
42925         * modules/size_max (Description): Discourage its use.
42926         Reported by Simon Josefsson.
42927
42928 2009-10-06  Jim Meyering  <meyering@redhat.com>
42929
42930         linkat: avoid compilation failure
42931         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
42932
42933 2009-10-05  Eric Blake  <ebb9@byu.net>
42934
42935         linkat: support Linux 2.6.17
42936         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
42937         linkat on Linux, but allow cache variable override.
42938         * lib/linkat.c (rpl_linkat): Define override.
42939         * modules/linkat (Depends-on): Add symlinkat.
42940         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
42941         * modules/unistd (Makefile.am): Substitute it.
42942         * lib/unistd.in.h (linkat): Declare replacement.
42943         Reported by Pádraig Brady.
42944
42945         quotearg: port test to systems with C.UTF-8 locale
42946         * tests/test-quotearg.c (struct result_strings): Add another
42947         member, differentiating between C.ASCII and C.UTF-8 handling.
42948         (compare_strings): Add parameter.
42949         (main): Adjust all callers.
42950
42951         getopt: avoid clash with FreeBSD _getopt_internal
42952         * lib/getopt.in.h (_getopt_internal): Override the name.
42953         * lib/getopt_int.h (includes): Pick up any overrides.
42954         Reported by Reuben Thomas.
42955
42956         hash: allow C89 compilation
42957         * lib/hash.c (check_tuning): Move declaration before statement.
42958         Reported by Reuben Thomas.
42959
42960 2009-10-05  Karl Berry  <karl@gnu.org>
42961
42962         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
42963
42964 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
42965             Bruno Haible  <bruno@clisp.org>
42966
42967         * lib/uname.c (uname): Use a table-driven algorithm to compute
42968         Windows NT versions.
42969
42970 2009-10-04  Bruno Haible  <bruno@clisp.org>
42971
42972         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
42973         program_invocation_short_name.
42974         * modules/progname (configure.ac): Test for presence of
42975         program_invocation_short_name.
42976         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
42977
42978 2009-10-04  Bruno Haible  <bruno@clisp.org>
42979
42980         * lib/progname.c (set_program_name): Fix comment.
42981         Reported by Jim Meyering.
42982
42983 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
42984             Bruno Haible  <bruno@clisp.org>
42985
42986         * lib/uname.c: Include <string.h>.
42987         (uname): Do only one call to GetVersionEx in the common case.
42988
42989 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
42990             Bruno Haible  <bruno@clisp.org>
42991
42992         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
42993         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
42994         (uname): Add support for Windows CE and various non-x86 CPU types.
42995
42996 2009-10-03  Bruno Haible  <bruno@clisp.org>
42997
42998         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
42999         invocation to tests/configure.ac.
43000         Reported by Ian Beckwith <ianb@erislabs.net>.
43001
43002 2009-10-02  Eric Blake  <ebb9@byu.net>
43003
43004         fchdir: avoid compiler warning
43005         * lib/fchdir.c (canonicalize_file_name)
43006         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
43007
43008         test-open: support mingw errno values
43009         * tests/test-open.h (test_open): Relax test.
43010         * tests/test-fopen.h (test_fopen): Likewise.
43011         * tests/test-openat-safer.c (main): Likewise.
43012
43013         open: fix opening directory on mingw
43014         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
43015
43016         test-open: on GNU/Hurd, /dev/null is a directory
43017         * tests/test-fopen.h (main): Rename...
43018         (test_fopen): ...to this.  Use a guaranteed non-directory when
43019         confirming open behavior on trailing slash.
43020         * tests/test-openat-safer.c (main): Likewise.
43021         * tests/test-open.h (main): Likewise....
43022         (test_open): ...to this.
43023         * tests/test-fopen.c (main): Adjust caller.
43024         * tests/test-fopen-safer.c (main): Likewise.
43025         * tests/test-open.c (main): Likewise.
43026         * tests/test-fcntl-safer.c (main): Likewise.
43027         Reported by Samuel Thibault.
43028
43029         rename, fchdir: don't ignore chdir failure
43030         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
43031         * lib/rename.c (rpl_rename) [W32]: Likewise.
43032         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
43033         an empty destination directory if source cannot be renamed,
43034         although there is still possibility for failure.
43035         * doc/posix-functions/rename.texi (rename): Document the race.
43036         Reported by Jim Meyering.
43037
43038         maint: cleanup whitespace in recent commits
43039         * lib/rename.c (rpl_rename): Remove tabs.
43040         * tests/test-link.h (test_link): Likewise.
43041         * lib/fchdir.c (get_name): Likewise.
43042         Reported by Jim Meyering.
43043
43044 2009-10-02  Ben Pfaff  <blp@gnu.org>
43045
43046         relocatable-prog-wrapper: Add missing dependency on
43047         double-slash-root.
43048         * modules/relocatable-prog-wrapper: Add dependency.
43049         Reported by Ian Beckwith <ianb@erislabs.net>.
43050
43051 2009-10-02  Eric Blake  <ebb9@byu.net>
43052
43053         renameat: fix Solaris bugs
43054         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
43055         needed fixing.
43056         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
43057         * modules/stdio (Makefile.am): Substitute it.
43058         * lib/stdio.in.h (renameat): Declare replacement.
43059         * lib/renameat.c (rpl_renameat): Implement fix.
43060
43061         renameat: new module
43062         * modules/renameat: New file.
43063         * lib/renameat.c (renameat): Likewise.
43064         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
43065         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
43066         * modules/stdio (Makefile.am): Substitute them.
43067         * lib/stdio.in.h (renameat): Declare it.
43068         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43069         * doc/posix-functions/renameat.texi (renameat): Likewise.
43070         * modules/renameat-tests: New test.
43071         * tests/test-renameat.c: Likewise.
43072
43073         rename: fix mingw bugs
43074         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
43075         directory overwrite bugs.
43076
43077         rename: fix another cygwin 1.5 bug
43078         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
43079         checks.
43080         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
43081         unnecessary cygwin workarounds.  Also work around bug with moving
43082         full directory onto an empty one.
43083         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
43084
43085         rename-dest-slash: merge into rename module
43086         * modules/rename-dest-slash (Status): Mark obsolete.
43087         (Depends-on): Add rename.
43088         (Files): Let rename do it all.
43089         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
43090         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
43091         * m4/rename-dest-slash.m4: ...so this file can be deleted.
43092         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
43093         * lib/rename.c (rpl_rename): Update comments.
43094
43095         rename: fix cygwin 1.5.x bugs
43096         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
43097         * lib/rename.c (rpl_rename): Work around them.
43098         * modules/rename (Depends-on): Add same-inode.
43099
43100         rename: fix Solaris 10 bug
43101         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
43102         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
43103         was the only bug.
43104
43105         rename: fix Solaris 9 bug
43106         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
43107         on non-directory.  Avoid calling exit.
43108         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
43109         strdup.
43110         * modules/rename-tests (Depends-on): Drop lstat.
43111         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
43112         (gl_PREREQ_RENAME): Delete unused macro.
43113
43114         rename-dest-slash: fix NetBSD bug
43115         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
43116         links.
43117         * modules/rename-dest-slash (Depends-on): Add same-inode.
43118
43119         rename-tests: new test, exposes several platform bugs
43120         * modules/rename-tests: New file.
43121         * tests/test-rename.h: Likewise.
43122         * tests/test-rename.c: Likewise.
43123         * doc/posix-functions/rename.texi (rename): Improve documentation,
43124         including bugs that will eventually be fixed in gnulib.
43125
43126 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
43127
43128         * lib/uname.c: Include <stdlib.h>
43129         (uname): Assume version info is available.
43130
43131 2009-10-02  Jim Meyering  <meyering@redhat.com>
43132
43133         gnu-web-doc-update: correct --help output
43134         * build-aux/gnu-web-doc-update: Make --help output relevant.
43135
43136         gnu-web-doc-update: add standard options
43137         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
43138
43139         gnu-web-doc-update: New module.
43140         Use this script to automatically update the on-line web documentation
43141         for your GNU project at http://www.gnu.org/software/$pkg/manual/
43142         * modules/gnu-web-doc-update: New file, from coreutils.
43143         * build-aux/gnu-web-doc-update: New script.
43144
43145 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
43146
43147         link: LoadLibrary is not needed.
43148         * lib/link.c: Use GetModuleHandle.
43149
43150 2009-10-01  Eric Blake  <ebb9@byu.net>
43151
43152         getopt: bump serial number
43153         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
43154         change.
43155
43156         tests: tighten link, rmdir, and remove tests
43157         * tests/test-link.h (includes): No need to use <config.h> here.
43158         Clean up if directory hard link was created, otherwise test for
43159         trailing '.'.
43160         * tests/test-linkat.c (main): Simplify.
43161         * tests/test-remove.c (main): Enhance test for trailing '.'.
43162         * tests/test-rmdir.h (test_rmdir_func): Likewise.
43163
43164 2009-10-01  Jim Meyering  <meyering@redhat.com>
43165
43166         maint.mk: requiring "make major" was annoying, for a "minor" release.
43167         What is intended is "stable", to contrast with alpha and beta,
43168         so require "make stable", not "make major".
43169         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
43170         (get_tool_versions): Likewise.
43171         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
43172
43173 2009-09-30  Ben Pfaff  <blp@gnu.org>
43174
43175         Fix broken build of replacement for Windows tmpfile().
43176         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
43177         flags argument added along with the 'mkostemp' module.
43178
43179 2009-09-28  Bruno Haible  <bruno@clisp.org>
43180
43181         Avoid identifier clash with POSIX function 'remove' defined as a macro.
43182         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
43183         to 'remove_elt'.
43184         (gl_list_remove): Update.
43185         * lib/gl_list.c (gl_list_remove): Update.
43186         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
43187         to 'remove_elt'.
43188         (gl_oset_remove): Update.
43189         * lib/gl_list.c (gl_oset_remove): Update.
43190         Reported by Eric Blake.
43191
43192 2009-09-28  Eric Blake  <ebb9@byu.net>
43193
43194         doc: mention yet more cygwin 1.7 status
43195         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
43196         cygwin.
43197         * doc/glibc-functions/execvpe.texi (execvpe): New file.
43198         * doc/gnulib.texi (Glibc unistd.h): Mention it.
43199
43200         argp: fix test failure
43201         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
43202         that are not upper-case.  Pass correct range to tolower.
43203
43204 2009-09-27  Jim Meyering  <meyering@redhat.com>
43205
43206         test-yesno: work around sparc-dash here-document infelicity
43207         Without this change, the literal \177 byte in a here document
43208         would make dash 0.5.5.1-3 access uninitialized memory.
43209         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
43210         Instead, use a marker, "@", and filter through tr to create the desired
43211         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
43212
43213 2009-09-27  Bruno Haible  <bruno@clisp.org>
43214
43215         Disable untested support for new flavours of ACLs on AIX.
43216         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
43217         progress.
43218         * lib/set-mode-acl.c (qset_acl): Likewise.
43219
43220 2008-12-07  Bruno Haible  <bruno@clisp.org>
43221
43222         Add support for new flavours of ACLs on AIX. (Untested.)
43223         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
43224         (file_has_acl): Add support for newer AIX.
43225         * lib/set-mode-acl.c (qset_acl): Likewise.
43226         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
43227         Rainer Tammer <tammer@tammer.net>.
43228
43229 2009-09-26  Eric Blake  <ebb9@byu.net>
43230
43231         argp: fix compilation of getopt
43232         * lib/getopt.in.h (includes): Use different guard than glibc.
43233         Reported by Sergey Poznyakoff.
43234
43235         doc: mention more cygwin 1.7 status
43236         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
43237         bug.
43238         * doc/posix-functions/execl.texi (execl): Likewise.
43239         * doc/posix-functions/execle.texi (execle): Likewise.
43240         * doc/posix-functions/execlp.texi (execlp): Likewise.
43241         * doc/posix-functions/execv.texi (execv): Likewise.
43242         * doc/posix-functions/execve.texi (execve): Likewise.
43243         * doc/posix-functions/execvp.texi (execvp): Likewise.
43244         * doc/glibc-functions/canonicalize_file_name.texi
43245         (canonicalize_file_name): Cygwin 1.7 now provides this.
43246         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
43247         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
43248         on AT_SYMLINK_NOFOLLOW.
43249
43250 2009-09-24  Eric Blake  <ebb9@byu.net>
43251
43252         test-linkat: make test more robust
43253         * tests/test-linkat.c (main): Avoid collision with EEXIST.
43254
43255         getopt: fix inclusion guards for cygwin
43256         * modules/getopt-posix (Depends-on): Add include-next.
43257         (Makefile.am): Substitute more items in replacement header.
43258         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
43259         <getopt.h>.
43260         * lib/getopt.in.h (includes): Use split inclusion guard, and
43261         prefer <getopt.h> over include <unistd.h> when one is present.
43262         (option): Also override name of 'struct option'.
43263
43264         same-inode: revert prior change; it is not yet ready
43265         * NEWS: Undo mention of this change.
43266         * lib/same-inode.h (same-inode.h): Undo tri-state change.
43267         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
43268         * lib/cycle-check.c (cycle_check): Likewise.
43269         * lib/same.c (same_name): Likewise.
43270         * lib/at-func2.c (at_func2): Likewise.
43271
43272 2009-09-23  Eric Blake  <ebb9@byu.net>
43273
43274         linkat: new module
43275         * modules/linkat: New file.
43276         * lib/at-func2.c (at_func2): Likewise.
43277         * lib/linkat.c (linkat): Likewise.
43278         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
43279         * lib/openat-priv.h (at_func2): Add declaration.
43280         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
43281         * modules/unistd (Makefile.am): Substitute them.
43282         * lib/unistd.in.h (linkat): Declare it.
43283         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43284         * doc/posix-functions/linkat.texi (linkat): Likewise.
43285         * doc/posix-functions/link.texi (link): Tweak wording.
43286         * tests/test-link.c (main): Move guts...
43287         * tests/test-link.h (test_link): ...into new file.
43288         * modules/linkat-tests: New test.
43289         * tests/test-linkat.c: Likewise.
43290         * modules/link-tests (Files): Ship new file.
43291         (Depends-on): Add stdbool.
43292
43293         dirname: add library-safe mdir_name
43294         * lib/dirname.h (mdir_name): New prototype.
43295         * lib/dirname.c (dir_name): Move guts...
43296         (mdir_name): ...to new function that avoids xalloc_die.
43297
43298         fchdir: another mingw fix
43299         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
43300         * lib/fchdir.c (get_name): New helper method; skips canonicalize
43301         on mingw (where it has not yet been ported), and make it optional
43302         elsewhere.
43303         (_gl_register_fd): Use it.
43304
43305         same-inode: make SAME_INODE tri-state, to port to mingw
43306         * NEWS: Mention this change.
43307         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
43308         st_ino always being 0.
43309         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
43310         * lib/cycle-check.c (cycle_check): Likewise.
43311         * lib/same.c (same_name): Likewise.
43312
43313         lstat: avoid mingw compilation error
43314         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
43315         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
43316         lstat ourselves.
43317         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
43318         was adequate.
43319         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
43320         the checks for lstat.
43321         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
43322
43323         link: fix test failure on Solaris 9
43324         * lib/link.c (rpl_link): Don't assume link will catch bogus
43325         trailing slash on source.
43326
43327         test-symlinkat: enhance test
43328         * tests/test-readlink.c (main): Move guts...
43329         * tests/test-readlink.h (test_readlink): ...into new file.
43330         * tests/test-symlink.c (main): Move guts...
43331         * tests/test-symlink.h (test_symlink): ...into new file.
43332         * tests/test-symlinkat.c (main): Use new files for further
43333         coverage.
43334         (do_symlink, do_readlink): New helper functions.
43335         * modules/symlink-tests (Files): Ship new file.
43336         (Depends-on): Add stdbool.
43337         * modules/readlink-tests (Files): Ship new file.
43338         (Depends-on): Add stdbool.
43339         * modules/symlinkat-tests (Files): Use new files.
43340
43341 2009-09-23  Eric Blake  <ebb9@byu.net>
43342
43343         readlink: document portability issue with symlink length
43344         * doc/posix-functions/lstat.texi (lstat): Mention that some file
43345         systems have bogus st_size on symlinks, and mention the
43346         areadlink-with-size module.
43347         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
43348         * doc/posix-functions/readlink.texi (readlink): Mention the
43349         areadlink module, and ERANGE failure.
43350         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
43351         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
43352
43353         readlink: fix Solaris 9 bug with trailing slash
43354         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
43355         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
43356         * doc/posix-functions/readlink.texi (readlink): Document this.
43357         * modules/readlink-tests: New test.
43358         * tests/test-readlink.c: Likewise.
43359
43360         readlink: fix cygwin 1.5.x bug with return type
43361         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
43362         * lib/unistd.in.h (readlink): Use ssize_t.
43363         * lib/readlink.c (readlink): Likewise.
43364         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43365         * modules/unistd (Makefile.am): Substitute it.
43366         * lib/unistd.in.h (readlink): Declare replacement.
43367         * doc/posix-functions/readlink.texi (readlink): Document this.
43368
43369         symlink: use throughout gnulib
43370         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
43371         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
43372         symlink is not used.
43373         * modules/symlinkat (Depends-on): Add symlink.
43374         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
43375         * modules/canonicalize-tests (Depends-on): Likewise.
43376         * modules/lstat-tests (Depends-on): Likewise.
43377         * modules/openat-tests (Depends-on): Likewise.
43378         * modules/remove-tests (Depends-on): Likewise.
43379         * modules/rmdir-tests (Depends-on): Likewise.
43380         * modules/unlink-tests (Depends-on): Likewise.
43381         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
43382         * tests/test-canonicalize.c (symlink): Likewise.
43383         * tests/test-fstatat.c (symlink): Likewise.
43384         * tests/test-lstat.c (symlink): Likewise.
43385         * tests/test-remove.c (symlink): Likewise.
43386         * tests/test-rmdir.c (symlink): Likewise.
43387         * tests/test-unlink.c (symlink): Likewise.
43388         * tests/test-unlinkat.c (symlink): Likewise.
43389
43390         symlink: new module, for Solaris 9 bug
43391         * modules/symlink: New file.
43392         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
43393         * lib/symlink.c: Likewise.
43394         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
43395         * modules/unistd (Makefile.am): Substitute them.
43396         * lib/unistd.in.h (symlink): Declare replacement.
43397         * MODULES.html.sh (File system functions): Mention it.
43398         * doc/posix-functions/symlink.texi (symlink): Likewise.
43399         * modules/symlink-tests: New test.
43400         * tests/test-symlink.c: Likewise.
43401
43402 2009-09-23  Bruno Haible  <bruno@clisp.org>
43403
43404         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
43405         when needed.
43406         Test case: gnulib-tool --import --with-tests atexit inttypes.
43407         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
43408
43409 2009-09-23  Bruno Haible  <bruno@clisp.org>
43410
43411         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
43412         subcommand, not in a subshell.
43413
43414 2009-09-22  Eric Blake  <ebb9@byu.net>
43415
43416         unistd: sort replacement declarations
43417         * lib/unistd.in.h: Sort declarations.
43418
43419         open, openat: minor optimization
43420         * lib/open.c (open): If open succeeded, len is non-zero.
43421         * lib/openat.c (rpl_openat): Likewise.
43422
43423         link-follow: ensure correct result
43424         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
43425         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
43426         distinguish between possible failures.
43427
43428 2009-09-21  Eric Blake  <ebb9@byu.net>
43429
43430         fts: avoid compiler warning
43431         * lib/fts.c (dirent_inode_sort_may_be_useful)
43432         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
43433
43434 2009-09-19  Bruno Haible  <bruno@clisp.org>
43435
43436         * lib/progreloc.c (canonicalize_file_name): New declaration.
43437
43438 2009-09-19  Eric Blake  <ebb9@byu.net>
43439
43440         link: fix quoting
43441         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
43442
43443         openat: fix openat bugs on Solaris 9
43444         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
43445         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
43446         * modules/openat (Depends-on): Add open.
43447         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
43448         * modules/fcntl-h (Makefile.am): Substitute it.
43449         * lib/fcntl.in.h (openat): Declare replacement.
43450         * doc/posix-functions/openat.texi (openat): Document this.
43451
43452         openat: move fstatat and unlinkat into correct files
43453         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
43454         compiled.
43455         * lib/openat.c (fstatat, unlinkat): Move...
43456         * lib/fstatat.c (fstatat): ...into correct files.
43457         * lib/unlinkat.c (unlinkat): Likewise.
43458
43459         openat: fix unlinkat bugs on Solaris 9
43460         * lib/unlinkat.c (unlinkat): New file.
43461         * modules/openat (Depends-on): Add unlink.
43462         (Files): Distribute it.
43463         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
43464         trailing slash behavior is broken.
43465         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43466         * modules/unistd (Makefile.am): Substitute it.
43467         * lib/unistd.in.h (unlinkat): Declare replacement.
43468         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
43469
43470         openat: fix fstatat bugs on Solaris 9
43471         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
43472         stat.
43473         * doc/posix-functions/fstatat.texi (fstatat): Document this.
43474
43475         test-unlinkat: enhance test, to expose Solaris 9 bug
43476         * tests/test-unlink.c (main): Factor guts...
43477         * tests/test-unlink.h (test_rmdir_func): ...into new file.
43478         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
43479         * tests/test-rmdir.c (main): Adjust caller.
43480         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
43481         (unlinker): New helper function.
43482         (rmdirat): Enhance check.
43483         * modules/rmdir-tests (Depends-on): Add stdbool.
43484         * modules/unlink-tests (Depends-on): Likewise.
43485         (Files): Add test-unlink.h.
43486         * modules/openat-tests (Files): Likewise.
43487         (Depends-on): Add unlinkdir.
43488
43489         test-fstatat: new test, to expose Solaris 9 bugs
43490         * tests/test-stat.c (main): Factor guts...
43491         * tests/test-stat.h (test_stat_func): ...into new file.
43492         * tests/test-lstat.c (main): Factor guts...
43493         * tests/test-lstat.h (test_lstat_func): ...into new file.
43494         * tests/test-fstatat.c: New file.
43495         * modules/stat-tests (Files): Add test-stat.h.
43496         * modules/lstat-tests (Files): Add test-lstat.h.
43497         (Depends-on): Add stdbool.
43498         * modules/openat-tests (Depends-on): Add pathmax.
43499         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
43500         (Makefile.am): Run new test.
43501
43502         remove: new module, for mingw and Solaris 9 bugs
43503         * modules/remove: New file.
43504         * lib/remove.c: Likewise.
43505         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
43506         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
43507         * modules/stdio (Makefile.am): Use them.
43508         * lib/stdio.in.h (remove): Declare replacement.
43509         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43510         * doc/posix-functions/remove.texi (remove): Likewise.
43511         * modules/remove-tests: New test.
43512         * tests/test-remove.c: Likewise.
43513
43514         unlink: new module, for Solaris 9 bug
43515         * modules/unlink: New file.
43516         * lib/unlink.c: Likewise.
43517         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
43518         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
43519         * modules/unistd (Makefile.am): Use them.
43520         * lib/unistd.in.h (stat): Declare replacement.
43521         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43522         * doc/posix-functions/unlink.texi (unlink): Likewise.
43523         * modules/unlink-tests: New test.
43524         * tests/test-unlink.c: Likewise.
43525
43526         lstat: fix Solaris 9 bug
43527         * lib/lstat.c (lstat): Also check for trailing slash on
43528         non-symlink, non-directories.  Use stat module to simplify logic.
43529         * doc/posix-functions/lstat.texi (lstat): Document it.
43530         * modules/lstat-tests (Depends-on): Add errno, same-inode.
43531         (configure.ac): Check for symlink.
43532         * tests/test-lstat.c (main): Add more tests.
43533
43534         stat: add as dependency to other modules
43535         * modules/chown (Depends-on): Add stat.
43536         * modules/euidaccess (Depends-on): Likewise.
43537         * modules/fchdir (Depends-on): Likewise.
43538         * modules/isdir (Depends-on): Likewise.
43539         * modules/link (Depends-on): Likewise.
43540         * modules/lstat (Depends-on): Likewise.
43541         * modules/mkdir-p (Depends-on): Likewise.
43542         * modules/modechange (Depends-on): Likewise.
43543         * modules/open (Depends-on): Likewise.
43544         * modules/readlink (Depends-on): Likewise.
43545         * modules/same (Depends-on): Likewise.
43546
43547         stat: fix Solaris 9 bug
43548         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
43549         slash.
43550         * lib/stat.c (rpl_stat): Work around it.
43551         * doc/posix-functions/stat.texi (stat): Update documentation.
43552
43553         stat: new module, for mingw bug
43554         * modules/stat: New file.
43555         * lib/stat.c: Likewise.
43556         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
43557         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
43558         * modules/sys_stat (Makefile.am): Use them.
43559         * lib/sys_stat.in.h (stat): Declare replacement.
43560         * lib/openat.c (fstatat): Deal with lstat and stat being function
43561         macros.
43562         * modules/openat (Depends-on): Add inline.
43563         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43564         * doc/posix-functions/stat.texi (stat): Likewise.
43565         * modules/stat-tests: New test.
43566         * tests/test-stat.c: Likewise.
43567
43568 2009-09-19  Jim Meyering  <meyering@redhat.com>
43569
43570         syntax-check: detect unnecessary inclusion of canonicalize.h
43571         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
43572
43573 2009-09-19  Eric Blake  <ebb9@byu.net>
43574
43575         canonicalize-lgpl: adjust clients to use correct header
43576         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
43577         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
43578         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
43579         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
43580         * lib/progreloc.c (includes): Likewise.
43581
43582 2009-09-19  Jim Meyering  <meyering@redhat.com>
43583
43584         test-posixtm.c: correct a comment
43585         * tests/test-posixtm.c: Correct first-line comment.
43586         Spotted by Eric Blake.
43587
43588 2009-09-16  Jim Meyering  <meyering@redhat.com>
43589
43590         posixtm-tests: make T const-correct; add a test case
43591         * tests/test-posixtm.c (T): Declare const.
43592         Add a test for -(2^31+1).
43593         Remove useless can-succeed-only-in-2002 test.
43594
43595         posixtm-tests: adjust the sole failing test
43596         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
43597         expected output matches what mktime now produces.  Cross-checked via
43598         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
43599
43600         posixtm: move #ifdef'd tests into a new module
43601         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
43602         * tests/test-posixtm.c: ... this new file.
43603         * modules/posixtm-tests: New module.
43604
43605 2009-09-19  Eric Blake  <ebb9@byu.net>
43606
43607         openat: simplify use of at-func.c
43608         * lib/at-func.c (includes): Include prerequisites here, to
43609         simplify requirements on client files.
43610         * lib/openat-priv.h: Add double-inclusion guard.
43611         * lib/faccessat.c (includes): Simplify.
43612         * lib/fchmodat.c (includes): Likewise.
43613         * lib/fchownat.c (includes): Likewise.
43614         * lib/mkdirat.c (includes): Likewise.
43615         * lib/mkfifoat.c (includes): Likewise.
43616         * lib/symlinkat.c (includes): Likewise.
43617
43618         openat: allow return of fd 0
43619         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
43620         * modules/save-cwd (Depends-on): Replace fcntl-safer with
43621         unistd-safer.
43622         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
43623         <fcntl.h>; this module does not leak fds.
43624         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
43625         must be allowed to return 0, leaving openat_safer to add the
43626         safety.
43627         (openat_permissive): Avoid writing to just-opened fd 2 if
43628         restoring the current directory fails.
43629         * lib/openat-die.c (openat_restore_fail): Add comment.
43630         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
43631         (save_cwd): Guarantee safe fd, but without use of open_safer.
43632         * tests/test-openat.c: New test.
43633         * modules/openat-tests (Files, Makefile.am): Distribute and build
43634         new file.
43635
43636         relocatable-prog-wrapper: fix build
43637         * modules/relocatable-prog-wrapper (Files): Update name of
43638         canonicalize m4 file, broken on 2009-09-17.
43639         Reported by emad hajjar <aleppos@hotmail.com>.
43640
43641 2009-09-19  Bruno Haible  <bruno@clisp.org>
43642
43643         * lib/safe-alloc.h: Use the standard header with GPL copyright.
43644         * lib/safe-alloc.c: Likewise.
43645         Reported by Ian Beckwith <ianb@erislabs.net>.
43646
43647 2009-09-18  Bruno Haible  <bruno@clisp.org>
43648
43649         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
43650         Reported by <erobles@sensacd.com.mx>.
43651
43652 2009-09-17  Eric Blake  <ebb9@byu.net>
43653
43654         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
43655         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
43656         slashes when checking if last component is missing.
43657         * tests/test-canonicalize.c (main): Test this.
43658
43659         canonicalize, canonicalize-lgpl: honor // if distinct from /
43660         * modules/canonicalize (Files): Add double-slash-root.m4.
43661         * modules/canonicalize-lgpl (Files): Likewise.
43662         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
43663         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
43664         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
43665         fallback definition.
43666         (canonicalize_filename_mode): Use it to protect //.
43667         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
43668         (__realpath): Likewise.
43669         * tests/test-canonicalize.c (main): Test this.
43670         * tests/test-canonicalize-lgpl.c (main): Likewise.
43671         * modules/canonicalize-tests (Depends-on): Add same-inode.
43672         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
43673
43674         canonicalize-lgpl: fix glibc bug with trailing slash
43675         * m4/canonicalize-lgpl.m4: Move contents...
43676         * m4/canonicalize.m4: ...here.
43677         (gl_CANONICALIZE_LGPL): Factor realpath check...
43678         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
43679         glibc 2.3.5 bug, fixed 2005-04-27.
43680         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
43681         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
43682         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
43683         * modules/canonicalize-lgpl (Files): Manage file rename.
43684         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
43685         * modules/stdlib (Makefile.am): Substitute witness.
43686         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
43687         is needed.
43688         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
43689         replacement is required.
43690         * lib/canonicalize.c (canonicalize_file_name): Likewise.
43691         * doc/glibc-functions/canonicalize_file_name.texi
43692         (canonicalize_file_name): Document this.
43693         * doc/posix-functions/realpath.texi (realpath): Likewise.
43694
43695         canonicalize-lgpl: reject non-directory with trailing slash
43696         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
43697         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
43698         catches failures in glibc 2.3.5.
43699         * tests/test-canonicalize.c (main): Likewise.
43700
43701         canonicalize-lgpl: use native realpath if it works
43702         * lib/canonicalize-lgpl.c (realpath): Guard with
43703         FUNC_REALPATH_WORKS.
43704         * lib/stdlib.in.h (realpath): Make declaration optional based on
43705         HAVE_REALPATH.
43706         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
43707         native realpath works.
43708         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
43709         * modules/stdlib (Makefile.am): Substitute witness.
43710
43711         canonicalize, canonicalize-lgpl: use <stdlib.h>
43712         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
43713         (Include): Mention <stdlib.h>.
43714         (configure.ac): Mention functions we provide.
43715         * modules/canonicalize (configure.ac): Likewise.
43716         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
43717         realpath if canonicalize_file_name is missing.
43718         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
43719         * modules/stdlib (Makefile.am): Substitute witnesses.
43720         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
43721         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
43722         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
43723         * NEWS: Document this.
43724         * doc/glibc-functions/canonicalize_file_name.texi
43725         (canonicalize_file_name): Likewise.
43726         * doc/posix-functions/realpath.texi (realpath): Likewise.
43727         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
43728
43729         test-canonicalize: consolidate into single C program
43730         * tests/test-canonicalize.sh: Delete; move setup into...
43731         * tests/test-canonicalize.c (main): ...the program, making it
43732         easier to run in debugger.  Add some tests.
43733         * modules/canonicalize-tests (Files): Remove unused file.
43734         (Depends-on): Add progname.
43735         (configure.ac, Makefile.am): Simplify.
43736
43737         test-canonicalize-lgpl: consolidate into single C program
43738         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
43739         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
43740         easier to run in debugger.  Add some tests.
43741         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
43742         (configure.ac, Makefile.am): Simplify.
43743
43744         canonicalize: avoid resolvepath
43745         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
43746         unnecessary checks.
43747         * lib/canonicalize.c (includes): Simplify.
43748         (canonicalize_file_name): Drop resolvepath implementation.
43749         * modules/canonicalize (Depends-on): Drop filenamecat.
43750
43751         canonicalize: don't lose errno
43752         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
43753         over calls to free.
43754
43755         canonicalize: simplify errno handling
43756         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
43757         assignment.
43758
43759         canonicalize, canonicalize-lgpl: update module dependencies
43760         * modules/canonicalize (Depends-on): Add extensions, lstat,
43761         pathmax, stdlib.
43762         (Files): Drop pathmax.h.
43763         (configure.ac): Adjust macro name.
43764         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
43765         lstat, stdlib, sys_stat.
43766         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
43767         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
43768         extensions.
43769         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
43770         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
43771         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
43772         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
43773         declaration, if available.
43774         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
43775         we can rely on the readlink module.
43776         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
43777         (includes): Use <unistd.h> unconditionally.
43778
43779 2009-09-17  Eric Blake  <ebb9@byu.net>
43780
43781         maint: make Include sections of modules consistent
43782         * modules/alloca: Use only header name; no need to list #include.
43783         * modules/alloca-opt: Likewise.
43784         * modules/arpa_inet: Likewise.
43785         * modules/canon-host: Likewise.
43786         * modules/configmake: Likewise.
43787         * modules/dirent: Likewise.
43788         * modules/eealloc: Likewise.
43789         * modules/environ: Likewise.
43790         * modules/fchdir: Likewise.
43791         * modules/fcntl: Likewise.
43792         * modules/fcntl-h: Likewise.
43793         * modules/gethrxtime: Likewise.
43794         * modules/gettime: Likewise.
43795         * modules/ignore-value: Likewise.
43796         * modules/inet_ntop: Likewise.
43797         * modules/inet_pton: Likewise.
43798         * modules/inttypes: Likewise.
43799         * modules/isnand-nolibm: Likewise.
43800         * modules/isnanf-nolibm: Likewise.
43801         * modules/mbchar: Likewise.
43802         * modules/mbfile: Likewise.
43803         * modules/mbiter: Likewise.
43804         * modules/mbuiter: Likewise.
43805         * modules/netdb: Likewise.
43806         * modules/netinet_in: Likewise.
43807         * modules/nproc: Likewise.
43808         * modules/pagealign_alloc: Likewise.
43809         * modules/poll: Likewise.
43810         * modules/printf-frexp: Likewise.
43811         * modules/pthread: Likewise.
43812         * modules/putenv: Likewise.
43813         * modules/random_r: Likewise.
43814         * modules/relocatable-prog: Likewise.
43815         * modules/search: Likewise.
43816         * modules/select: Likewise.
43817         * modules/selinux-h: Likewise.
43818         * modules/settime: Likewise.
43819         * modules/signal: Likewise.
43820         * modules/size_max: Likewise.
43821         * modules/socklen: Likewise.
43822         * modules/ssize_t: Likewise.
43823         * modules/stdarg: Likewise.
43824         * modules/stdbool: Likewise.
43825         * modules/stddef: Likewise.
43826         * modules/stdint: Likewise.
43827         * modules/stdio: Likewise.
43828         * modules/stdlib: Likewise.
43829         * modules/string: Likewise.
43830         * modules/strings: Likewise.
43831         * modules/sys_file: Likewise.
43832         * modules/sys_ioctl: Likewise.
43833         * modules/sys_select: Likewise.
43834         * modules/sys_socket: Likewise.
43835         * modules/sys_stat: Likewise.
43836         * modules/sys_time: Likewise.
43837         * modules/sys_times: Likewise.
43838         * modules/sys_utsname: Likewise.
43839         * modules/sys_wait: Likewise.
43840         * modules/sysexits: Likewise.
43841         * modules/time: Likewise.
43842         * modules/times: Likewise.
43843         * modules/tmpfile: Likewise.
43844         * modules/trim: Likewise.
43845         * modules/unistd: Likewise.
43846         * modules/wchar: Likewise.
43847         * modules/wctype: Likewise.
43848
43849 2009-09-17  Bruno Haible  <bruno@clisp.org>
43850
43851         Make getdate.y compile on QNX and NetBSD 5 / i386.
43852         * m4/getdate.m4 (gl_GETDATE): Conditionally define
43853         TIME_T_FITS_IN_LONG_INT.
43854         * lib/getdate.y (long_time_t): New type.
43855         (relative_time): Change type of 'seconds' field to long_time_t.
43856         (get_date): Update types of local variables. Check against overflow
43857         during conversion from long_time_t to time_t.
43858         Reported by Matt Kraai <kraai@ftbfs.org>
43859         and Hasso Tepper <hasso@netbsd.org>.
43860
43861 2009-09-17  Bruno Haible  <bruno@clisp.org>
43862
43863         * modules/COPYING: Update copyright years.
43864         * modules/README: Likeiwse.
43865         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
43866         Reported by Ian Beckwith <ianb@erislabs.net>.
43867
43868 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
43869
43870         * users.txt: Update references for gnuit package.
43871
43872 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
43873
43874         * m4/getdelim.m4: Fix typo in copyright line.
43875
43876 2009-09-17  Bruno Haible  <bruno@clisp.org>
43877
43878         * lib/atoll.c: Use the standard header with GPL copyright.
43879         * lib/argz.in.h: Likewise.
43880         * lib/glob.c: Likewise.
43881         * lib/glob-libc.h: Likewise.
43882         * lib/random_r.c: Likewise.
43883         * lib/siglist.h: Likewise.
43884         * lib/strsignal.c: Likewise.
43885         Reported by Ian Beckwith <ianb@erislabs.net>.
43886
43887 2009-09-17  Eric Blake  <ebb9@byu.net>
43888
43889         rmdir: ensure correct dependency order
43890         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
43891
43892 2009-09-17  Bruno Haible  <bruno@clisp.org>
43893
43894         Disable assertion that fails on NetBSD 5 / i386.
43895         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
43896         Reported by Sam Steingold <sds@gnu.org>
43897         and Hasso Tepper <hasso@netbsd.org>.
43898
43899 2009-09-16  Eric Blake  <ebb9@byu.net>
43900
43901         unlinkdir: port to mingw
43902         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
43903         on which no one can unlink a directory.
43904
43905         stdlib: sort witness names
43906         * modules/stdlib (Makefile.am): Sort replacements.
43907         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
43908         * lib/stdlib.in.h: Likewise.
43909
43910         parse-duration-tests: avoid link failure
43911         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
43912         LIBINTL.
43913         Reported by Tom G. Christensen.
43914
43915         openat-tests: ensure unlinkat behaves like rmdir
43916         * tests/test-rmdir.c (main): Factor guts...
43917         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
43918         * modules/rmdir-tests (Files): Ship new file.
43919         * modules/openat-tests: New test.
43920         * tests/test-unlinkat.c: Likewise.
43921
43922         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
43923         * modules/rmdir-errno (Status, Notice): Now obsolete.
43924
43925         rmdir: work around cygwin 1.5.x and mingw bugs
43926         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
43927         * lib/rmdir.c (rmdir): Work around it.
43928         * modules/rmdir (Status, Notice): No longer obsolete.
43929         (Files): Add dos.m4.
43930         (Depends-on): Add unistd.
43931         (configure.ac): Set witnesses.
43932         (License): Relax to LGPLv2+.
43933         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
43934         * modules/unistd (Makefile.am): Substitute witnesses.
43935         * lib/unistd.in.h (rmdir): Declare replacement.
43936         * doc/posix-functions/rmdir.texi (rmdir): Document this.
43937         * modules/rmdir-tests: New tests.
43938         * tests/test-rmdir.c: Likewise.
43939
43940 2009-09-15  Eric Blake  <ebb9@byu.net>
43941
43942         fchdir: improve use of replacement functions
43943         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
43944         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
43945         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
43946         REPLACE_CLOSEDIR.
43947         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
43948         * modules/sys_stat (Makefile.am): Substitute correct witness.
43949         * modules/dirent (Makefile.am): Likewise.
43950         * modules/unistd (Makefile.am): Likewise.
43951         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
43952         * lib/unistd.in.h (dup): Likewise.
43953         * lib/sys_stat.in.h (fstat): Likewise.
43954
43955         maint: ignore gnulib-tool temp files
43956         * .gitignore: Ignore files created during gnulib-tool --test.
43957
43958 2009-09-13  Jim Meyering  <meyering@redhat.com>
43959
43960         posixtm: don't reject a time that specify "60" as the number of seconds
43961         * lib/posixtm.c (posixtime): The code to reject invalid dates
43962         would also reject a time specified with the .60 suffix.
43963         But POSIX allows that, in order to accommodate leap seconds.
43964         So don't reject it.
43965         (main): Adjust tests accordingly.
43966         * modules/posixtm (Depends-on): Add stpcpy.
43967
43968 2009-09-11  Jim Meyering  <meyering@redhat.com>
43969
43970         announce-gen: include [$release_type] in emitted Subject:
43971         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
43972         e.g., [stable] in the emitted Subject: line.
43973
43974 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43975
43976         Remove obsolete macros from several modules.
43977         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
43978         obsolete Autoconf macros with their modern counterparts.
43979         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
43980         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
43981         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
43982         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
43983         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
43984         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
43985         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
43986         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
43987         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
43988         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
43989         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
43990         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
43991         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
43992         * m4/sockets.m4 (gl_SOCKETS): Likewise.
43993         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
43994         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
43995         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
43996         * m4/time_r.m4 (gl_TIME_R): Likewise.
43997         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
43998         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
43999         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
44000
44001         Fix copyright header in build-aux scripts.
44002         * build-aux/git-version-gen: Fix copyright header to match GPLv3
44003         recommendation.
44004         * build-aux/ncftpput-ftp: Likewise.
44005         * build-aux/update-copyright: Likewise.
44006
44007 2009-09-09  Eric Blake  <ebb9@byu.net>
44008
44009         test-link: allow Linux choice of errno
44010         * tests/test-link.c (main): Relax test for alternate error.
44011
44012         strndup: fix improper m4 caching
44013         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
44014         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
44015         (gl_PREREQ_STRNDUP): Delete.
44016         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
44017         * modules/string (Makefile.am): Substitute it.
44018         * lib/string.in.h (strndup): Modernize prototype.
44019
44020         getcwd: port to mingw
44021         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
44022         different from the POSIX assumptions made throughout the getcwd
44023         module; fortunately, the mingw getcwd does not need replacement.
44024         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
44025         * modules/getcwd-tests: New test.
44026         * tests/test-getcwd.c: Likewise.
44027
44028         link: fix platform bugs
44029         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
44030         * lib/link.c (link): Work around them.  Fix related mingw bug.
44031         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
44032         * modules/unistd (Makefile.am): Substitute it.
44033         * lib/unistd.in.h (link): Declare replacement.
44034         * doc/posix-functions/link.texi (link): Document this.
44035         * modules/link (Depends-on): Add strdup-posix, sys_stat.
44036
44037         test-link: consolidate into single C program, test more cases
44038         * tests/test-link.sh: Delete.
44039         * tests/test-link.c: Test more error conditions.  Exposes bugs on
44040         at least Cygwin and Solaris.
44041         * modules/link-tests (Files): Remove unused file.
44042         (Depends-on): Add errno, sys_stat.
44043         (Makefile.am): Simplify.
44044
44045 2009-09-08  Bruno Haible  <bruno@clisp.org>
44046
44047         Work around towlower, towupper bug on mingw.
44048         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
44049         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
44050         * doc/posix-functions/towlower.texi: Mention the mingw bug.
44051         * doc/posix-functions/towupper.texi: Likewise.
44052         Reported by Eric Blake.
44053
44054 2009-09-08  Jim Meyering  <meyering@redhat.com>
44055
44056         build: don't try to run autoheader if we don't use it
44057         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
44058         is not used in configure.ac.
44059
44060 2009-09-08  Eric Blake  <ebb9@byu.net>
44061
44062         euidaccess: fix compilation error
44063         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
44064
44065         rawmemchr: relax license
44066         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
44067         okay.
44068         Reported by Jim Meyering.
44069
44070         mkfifoat: new module
44071         * modules/mkfifoat: New file.
44072         * lib/mkfifoat.c: Likewise.
44073         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
44074         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
44075         * modules/sys_stat (Makefile.am): Use them.
44076         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
44077         * MODULES.html.sh (File system functions): Mention module.
44078         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
44079         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
44080         * modules/mkfifoat-tests: New test.
44081         * tests/test-mkfifoat.c: Likewise.
44082
44083         strchrnul: relax license
44084         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
44085         okay.
44086         Reported by Jim Meyering.
44087
44088 2009-09-08  Eric Blake  <ebb9@byu.net>
44089
44090         fstatat: fix compilation on Solaris
44091         * lib/fstatat.c (includes): Add fcntl.h.
44092         Reported by Pádraig Brady.
44093
44094 2009-09-07  Eric Blake  <ebb9@byu.net>
44095
44096         rename: modernize replacement
44097         * modules/rename (Depends-on): Add stdio.
44098         (configure.ac): Declare witness.
44099         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
44100         stdio take care of replacement.
44101         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
44102         * modules/stdio (Makefile.am): Substitute them.
44103         * lib/stdio.in.h (rename): Declare replacement.
44104         * lib/rename.c (includes): Allow cross-compilation to non-windows
44105         machines.
44106         * doc/posix-functions/rename.texi (rename): Improve
44107         documentation.
44108
44109         stdio: sort witness names
44110         * modules/stdio (Makefile.am): Sort replacements.
44111         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
44112         * lib/stdio.in.h: Likewise.
44113
44114         getcwd: minor cleanups
44115         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
44116         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
44117
44118         openat: provide more convenience names
44119         * modules/faccessat (configure.ac): Add C witness.
44120         * lib/unistd.in.h (readlinkat): Fix typo.
44121         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
44122         convenience wrappers.
44123         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
44124         wrappers in syntax checks.
44125
44126 2009-09-06  Eric Blake  <ebb9@byu.net>
44127
44128         doc: fix comments in recent patches
44129         * lib/faccessat.c: Mention correct function.
44130         * lib/fchmodat.c: Likewise.
44131         * lib/fchownat.c: Likewise.
44132         * lib/symlinkat.c: Likewise.
44133         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
44134         constants.
44135
44136         faccessat, symlinkat: continue cleanup of previous patch
44137         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
44138         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
44139         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
44140         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
44141         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
44142         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
44143         set.
44144
44145 2009-09-06  Bruno Haible  <bruno@clisp.org>
44146
44147         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
44148         (fstatat): Declare if GNULIB_FSTATAT is set.
44149         (mkdirat): Declare if GNULIB_MKDIRAT is set.
44150         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
44151         (unlinkat): Declare if GNULIB_UNLINKAT is set.
44152         * modules/fcntl-h (Files): Remove m4/openat.m4.
44153         * modules/sys_stat (Files): Remove m4/openat.m4.
44154         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
44155         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
44156         * modules/unistd (Files): Remove m4/openat.m4.
44157         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
44158         GNULIB_OPENAT.
44159         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
44160         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
44161         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
44162         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
44163         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
44164         gl_OPENAT_DEFAULTS.
44165         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
44166         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
44167         Don't require gl_OPENAT_DEFAULTS.
44168         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
44169         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
44170         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
44171         (gl_OPENAT_DEFAULTS): Remove macro.
44172
44173 2009-09-06  Bruno Haible  <bruno@clisp.org>
44174
44175         * modules/openat (configure.ac): Remove unneeded witness.
44176
44177 2009-09-06  Bruno Haible  <bruno@clisp.org>
44178
44179         Set errno to ENOSYS when a function is entirely unsupported.
44180         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
44181         EOPNOTSUPP.
44182         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
44183         * modules/chown (Depends-on): Remove errno.
44184
44185 2009-09-06  Bruno Haible  <bruno@clisp.org>
44186
44187         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
44188
44189 2009-09-06  Bruno Haible  <bruno@clisp.org>
44190
44191         * lib/sys_stat.in.h: Fix preprocessor command indentation.
44192
44193 2009-09-06  Ben Pfaff  <blp@gnu.org>
44194             Bruno Haible  <bruno@clisp.org>
44195
44196         Work around a glibc bug in strtok_r.
44197         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
44198         Undefine if UNDEFINE_STRTOK_R is set.
44199         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
44200         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
44201         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
44202         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
44203         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
44204         UNDEFINE_STRTOK_R.
44205         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
44206
44207 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
44208
44209         exclude: minor fix
44210         * lib/exclude.c: Include wctype.h
44211
44212 2009-09-06  Akim Demaille  <demaille@gostai.com>
44213
44214         bootstrap: improve error message
44215         * build-aux/bootstrap (find_tool): Upon failure, report the list
44216         of candidates.
44217         Honor the initial value of the envvar.
44218
44219 2009-09-05  Eric Blake  <ebb9@byu.net>
44220
44221         symlinkat: new module
44222         * modules/symlinkat: New file.
44223         * lib/symlinkat.c: Likewise.
44224         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
44225         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
44226         * modules/unistd (Makefile.am): Use them.
44227         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
44228         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
44229         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
44230         * MODULES.html.sh (File system functions): Mention module.
44231         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
44232         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
44233         * modules/symlinkat-tests: New test.
44234         * tests/test-symlinkat.c: Likewise.
44235
44236         test-openat-safer: add more checks
44237         * tests/test-openat-safer.c (main): Check more code paths.
44238
44239 2009-09-05  Jim Meyering  <meyering@redhat.com>
44240
44241         syntax-check: detect unnecessary inclusion of openat.h
44242         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
44243
44244 2009-09-05  Bruno Haible  <bruno@clisp.org>
44245
44246         Support towlower, towupper.
44247         * doc/posix-functions/towlower.texi: Mention module wctype.
44248         * doc/posix-functions/towupper.texi: Likewise.
44249         * lib/wctype.in.h (towlower, towupper): New functions.
44250         * tests/test-wctype.c: Include stdio.h, stdlib.h.
44251         (ASSERT): New macro.
44252         (e): New variable.
44253         (main): Test also towlower, towupper. Test WEOF argument.
44254         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
44255
44256 2009-09-05  Bruno Haible  <bruno@clisp.org>
44257
44258         Fix conversion behaviour when the input is invalid.
44259         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
44260         mark occurring in first pass of indirect conversion.
44261         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
44262         input.
44263         Found by clang's static analyzer.
44264
44265 2009-09-05  Bruno Haible  <bruno@clisp.org>
44266
44267         * tests/test-striconveh.c (main): Test indirect conversion on platforms
44268         where direct conversion is possible.
44269
44270 2009-09-04  Eric Blake  <ebb9@byu.net>
44271
44272         openat: fail with ENOENT on empty name
44273         * lib/openat-proc.c (openat_proc_name): Special-case the empty
44274         buffer.
44275
44276         link-follow: fix logic bug in prior patch
44277         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
44278         reversed sense of yes and no in prior patch.  Avoid confusing
44279         compilation failure with desired semantics.
44280
44281         link-follow: accommodate mingw and cross-compilation
44282         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
44283         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
44284         cross-compilation results to -1, to make linkat easier to
44285         implement when cross-compiling.  Trivially support mingw.
44286         * modules/link-follow (configure.ac): Call new name.
44287         * NEWS: Mention this.
44288
44289 2009-09-03  Eric Blake  <ebb9@byu.net>
44290
44291         faccessat: compile replacement
44292         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
44293         needed.
44294
44295         fts: fix compilation error
44296         * lib/fts.c (includes): Re-add "openat.h", for
44297         openat_needs_fchdir.
44298
44299         faccessat: new module
44300         * modules/faccessat: New file.
44301         * lib/faccessat.c: Likewise.
44302         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
44303         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
44304         * modules/unistd (Makefile.am): Use it.
44305         * lib/unistd.in.h (faccessat): Declare it.
44306         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
44307         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
44308         * MODULES.html.sh (File system functions): Mention it.
44309         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
44310         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
44311
44312         euidaccess: prefer POSIX over non-standard implementation
44313         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
44314         * lib/euidaccess.c (euidaccess): Use it if available.
44315
44316         openat: make template easier to use
44317         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
44318         AT_FUNC_F2 to be undefined.
44319         (VALIDATE_FLAG): New macro; use it to reject bad flags.
44320         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
44321         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
44322         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
44323         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
44324         Likewise.
44325         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
44326         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
44327         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
44328         Likewise.
44329
44330         openat: declare in POSIX headers
44331         * NEWS: Mention this.
44332         * modules/openat (configure.ac): Declare witnesses.
44333         (Depends-on): Add fcntl-h, sys_stat, unistd.
44334         (Include): Mention correct headers.
44335         * modules/fcntl-h (Depends-on): Add link-warning.
44336         (Files): Add openat.m4.
44337         (Makefile.am): Substitute witnesses.
44338         * modules/sys_stat (Files, Makefile.am): Likewise.
44339         * modules/unistd (Files, Makefile.am): Likewise.
44340         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
44341         (gl_OPENAT_DEFAULTS): New macro.
44342         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
44343         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
44344         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
44345         (SYS_STAT_H): Remove unused variable.
44346         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
44347         * lib/fcntl--.h (includes): Remove unneeded header.
44348         * lib/openat-safer.c (includes): Likewise.
44349         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
44350         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
44351         appropriate headers.
44352         (__OPENAT_PREFIX): Delete.
44353         * lib/fcntl.in.h (openat): Provide declaration.
44354         (AT_FDCWD): Fix Solaris bug.
44355         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
44356         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
44357         * lib/fchmodat.c (includes):  Adjust to find declaration.
44358         * lib/fchownat.c (includes): Likewise.
44359         * lib/mkdirat.c (includes): Likewise.
44360         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
44361         still visible.
44362
44363 2009-09-02  Eric Blake  <ebb9@byu.net>
44364
44365         errno: use consistently
44366         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
44367         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
44368         * lib/canonicalize.c (ELOOP): Likewise.
44369         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
44370         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
44371         * lib/lchown.c (EOPNOTSUPP): Likewise.
44372         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
44373         * lib/savewd.c (ESTALE): Likewise.
44374         * lib/settime.c (ENOSYS): Likewise.
44375         * lib/utimens.c (ENOSYS): Likewise.
44376         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
44377         * lib/chdir-safer.c (ELOOP): Likewise.
44378         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
44379         * modules/c-stack (Depends-on): Add errno.
44380         * modules/canonicalize (Depends-on): Likewise.
44381         * modules/chdir-safer (Depends-on): Likewise.
44382         * modules/fdopendir (Depends-on): Likewise.
44383         * modules/inet_ntop (Depends-on): Likewise.
44384         * modules/inet_pton (Depends-on): Likewise.
44385         * modules/lchown (Depends-on): Likewise.
44386         * modules/openat (Depends-on): Likewise.
44387         * modules/savewd (Depends-on): Likewise.
44388         * modules/settime (Depends-on): Likewise.
44389         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
44390
44391         fts: avoid leaking fds
44392         * modules/fts (Depends-on): Add cloexec.
44393         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
44394         flag.
44395
44396         fts: make directory fds more robust
44397         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
44398         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
44399
44400         backupfile, chdir-long, fts, savedir: make safer
44401         * lib/backupfile.c (includes): Use "dirent--.h", since
44402         numbered_backup can write to stderr during readdir.
44403         * lib/savedir.c (includes): Likewise.
44404         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
44405         emulation can write to stderr on failure.
44406         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
44407         * lib/getcwd.c: Document why opendir_safer is unused.
44408         * lib/glob.c: Likewise.
44409         * lib/scandir.c: Likewise.
44410         * lib/openat-proc.c: Likewise, for open_safer.
44411         * modules/backupfile (Depends-on): Add dirent-safer.
44412         * modules/savedir (Depends-on): Likewise.
44413         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
44414         * modules/chdir-long (Depends-on): Add openat-safer.
44415
44416         openat-safer: new module
44417         * modules/openat-safer: New file.
44418         * lib/openat-safer.c: Likewise.
44419         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
44420         * lib/fcntl-safer.h (openat_safer): Declare.
44421         * lib/fcntl--.h (openat): Override.
44422         * MODULES.html.sh (File descriptor based I/O): Mention it.
44423         * lib/openat.h: Add double-inclusion guards.
44424         * lib/openat.c (includes): Only include "fcntl-safer.h", not
44425         "fcntl--.h", so we can implement openat.
44426         * modules/openat-safer-tests: New test.
44427         * tests/test-openat-safer.c: New file.
44428
44429         dirent-safer: new module
44430         * modules/dirent-safer: New file.
44431         * lib/dirent--.h: Likewise.
44432         * lib/dirent-safer.h: Likewise.
44433         * lib/opendir-safer.c: Likewise.
44434         * m4/dirent-safer.m4: Likewise.
44435         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
44436         * modules/dirent-safer-tests: New test.
44437         * tests/test-dirent-safer.c: New file.
44438         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
44439
44440         fdopendir: optimize on mingw
44441         * lib/unistd.in.h (_gl_directory_name): New prototype.
44442         * lib/fchdir.c (_gl_directory_name): Implement it.
44443         (fchdir): Use it to simplify implementation.
44444         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
44445         fchdir, when available, to avoid calling [f]chdir().
44446
44447         fdopendir: split into its own module
44448         * lib/openat.c (fdopendir): Move...
44449         * lib/fdopendir.c: ...into new file.
44450         * modules/fdopendir: New module.
44451         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
44452         * modules/openat (Depends-on): Add fdopendir.
44453         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
44454         fdopendir here.
44455         * modules/savedir (Depends-on): Only need fdopendir, not full
44456         openat.
44457         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
44458         * lib/openat.h (fdopendir): Drop prototype.
44459         * lib/dirent.in.h (fdopendir): Provide prototype.
44460         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
44461         * modules/dirent (Makefile.am): Substitute them.
44462         * MODULES.html.sh (File system functions): Mention it.
44463         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
44464         * modules/fdopendir-tests: New file.
44465         * tests/test-fdopendir.c: Likewise.
44466
44467         fchdir: use more consistent macro convention
44468         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
44469         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
44470         REPLACE_FCHDIR, rather than relying on config.h macros.
44471         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
44472         inside a single make-time REPLACE_FCHDIR block, rather than using
44473         the config.h FCHDIR_REPLACEMENT.
44474         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
44475         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
44476         Manage fstat replacement.
44477         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
44478         REPLACE_FCHDIR.
44479         * modules/sys_stat (Files): Add m4/unistd_h.m4.
44480         (Makefile.am): Substitute REPLACE_FCHDIR.
44481         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
44482         FCHDIR_REPLACEMENT.
44483         * lib/dup-safer.c (dup_safer): Likewise.
44484         * lib/dup2.c (rpl_dup2): Likewise.
44485         * lib/dup3.c (rpl_dup3): Likewise.
44486         * lib/open.c (rpl_open): Likewise.
44487
44488         fchdir: simplify error handling, and support dup3
44489         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
44490         stdbool, malloc-posix, realloc-posix.
44491         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
44492         (ensure_dirs_slot): Return false on allocation failure.
44493         (rpl_dup2): Delete.
44494         (_gl_register_dup): New function.
44495         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
44496         (_gl_register_fd): Close fd on allocation failure.
44497         * lib/fcntl.in.h (_gl_register_fd): Update signature.
44498         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
44499         prototype.
44500         (rpl_dup2_fchdir): Delete prototype.
44501         * lib/open.c (open): Update caller.
44502         * lib/dup2.c (dup2): Track fchdir metadata.
44503         * lib/dup3.c (dup3): Likewise.
44504         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
44505         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
44506
44507 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44508
44509         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
44510         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
44511         don't pass arguments to AC_OUTPUT.
44512
44513 2009-09-02  Bruno Haible  <bruno@clisp.org>
44514
44515         * modules/mkdtemp (License): Relicense under LGPLv2+.
44516         Reported by Paolo Bonzini.
44517
44518 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44519
44520         Replace uses of obsolete autoconf macros in Jim's modules.
44521         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
44522         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
44523         can evoke a warning from autoconf when run with -Wobsolete
44524         enabled.  They were declared obsolete for good reasons (see
44525         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
44526         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
44527         should not continue using the deprecated macros.
44528         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
44529         obsolete Autoconf macros with modern counterparts.
44530         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
44531         * m4/dos.m4 (gl_AC_DOS): Likewise.
44532         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
44533         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
44534         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
44535         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
44536         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
44537         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
44538         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
44539         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
44540         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
44541         Likewise.
44542         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
44543         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
44544         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
44545         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
44546         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
44547         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
44548
44549 2009-09-01  Eric Blake  <ebb9@byu.net>
44550
44551         fchdir: fix off-by-one bug in previous patch
44552         * lib/fchdir.c (rpl_fstat): Use correct bounds.
44553         (_gl_unregister_fd): Delete useless if.
44554
44555 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
44556
44557         maint.mk: sort the list of syntax-check rules
44558         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
44559         easier to get a sense of progress when the rules are run sequentially
44560         and take a long time.
44561
44562 2009-09-01  Simon Josefsson  <simon@josefsson.org>
44563
44564         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
44565         * modules/netinet_in: Likewise.
44566         * modules/sys_file: Likewise.
44567         * modules/sys_ioctl: Likewise.
44568         * modules/sys_select: Likewise.
44569         * modules/sys_socket: Likewise.
44570         * modules/sys_stat: Likewise.
44571         * modules/sys_time: Likewise.
44572         * modules/sys_times: Likewise.
44573         * modules/sys_utsname: Likewise.
44574         * modules/sys_wait: Likewise.
44575
44576 2009-09-01  Jim Meyering  <meyering@redhat.com>
44577
44578         fts: help ensure that return values are not ignored
44579         * lib/fts_.h (__GNUC_PREREQ): Define.
44580         (__attribute_warn_unused_result__): Define.
44581         (fts_children, fts_close, fts_open, fts_read): Declare with
44582         __attribute_warn_unused_result__.
44583
44584         fts: fts_close now fails also when closing a dir file descriptor fails
44585         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
44586         and propagate to caller, along with errno.
44587
44588         announce-gen: correct formatting in --help output
44589         * build-aux/announce-gen (usage): Move the one-line description in
44590         --help output "up", to where it belongs, just after Usage:.
44591
44592 2009-08-31  Eric Blake  <ebb9@byu.net>
44593
44594         fchdir: port to mingw
44595         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
44596         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
44597         opened, then use a substitute.
44598         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
44599         replacement.
44600         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
44601         (_gl_register_fd): No need to check stat if open already filters
44602         all directories.
44603         (fchdir): Fix error condition to match POSIX.
44604         * modules/fchdir (Depends-on): Add sys_stat.
44605         * doc/posix-functions/open.texi (open): Document the limitation.
44606         * modules/fchdir-tests: New file.
44607         * tests/test-fchdir.c: Likewise.
44608
44609         canonicalize: allow cross-testing from cygwin to mingw
44610         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
44611         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
44612         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
44613         Likewise.
44614         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
44615         target does not support symlinks.
44616         * tests/test-canonicalize-lgpl.sh: Likewise.
44617
44618         chown: avoid compilation warning on mingw
44619         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
44620         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
44621         mingw.
44622         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
44623         * modules/chown (Depends-on): Add errno.
44624
44625 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
44626
44627         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
44628         command.
44629
44630 2009-08-31  Jim Meyering  <meyering@redhat.com>
44631
44632         canonicalize: remove useless initialization
44633         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
44634         initialization of local, "end".
44635
44636 2009-08-30  Bruno Haible  <bruno@clisp.org>
44637
44638         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
44639         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
44640         ENOSYS.
44641
44642 2009-08-30  Bruno Haible  <bruno@clisp.org>
44643
44644         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
44645         /usr/xpg4/bin/tr when it exists.
44646         * tests/test-pipe-filter-gi1.sh: Likewise.
44647
44648 2009-08-30  Bruno Haible  <bruno@clisp.org>
44649
44650         Work around deficient /usr/bin/id program on Solaris.
44651         * tests/test-file-has-acl.sh (ID): New variable.
44652         * tests/test-set-mode-acl.sh (ID): Likewise.
44653         * tests/test-copy-acl.sh (ID): Likewise.
44654         * tests/test-copy-file.sh (ID): Likewise.
44655
44656 2009-08-30  Bruno Haible  <bruno@clisp.org>
44657
44658         New module 'xstriconveh'.
44659         * lib/xstriconveh.h: New file.
44660         * lib/xstriconveh.c: New file.
44661         * modules/xstriconveh: New file.
44662
44663 2009-08-30  Bruno Haible  <bruno@clisp.org>
44664
44665         Make it easier to use mem_cd_iconveh.
44666         * lib/striconveh.h (iconveh_t): New type.
44667         (iconveh_open, iconveh_close): New declarations.
44668         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
44669         with a single 'const iconveh_t *' argument.
44670         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
44671         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
44672         with a single 'const iconveh_t *' argument.
44673         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
44674         * tests/test-striconveh.c (main): Update.
44675         * NEWS: Mention the change.
44676
44677 2009-08-30  Bruno Haible  <bruno@clisp.org>
44678
44679         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
44680         problem.
44681
44682 2009-08-30  Bruno Haible  <bruno@clisp.org>
44683
44684         Work around iconv_open problem on Solaris.
44685         * lib/iconv_open-solaris.gperf: New file.
44686         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
44687         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
44688         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
44689         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
44690         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
44691         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
44692
44693 2009-08-29  Jim Meyering  <meyering@redhat.com>
44694
44695         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
44696         * top/maint.mk (cvs-check): Remove target; it was just an alias
44697         to the better-named vc-diff-check.
44698         (maintainer-distcheck): Remove rule.  It was used only from
44699         the (alpha/beta/major) target, and all of its commands but one
44700         were coreutils-specific.
44701         (vc-dist): Remove rule.
44702         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
44703         Run vc-diff-check, not vc-dist.
44704         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
44705
44706 2009-08-27  Bruno Haible  <bruno@clisp.org>
44707
44708         * tests/test-bitrotate.c (main): Remove test that uses a shift count
44709         of 0.
44710
44711 2009-08-27  Bruno Haible  <bruno@clisp.org>
44712
44713         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
44714         compilers.
44715         * doc/func.texi: Document the SunPRO C bug.
44716
44717 2009-08-27  Bruno Haible  <bruno@clisp.org>
44718
44719         Fix link error on Solaris.
44720         * tests/test-parse-duration.c (xstrdup): Remove function.
44721
44722 2009-08-26  Pádraig Brady  <P@draigbrady.com>
44723
44724         ignore-value: handle pointer types, too
44725         * lib/ignore-value.h (__attribute__): Remove definition.
44726         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
44727         of a more concise and more-often effective "(void) i" statement.
44728         (ignore_ptr): New function to suppress warnings from functions that
44729         return pointers, and to make it explicit that one function doesn't
44730         handle all cases.
44731
44732 2009-08-25  Bruno Haible  <bruno@clisp.org>
44733
44734         dup2: work around a Linux bug.
44735         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
44736         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
44737         * doc/posix-functions/dup2.texi: Mention the Linux bug.
44738         Reported by Simon Josefsson.
44739
44740 2009-08-25  Jim Meyering  <meyering@redhat.com>
44741
44742         libguestfs uses gnulib
44743         * users.txt: Add libguestfs.
44744
44745 2009-08-24  Eric Blake  <ebb9@byu.net>
44746
44747         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
44748         * lib/pipe2.c (includes): Add binary-io.h.
44749         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
44750
44751 2009-08-24  Bruno Haible  <bruno@clisp.org>
44752
44753         Tolerate declared but missing accept4 syscall.
44754         * lib/accept4.c (accept4): Invoke original accept4 function first, if
44755         available.
44756         * lib/sys_socket.in.h (accept4): If the function is already present,
44757         override it.
44758         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
44759         * modules/accept4 (Makefile.am): Compile accept4.c always.
44760         Reported by Paolo Bonzini and Eric Blake.
44761
44762 2009-08-23  Bruno Haible  <bruno@clisp.org>
44763
44764         New module 'accept4'.
44765         * lib/sys_socket.in.h (accept4): New declaration.
44766         * lib/accept4.c: New file.
44767         * m4/accept4.m4: New file.
44768         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
44769         GNULIB_ACCEPT4, HAVE_ACCEPT4.
44770         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
44771         HAVE_ACCEPT4.
44772         * modules/accept4: New file.
44773         * doc/glibc-functions/accept4.texi: Mention the new module.
44774
44775 2009-08-24  Jim Meyering  <meyering@redhat.com>
44776
44777         progname: also set global program_invocation_name, when possible
44778         Before this change, a libtool-enabled program that calls glibc's
44779         error function would report the program name as
44780         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
44781         * modules/progname (configure.ac): Check for a declaration of
44782         program_invocation_name.
44783         * lib/progname.c:  Include <errno.h>.
44784         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
44785         Set program_invocation_name.
44786
44787 2009-08-23  Bruno Haible  <bruno@clisp.org>
44788
44789         * lib/dup3.c: Include <string.h>.
44790
44791 2009-08-23  Bruno Haible  <bruno@clisp.org>
44792
44793         * lib/dup3.c (dup3): Test only once whether the system actually exists.
44794         * lib/pipe2.c (pipe2): Likewise.
44795         Suggested by Eric Blake.
44796
44797 2009-08-23  Bruno Haible  <bruno@clisp.org>
44798
44799         Tolerate declared but missing dup3 syscall.
44800         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
44801         * lib/unistd.in.h (dup3): If the function is already present,
44802         override it.
44803         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
44804         * modules/dup3 (Makefile.am): Compile dup3.c always.
44805         Reported by Paolo Bonzini.
44806
44807 2009-08-23  Bruno Haible  <bruno@clisp.org>
44808
44809         Tolerate declared but missing pipe2 syscall.
44810         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
44811         available.
44812         * lib/unistd.in.h (pipe2): If the function is already present,
44813         override it.
44814         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
44815         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
44816         Reported by Paolo Bonzini.
44817
44818 2009-08-23  Bruno Haible  <bruno@clisp.org>
44819
44820         * lib/pipe2.c (pipe2): Move #ifs inside function.
44821
44822 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
44823
44824         quotearg: document limitations of quote_these_too
44825         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
44826         those limitations are created.
44827         * lib/quotearg.h (set_char_quoting): Document that digits and
44828         letters that are special after backslash are not permitted.
44829         (quotearg_char): Cross-reference set_char_quoting documentation.
44830
44831 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
44832
44833         quotearg: implement custom_quoting_style
44834         * lib/quotearg.c: (struct quoting_options): Add left_quote and
44835         right_quote fields.
44836         (set_custom_quoting): New public function.
44837         (quotearg_buffer_restyled): Add left_quote and right_quote
44838         arguments, handle them very much like locale quoting, and update
44839         all uses.
44840         (quotearg_n_custom): New public function.
44841         (quotearg_n_custom_mem): New public function.
44842         (quotearg_custom): New public function.
44843         (quotearg_custom_mem): New public function.
44844         * lib/quotearg.h: Prototype and document new public functions.
44845         (enum quoting_style): For escape_quoting_style and
44846         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
44847         ignored even though they're otherwise like c_quoting_style.
44848         Add custom_quoting_style member and document with comparison to
44849         clocale_quoting_style.
44850         * tests/test-quotearg.c (custom_quotes): New array.
44851         (custom_results): New array.
44852         (main): Extend to test custom quoting.
44853
44854 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
44855
44856         quotearg: fix right quote escaping when it's in quote_these_too
44857         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
44858         quote, be sure to prepend only one backslash.
44859         * tests/test-quotearg.c (use_quote_double_quotes): New function.
44860         (main): Test it.
44861
44862 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
44863
44864         quotearg-tests: test escaping of embedded locale quotes
44865         * tests/test-quotearg.c (struct result_strings): Add member for
44866         new input.
44867         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
44868         (inputs): Add new input.
44869         (results_g): Add expected results.
44870         (flag_results): Likewise.
44871         (locale_results): Likewise.
44872         (compare_strings): Check those.
44873
44874 2009-08-23  Bruno Haible  <bruno@clisp.org>
44875
44876         Tests for module 'dup3'.
44877         * modules/dup3-tests: New file.
44878         * tests/test-dup3.c: New file.
44879
44880         New module 'dup3'.
44881         * lib/unistd.in.h (dup3): New declaration.
44882         * lib/dup3.c: New file.
44883         * m4/dup3.m4: New file.
44884         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
44885         HAVE_DUP3.
44886         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
44887         * modules/dup3: New file.
44888         * doc/glibc-functions/dup3.texi: Mention the new module.
44889
44890 2009-08-23  Bruno Haible  <bruno@clisp.org>
44891
44892         Tweak the dup2 test.
44893         * tests/test-dup2.c (main): Create the test file empty. Verify that an
44894         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
44895         the test file is still empty. Fix argument order of lseek.
44896
44897 2009-08-23  Bruno Haible  <bruno@clisp.org>
44898
44899         Avoid test link errors when the modules getopt-gnu, gettext are used.
44900         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
44901         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44902
44903 2009-08-23  Bruno Haible  <bruno@clisp.org>
44904
44905         Fix getdtablesize() on mingw.
44906         * lib/getdtablesize.c (getdtablesize): Implement differently.
44907         * lib/unistd.in.h (getdtablesize): Improve comment.
44908
44909 2009-08-23  Bruno Haible  <bruno@clisp.org>
44910
44911         New module 'mkostemp'.
44912         Based on Ulrich Drepper's 2007-08-10 change in glibc.
44913         * lib/stdlib.in.h (mksotemp): New declaration.
44914         * lib/mkostemp.c: New file, from glibc with modifications.
44915         * lib/tempname.h (GT_FILE): Remove outdated comment.
44916         (gen_tempname): Add flags argument.
44917         * lib/tempname.c (__GT_BIGFILE): Remove macro.
44918         (__GT_FILE): Map to 1.
44919         (small_open, large_open): Remove macros.
44920         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
44921         * lib/mkstemp.c (mkstemp): Update.
44922         * lib/mkdtemp.c (mkdtemp): Likewise.
44923         * m4/mkostemp.m4: New file.
44924         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
44925         HAVE_MKOSTEMP.
44926         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
44927         HAVE_MKOSTEMP.
44928         * modules/mkostemp: New file, based on modules/mkstemp.
44929         * doc/glibc-functions/mkostemp.texi: Mention the new module.
44930         * NEWS: Mention the change.
44931
44932 2009-08-23  Bruno Haible  <bruno@clisp.org>
44933
44934         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
44935         Reported by Eric Blake.
44936
44937 2009-08-23  Bruno Haible  <bruno@clisp.org>
44938
44939         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
44940         Reported by Eric Blake.
44941
44942 2009-08-23  Bruno Haible  <bruno@clisp.org>
44943
44944         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
44945         * modules/pipe2 (Depends-on): Likewise.
44946
44947 2009-08-23  Eric Blake  <ebb9@byu.net>
44948
44949         fcntl-h: add O_TTY_INIT support
44950         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
44951         * tests/test-fcntl-h.c (o): Test it.
44952         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
44953
44954         fcntl-h: rename from fcntl, in preparation for fcntl(2)
44955         * modules/fcntl: Move <fcntl.h> header replacement...
44956         * modules/fcntl-h: ...to new name, so as not to collide with
44957         like-named function.
44958         * tests/test-fcntl.c: Rename...
44959         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
44960         * modules/fcntl-tests: Rename...
44961         * modules/fcntl-h-tests: ...to this.  Update test file name.
44962         * modules/chdir-long (Depends-on): Update clients.
44963         * modules/chdir-safer (Depends-on): Likewise.
44964         * modules/fcntl-safer (Depends-on): Likewise.
44965         * modules/fts (Depends-on): Likewise.
44966         * modules/mkancesdirs (Depends-on): Likewise.
44967         * modules/mkdir-p (Depends-on): Likewise.
44968         * modules/open (Depends-on): Likewise.
44969         * modules/savewd (Depends-on): Likewise.
44970         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
44971         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
44972
44973 2009-08-22  Bruno Haible  <bruno@clisp.org>
44974
44975         * modules/binary-io (License): Relicense under LGPL.
44976         * modules/pipe2 (License): Likewise.
44977
44978 2009-08-22  Bruno Haible  <bruno@clisp.org>
44979
44980         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
44981         return value.
44982         * lib/pipe-filter-gi.c (filter_init): Likewise.
44983         Reported by Eric Blake.
44984
44985 2009-08-22  Bruno Haible  <bruno@clisp.org>
44986
44987         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
44988         * modules/pipe (Depends-on): Add pipe2.
44989
44990 2009-08-22  Bruno Haible  <bruno@clisp.org>
44991
44992         Tests for module 'pipe2'.
44993         * modules/pipe2-tests: New file.
44994         * tests/test-pipe2.c: New file.
44995
44996         New module 'pipe2'.
44997         * lib/unistd.in.h (pipe2): New declaration.
44998         * lib/pipe2.c: New file.
44999         * m4/pipe2.m4: New file.
45000         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
45001         HAVE_PIPE2.
45002         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
45003         * modules/pipe2: New file.
45004         * doc/glibc-functions/pipe2.texi: Mention the new module.
45005
45006 2009-08-22  Bruno Haible  <bruno@clisp.org>
45007
45008         Reference some new glibc functions.
45009         * doc/glibc-functions/accept4.texi: New file.
45010         * doc/glibc-functions/dup3.texi: New file.
45011         * doc/glibc-functions/mkostemp.texi: New file.
45012         * doc/glibc-functions/pipe2.texi: New file.
45013         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
45014         (Glibc sys/socket.h): Refer to accept4.
45015         (Glibc unistd.h): Refer to dup3, pipe2.
45016         Reported by Eric Blake.
45017
45018 2009-08-22  Jim Meyering  <meyering@redhat.com>
45019             Bruno Haible  <bruno@clisp.org>
45020
45021         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
45022         This makes it so packages using automake-1.11's silent-rules option
45023         can print e.g., a single "GEN    configmake.h" line, rather than
45024         the 30+ statements that perform the job.  If you want to see the
45025         actual commands, you can still run "make V=1".
45026         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
45027         so that make output is abbreviated when those variables are defined
45028         appropriately.
45029         * modules/argz: Likewise.
45030         * modules/arpa_inet: Likewise.
45031         * modules/byteswap: Likewise.
45032         * modules/configmake: Likewise.
45033         * modules/dirent: Likewise.
45034         * modules/errno: Likewise.
45035         * modules/fcntl: Likewise.
45036         * modules/float: Likewise.
45037         * modules/fnmatch: Likewise.
45038         * modules/getopt-posix: Likewise.
45039         * modules/glob: Likewise.
45040         * modules/iconv_open: Likewise.
45041         * modules/inttypes: Likewise.
45042         * modules/localcharset: Likewise.
45043         * modules/locale: Likewise.
45044         * modules/math: Likewise.
45045         * modules/netdb: Likewise.
45046         * modules/netinet_in: Likewise.
45047         * modules/poll: Likewise.
45048         * modules/posix_spawnp-tests: Likewise.
45049         * modules/sched: Likewise.
45050         * modules/search: Likewise.
45051         * modules/selinux-h: Likewise.
45052         * modules/signal: Likewise.
45053         * modules/spawn: Likewise.
45054         * modules/stdarg: Likewise.
45055         * modules/stdbool: Likewise.
45056         * modules/stddef: Likewise.
45057         * modules/stdint: Likewise.
45058         * modules/stdio: Likewise.
45059         * modules/stdlib: Likewise.
45060         * modules/string: Likewise.
45061         * modules/strings: Likewise.
45062         * modules/sys_file: Likewise.
45063         * modules/sys_ioctl: Likewise.
45064         * modules/sys_select: Likewise.
45065         * modules/sys_socket: Likewise.
45066         * modules/sys_stat: Likewise.
45067         * modules/sys_time: Likewise.
45068         * modules/sys_times: Likewise.
45069         * modules/sys_utsname: Likewise.
45070         * modules/sys_wait: Likewise.
45071         * modules/sysexits: Likewise.
45072         * modules/time: Likewise.
45073         * modules/unistd: Likewise.
45074         * modules/wchar: Likewise.
45075         * modules/wctype: Likewise.
45076
45077 2009-08-22  Jim Meyering  <meyering@redhat.com>
45078
45079         announce-gen: detect write failure
45080         * build-aux/announce-gen: Add Coda at end.
45081         Remove equivalent-but-more-verbose block at top.
45082
45083 2009-08-19  Akim Demaille  <demaille@gostai.com>
45084
45085         bootstrap: --help to stdout.
45086         * bootstrap (usage): Don't send --help to stderr.
45087         Use a here doc instead of a long string.
45088
45089 2009-08-21  Eric Blake  <ebb9@byu.net>
45090
45091         test-popen-safer: split from test-popen
45092         * tests/test-popen.c (main): Move...
45093         * tests/test-popen.h: ...into new file.
45094         * tests/test-popen-safer2.c: New file.
45095         * modules/popen-tests (Files): Add test-popen.h.
45096         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
45097         Suggested by Bruno Haible.
45098
45099         test-fcntl-safer: split from test-open
45100         * tests/test-open.c (main): Move...
45101         * tests/test-open.h: ...into new file.
45102         * tests/test-fcntl-safer.c: New file.
45103         * modules/open-tests (Files): Add test-open.h.
45104         * modules/fcntl-safer-tests: New file.
45105         Suggested by Bruno Haible.
45106
45107         test-fopen-safer: split from test-fopen
45108         * tests/test-fopen.c (main): Move...
45109         * tests/test-fopen.h: ...into new file.
45110         * tests/test-fopen-safer.c: New file.
45111         * modules/fopen-tests (Files): Add test-fopen.h.
45112         * modules/fopen-safer-tests: New file.
45113         Suggested by Bruno Haible.
45114
45115 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
45116
45117         popen-safer: test O_CLOEXEC at run-time.
45118         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
45119
45120 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
45121
45122         fcntl: move more flags to the header
45123         * lib/cloexec.c: Do not define FD_CLOEXEC here.
45124         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
45125         * lib/fcntl.in.h: Do both things here.
45126
45127 2009-08-21  Jim Meyering  <meyering@redhat.com>
45128
45129         consistently remove $@-t before redirecting to it
45130         * modules/argz: Remove $@-t and $@ before redirecting to the former.
45131         * modules/alloca-opt: Likewise.
45132         * modules/byteswap: Likewise.
45133         * modules/fnmatch: Likewise.
45134         * modules/getopt-posix: Likewise.
45135         * modules/glob: Likewise.
45136         * modules/poll: Likewise.
45137         * modules/posix_spawnp-tests: Likewise.
45138         * modules/sys_socket: Likewise.
45139         * modules/sysexits: Likewise.
45140
45141 2009-08-21  Eric Blake  <ebb9@byu.net>
45142
45143         popen: simplify access to original popen
45144         * lib/popen.c (rpl_popen): No need to worry about popen being a
45145         macro.
45146         Reported by Bruno Haible.
45147
45148 2009-08-20  Eric Blake  <ebb9@byu.net>
45149
45150         build: avoid some compiler warnings
45151         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
45152         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
45153         type.
45154         (new_exclude_segment, excluded_file_pattern_p)
45155         (excluded_file_name_p): Reduce scope.
45156         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
45157         old-style declaration.
45158
45159 2009-08-20  Simon Josefsson  <simon@josefsson.org>
45160
45161         * tests/test-exclude1.sh: Handle Windows EOL.
45162         * tests/test-exclude2.sh: Likewise.
45163         * tests/test-exclude3.sh: Likewise.
45164         * tests/test-exclude4.sh: Likewise.
45165         * tests/test-exclude5.sh: Likewise.
45166         * tests/test-exclude6.sh: Likewise.
45167         * tests/test-exclude7.sh: Likewise.
45168
45169 2009-08-19  Akim Demaille  <demaille@gostai.com>
45170
45171         bootstrap: find sha1sum when named gsha1sum.
45172         * bootstrap (find_tool): New.
45173         ($SHA1SUM): New.
45174         Use it.
45175
45176 2009-08-20  Jim Meyering  <meyering@redhat.com>
45177
45178         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
45179         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
45180         expression that converts "." in a file name to "\." in the resulting
45181         regexp.  Start with a dummy statement, so that prior shell variable
45182         definitions are expanded portably.  Reported by Simon Josefsson.
45183
45184 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
45185
45186         Fix polling for writeability of a screen buffer.
45187         * lib/poll.c: Distinguish input and screen buffers for the
45188         Win32 implementation.
45189         * lib/select.c: Likewise.
45190
45191 2009-08-19  Eric Blake  <ebb9@byu.net>
45192
45193         popen-safer: prevent popen from clobbering std descriptors
45194         * modules/popen-safer: New file.
45195         * lib/popen-safer.c: Likewise.
45196         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
45197         * lib/stdio--.h (popen): Provide override.
45198         * lib/stdio-safer.h (popen_safer): Provide declaration.
45199         * tests/test-popen.c (includes): Partially test this.
45200         * modules/popen-safer-tests: New file, for more tests.
45201         * tests/test-popen-safer.c: Likewise.
45202         * MODULES.html.sh (file stream based Input/Output): Mention it.
45203
45204         tests: test some of the *-safer modules
45205         * modules/fopen-safer (Depends-on): Add fopen.
45206         * modules/fcntl-safer (Depends-on): Add fcntl.
45207         * modules/stdlib-safer (Depends-on): Add stdlib.
45208         (configure.ac): Set indicator.
45209         * modules/unistd-safer (configure.ac): Likewise.
45210         * modules/tmpfile-safer (configure.ac): Likewise.
45211         (Depends-on): Add tmpfile.
45212         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
45213         active.
45214         * tests/test-fopen.c (includes): Test safer versions when they are
45215         in use.
45216         * tests/test-open.c (includes): Likewise.
45217
45218         popen: fix cygwin 1.5 bug when stdin closed
45219         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
45220         * modules/popen: New file.
45221         * modules/popen-tests: Likewise.
45222         * tests/test-popen.c: Likewise.
45223         * m4/popen.m4: Likewise.
45224         * lib/popen.c: Likewise.
45225         * lib/stdio.in.h (popen): New declaration.
45226         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
45227         * modules/stdio (Makefile.am): Likewise.
45228         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
45229
45230 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
45231
45232         maint.mk: give full control over update-copyright exclusions
45233         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
45234         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
45235         (update-copyright): Don't force inclusion of top-level
45236         ChangeLog.  Don't force exclusion of all COPYING files, but make
45237         them the default exclusion instead.
45238
45239 2009-08-16  Bruno Haible  <bruno@clisp.org>
45240
45241         Fix test failures on Solaris 10.
45242         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
45243         tests when Solaris iconv() is used.
45244         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
45245         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
45246         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
45247         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
45248         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
45249
45250 2009-08-16  Bruno Haible  <bruno@clisp.org>
45251
45252         Fix test failures on Solaris 10.
45253         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
45254         'tr' program and pass it as first argument.
45255         * tests/test-pipe-filter-gi1.sh: Likewise.
45256         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
45257         program as first argument.
45258         * tests/test-pipe-filter-gi1.c (main): Likewise.
45259
45260 2009-08-16  Eric Blake  <ebb9@byu.net>
45261
45262         fpurge: fix previous commits
45263         * modules/fpurge (Makefile.am): Make replacement conditional,
45264         partially reverting 2007-04-29 change; missed in previous
45265         attempt.
45266         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
45267         is missing.
45268
45269 2009-08-16  Bruno Haible  <bruno@clisp.org>
45270
45271         Clarify fpurge's effect on the file position.
45272         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
45273         * tests/test-fpurge.c (main): Make a second pass for checking the file
45274         position.
45275
45276 2009-08-16  Bruno Haible  <bruno@clisp.org>
45277
45278         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
45279         declaration of fpurge is missing.
45280         * tests/test-fpurge.c (main): Check that the file has not more contents
45281         than expected. Close the file before removing it.
45282
45283 2009-08-15  Eric Blake  <ebb9@byu.net>
45284
45285         fpurge: don't wrap working cygwin implementation
45286         * lib/fpurge.c (fpurge): Fix comment typo.
45287         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
45288         1.7 to avoid replacement.
45289         * tests/test-fpurge.c (main): Enhance test.
45290
45291 2009-08-15  Eric Blake  <ebb9@byu.net>
45292         and Jim Meyering  <meyering@redhat.com>
45293
45294         test-update-copyright: skip if perl is insufficient
45295         * tests/test-update-copyright.sh: Failure to run maintainer tool
45296         should not cause testsuite failure on cygwin 1.5.
45297
45298 2009-08-14  Eric Blake  <ebb9@byu.net>
45299
45300         doc: mention more functions added in cygwin 1.7.0
45301         * doc/posix-headers/limits.texi (limits.h): Update for recent
45302         cygwin additions.
45303         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
45304         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
45305         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
45306         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
45307         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
45308
45309 2009-08-14  Eric Blake  <ebb9@byu.net>
45310
45311         maint.mk: simplify update-copyright rule
45312         * top/maint.mk (update-copyright-local): Delete, and document how
45313         to do it in cfg.mk instead.
45314         (update-copyright-exclude-regexp): Delete, and document how to do
45315         it in .x-update-copyright instead.
45316         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
45317         exclude ChangeLog.
45318
45319 2009-08-14  Bruno Haible  <bruno@clisp.org>
45320
45321         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
45322
45323 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
45324
45325         maint.mk: support update-copyright-env
45326         * top/maint.mk (update-copyright-env): Define place-holder.
45327         (update-copyright): Expand $(update-copyright-env) before
45328         invoking update-copyright.
45329
45330 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
45331
45332         update-copyright: implement forced reformatting
45333         * build-aux/update-copyright: Implement and document
45334         UPDATE_COPYRIGHT_FORCE.
45335         * tests/test-update-copyright.sh: Test it.
45336
45337 2009-08-14  Eric Blake  <ebb9@byu.net>
45338         and Bruno Haible  <bruno@clisp.org>
45339
45340         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
45341         * tests/test-locale.c: Revert previous patch related to NULL.
45342         * tests/test-stdio.c: Likewise.
45343         * tests/test-stdlib.c: Likewise.
45344         * tests/test-string.c: Likewise.
45345         * tests/test-unistd.c: Likewise.
45346         * modules/time-tests (Depends-on): Add verify.
45347         * modules/wchar-tests (Depends-on): Likewise.
45348         * tests/test-time.c: Test for NULL compliance.
45349         * tests/test-wchar.c: Likewise.
45350         * modules/locale (Depends-on): Add stddef.
45351         * modules/stdio (Depends-on): Likewise.
45352         * modules/stdlib (Depends-on): Likewise.
45353         * modules/string (Depends-on): Likewise.
45354         * modules/time (Depends-on): Likewise.
45355         * modules/unistd (Depends-on): Likewise.
45356         * modules/wchar (Depends-on): Likewise.
45357         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
45358         * lib/stdlib.in.h (includes): Likewise.
45359         * lib/string.in.h (includes): Likewise.
45360         * lib/time.in.h (includes): Likewise.
45361         * lib/unistd.in.h (includes): Likewise.
45362         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
45363         replaced.
45364         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
45365         * m4/stddef_h.m4: New file.
45366         * modules/stddef: Likewise.
45367         * lib/stddef.in.h: Likewise.
45368         * modules/stddef-tests: Likewise.
45369         * tests/test-stddef.c: Likewise.
45370         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
45371         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
45372         * doc/posix-headers/locale.texi (locale.h): Likewise.
45373         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
45374         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
45375         * doc/posix-headers/string.texi (string.h): Likewise.
45376         * doc/posix-headers/time.texi (time.h): Likewise.
45377         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
45378         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
45379
45380 2009-08-14  Eric Blake  <ebb9@byu.net>
45381
45382         doc: improve git diff of texinfo files
45383         * .gitattributes: Add rule for *.texi files, with hint on how to
45384         use it.
45385         Copied from m4, and based on a report by Bruno Haible.
45386
45387 2009-08-14  Bruno Haible  <bruno@clisp.org>
45388
45389         Disable multithread support by default on Cygwin 1.5.x for real.
45390         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
45391
45392 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
45393
45394         update-copyright: much ado about intervals
45395         * build-aux/update-copyright: Implement and document
45396         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
45397         of copyright year intervals.
45398         Also, document UPDATE_COPYRIGHT_YEAR.
45399         * tests/test-update-copyright.sh: Test it.
45400
45401         update-copyright: convert 2-digit to 4-digit years
45402         * build-aux/update-copyright: Implement and document.
45403         * tests/test-update-copyright.sh: Update.
45404
45405 2009-08-14  Jim Meyering  <meyering@redhat.com>
45406
45407         test-exclude: avoid coreutils "make check" failure
45408         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
45409         just as in test-argmatch.c.
45410
45411 2009-08-13  Eric Blake  <ebb9@byu.net>
45412
45413         test-dup2: fix bad assumption
45414         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
45415         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
45416
45417         test-version-etc: fix CRLF portability issue
45418         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
45419         recognize \r.
45420         * tests/test-argp-version-etc-1.sh: Likewise.
45421
45422         getopt: update client modules
45423         * modules/argp (Depends-on): Use getopt-gnu.
45424         * modules/git-merge-changelog (Depends-on): Likewise.
45425         * modules/long-options (Depends-on): Likewise.
45426         * modules/xstrtol (Depends-on): Likewise.
45427
45428 2009-08-13  Simon Josefsson  <simon@josefsson.org>
45429
45430         * tests/test-version-etc.sh: Don't fail on different
45431         project/version.  Don't fail on CRLF differences.  Rewrite to use
45432         multiple -e instead of multiple sed forks, suggested by Eric Blake
45433         <ebb9@byu.net>.
45434         * tests/test-argp-version-etc-1.sh: Likewise.
45435
45436 2009-08-13  Simon Josefsson  <simon@josefsson.org>
45437
45438         * tests/test-version-etc.sh: Don't fail on different
45439         project/version.
45440
45441 2009-08-12  Bruno Haible  <bruno@clisp.org>
45442
45443         Tests for modules 'getopt-posix', 'getopt-gnu'.
45444         * modules/getopt-posix-tests: New file.
45445         * tests/test-getopt.c: New file.
45446         * tests/test-getopt.h: New file.
45447         * tests/test-getopt_long.h: New file.
45448
45449         New modules 'getopt-posix', 'getopt-gnu'.
45450         * modules/getopt-gnu: New file, renamed from modules/getopt.
45451         * modules/getopt-posix: New file.
45452         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
45453         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
45454         (gl_GETOPT): Remove macro.
45455         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
45456         Disable the test against BSD systems that declare optreset. Test
45457         against mingw bug. Test against lack of support of optional arguments
45458         on many platforms.
45459         * doc/glibc-headers/getopt.texi: Update module name and list of
45460         relevant platforms.
45461         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
45462         'getopt-gnu' and more portability problems.
45463         * NEWS: Mention the changes.
45464
45465 2009-08-12  Bruno Haible  <bruno@clisp.org>
45466
45467         Ensure that optarg etc. get declared by <unistd.h>.
45468         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
45469         AC_USE_SYSTEM_EXTENSIONS.
45470         * modules/getopt (Depends-on): Add 'extensions'.
45471
45472 2009-08-12  Bruno Haible  <bruno@clisp.org>
45473
45474         Avoid test link errors.
45475         * modules/pipe-filter-ii-tests (Makefile.am): Define
45476         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
45477         * modules/pipe-filter-gi-tests (Makefile.am): Define
45478         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
45479         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45480
45481 2009-08-12  Bruno Haible  <bruno@clisp.org>
45482
45483         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
45484         gl_GETOPT_SUBSTITUTE before.
45485         (gl_GETOPT): Use it.
45486         * m4/argp.m4 (gl_ARGP): Update.
45487         Reported by Sergey Poznyakoff.
45488
45489         * m4/getopt.m4: Reorder macros.
45490         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
45491         (gl_GETOPT_SUBSTITUTE): Remove macro.
45492
45493 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
45494
45495         Minor improvement in gitlog-to-changelog
45496
45497         * build-aux/gitlog-to-changelog: New option `--format' makes
45498         output format string configurable.
45499
45500 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
45501
45502         Optimize exclude: use hash tables for non-wildcard patterns.
45503
45504         * lib/exclude.c: Include hash.h and mbuiter.h
45505         (struct exclude_pattern, exclude_segment): New data types.
45506         (struct exclude): Rewrite.
45507         (fnmatch_pattern_has_wildcards): New function.
45508         (new_exclude_segment, free_exclude_segment): New functions.
45509         (excluded_file_pattern_p, excluded_file_name_p): New functions.
45510         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
45511         * lib/exclude.h (is_fnmatch_pattern): New prototype.
45512         * modules/exclude: Depend on hash and mbuiter.
45513
45514         * modules/exclude-tests: New file.
45515         * tests/test-exclude.c: New file.
45516         * tests/test-exclude1.sh: New file.
45517         * tests/test-exclude2.sh: New file.
45518         * tests/test-exclude3.sh: New file.
45519         * tests/test-exclude4.sh: New file.
45520         * tests/test-exclude5.sh: New file.
45521         * tests/test-exclude6.sh: New file.
45522         * tests/test-exclude7.sh: New file.
45523
45524 2009-08-12  Bruno Haible  <bruno@clisp.org>
45525
45526         Ensure that getopt() gets declared by <unistd.h>.
45527         * lib/unistd.in.h: Conditionally include getopt.h.
45528         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
45529         Set GNULIB_UNISTD_H_GETOPT.
45530         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45531         GNULIB_UNISTD_H_GETOPT.
45532         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
45533
45534 2009-08-12  Bruno Haible  <bruno@clisp.org>
45535
45536         Clarify logic.
45537         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
45538         gl_replace_getopt instead of GETOPT_H.
45539
45540 2009-08-12  Bruno Haible  <bruno@clisp.org>
45541
45542         * m4/getopt.m4: Add comments.
45543
45544 2009-08-12  Bruno Haible  <bruno@clisp.org>
45545
45546         Disable multithread support by default on Cygwin 1.5.x.
45547         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
45548         set gl_use_threads=no if not specified otherwise.
45549
45550 2009-08-11  Bruno Haible  <bruno@clisp.org>
45551
45552         Avoid compilation error on NetBSD 5.0.
45553         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
45554         * tests/test-stdio.c: Likewise.
45555         * tests/test-stdlib.c: Likewise.
45556         * tests/test-string.c: Likewise.
45557         * tests/test-unistd.c: Likewise.
45558         Reported by Greg Troxel <gdt@ir.bbn.com>
45559         at <https://savannah.gnu.org/support/?106973>.
45560
45561 2009-08-11  Bruno Haible  <bruno@clisp.org>
45562
45563         * modules/dup2-tests (Depends-on): Remove close.
45564
45565         Undo 2009-07-19 commit.
45566         * modules/acl-tests (Depends-on): Remove close.
45567         * modules/binary-io-tests (Depends-on): Likewise.
45568         * modules/closein-tests (Depends-on): Likewise.
45569         * modules/flock-tests (Depends-on): Likewise.
45570         * modules/fsync-tests (Depends-on): Likewise.
45571         * modules/lseek-tests (Depends-on): Likewise.
45572         * modules/pipe-tests (Depends-on): Likewise.
45573         * modules/posix_spawn-tests (Depends-on): Likewise.
45574         * modules/posix_spawnp-tests (Depends-on): Likewise.
45575         * modules/stat-time-tests (Depends-on): Likewise.
45576         * modules/yesno-tests (Depends-on): Likewise.
45577
45578 2009-08-10  Bruno Haible  <bruno@clisp.org>
45579
45580         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
45581
45582 2009-08-10  Bruno Haible  <bruno@clisp.org>
45583
45584         Fix a gcc warning.
45585         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
45586
45587 2009-08-10  Bruno Haible  <bruno@clisp.org>
45588
45589         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
45590         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
45591         not only the first time.
45592         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
45593         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
45594         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
45595         is 1, not only the the first time.
45596
45597 2009-08-10  Bruno Haible  <bruno@clisp.org>
45598
45599         Make it possible to use module 'gethostname' without module 'close'.
45600         * lib/unistd.in.h (close): Evoke a link error only if
45601         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
45602         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45603         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
45604         * modules/unistd (Makefile.am): Substitute
45605         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
45606         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
45607         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
45608         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
45609         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
45610         * modules/sys_ioctl (Makefile.am): Substitute
45611         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
45612         * modules/socket (configure.ac): On native Windows, set
45613         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
45614         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
45615         Reported by Sam Steingold <sds@gnu.org>.
45616
45617 2009-08-10  Bruno Haible  <bruno@clisp.org>
45618
45619         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
45620         * modules/ioctl (configure.ac): Likewise.
45621
45622 2009-08-10  Bruno Haible  <bruno@clisp.org>
45623
45624         Avoid collision between gnulib wrapper and libintl wrapper.
45625         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
45626         already defined in intl/printf.c.
45627         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
45628         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
45629
45630 2009-08-09  Bruno Haible  <bruno@clisp.org>
45631
45632         Make <sys/select.h> really self-contained, also on Solaris 10.
45633         * lib/sys_select.in.h: Include <string.h>.
45634         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
45635         Solaris 10 problem.
45636         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
45637         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
45638         Reported by Jim Meyering.
45639
45640 2009-08-09  Bruno Haible  <bruno@clisp.org>
45641
45642         Avoid warnings from 'aclocal' that are due to a use of macro name
45643         AM_XGETTEXT_OPTION that is not defined in automake.
45644         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
45645         automake.
45646         * modules/error (configure.ac): Likewise.
45647         * modules/propername (configure.ac): Likewise.
45648         * modules/vasprintf (configure.ac): Likewise.
45649         * modules/verror (configure.ac): Likewise.
45650         * modules/xprintf (configure.ac): Likewise.
45651         * modules/xvasprintf (configure.ac): Likewise.
45652
45653 2009-08-08  Bruno Haible  <bruno@clisp.org>
45654
45655         Avoid compilation error in C++ mode.
45656         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
45657         Reported by Sam Steingold <sds@gnu.org>.
45658
45659 2009-08-08  Bruno Haible  <bruno@clisp.org>
45660
45661         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
45662         for the various Unix platforms.
45663         * doc/posix-headers/limits.texi: Update platforms list regarding
45664         HOST_NAME_MAX.
45665         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45666
45667 2009-08-07  Jim Meyering  <meyering@redhat.com>
45668
45669         selinux-at: fix typo in a comment
45670         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
45671         Spotted by Paolo Bonzini.
45672
45673         selinux-at: remove redundant m4 code, add documentation
45674         * modules/selinux-at (configure.ac): Remove redundant code.
45675         LIB_SELINUX is already set via the dependent module, selinux-h.
45676         (Include): Add quotes around selinux-at.h.
45677         * lib/selinux-at.h: Add documentation.
45678         Reported by Bruno Haible in
45679         http://marc.info/?l=gnulib-bug&m=124958988300749
45680
45681 2009-08-07  Bruno Haible  <bruno@clisp.org>
45682
45683         Avoid link error on MacOS X 10.3 and 10.4.
45684         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
45685         on non-ELF systems.
45686         * lib/argp-pv.c (argp_program_version): Likewise.
45687         Reported by Simon Josefsson.
45688
45689 2009-08-07  Simon Josefsson  <simon@josefsson.org>
45690
45691         * tests/test-version-etc.sh: Use $EXEEXT.
45692
45693 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
45694
45695         update-copyright: update documentation to point to maint.mk
45696         * build-aux/update-copyright: Here.
45697
45698 2009-08-06  Jim Meyering  <meyering@redhat.com>
45699
45700         maint.mk: support update-copyright-local
45701         * top/maint.mk (update-copyright-local): Define place-holder.
45702         (update-copyright): Depend on $(update-copyright-local).
45703
45704 2009-08-06  Jim Meyering  <meyering@redhat.com>
45705
45706         selinux-at: new module
45707         Initially written for coreutils, this module will soon be
45708         used by findutils, too.
45709         * MODULES.html.sh [Misc]: Add selinux-at.
45710         * lib/selinux-at.h: New file, from coreutils.
45711         * lib/selinux-at.c: Likewise.
45712         * modules/selinux-at: Likewise.
45713         (License): Change from LGPL to GPL, since it depends
45714         on the GPL'd openat module.
45715
45716         doc: update README
45717         * README: Remove references to cogito.
45718         Remove cvs-repo-updating instructions from 2007.
45719         Don't imply that CVS is better if you have limited disk space.
45720
45721 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
45722
45723         update-copyright: support C-style comments
45724         * build-aux/update-copyright: Implement and document.
45725         * tests/test-update-copyright.sh: Test.
45726
45727 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
45728
45729         update-copyright: support omitted "(C)"
45730         * build-aux/update-copyright: Implement and document.  Also,
45731         allow variable whitespace before "(C)".
45732         * tests/test-update-copyright.sh: Test.
45733
45734 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
45735
45736         update-copyright: don't trip on non-FSF copyright statements
45737         * build-aux/update-copyright: Fix so that the first correctly
45738         formatted FSF copyright statement is recognized no matter what
45739         appears before it.  Update documentation.
45740         * tests/test-update-copyright.sh: Test that.
45741
45742 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
45743
45744         update-copyright: clean up code a little
45745         * build-aux/update-copyright: Append "_re" to the name of any
45746         variable holding a regular expression.
45747         Replace "old" and "new" with "stmt" in variable names.
45748         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
45749         handled correctly.
45750         Format code more consistently.
45751
45752 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
45753
45754         update-copyright-tests: improve portability
45755         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
45756         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
45757
45758 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
45759
45760         update-copyright: support @copyright{} and &copy;
45761         * build-aux/update-copyright: Implement and document.
45762         * tests/test-update-copyright.sh: Test.
45763
45764 2009-08-04  Jim Meyering  <meyering@redhat.com>
45765
45766         update-copyright-tests: correctly test EOL=\r\n handling
45767         * tests/test-update-copyright.sh: Put \r at the end of some lines
45768         for the dos-eol tests.  Based on a patch by Joel E. Denny.
45769
45770         maint.mk: make update-copyright exclusion list more configurable
45771         * top/maint.mk (update-copyright): Default to excluding COPYING,
45772         but allow an override, in case someone does want to update that file.
45773
45774         maint.mk: don't update copyright date in COPYING
45775         * top/maint.mk (update-copyright): Exclude COPYING.
45776
45777         maint.mk: add a copyright-updating rule
45778         * top/maint.mk (update-copyright): New rule.
45779         Derived from coreutils/Makefile.am.
45780
45781         update-copyright: rename some variables
45782         * build-aux/update-copyright: Rename a few variables for clarity.
45783         Tweak syntax.  List Joel E. Denny as coauthor.
45784
45785 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
45786
45787         update-copyright: fix bug for 2-digit last year and add tests
45788         * build-aux/update-copyright: Fix bug.
45789         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
45790         specified.
45791         * modules/update-copyright-tests: New
45792         * tests/test-update-copyright.sh: New.
45793
45794 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
45795
45796         update-copyright: handle leading tabs in line prefix
45797         * build-aux/update-copyright: Count leading tabs as 8 spaces
45798         when computing margin.  This helps with the formatting of
45799         ChangeLogs, for example.
45800         Fix documentation a little.
45801
45802 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
45803
45804         update-copyright: support EOL=\r\n
45805         * build-aux/update-copyright: Implement that.
45806
45807 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
45808
45809         update-copyright: automatically format copyright statements
45810         * build-aux/update-copyright: Implement that.
45811         Also, be a little more predictable and safer by always failing
45812         when the full copyright format is not perfectly recognized as an
45813         unbroken whole.  Discussed at
45814         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
45815         Rewrite documentation.
45816
45817 2009-08-03  Bruno Haible  <bruno@clisp.org>
45818
45819         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
45820
45821 2009-08-02  Bruno Haible  <bruno@clisp.org>
45822
45823         Tests for module 'uname'.
45824         * modules/uname-tests: New file.
45825         * tests/test-uname.c: New file.
45826
45827         New module 'uname'.
45828         * lib/uname.c: New file.
45829         * m4/uname.m4: New file.
45830         * modules/uname: New file.
45831         * doc/posix-functions/uname.texi: Mention the new module.
45832
45833 2009-08-02  Bruno Haible  <bruno@clisp.org>
45834
45835         Tests for module 'sys_utsname'.
45836         * modules/sys_utsname-tests: New file.
45837         * tests/test-sys_utsname.c: New file.
45838
45839         New module 'sys_utsname'.
45840         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
45841         * m4/sys_utsname_h.m4: New file.
45842         * modules/sys_utsname: New file.
45843         * doc/posix-headers/sys_utsname.texi: Mention the new module.
45844
45845 2009-08-02  Bruno Haible  <bruno@clisp.org>
45846
45847         Implicitly initialize the sockets library.
45848         * lib/gethostname.c: Include sockets.h.
45849         (rpl_gethostname): Invoke gl_sockets_startup.
45850         * lib/socket.c: Include sockets.h.
45851         (rpl_socket): Invoke gl_sockets_startup.
45852         * modules/gethostname (Depends-on): Add sockets.
45853         * modules/socket (Depends-on): Likewise.
45854         * tests/test-poll.c: Don't include sockets.h.
45855         (main): Don't invoke gl_sockets_startup.
45856         * tests/test-select.c: Don't include sockets.h.
45857         (main): Don't invoke gl_sockets_startup.
45858
45859 2009-08-02  Bruno Haible  <bruno@clisp.org>
45860
45861         Allow multiple calls to gl_sockets_startup.
45862         * lib/sockets.c (initialized_sockets_version): New variable.
45863         (gl_sockets_startup): Do nothing if already called for this or a higher
45864         version.
45865         (gl_sockets_cleanup): Reset initialized_sockets_version.
45866
45867 2009-08-03  Simon Josefsson  <simon@josefsson.org>
45868
45869         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
45870         different project/version.
45871
45872 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
45873             Bruno Haible  <bruno@clisp.org>
45874
45875         Tests for module 'pipe-filter-gi'.
45876         * modules/pipe-filter-gi-tests: New file.
45877         * tests/test-pipe-filter-gi1.sh: New file.
45878         * tests/test-pipe-filter-gi1.c: New file.
45879         * tests/test-pipe-filter-gi2.sh: New file.
45880         * tests/test-pipe-filter-gi2-main.c: New file.
45881         * tests/test-pipe-filter-gi2-child.c: New file.
45882
45883         New module 'pipe-filter-gi'.
45884         * lib/pipe-filter-gi.c: New file.
45885         * modules/pipe-filter-gi: New file.
45886
45887 2009-08-02  Bruno Haible  <bruno@clisp.org>
45888             Paolo Bonzini  <bonzini@gnu.org>
45889
45890         Tests for module 'pipe-filter-ii'.
45891         * modules/pipe-filter-ii-tests: New file.
45892         * tests/test-pipe-filter-ii1.sh: New file.
45893         * tests/test-pipe-filter-ii1.c: New file.
45894         * tests/test-pipe-filter-ii2.sh: New file.
45895         * tests/test-pipe-filter-ii2-main.c: New file.
45896         * tests/test-pipe-filter-ii2-child.c: New file.
45897
45898         New module 'pipe-filter-ii'.
45899         * lib/pipe-filter.h: New file.
45900         * lib/pipe-filter-ii.c: New file.
45901         * lib/pipe-filter-aux.h: New file.
45902         * modules/pipe-filter-ii: New file.
45903
45904 2009-08-02  Simon Josefsson  <simon@josefsson.org>
45905
45906         * lib/gc-libgcrypt.c: Change copyright to FSF.
45907         * lib/gc-gnulib.c: Likewise.
45908
45909 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
45910
45911         * lib/gethostname.c: Include limits.h.
45912
45913 2009-08-02  Simon Josefsson  <simon@josefsson.org>
45914             Bruno Haible  <bruno@clisp.org>
45915
45916         Ensure HOST_NAME_MAX as part of the gethostname module.
45917         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
45918         define also HOST_NAME_MAX.
45919         * tests/test-gethostname.c: Include <limits.h>.
45920         (main): Check also HOST_NAME_MAX.
45921         * doc/posix-headers/limits.texi: Document the mingw problem.
45922
45923 2009-08-02  Bruno Haible  <bruno@clisp.org>
45924
45925         * lib/gethostname.c (gethostname): Fix handling of large len argument.
45926         Add comments.
45927
45928 2009-03-31  Simon Josefsson  <simon@josefsson.org>
45929
45930         * lib/gethostname.c: Add Windows wrapper.
45931         * m4/gethostname.m4: Look for gethostname in -lws2_32.
45932         * modules/gethostname: Depend on sys_socket & errno, for also
45933         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
45934         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
45935
45936 2009-07-31  Jim Meyering  <meyering@redhat.com>
45937
45938         getloadavg: fix symbol name in comment
45939         * lib/getloadavg.c: Correct a typo I introduced when adding
45940         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
45941         Matt Kraai spotted the problem.
45942
45943 2009-07-29  Matt Kraai  <mkraai@beckman.com>
45944
45945         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
45946         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
45947         code also if ! defined N_NAME_POINTER.
45948         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
45949         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
45950         but the n_name member is a 12-byte array.
45951
45952 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
45953
45954         update-copyright: generalize comment handling
45955         * build-aux/update-copyright: Handle copyright statements
45956         within more comment styles.
45957         Document usage.
45958         Report any file with an external copyright holder or parse failure.
45959
45960 2009-07-29  Jim Meyering  <meyering@redhat.com>
45961
45962         mktime: correct setting of REPLACE_MKTIME
45963         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
45964
45965         update-copyright: new module
45966         * modules/update-copyright: New file.
45967         * build-aux/update-copyright: New file.
45968         * MODULES.html.sh (maint+release support): Add update-copyright.
45969
45970 2009-07-27  Bruno Haible  <bruno@clisp.org>
45971
45972         Fix compilation error when <ctime> is used and mktime is replaced.
45973         * lib/time.in.h (mktime): New declaration.
45974         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
45975         REPLACE_MKTIME instead of defining mktime in config.h.
45976         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
45977         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
45978         Reported by Ross McFarland <rwmcfa1@neces.com>.
45979
45980 2009-07-27  Bruno Haible  <bruno@clisp.org>
45981
45982         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
45983         Reported by Matt Kraai <mkraai@beckman.com>.
45984
45985 2009-07-25  Jim Meyering  <meyering@redhat.com>
45986
45987         maint.mk: avoid warnings about missing files
45988         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
45989         diagnostic when .prev-version does not exist.
45990         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
45991         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
45992         nonexistent cfg.mk.
45993         Suggestions from Simon Josefsson.
45994
45995 2009-07-25  Bruno Haible  <bruno@clisp.org>
45996
45997         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
45998         defined as macros. Needed on QNX 6.4.1.
45999         Reported by Matt Kraai <mkraai@beckman.com>.
46000
46001 2009-07-23  Jim Meyering  <meyering@redhat.com>
46002
46003         maint.mk: invoke "make dist" with a working value of XZ_OPT
46004         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
46005
46006 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
46007
46008         Make fseeko.c compile on QNX.
46009         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
46010
46011 2009-07-22  Peter Simons  <simons@cryp.to>
46012
46013         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
46014         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
46015         * lib/md4.h: Likewise.
46016         * lib/md5.h: Likewise.
46017         * lib/sha1.h: Likewise.
46018         * lib/sha256.h: Likewise.
46019         * lib/sha512.h: Likewise.
46020
46021         tests-sha1: don't assign literal string to 'char *' variable
46022         * tests/test-sha1.c (main): Declare locals with "const" to match
46023         attributes of the right hand side.
46024
46025 2009-07-21  Eric Blake  <ebb9@byu.net>
46026
46027         dup2: fix more mingw problems
46028         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
46029         fd to itself.
46030         * doc/posix-functions/dup2.texi (dup2): Document the bug.
46031         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
46032         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
46033         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
46034         care of mingw bugs.
46035
46036 2009-07-21  Jim Meyering  <meyering@redhat.com>
46037
46038         vc-list-files: avoid failure when /bin/sh is dash
46039         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
46040         On some Debian based systems, /bin/sh is a symlink to dash, and running
46041         this command would omit the "/" following each 'tests' prefix:
46042           dash -x build-aux/vc-list-files -C . tests
46043         That is because bash and dash work differently:
46044           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
46045           bash ok
46046           dash odd
46047
46048 2009-07-21  Eric Blake  <ebb9@byu.net>
46049
46050         dup2-tests: test previous patch
46051         * modules/dup2-tests: New file.
46052         * tests/test-dup2.c: Likewise.
46053         * tests/test-open.c (main): Avoid unspecified behavior.
46054         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
46055         test.
46056
46057         dup2: work around mingw and cygwin 1.5 bug
46058         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
46059         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
46060         * modules/unistd (Makefile.am): Substitute it.
46061         * lib/unistd.in.h (dup2): Declare the replacement.
46062         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
46063         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
46064         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
46065         * modules/execute (Depends-on): Add dup2.
46066         * modules/fseterr (Depends-on): Likewise.
46067         * modules/pipe (Depends-on): Likewise.
46068         * modules/posix_spawn-internal (Depends-on): Likewise.
46069
46070 2009-07-21  Bruno Haible  <bruno@clisp.org>
46071
46072         * modules/.gitattributes: New file.
46073
46074 2009-07-20  Bruno Haible  <bruno@clisp.org>
46075
46076         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
46077         (main): Use it.
46078
46079 2009-07-20  Eric Blake  <ebb9@byu.net>
46080
46081         test-pipe: make a bit more robust.
46082         * tests/test-pipe.c (myerr): Allow error messages regardless of
46083         what we do to stderr.
46084         (test_pipe): Rearrange to avoid deadlock.
46085         (child_main): Try a larger read, to ensure we avoided deadlock.
46086         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
46087         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
46088         if misused.
46089
46090 2009-07-19  Jim Meyering  <meyering@redhat.com>
46091
46092         fts: avoid false-positive cycle-detection
46093         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
46094         for each new command line argument.
46095
46096 2009-07-19  Bruno Haible  <bruno@clisp.org>
46097
46098         Fix build error on mingw with the modules sys_select and unistd.
46099         * modules/acl-tests (Depends-on): Add close.
46100         * modules/binary-io-tests (Depends-on): Likewise.
46101         * modules/closein-tests (Depends-on): Likewise.
46102         * modules/flock-tests (Depends-on): Likewise.
46103         * modules/fsync-tests (Depends-on): Likewise.
46104         * modules/lseek-tests (Depends-on): Likewise.
46105         * modules/pipe-tests (Depends-on): Likewise.
46106         * modules/posix_spawn-tests (Depends-on): Likewise.
46107         * modules/posix_spawnp-tests (Depends-on): Likewise.
46108         * modules/stat-time-tests (Depends-on): Likewise.
46109         * modules/yesno-tests (Depends-on): Likewise.
46110
46111 2009-07-19  Bruno Haible  <bruno@clisp.org>
46112
46113         Unify conditionals.
46114         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
46115         macros, not at the compiler macros.
46116         * lib/pipe.c: Likewise.
46117         * lib/execute.c: Likewise.
46118         * lib/spawni.c: Likewise.
46119
46120 2009-07-19  Bruno Haible  <bruno@clisp.org>
46121
46122         Fix handling of closed stdin/stdout/stderr on mingw.
46123         * lib/w32spawn.h: Include unistd.h.
46124         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
46125         file descriptor with O_NOINHERIT flag.
46126         (fd_safer_noinherit): New function, based on fd-safer.c.
46127         (dup_safer_noinherit): New function, based on dup-safer.c.
46128         (undup_safer_noinherit): New function.
46129         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
46130         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
46131         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
46132         instead of fd_safer.
46133         * tests/test-pipe.c: Include <windows.h>.
46134         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
46135         result.
46136
46137         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
46138         from main.
46139         (test_pipe): Pass an extra argument for disambiguation.
46140         (main): Invoke parent_main or child_main.
46141
46142         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
46143         consistently.
46144
46145 2009-07-18  Eric Blake  <ebb9@byu.net>
46146
46147         test-pipe: fix mingw build
46148         * tests/test-pipe.c (main): Avoid fcntl on mingw.
46149
46150 2009-07-18  Bruno Haible  <bruno@clisp.org>
46151
46152         * modules/pipe-tests (Makefile.am): Fix typo.
46153
46154 2009-07-18  Eric Blake  <ebb9@byu.net>
46155
46156         error: fix mingw build
46157         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
46158         Reported by Bruno Haible.
46159
46160         error: avoid undefined use of stdout
46161         * lib/error.c (error, error_at_line): Check that fd 1 is open
46162         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
46163         is handling faults and the close_stdout module wants to report the
46164         detection of closed stdout as an error.
46165
46166 2009-07-17  Eric Blake  <ebb9@byu.net>
46167
46168         pipe: be robust in face of closed fds
46169         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
46170         should cause child to misbehave.
46171         * modules/pipe-tests: New module.
46172         * tests/test-pipe.c: New file.
46173         * tests/test-pipe.sh: New file.
46174         Reported by Akim Demaille.
46175
46176 2009-07-14  Bruno Haible  <bruno@clisp.org>
46177
46178         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
46179         Reported by anonymous kc.
46180
46181 2009-07-07  Jim Meyering  <meyering@redhat.com>
46182
46183         maint.mk: don't look for translatable strings in *.m4 or *.mk
46184         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
46185         when searching for translatable strings.
46186
46187 2009-07-05  Jim Meyering  <meyering@redhat.com>
46188
46189         remove superfluous parentheses in STREQ definition
46190         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
46191         * lib/getugroups.c (STREQ): Likewise.
46192         * lib/fnmatch.c (STREQ): Likewise.
46193         Spotted by Bruno Haible.
46194
46195 2009-07-04  Jim Meyering  <meyering@redhat.com>
46196
46197         argv-iter: new module
46198         * MODULES.html.sh: Add argv-iter.
46199         * lib/argv-iter.c, lib/argv-iter.h: New files.
46200         * modules/argv-iter: New file.
46201         * modules/argv-iter-tests: New file.
46202         * tests/test-argv-iter.c: Test it.
46203
46204 2009-07-04  Bruno Haible  <bruno@clisp.org>
46205
46206         Fix assertion.
46207         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
46208         contains more exact copies of a given entry than file2, leave the extra
46209         copies unpaired rather than aborting.
46210         Reported by Eric Blake.
46211
46212 2009-07-02  Bruno Haible  <bruno@clisp.org>
46213
46214         Speedup git-merge-changelog for git cherry-pick.
46215         * lib/git-merge-changelog.c (struct entries_mapping): New type.
46216         (entries_mapping_get): New function, extracted from compute_mapping.
46217         (entries_mapping_reverse_get): New function.
46218         (compute_mapping): Add a 'full' argument. Return the result in a
46219         'struct entries_mapping'.
46220         (main): Update. Access the mappings through entries_mapping_get.
46221         Reported by Eric Blake.
46222
46223 2009-07-02  Bruno Haible  <bruno@clisp.org>
46224
46225         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
46226         best_i.
46227
46228 2009-07-02  Bruno Haible  <bruno@clisp.org>
46229
46230         Speed up approximate search for matching ChangeLog entries.
46231         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
46232         argument. Call fstrcmp_bounded instead of fstrcmp.
46233         (compute_mapping, try_split_merged_entry, main): Update callers.
46234
46235 2009-07-02  Bruno Haible  <bruno@clisp.org>
46236
46237         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
46238
46239 2009-06-30  Bruno Haible  <bruno@clisp.org>
46240
46241         Reduce the number of uc_is_cased calls.
46242         * lib/unicase.h (casing_suffix_context_t): Add
46243         'first_char_except_ignorable' field.
46244         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
46245         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
46246         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
46247         Update initializer.
46248         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
46249         case-ignorable characters.
46250         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
46251         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
46252         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
46253         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
46254         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
46255
46256 2009-06-30  Bruno Haible  <bruno@clisp.org>
46257
46258         Tests for module 'unicase/ignorable'.
46259         * modules/unicase/ignorable-tests: New file.
46260         * tests/unicase/test-ignorable.c: New file, generated by
46261         gen-uni-tables.
46262
46263         Tests for module 'unicase/cased'.
46264         * modules/unicase/cased-tests: New file.
46265         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
46266         * tests/unicase/test-predicate-part1.h: New file, derived from
46267         tests/unictype/test-predicate-part1.h.
46268         * tests/unicase/test-predicate-part2.h: New file, same as
46269         tests/unictype/test-predicate-part2.h.
46270
46271         Fix evaluation of "Before C" condition of FINAL_SIGMA.
46272         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
46273         (output_casing_properties): New function.
46274         (main): Call it.
46275         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
46276         * lib/unicase/cased.c: Include unictype/bitmap.h.
46277         (uc_is_cased): Define through a bitmap lookup.
46278         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
46279         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
46280         (uc_is_case_ignorable): Define through a bitmap lookup.
46281         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
46282         lib/unictype/bitmap.h.
46283         (Depends-on): Add inline. Clean up.
46284         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
46285         lib/unictype/bitmap.h.
46286         (Depends-on): Add inline. Clean up.
46287         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
46288         recognition.
46289         * tests/unicase/test-u16-tolower.c (main): Likewise.
46290         * tests/unicase/test-u32-tolower.c (main): Likewise.
46291
46292 2009-06-30  Bruno Haible  <bruno@clisp.org>
46293
46294         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
46295         * lib/unicase/u16-casemap.c: Likewise.
46296         * lib/unicase/u32-casemap.c: Likewise.
46297
46298 2009-06-29  Bruno Haible  <bruno@clisp.org>
46299
46300         Define u32_casefold as a wrapper around u32_ct_casefold.
46301         * lib/unicase/u32-casefold.c: Update.
46302         * modules/unicase/u32-casefold (Depends-on): Add
46303         unicase/u32-ct-casefold, unicase/empty-prefix-context,
46304         unicase/empty-suffix-context. Clean up.
46305
46306         Define u16_casefold as a wrapper around u16_ct_casefold.
46307         * lib/unicase/u16-casefold.c: Update.
46308         * modules/unicase/u16-casefold (Depends-on): Add
46309         unicase/u16-ct-casefold, unicase/empty-prefix-context,
46310         unicase/empty-suffix-context. Clean up.
46311
46312         Define u8_casefold as a wrapper around u8_ct_casefold.
46313         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
46314         * lib/unicase/u8-casefold.c: Update.
46315         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
46316         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
46317
46318         Define u32_totitle as a wrapper around u32_ct_totitle.
46319         * lib/unicase/u32-totitle.c: Update.
46320         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
46321         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
46322
46323         Define u16_totitle as a wrapper around u16_ct_totitle.
46324         * lib/unicase/u16-totitle.c: Update.
46325         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
46326         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
46327
46328         Define u8_totitle as a wrapper around u8_ct_totitle.
46329         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
46330         functions.
46331         (FUNC): Delegate to U_CT_TOTITLE.
46332         * lib/unicase/u8-totitle.c: Update.
46333         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
46334         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
46335
46336         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
46337         invocation.
46338         * modules/unicase/u32-tolower (Depends-on): Add
46339         unicase/empty-prefix-context, unicase/empty-suffix-context.
46340
46341         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
46342         invocation.
46343         * modules/unicase/u16-tolower (Depends-on): Add
46344         unicase/empty-prefix-context, unicase/empty-suffix-context.
46345
46346         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
46347         * modules/unicase/u8-tolower (Depends-on): Add
46348         unicase/empty-prefix-context, unicase/empty-suffix-context.
46349
46350         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
46351         invocation.
46352         * modules/unicase/u32-toupper (Depends-on): Add
46353         unicase/empty-prefix-context, unicase/empty-suffix-context.
46354
46355         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
46356         invocation.
46357         * modules/unicase/u16-toupper (Depends-on): Add
46358         unicase/empty-prefix-context, unicase/empty-suffix-context.
46359
46360         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
46361         * modules/unicase/u8-toupper (Depends-on): Add
46362         unicase/empty-prefix-context, unicase/empty-suffix-context.
46363
46364         New module 'unicase/u32-ct-casefold'.
46365         * lib/unicase/u32-ct-casefold.c: New file.
46366         * modules/unicase/u32-ct-casefold: New file.
46367
46368         New module 'unicase/u16-ct-casefold'.
46369         * lib/unicase/u16-ct-casefold.c: New file.
46370         * modules/unicase/u16-ct-casefold: New file.
46371
46372         New module 'unicase/u8-ct-casefold'.
46373         * lib/unicase/u8-ct-casefold.c: New file.
46374         * lib/unicase/u-ct-casefold.h: New file, derived from
46375         lib/unicase/u-casefold.h.
46376         * modules/unicase/u8-ct-casefold: New file.
46377
46378         New module 'unicase/u32-ct-totitle'.
46379         * lib/unicase/u32-ct-totitle.c: New file.
46380         * modules/unicase/u32-ct-totitle: New file.
46381
46382         New module 'unicase/u16-ct-totitle'.
46383         * lib/unicase/u16-ct-totitle.c: New file.
46384         * modules/unicase/u16-ct-totitle: New file.
46385
46386         New module 'unicase/u8-ct-totitle'.
46387         * lib/unicase/u8-ct-totitle.c: New file.
46388         * lib/unicase/u-ct-totitle.h: New file, derived from
46389         lib/unicase/u-totitle.h.
46390         * modules/unicase/u8-ct-totitle: New file.
46391
46392         New module 'unicase/u32-ct-tolower'.
46393         * lib/unicase/u32-ct-tolower.c: New file.
46394         * modules/unicase/u32-ct-tolower: New file.
46395
46396         New module 'unicase/u16-ct-tolower'.
46397         * lib/unicase/u16-ct-tolower.c: New file.
46398         * modules/unicase/u16-ct-tolower: New file.
46399
46400         New module 'unicase/u8-ct-tolower'.
46401         * lib/unicase/u8-ct-tolower.c: New file.
46402         * modules/unicase/u8-ct-tolower: New file.
46403
46404         New module 'unicase/u32-ct-toupper'.
46405         * lib/unicase/u32-ct-toupper.c: New file.
46406         * modules/unicase/u32-ct-toupper: New file.
46407
46408         New module 'unicase/u16-ct-toupper'.
46409         * lib/unicase/u16-ct-toupper.c: New file.
46410         * modules/unicase/u16-ct-toupper: New file.
46411
46412         New module 'unicase/u8-ct-toupper'.
46413         * lib/unicase/u8-ct-toupper.c: New file.
46414         * modules/unicase/u8-ct-toupper: New file.
46415
46416         Add context arguments to u*_casemap functions.
46417         * lib/unicase/unicasemap.h: Include unicase.h.
46418         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
46419         suffix_context arguments.
46420         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
46421         functions.
46422         (FUNC): Add prefix_context and suffix_context arguments. Use
46423         uc_is_cased and uc_is_case_ignorable.
46424         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
46425         * lib/unicase/u16-casemap.c: Likewise.
46426         * lib/unicase/u32-casemap.c: Likewise.
46427         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
46428         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
46429         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
46430         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
46431         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
46432         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
46433
46434         New module 'unicase/u32-suffix-context'.
46435         * lib/unicase/u32-suffix-context.c: New file.
46436         * modules/unicase/u32-suffix-context: New file.
46437
46438         New module 'unicase/u16-suffix-context'.
46439         * lib/unicase/u16-suffix-context.c: New file.
46440         * modules/unicase/u16-suffix-context: New file.
46441
46442         New module 'unicase/u8-suffix-context'.
46443         * lib/unicase/u8-suffix-context.c: New file.
46444         * lib/unicase/u-suffix-context.h: New file.
46445         * modules/unicase/u8-suffix-context: New file.
46446
46447         New module 'unicase/empty-suffix-context'.
46448         * lib/unicase/empty-suffix-context.c: New file.
46449         * modules/unicase/empty-suffix-context: New file.
46450
46451         New module 'unicase/u32-prefix-context'.
46452         * lib/unicase/u32-prefix-context.c: New file.
46453         * modules/unicase/u32-prefix-context: New file.
46454
46455         New module 'unicase/u16-prefix-context'.
46456         * lib/unicase/u16-prefix-context.c: New file.
46457         * modules/unicase/u16-prefix-context: New file.
46458
46459         New module 'unicase/u8-prefix-context'.
46460         * lib/unicase/u8-prefix-context.c: New file.
46461         * lib/unicase/u-prefix-context.h: New file.
46462         * lib/unicase/context.h: New file.
46463         * modules/unicase/u8-prefix-context: New file.
46464
46465         New module 'unicase/empty-prefix-context'.
46466         * lib/unicase/empty-prefix-context.c: New file.
46467         * modules/unicase/empty-prefix-context: New file.
46468
46469         New module 'unicase/ignorable'.
46470         * lib/unicase/ignorable.c: New file.
46471         * modules/unicase/ignorable: New file.
46472
46473         New module 'unicase/cased'.
46474         * lib/unicase/caseprop.h: New file.
46475         * lib/unicase/cased.c: New file.
46476         * modules/unicase/cased: New file.
46477
46478         New functions for case mapping of substrings.
46479         * lib/unicase.h (casing_prefix_context_t): New type.
46480         (unicase_empty_prefix_context): New variable.
46481         (u8_casing_prefix_context, u16_casing_prefix_context,
46482         u32_casing_prefix_context, u8_casing_prefixes_context,
46483         u16_casing_prefixes_context, u32_casing_prefixes_context): New
46484         declarations.
46485         (casing_suffix_context_t): New type.
46486         (unicase_empty_suffix_context): New variable.
46487         (u8_casing_suffix_context, u16_casing_suffix_context,
46488         u32_casing_suffix_context, u8_casing_suffixes_context,
46489         u16_casing_suffixes_context, u32_casing_suffixes_context,
46490         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
46491         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
46492         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
46493         declarations.
46494
46495 2009-06-28  Jim Meyering  <meyering@redhat.com>
46496
46497         boostrap: indent only with spaces
46498         * build-aux/bootstrap: Indent only with spaces, never TABs.
46499
46500         bootstrap: split long lines
46501         * build-aux/bootstrap: Keep line length < 80.
46502
46503         bootstrap: sync from coreutils
46504         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
46505         just as autoreconf does.  Verify a list of prerequisite
46506         package-name,version-number pairs if defined in bootstrap.conf.
46507         Refer to README-prereq, if prerequisites are not satisfied.
46508
46509 2009-06-27  Eric Blake  <ebb9@byu.net>
46510
46511         tests: add test for bogus NULL definition
46512         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
46513         * tests/test-stdlib.c: Likewise.
46514         * tests/test-string.c: Likewise.
46515         * tests/test-locale.c: Likewise.
46516         * tests/test-unistd.c: Likewise.
46517         * modules/stdio-tests (Depends-on): Add verify.
46518         * modules/stdlib-tests (Depends-on): Likewise.
46519         * modules/string-tests (Depends-on): Likewise.
46520         * modules/locale-tests (Depends-on): Likewise.
46521         * modules/unistd-tests (Depends-on): Likewise.
46522
46523 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
46524
46525         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
46526         self-explaining comment.
46527         * m4/selinux-selinux-h: Update serial.
46528         (gl_LIBSELINUX): New macro, adding a warning for missing development
46529         packages to code extracted from...
46530         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
46531         Add warning for missing development packages here, too.
46532
46533 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
46534
46535         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
46536
46537 2009-06-25  Eric Blake  <ebb9@byu.net>
46538
46539         version-etc: fix regression
46540         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
46541         gcc.
46542         (version_etc): Use it, to catch bugs with trailing NULL.
46543         * lib/version-etc.c (version_etc_arn): Delete unused argument.
46544         (version_etc_va): Fix logic bug.
46545         * modules/version-etc-tests: Add test.
46546         * tests/test-version-etc.c: New file.
46547         * tests/test-version-etc.sh: Likewise.
46548
46549 2009-06-25  Sam Steingold  <sds@gnu.org>
46550
46551         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
46552         mbtowc declaration.
46553
46554 2009-06-25  Eric Blake  <ebb9@byu.net>
46555
46556         fpurge: migrate into <stdio.h>
46557         * lib/fpurge.h: Delete...
46558         * lib/stdio.in.h (fpurge): ...and declare here, instead.
46559         * lib/fpurge.c (fpurge): Change declaring header.
46560         * modules/fpurge (Files): Drop deleted file.
46561         (Depends-on): Add stdio.
46562         (configure.ac): Set witness.
46563         * modules/stdio (Makefile.am): Support fpurge macros.
46564         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
46565         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
46566         * lib/fflush.c: Update client.
46567         * tests/test-fpurge.c: Likewise.
46568         * NEWS: Mention the change.
46569
46570 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
46571
46572         * lib/argp-version-etc.c (program_authors): Add const
46573         qualifier.
46574         * lib/version-etc.c: Fix typos in the comments.
46575         * modules/argp-version-etc: Depends on version-etc.
46576
46577 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
46578
46579         argp-version-etc: new module.
46580
46581         * lib/argp-version-etc.c: New file.
46582         * lib/argp-version-etc.h: New file.
46583         * modules/argp-version-etc: New file.
46584         * modules/argp-version-etc-tests: New file.
46585         * tests/test-argp-version-etc.c: New test.
46586         * tests/test-argp-version-etc-1.sh: New test.
46587
46588 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
46589
46590         Provide additional interfaces and documentation for version-etc
46591         module.
46592
46593         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
46594         interfaces.
46595         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
46596         prototypes.
46597
46598 2009-06-24  Bruno Haible  <bruno@clisp.org>
46599
46600         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
46601         HAVE_LIB${NAME} macro.
46602         Reported by Sam Steingold <sds@gnu.org>.
46603
46604 2009-06-23  Simon Josefsson  <simon@josefsson.org>
46605
46606         * modules/hash-tests (test_hash_LDADD): Link to libintl when
46607         needed.
46608
46609 2009-06-21  Bruno Haible  <bruno@clisp.org>
46610
46611         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
46612         work.
46613         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
46614         together with LIB${NAME}, LTLIB${NAME}.
46615         Reported by Sam Steingold <sds@gnu.org>.
46616
46617 2009-06-20  Jim Meyering  <meyering@redhat.com>
46618
46619         tests: make sc_require_test_exit_idiom more generic
46620         * top/maint.mk (Exit_witness_file): New overridable variable.
46621         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
46622         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
46623
46624 2009-06-19  Jim Meyering  <meyering@redhat.com>
46625
46626         hash: reverse order of src/dst parameters in an internal interface
46627         * lib/hash.c (transfer_entries): Reverse order of parameters to
46628         put DST before SRC.  Adjust callers.
46629
46630         tests: test-hash: avoid wholesale duplication
46631         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
46632         Instead, use a loop and add a single conditional.
46633
46634         tests: test-hash: allow seed selection via a command line argument
46635         * tests/test-hash.c (get_seed): New function.
46636         (main): Use it.
46637
46638 2009-06-19  Eric Blake  <ebb9@byu.net>
46639
46640         hash: avoid memory leak on allocation failure
46641         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
46642         failure.  Factor repeated algorithm...
46643         (transfer_entries): ...into new helper routine.
46644         (hash_delete): React to hash_rehash return value.
46645
46646         hash: reduce memory pressure in hash_rehash no-op case
46647         * lib/hash.c (next_prime): Avoid overflow.
46648         (hash_initialize): Factor bucket size computation...
46649         (compute_bucket_size): ...into new helper function.
46650         (hash_rehash): Use new function and open coding to reduce memory
46651         pressure, and avoid a memory leak in USE_OBSTACK code.
46652         Reported by Jim Meyering.
46653
46654 2009-06-18  Eric Blake  <ebb9@byu.net>
46655
46656         hash: make rotation more obvious
46657         * modules/hash (Depends-on): Add bitrotate and stdint.
46658         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
46659         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
46660         (SIZE_MAX): Rely on headers for definition.
46661         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
46662         (raw_hasher): Use rotr_sz.
46663         Suggested by Jim Meyering.
46664
46665         hash: fix memory leak in last patch
46666         * lib/hash.c (hash_rehash): Avoid memory leak.
46667
46668         hash: avoid no-op rehashing
46669         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
46670
46671         hash: provide default callback functions
46672         * lib/hash.c (raw_hasher, raw_comparator): New functions.
46673         (hash_initialize): Use them as defaults.
46674         * tests/test-hash.c (main): Test this.
46675
46676         hash: minor optimization
46677         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
46678         when possible.
46679         (hash_initialize): Document this promise.
46680         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
46681         * tests/test-hash.c (hash_compare_strings): Test this.
46682
46683 2009-06-18  Bruno Haible  <bruno@clisp.org>
46684
46685         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
46686         going to be replaced anyway.
46687
46688 2009-06-18  Bruno Haible  <bruno@clisp.org>
46689
46690         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
46691         in one place.
46692         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
46693         be replaced anyway.
46694
46695 2009-06-18  Eric Blake  <ebb9@byu.net>
46696
46697         hash: check for resize before insertion
46698         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
46699         threshold before insertion, so that a pathological hash_rehash
46700         that fills every bucket can still trigger another rehash.
46701
46702 2009-06-18  Jim Meyering  <meyering@redhat.com>
46703
46704         hash-tests: add a loop around the small tests
46705         * tests/test-hash.c (main): Repeat small tests with selected
46706         small initial table sizes.
46707
46708 2009-06-17  Eric Blake  <ebb9@byu.net>
46709
46710         hash: minor cleanups
46711         * lib/hash.h (hash_entry): Make opaque, by moving...
46712         * lib/hash.c (hash_entry): ...here.
46713         (hash_insert): Clarify restrictions on what can be inserted.
46714         (hash_get_next): Clarify when it is safe to remove an element
46715         during traversal.
46716         (check_tuning): Skip verification when tuning is known safe.
46717         (hash_initialize): Clarify restrictions on tuning.
46718
46719 2009-06-17  Jim Meyering  <jim@meyering.net>
46720         and Eric Blake  <ebb9@byu.net>
46721
46722         hash-tests: new module
46723         * modules/hash-tests: New file.
46724         * tests/test-hash.c: New file.
46725
46726 2009-06-17  Eric Blake  <ebb9@byu.net>
46727
46728         strstr-simple: document new module
46729         * MODULES.html.sh: Document new module.
46730
46731         strstr, strcasestr: replace on platforms with broken memchr
46732         * modules/strstr: Split into...
46733         * modules/strstr-simple: ...new module that does not care about
46734         performance, but does care about glibc bug.
46735         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
46736         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
46737         if platform memchr is broken, per Debian bug 521737.
46738         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
46739         memchr.
46740         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
46741         * doc/posix-functions/strstr.texi (strstr): Document the fix.
46742         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
46743         * modules/mountlist (Depends-on): Add strstr-simple.
46744         * modules/gen-uni-tables (Depends-on): Likewise.
46745         * modules/argz (Depends-on): Add strstr.
46746
46747 2009-06-17  Bruno Haible  <bruno@clisp.org>
46748
46749         * modules/posix_spawn-internal (Depends-on): Add errno.
46750
46751 2009-06-17  Bruno Haible  <bruno@clisp.org>
46752
46753         Define missing ESTALE on Interix 3.5.
46754         * lib/errno.in.h (ESTALE): Assign a value if missing.
46755         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
46756         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
46757         missing.
46758         * doc/posix-headers/errno.texi: Mention the Interix bug.
46759         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
46760
46761 2009-06-15  Eric Blake  <ebb9@byu.net>
46762
46763         memchr, memchr2: add valgrind exception
46764         * lib/memchr.valgrind: New file.
46765         * lib/memchr2.valgrind: New file.
46766         * modules/memchr (Files): Distribute valgrind file.
46767         * modules/memchr2 (Files): Likewise.
46768
46769         docs: memchr is no longer obsolete
46770         * MODULES.html.sh: Move memchr from obsolete to string.h section.
46771         * lib/string.in.h (memchr): Simplify logic.
46772
46773 2009-06-14  Jim Meyering  <meyering@redhat.com>
46774
46775         link-follow: fix the "checking..." message to not mention trailing slash
46776         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
46777         never considered trailing slashes.
46778
46779 2009-06-14  Bruno Haible  <bruno@clisp.org>
46780
46781         * m4/memchr.m4: Mention also the bug on IA-64.
46782         * doc/posix-functions/memchr.texi: Likewise.
46783
46784 2009-06-12  Eric Blake  <ebb9@byu.net>
46785
46786         memchr: detect broken x86_64 and alpha implementations
46787         * modules/memchr-tests (Depends-on): Move mmap detection...
46788         * modules/memchr (Depends-on): ...here.
46789         (configure.ac): Set indicator.
46790         * lib/string.in.h (memchr): Declare replacement.
46791         * modules/string (Makefile.am): Trigger replacement.
46792         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
46793         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
46794         bugs.
46795         * doc/posix-functions/memchr.texi (memchr): Document the bug.
46796         * modules/getpagesize (License): Relax license.
46797
46798 2009-06-11  Bruno Haible  <bruno@clisp.org>
46799
46800         * lib/idpriv.h: Add more references.
46801
46802 2009-06-08  Bruno Haible  <bruno@clisp.org>
46803
46804         Tests for module 'idpriv-droptemp'.
46805         * modules/idpriv-droptemp-tests: New file.
46806         * tests/test-idpriv-droptemp.sh: New file.
46807         * tests/test-idpriv-droptemp.su.sh: New file.
46808         * tests/test-idpriv-droptemp.c: New file.
46809
46810         New module 'idpriv-droptemp'.
46811         * lib/idpriv-droptemp.c: New file.
46812         * modules/idpriv-droptemp: New file.
46813
46814 2009-06-08  Bruno Haible  <bruno@clisp.org>
46815
46816         Tests for module 'idpriv-drop'.
46817         * modules/idpriv-drop-tests: New file.
46818         * tests/test-idpriv-drop.sh: New file.
46819         * tests/test-idpriv-drop.su.sh: New file.
46820         * tests/test-idpriv-drop.c: New file.
46821
46822         New module 'idpriv-drop'.
46823         * lib/idpriv.h: New file.
46824         * lib-idpriv-drop.c: New file.
46825         * m4/idpriv.m4: New file.
46826         * modules/idpriv-drop: New file.
46827
46828 2009-06-08  Bruno Haible  <bruno@clisp.org>
46829
46830         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
46831         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
46832         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
46833         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
46834         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
46835         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
46836         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
46837
46838 2009-06-08  Eric Blake  <ebb9@byu.net>
46839
46840         test-strstr: use memory fence, when possible
46841         * tests/test-strstr.c (main): Use memory fence, in order to be
46842         more likely to trigger Debian bug 521737.
46843         * modules/strstr-tests (Files): Pull in additional files.
46844
46845         memchr: no longer obsolete, for wider field testing
46846         * modules/memchr (Status, Notice): Delete, this module is no
46847         longer obsolete.
46848         * modules/vasnprintf (Depends-on): Add memchr.
46849
46850 2009-06-07  Jim Meyering  <meyering@redhat.com>
46851
46852         hash: declare some functions with the warn_unused_result attribute
46853         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
46854
46855 2009-06-07  Bruno Haible  <bruno@clisp.org>
46856
46857         * tests/test-alignof.c: Don't test int64_t if it does not exist.
46858         Reported by Eric Blake.
46859
46860 2009-06-06  Eric Blake  <ebb9@byu.net>
46861
46862         test-alignof: fix typo with long double
46863         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
46864         compiler error.
46865
46866 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
46867
46868         Escape non-texinfo { and }s.
46869         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
46870         markup error.
46871
46872 2009-06-04  Jim Meyering  <meyering@redhat.com>
46873
46874         gitlog-to-changelog: don't infloop on an empty commit log
46875         * build-aux/gitlog-to-changelog: Warn about an empty log message.
46876         Reported by Boris Petersen <transacid@centerim.org>.
46877
46878 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
46879
46880         version-etc: extend for packagers
46881         Add three new configure options, intended for packagers:
46882           --with-packager="packager name"
46883           --with-packager-version="packager-specific version"
46884           --with-packager-bug-reports="packager bug reporting"
46885         An example with coreutils:
46886           $ ./configure \
46887             --with-packager=Gentoo \
46888             --with-packager-bug-report=http://bugs.gentoo.org/ \
46889             --with-packager-version="patchset 1.6"
46890           $ ./src/ls --version | head -n2
46891           ls (GNU coreutils) 7.1-dirty
46892           Packaged by Gentoo (patchset 1.6)
46893         Note that the bug reporting info via --help doesn't show up because
46894         coreutils uses its own custom emit_bug_reporting_address() implementation
46895         in src/system.h.  If it didn't, it'd look like:
46896           $ ./src/ls --help | tail -n4
46897           Report bugs to <bug-coreutils@gnu.org>.
46898           Report Gentoo bugs to <http://bugs.gentoo.org/>.
46899           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
46900           General help using GNU software: <http://www.gnu.org/gethelp/>.
46901         * lib/version-etc.c: Print new information, if provided.
46902         * m4/version-etc.m4: New file.
46903         * modules/version-etc (Files): Add m4/version-etc.m4.
46904         (configure.ac): Add gl_VERSION_ETC.
46905
46906 2009-05-31  Bruno Haible  <bruno@clisp.org>
46907
46908         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
46909         and 'int64_t'.
46910         * modules/alignof-tests (Dependencies): Add stdint.
46911         Reported by Eric Blake.
46912
46913 2009-05-31  Bruno Haible  <bruno@clisp.org>
46914
46915         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
46916         restriction due to compiler bugs.
46917         Reported by Eric Blake.
46918
46919 2009-05-31  Simon Josefsson  <simon@josefsson.org>
46920             Bruno Haible  <bruno@clisp.org>
46921
46922         Fix test-alignof failure.
46923         * lib/alignof.h (alignof_slot): New macro.
46924         (alignof_type): New macro, with the same semantics as the previous
46925         'alignof'.
46926         (alignof): Alias to alignof_slot.
46927         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
46928         check that the results are usable as constant expressions.
46929
46930 2009-05-31  Bruno Haible  <bruno@clisp.org>
46931
46932         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
46933         * tests/test-memchr.c (main): Check that memchr does not read past the
46934         first occurrence of the byte.
46935         * tests/test-strstr.c (main): Update comment.
46936         Suggested by Eric Blake.
46937
46938 2009-05-30  Bruno Haible  <bruno@clisp.org>
46939
46940         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
46941         detail how to use dumpbin.
46942         Reported by David Byron <dbyron@dbyron.com>.
46943
46944 2009-06-02  Simon Josefsson  <simon@josefsson.org>
46945
46946         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
46947
46948 2009-06-02  Simon Josefsson  <simon@josefsson.org>
46949
46950         * m4/manywarnings.m4: Add GCC 4.4 warnings.
46951
46952 2009-05-28  Bruno Haible  <bruno@clisp.org>
46953
46954         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
46955         build-aux/ files.
46956
46957 2009-05-28  Simon Josefsson  <simon@josefsson.org>
46958
46959         * gnulib-tool (func_import): Transform license on build-aux/ files too.
46960
46961 2009-05-27  Simon Josefsson  <simon@josefsson.org>
46962
46963         * gnulib-tool (sed_transform_main_lib_file)
46964         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
46965         regexps.
46966
46967 2009-05-26  Simon Josefsson  <simon@josefsson.org>
46968
46969         * tests/test-strstr.c: Add another self-test.
46970         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
46971         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
46972
46973 2009-05-23  Bruno Haible  <bruno@clisp.org>
46974
46975         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
46976         change.
46977
46978 2009-05-21  Bruno Haible  <bruno@clisp.org>
46979
46980         Simplify use of mode_t varargs.
46981         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
46982         uses 'mode_t' or 'int'.
46983         * lib/openat.c (openat): Likewise.
46984         * lib/open-safer.c (open_safer): Likewise.
46985         * m4/mode_t.m4: New file.
46986         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
46987         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
46988         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
46989         * modules/open (Files): Add m4/mode_t.m4.
46990         * modules/openat (Files): Likewise.
46991         * modules/fcntl-safer (Files): Likewise.
46992         Suggested by Eric Blake.
46993
46994 2009-05-21  Pádraig Brady  <P@draigbrady.com>
46995
46996         * doc/glibc-functions/fallocate.texi: New file.
46997         * doc/gnulib.texi: Include it.
46998
46999 2009-05-21  Eric Blake  <ebb9@byu.net>
47000             Bruno Haible  <bruno@clisp.org>
47001
47002         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
47003         invocations.
47004         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
47005
47006 2009-05-21  Eric Blake  <ebb9@byu.net>
47007             Bruno Haible  <bruno@clisp.org>
47008
47009         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
47010         include_next. Fix of 2008-11-20 commit.
47011         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
47012         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
47013         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
47014         NEXT_MATH_H.
47015         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
47016         instead of NEXT_MATH_H.
47017
47018 2009-05-21  Bruno Haible  <bruno@clisp.org>
47019
47020         Avoid redefinition warnings for SIZE_MAX.
47021         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
47022         Reported by Simon Josefsson.
47023
47024 2009-05-21  Bruno Haible  <bruno@clisp.org>
47025
47026         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
47027         AC_CACHE_VAL.
47028
47029 2009-05-20  Bruno Haible  <bruno@clisp.org>
47030
47031         Make zeroptr.h work on mingw.
47032         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
47033         mprotect.
47034         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
47035         * modules/memchr2-tests (configure.ac): Likewise.
47036         * modules/memcmp-tests (configure.ac): Likewise.
47037         * modules/memmem-tests (configure.ac): Likewise.
47038         * modules/memrchr-tests (configure.ac): Likewise.
47039         Reported by Simon Josefsson.
47040
47041 2009-05-20  Simon Josefsson  <simon@josefsson.org>
47042
47043         * tests/test-glob.c: Include string.h for strcmp prototype.
47044
47045 2009-05-20  Simon Josefsson  <simon@josefsson.org>
47046
47047         * modules/getdelim (Depends-on): Add explicit stdint, although it
47048         was implicitly already pulled in via realloc-posix.
47049         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
47050
47051 2009-05-20  Simon Josefsson  <simon@josefsson.org>
47052
47053         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
47054         G. Christensen" <tgc@jupiterrise.com>.
47055         * m4/sys_socket_h.m4: Check for sa_family_t.
47056         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
47057         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
47058         * tests/test-sys_socket.c: Check that sa_family_t works.
47059
47060 2009-05-18  Eric Blake  <ebb9@byu.net>
47061
47062         maint.mk: allow gnulib_dir in VPATH build
47063         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
47064
47065 2009-05-15  Jim Meyering  <meyering@redhat.com>
47066
47067         maint.mk: Give gnulib_dir a default definition.
47068         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
47069         Thus, most packages no longer need to specify this variable in cfg.mk
47070
47071 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
47072
47073         rename.m4: fix typos that would make non-mingw cross-configure fail
47074         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
47075
47076 2009-05-13  Eric Blake  <ebb9@byu.net>
47077
47078         mmap-anon: avoid out-of-order autoconf expansion
47079         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
47080         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
47081         * modules/memchr-tests (Depends-on): Add extensions.
47082         * modules/memchr2-tests (Depends-on): Add extensions.
47083         * modules/memcmp-tests (Depends-on): Add extensions.
47084         * modules/memmem-tests (Depends-on): Add extensions.
47085         * modules/memrchr-tests (Depends-on): Add extensions.
47086
47087 2009-05-13  Bruno Haible  <bruno@clisp.org>
47088
47089         Make some tests ISO C 99 compliant.
47090         * tests/zerosize-ptr.h: New file.
47091         * tests/test-memchr.c: Include zerosize-ptr.h.
47092         (main): Use a zero-size object pointer instead of NULL.
47093         * tests/test-memchr2.c: Include zerosize-ptr.h.
47094         (main): Use a zero-size object pointer instead of NULL.
47095         * tests/test-memcmp.c: Include zerosize-ptr.h.
47096         (main): Use a zero-size object pointer instead of NULL.
47097         * tests/test-memmem.c: Include zerosize-ptr.h.
47098         (main): Use a zero-size object pointer instead of NULL.
47099         * tests/test-memrchr.c: Include zerosize-ptr.h.
47100         (main): Use a zero-size object pointer instead of NULL.
47101         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
47102         m4/mmap-anon.m4.
47103         (Depends-on): Add getpagesize.
47104         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
47105         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
47106         m4/mmap-anon.m4.
47107         (Depends-on): Add getpagesize.
47108         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
47109         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
47110         m4/mmap-anon.m4.
47111         (Depends-on): Add getpagesize.
47112         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
47113         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
47114         m4/mmap-anon.m4.
47115         (Depends-on): Add getpagesize.
47116         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
47117         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
47118         m4/mmap-anon.m4.
47119         (Depends-on): Add getpagesize.
47120         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
47121
47122 2009-05-12  Bruno Haible  <bruno@clisp.org>
47123
47124         Tests for module 'alignof'.
47125         * modules/alignof-tests: New file.
47126         * tests/test-alignof.c: New file.
47127
47128 2009-05-12  Bruno Haible  <bruno@clisp.org>
47129
47130         Fix alignof macro.
47131         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
47132         vendor compilers that are always correct.
47133
47134 2009-05-12  Bruno Haible  <bruno@clisp.org>
47135
47136         Make the MAP_ANONYMOUS detection work on HP-UX 11.
47137         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
47138         not whether its fully works.
47139
47140 2009-05-12  Bruno Haible  <bruno@clisp.org>
47141
47142         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
47143
47144 2009-05-12  Jim Meyering  <meyering@redhat.com>
47145
47146         * top/maint.mk: Adjust backslash alignment.
47147
47148 2009-05-11  Simon Josefsson  <simon@josefsson.org>
47149
47150         * top/maint.mk: Make $(srcdir)/build-aux configurable.
47151
47152 2009-05-11  Eric Blake  <ebb9@byu.net>
47153
47154         argp: avoid undefined behavior
47155         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
47156         macros.
47157
47158 2009-05-08  Simon Josefsson  <simon@josefsson.org>
47159
47160         * tests/test-vc-list-files-git.sh: Do git config of user.email and
47161         user.name to prevent git commit from complaining.
47162
47163 2009-05-10  Bruno Haible  <bruno@clisp.org>
47164
47165         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
47166         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
47167         it rewrites every file name only once.
47168         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
47169
47170 2009-05-08  Bruno Haible  <bruno@clisp.org>
47171
47172         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
47173         instead of 'max'.
47174
47175 2009-05-08  Simon Josefsson  <simon@josefsson.org>
47176
47177         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
47178         sockaddr_storage test.
47179
47180 2009-05-07  Simon Josefsson  <simon@josefsson.org>
47181
47182         * modules/sys_socket (Makefile.am): Substitute
47183         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
47184         * m4/sys_socket_h.m4: Check for sockaddr_storage.
47185         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
47186         * tests/test-sys_socket.c: Check sockaddr_storage.
47187
47188 2009-05-08  Bruno Haible  <bruno@clisp.org>
47189
47190         New module 'alignof'.
47191         * lib/alignof.h: New file.
47192         * modules/alignof: New file.
47193
47194 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
47195             Bruno Haible  <bruno@clisp.org>
47196
47197         Fix test-file-has-acl on FreeBSD.
47198         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
47199         mask is implicitly added.
47200         * tests/test-file-has-acl.c: Include <signal.h>.
47201         (main): Terminate the test after 5 seconds.
47202         * modules/acl-tests (configure.ac): Check for alarm function.
47203
47204 2009-05-04  Bruno Haible  <bruno@clisp.org>
47205
47206         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
47207         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
47208         * modules/errno (configure.ac): Drop AC_REQUIRE.
47209         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
47210         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
47211
47212 2009-05-04  Simon Josefsson  <simon@josefsson.org>
47213
47214         * modules/glob-tests: New module.
47215         * tests/test-glob.c: Add.
47216
47217 2009-05-04  Simon Josefsson  <simon@josefsson.org>
47218
47219         * modules/fnmatch-tests: New module.
47220         * tests/test-fnmatch.c: Add.
47221
47222 2009-05-04  Eric Blake  <ebb9@byu.net>
47223
47224         maint: make the new no-submodule-changes rule VPATH-safe
47225         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
47226
47227 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
47228             Bruno Haible  <bruno@clisp.org>
47229
47230         acl: Fix infinite loop on FreeBSD.
47231         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
47232         of return value from acl_get_entry.
47233         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
47234         Likewise.
47235
47236 2009-05-03  Bruno Haible  <bruno@clisp.org>
47237
47238         * lib/acl-internal.h (acl_entries): Clarify return value.
47239         * lib/acl_entries.c (acl_entries): Likewise.
47240
47241 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
47242
47243         Bug fix in acl module.
47244         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
47245
47246 2009-05-03  Bruno Haible  <bruno@clisp.org>
47247
47248         Create gperf-generated file in the source dir, not in the build dir.
47249         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
47250         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
47251         * modules/unicase/locale-language (unicase/locale-languages.h):
47252         Likewise.
47253         * modules/unicase/special-casing (unicase/special-casing-table.h):
47254         Likewise.
47255         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
47256         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
47257         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
47258         Reported by Ralf Wildenhues.
47259
47260 2009-05-03  Bruno Haible  <bruno@clisp.org>
47261
47262         * modules/fnmatch (Description, configure.ac): Taken from
47263         fnmatch-posix.
47264         * modules/fnmatch-posix: Turn into a symbolic reference to the
47265         'fnmatch' module, and deprecate.
47266         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
47267
47268 2009-05-03  Bruno Haible  <bruno@clisp.org>
47269
47270         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
47271         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
47272         Reported by Ralf Wildenhues.
47273
47274 2009-05-04  Simon Josefsson  <simon@josefsson.org>
47275
47276         * m4/fnmatch.m4: Fix fnmatch re-define.
47277
47278 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
47279
47280         priv-set: new module and tests; adapt write-any-file
47281         * lib/priv-set.c: New file.
47282         * lib/priv-set.h: New file.
47283         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
47284         * lib/write-any-file.c: Simplify by using priv-set module.
47285         * m4/priv-set.m4: New file.
47286         * modules/priv-set: New file.
47287         * modules/unlinkdir: Add dependency on priv-set module.
47288         * modules/write-any-file: Likewise.
47289
47290         Tests for module 'priv-set'.
47291         * modules/priv-set-tests: New file.
47292         * tests/test-priv-set.c: New file.
47293
47294 2009-05-03  Jim Meyering  <meyering@redhat.com>
47295             Bruno Haible  <bruno@clisp.org>
47296
47297         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
47298         use the converted UTF-8 variant of the name instead.
47299
47300 2009-05-03  Jim Meyering  <meyering@redhat.com>
47301
47302         tests: tighten some getdate tests
47303         * tests/test-getdate.c (main): Tighten tests: require equality,
47304         not just greater than.  Set TZ envvar to UTC0.
47305
47306 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
47307
47308         getdate: correctly interpret "next monday" when run on a Monday
47309         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
47310         that e.g., "next tues" (when run on a tuesday) results in a date
47311         that is one week in the future, and not today's date.
47312         I.e., add a week when the wday is the same as the current one.
47313         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
47314         and earlier by Martin Bernreuther and Jan Minář.
47315         * tests/test-getdate.c (main): Check that "next DAY" is always in
47316         the future and that "last DAY" is always in the past.
47317
47318 2009-05-02  Jim Meyering  <meyering@redhat.com>
47319
47320         build: ensure that a release build fails when a submodule is unclean
47321         * top/maint.mk (no-submodule-changes): New rule.
47322         (alpha beta major): Depend on it.
47323
47324 2009-05-02  Bruno Haible  <bruno@clisp.org>
47325
47326         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
47327         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
47328         shell variable gl_fnmatch_required to detect which variant is
47329         requested.
47330         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
47331         gl_FUNC_FNMATCH_POSIX.
47332         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
47333         exclude fnmatch-posix.
47334
47335 2009-05-02  Bruno Haible  <bruno@clisp.org>
47336
47337         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
47338         * modules/mbsrtowcs (License): Change to LGPLv2+.
47339         * modules/strnlen1 (License): Likewise.
47340         Reported by Simon Josefsson.
47341
47342 2009-05-02  Bruno Haible  <bruno@clisp.org>
47343
47344         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
47345         "cross".
47346         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
47347         gnulib-tool was called with option --source-base=lib.
47348
47349 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47350
47351         Use automake *-local hooks without commands, for extensibility.
47352         * modules/localcharset (Makefile.am): Rename install-exec-local
47353         rule to install-exec-localcharset, and make it a prerequisite of
47354         install-exec-local.  Likewise, rename the uninstall-local rule to
47355         uninstall-localcharset, and make it a prerequisite of the former.
47356
47357 2009-05-01  Bruno Haible  <bruno@clisp.org>
47358
47359         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
47360         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
47361         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
47362         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
47363         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
47364         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
47365         m4/locale-zh.m4, m4/codeset.m4.
47366
47367         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
47368         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
47369         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
47370         m4/locale-zh.m4.
47371
47372         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
47373         REPLACE_WCRTOMB if mbstate_t must be replaced.
47374         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
47375         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
47376
47377 2009-05-01  Bruno Haible  <bruno@clisp.org>
47378
47379         Avoid compiler warnings when redefining macros defined by <libintl.h>.
47380         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
47381         dngettext, dcngettext, textdomain, bindtextdomain,
47382         bind_textdomain_codeset): Undefine before redefining.
47383
47384 2009-04-30  Bruno Haible  <bruno@clisp.org>
47385
47386         Fix bug introduced on 2009-04-25.
47387         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
47388         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
47389         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
47390         is defined.
47391         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
47392         is defined.
47393         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
47394         is defined.
47395         Reported by Elbert_Pol <elbert.pol@gmail.com>.
47396
47397 2009-04-28  Bruno Haible  <bruno@clisp.org>
47398
47399         Comment tweaks.
47400         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
47401         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
47402         * lib/unicase.h (u*_casexfrm): Likewise.
47403         Reported by Paolo Bonzini.
47404
47405 2009-04-28  Bruno Haible  <bruno@clisp.org>
47406
47407         Fix a compilation error.
47408         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
47409         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
47410         Reported by Jim Meyering.
47411
47412 2009-04-27  Bruno Haible  <bruno@clisp.org>
47413
47414         New module 'libunistring'.
47415         * modules/libunistring: New file.
47416         * m4/libunistring.m4: New file.
47417         * MODULES.html.sh (Unicode string functions): Add it.
47418
47419 2009-04-27  Eric Blake  <ebb9@byu.net>
47420
47421         maint.mk: allow package-specific header to provide <config.h>
47422         * top/maint.mk (sc_require_config_h): New variable.
47423         (sc_require_config_h, sc_require_config_h_first): Use it.
47424
47425 2009-04-27  Simon Josefsson  <simon@josefsson.org>
47426
47427         * top/maint.mk (sc_avoid_if_before_free): Except
47428         useless-if-before-free script.
47429
47430 2009-04-27  Eric Blake  <ebb9@byu.net>
47431
47432         maintainer-makefile: depend on all required helper scripts
47433         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
47434         useless-if-before-free.
47435         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
47436         version, rather than assuming gnulib checkout is available.
47437         Reported by Simen Josefsson.
47438
47439 2009-04-26  Bruno Haible  <bruno@clisp.org>
47440
47441         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
47442         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
47443         "../" or "..".
47444
47445 2009-04-26  Bruno Haible  <bruno@clisp.org>
47446
47447         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
47448         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
47449         AC_LIB_HAVE_LINKFLAGS.
47450
47451 2009-04-26  Bruno Haible  <bruno@clisp.org>
47452
47453         Simplify calling convention of u*_conv_from_encoding.
47454         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
47455         u32_conv_from_encoding): Expect a resultbuf argument and return the
47456         result directly as a pointer.
47457         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
47458         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
47459         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
47460         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
47461         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
47462         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
47463         Update.
47464         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
47465         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
47466         * lib/vasnprintf.c (VASNPRINTF): Update.
47467         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
47468         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
47469         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
47470         * NEWS: Mention the change.
47471
47472 2009-04-26  Bruno Haible  <bruno@clisp.org>
47473
47474         Simplify calling convention of u*_conv_to_encoding.
47475         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
47476         u32_conv_to_encoding): Expect a resultbuf argument and return the
47477         result directly as a pointer.
47478         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
47479         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
47480         freeing scaled_offsets if mem_iconveha failed.
47481         * lib/unicase/u-casexfrm.h (FUNC): Update.
47482         * lib/uninorm/u-normxfrm.h (FUNC): Update.
47483         * lib/vasnprintf.c (VASNPRINTF): Update.
47484         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
47485         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
47486         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
47487         * NEWS: Mention the change.
47488
47489 2009-04-26  Bruno Haible  <bruno@clisp.org>
47490
47491         Avoid test failures on AIX and OSF/1.
47492         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
47493         malloc(0).
47494         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
47495         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
47496         Likewise.
47497         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
47498         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
47499         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
47500         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
47501         * doc/posix-functions/malloc.texi: Document the portability problem
47502         related to malloc(0).
47503
47504 2009-04-26  Bruno Haible  <bruno@clisp.org>
47505
47506         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
47507         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
47508         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
47509
47510 2009-04-25  Bruno Haible  <bruno@clisp.org>
47511
47512         Avoid link error when creating a namespace clean library.
47513         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
47514         as macro with arguments if already defined as an alias.
47515         * lib/signbitf.c (gl_signbitf): Don't undefine.
47516         * lib/signbitd.c (gl_signbitd): Don't undefine.
47517         * lib/signbitl.c (gl_signbitl): Don't undefine.
47518
47519 2009-04-25  Jim Meyering  <meyering@redhat.com>
47520
47521         vc-list-files: fix another quoting bug
47522         * build-aux/vc-list-files: Avoid sed backslash expansion
47523         of pathological directory names.
47524
47525 2009-04-25  Eric Blake  <ebb9@byu.net>
47526
47527         vc-list-files: fix shell quoting error
47528         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
47529         timestamp.
47530
47531 2009-04-25  Jim Meyering  <meyering@redhat.com>
47532
47533         vc-list-files: restore lost functionality with subdir argument
47534         * build-aux/vc-list-files: When given a non-"." sub-directory
47535         argument, substitute the $dir/ prefix back onto each resulting name.
47536         Otherwise, coreutils' root_tests check would fail.
47537
47538 2009-04-24  Eric Blake  <ebb9@byu.net>
47539
47540         vc-list-files: ignore git symlinks
47541         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
47542         than ls-files, to ignore git symlinks.
47543
47544         maint.mk: import improvements from m4
47545         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
47546         (move_if_change): Delete unused macro.
47547         (news-date-check, vc-diff-check): Support VPATH builds.
47548         (announcement): Likewise.  Split --bootstrap-tools list...
47549         (boostrap-tools): ...into separate list, which can be overridden
47550         in cfg.mk.
47551         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
47552         requiring dependency on useless-if-before-free module.
47553         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
47554         Support VPATH builds.
47555
47556 2009-04-24  Jim Meyering  <meyering@redhat.com>
47557
47558         maint.mk: remove coreutils-specific rules and variables
47559         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
47560         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
47561         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
47562
47563         maint.mk: remove obsolete rule
47564         * top/maint.mk (rel-check): Remove rule.
47565         (WGET, WGETFLAGS): Remove now-unused variables.
47566
47567 2009-04-24  Simon Josefsson  <simon@josefsson.org>
47568
47569         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
47570         consistency.
47571
47572         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
47573         '$(PATH_SEPARATOR)' instead of ':'.
47574
47575 2009-04-24  Simon Josefsson  <simon@josefsson.org>
47576
47577         * lib/getopt1.c (main): Use 'const' for static array.
47578
47579 2009-04-24  Simon Josefsson  <simon@josefsson.org>
47580
47581         * top/maint.mk: Sync with coreutils.
47582         * NEWS: Explain incompatibilities.
47583
47584 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47585             Bruno Haible  <bruno@clisp.org>
47586
47587         Fix cross-compilation results.
47588         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
47589         statement, as third argument of AC_TRY_RUN.
47590         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
47591         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
47592         Likewise.
47593         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
47594         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
47595         Likewise.
47596         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
47597         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
47598         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
47599
47600 2009-04-20  Bruno Haible  <bruno@clisp.org>
47601
47602         Avoid test failure on mingw.
47603         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
47604
47605 2009-04-20  Bruno Haible  <bruno@clisp.org>
47606
47607         Avoid compilation error on mingw.
47608         * modules/localename-tests (Depends-on): Add locale.
47609
47610 2009-04-19  Bruno Haible  <bruno@clisp.org>
47611
47612         Support for building a shared library on Windows platforms.
47613         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
47614         (main): Test the presence of UNINORM_NFC here.
47615         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
47616         (main): Test the presence of UNINORM_NFD here.
47617         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
47618         (main): Test the presence of UNINORM_NFKC here.
47619         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
47620         (main): Test the presence of UNINORM_NFKD here.
47621
47622 2009-04-19  Bruno Haible  <bruno@clisp.org>
47623
47624         Avoid a compiler warning.
47625         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
47626         Change type of variable 'sequence'.
47627
47628 2009-04-19  Bruno Haible  <bruno@clisp.org>
47629
47630         * modules/configmake (Makefile.am): When the contents of configmake.h
47631         does not change, arrange to preserve its modification time.
47632
47633 2009-04-17  Simon Josefsson  <simon@josefsson.org>
47634
47635         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
47636         gettext domain.
47637
47638 2009-04-16  Jim Meyering  <meyering@redhat.com>
47639
47640         useless-if-before-free: improve conversion code
47641         * build-aux/useless-if-before-free: Adjust code-in-comment to match
47642         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
47643
47644 2009-04-14  Bruno Haible  <bruno@clisp.org>
47645
47646         * modules/fcntl (Depends-on): Add extensions.
47647         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
47648
47649 2009-04-12  Ben Pfaff  <blp@gnu.org>
47650
47651         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
47652         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
47653
47654 2009-03-20  Ben Pfaff  <blp@gnu.org>
47655
47656         Make rename replace existing destinations on Windows.
47657         * m4/rename.m4: Add test for Mingw.
47658         * lib/rename.c: Add rename replacement that uses MoveFileEx with
47659         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
47660         * doc/posix-functions/rename.texi: Document.
47661
47662 2009-04-10  Bruno Haible  <bruno@clisp.org>
47663
47664         New include file "iconveh.h".
47665         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
47666         * lib/striconveh.h: Include it.
47667         (enum iconv_ilseq_handler): Remove definition.
47668         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
47669         striconveh.h.
47670         * lib/striconveha.c: Include striconveh.h.
47671         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
47672         * modules/striconveh (Files): Add lib/iconveh.h.
47673         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
47674         lib/striconveh.h.
47675
47676 2009-04-10  Bruno Haible  <bruno@clisp.org>
47677
47678         * lib/uniconv.h: Update comment.
47679
47680 2009-04-10  Bruno Haible  <bruno@clisp.org>
47681
47682         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
47683         always.
47684         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
47685         * lib/unistr/u16-mbtouc-aux.c: Likewise.
47686         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
47687         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
47688         "unistring-notinline.h", so that the function gets defined always.
47689         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
47690         * lib/unistr/u8-uctomb.c: Likewise.
47691         * lib/unistr/u16-mbtouc.c: Likewise.
47692         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
47693         * lib/unistr/u16-uctomb.c: Likewise.
47694         * lib/unistr/u32-mbtouc.c: Likewise.
47695         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
47696         * lib/unistr/u32-uctomb.c: Likewise.
47697
47698 2009-04-10  Bruno Haible  <bruno@clisp.org>
47699
47700         Mark 'utime' obsolete.
47701         * modules/utime (Status, Notice): New sections.
47702         Suggested by Jim Meyering.
47703
47704         Fix cross-compile guess for utime test.
47705         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
47706         autoconf.
47707         * doc/posix-functions/utime.texi: Give more precisions.
47708         Reported by Jan <ipif@ymail.com>.
47709
47710 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
47711
47712         filevercmp: correct today's change
47713         * lib/filevercmp.c: Also handle coreutils' test inputs.
47714         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
47715
47716         Fix regression in 'filevercmp' module. Thanks Sven Joachim
47717         for reporting it.
47718         * lib/filevercmp.c: Special handle for "", "." and "..".
47719         * tests/test-filevercmp.c: Enlarge the set suite.
47720
47721 2009-04-07  Jim Meyering  <meyering@redhat.com>
47722
47723         useless-if-before-free: show how to remove braced useless free, too
47724         * build-aux/useless-if-before-free: still only in a comment, though.
47725
47726 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
47727
47728         maint.mk: import changes to syntax-check macros from coreutils
47729         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
47730         Use them in the relevant macros.
47731
47732 2009-04-06  Bruno Haible  <bruno@clisp.org>
47733
47734         Fix unportable use of bit-fields.
47735         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
47736         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
47737         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
47738
47739 2009-04-06  Bruno Haible  <bruno@clisp.org>
47740
47741         Avoid test failures on AIX and OSF/1.
47742         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
47743         that malloc(0) = NULL.
47744         * tests/unicase/test-u8-tolower.c (check): Likewise.
47745         * tests/unicase/test-u8-totitle.c (check): Likewise.
47746         * tests/unicase/test-u8-toupper.c (check): Likewise.
47747         * tests/unicase/test-u16-casefold.c (check): Likewise.
47748         * tests/unicase/test-u16-tolower.c (check): Likewise.
47749         * tests/unicase/test-u16-totitle.c (check): Likewise.
47750         * tests/unicase/test-u16-toupper.c (check): Likewise.
47751         * tests/unicase/test-u32-casefold.c (check): Likewise.
47752         * tests/unicase/test-u32-tolower.c (check): Likewise.
47753         * tests/unicase/test-u32-totitle.c (check): Likewise.
47754         * tests/unicase/test-u32-toupper.c (check): Likewise.
47755         * tests/uninorm/test-u8-nfc.c (check): Likewise.
47756         * tests/uninorm/test-u8-nfd.c (check): Likewise.
47757         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
47758         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
47759         * tests/uninorm/test-u16-nfc.c (check): Likewise.
47760         * tests/uninorm/test-u16-nfd.c (check): Likewise.
47761         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
47762         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
47763         * tests/uninorm/test-u32-nfc.c (check): Likewise.
47764         * tests/uninorm/test-u32-nfd.c (check): Likewise.
47765         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
47766         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
47767
47768 2009-04-05  Bruno Haible  <bruno@clisp.org>
47769
47770         Work around an autoconf limitation.
47771         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
47772         comment line if it would be longer than 3 KB.
47773
47774 2009-04-05  Bruno Haible  <bruno@clisp.org>
47775
47776         Avoid test failure with libiconv-1.13.
47777         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
47778         of the expected test results.
47779
47780 2009-04-05  Bruno Haible  <bruno@clisp.org>
47781
47782         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
47783         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
47784         that it should be installed.
47785
47786 2009-04-05  Bruno Haible  <bruno@clisp.org>
47787
47788         * gnulib-tool: New option --copy-file.
47789         (func_usage): Document it.
47790         (func_dest_tmpfilename): Moved out of func_import.
47791         (func_add_file, func_update_file): New functions, extracted from
47792         func_import.
47793         (func_import): Update.
47794
47795 2009-04-05  Karl Berry  <karl@gnu.org>
47796
47797         * README: prominently mention gnulib-tool.
47798         Rearrange sections so getting the code is near the top.
47799
47800 2009-04-05  Bruno Haible  <bruno@clisp.org>
47801
47802         * lib/unicase.h: Mention u*_cmp2.
47803         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
47804         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
47805         * lib/unicase/ulc-casecmp.c: Likewise.
47806         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
47807         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
47808         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
47809         unistr/u8-cmp.
47810         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
47811         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
47812         unistr/u16-cmp.
47813         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
47814         unistr/u32-cmp.
47815
47816         * lib/uninorm.h: Mention u*_cmp2.
47817         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
47818         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
47819         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
47820         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
47821         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
47822         unistr/u8-cmp.
47823         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
47824         unistr/u16-cmp.
47825         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
47826         unistr/u32-cmp.
47827
47828         New module 'unistr/u32-cmp2'.
47829         * lib/unistr/u32-cmp2.c: New file.
47830         * modules/unistr/u32-cmp2: New file.
47831
47832         New module 'unistr/u16-cmp2'.
47833         * lib/unistr/u16-cmp2.c: New file.
47834         * modules/unistr/u16-cmp2: New file.
47835
47836         New module 'unistr/u8-cmp2'.
47837         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
47838         * lib/unistr/u8-cmp2.c: New file.
47839         * lib/unistr/u-cmp2.h: New file.
47840         * modules/unistr/u8-cmp2: New file.
47841
47842 2009-04-05  Bruno Haible  <bruno@clisp.org>
47843
47844         * lib/unictype.h (uc_property_is_valid): New macro.
47845         * tests/unictype/test-pr_byname.c (main): Use it.
47846
47847         * lib/unistr.h: Doc fixes.
47848         * lib/uniconv.h: Doc fixes.
47849         * lib/unictype.h: Doc fixes.
47850
47851 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
47852
47853         Port coreutils 7.2 to Solaris 8.
47854
47855         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
47856         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
47857         for Solaris 8.  This is a bit of a hack, as it means it's the
47858         caller's responsibility to add -lnsl if needed, but most likely it
47859         won't be needed since only getaddrinfo uses this and getaddrinfo
47860         isn't needed on Solaris 8.
47861
47862         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
47863         problem to Solaris 8 encountered with coreutils 7.2, which
47864         resulted in a message "fnmatch.c:292: warning: passing argument 4
47865         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
47866         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
47867
47868 2009-04-03  Simon Josefsson  <simon@josefsson.org>
47869
47870         * m4/ld-version-script.m4: Add FIXME comment.
47871
47872 2009-04-02  Simon Josefsson  <simon@josefsson.org>
47873
47874         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
47875         SOVERSION variable.
47876
47877 2009-04-02  Bruno Haible  <bruno@clisp.org>
47878
47879         * Makefile (info, html, dvi, pdf): Combine the rules.
47880         Suggested by Jim Meyering.
47881
47882 2009-04-01  Bruno Haible  <bruno@clisp.org>
47883
47884         * Makefile (info, html, dvi, pdf): New targets.
47885         Reported by Reuben Thomas <rrt@sc3d.org>.
47886
47887 2009-04-01  Bruno Haible  <bruno@clisp.org>
47888
47889         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
47890         can be put into PATH.
47891         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
47892
47893 2009-04-01  Bruno Haible  <bruno@clisp.org>
47894
47895         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
47896
47897 2009-04-01  Bruno Haible  <bruno@clisp.org>
47898
47899         Rename module 'visibility'.
47900         * modules/lib-symbol-visibility: Renamed from modules/visibility.
47901         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
47902         * doc/gnulib.texi: Update.
47903         * MODULES.html.sh (Misc): Update.
47904         * NEWS: Mention the change.
47905
47906 2009-04-01  Simon Josefsson  <simon@josefsson.org>
47907
47908         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
47909         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
47910         Eric Blake <ebb9@byu.net> for review.
47911         * MODULES.html.sh: Add lib-msvc-compat.
47912         * doc/gnulib.texi: Link to new section.
47913         * m4/ld-output-def.m4: New file.
47914         * doc/ld-output-def.texi: New file.
47915
47916 2009-04-01  Simon Josefsson  <simon@josefsson.org>
47917
47918         Rename ld-version-script to lib-symbol-versions.  Suggested by
47919         Bruno Haible <bruno@clisp.org>.
47920         * modules/ld-version-script: Renamed to lib-symbol-versions.
47921         * doc/ld-version-script.texi: Fix module name.
47922         * MODULES.html.sh: Add lib-symbol-versions.
47923
47924 2009-03-31  Simon Josefsson  <simon@josefsson.org>
47925
47926         * modules/u64-tests: New file.
47927         * tests/test-u64.c: New file.
47928
47929 2009-03-04  Simon Josefsson  <simon@josefsson.org>
47930
47931         * MODULES.html.sh: Mention u64.
47932         * modules/u64: New module.
47933         * modules/crypto/sha512: Depend on u64 module instead of providing
47934         u64.h.
47935
47936 2009-03-27  Eric Blake  <ebb9@byu.net>
47937
47938         test-strerror: make debugging EAI_SYSTEM easier
47939         * modules/getaddrinfo-tests (Depends-on): Add strerror.
47940         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
47941         failure was EAI_SYSTEM.
47942
47943 2009-03-25  Bruno Haible  <bruno@clisp.org>
47944
47945         Fix a problem with --enable-relocatable on Solaris 7.
47946         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
47947         since 2008-02-24.
47948
47949 2009-03-25  Eric Blake  <ebb9@byu.net>
47950
47951         test-sockets: avoid gcc warning
47952         * tests/test-sockets.c (main): Silence compiler warning.
47953
47954 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
47955
47956         New modules nproc, pthread, contributed by Glen Lenker.
47957
47958         * MODULES.html.sh: Add pthread, nproc.
47959         * lib/nproc.c: New file.
47960         * lib/nproc.h: New file.
47961         * lib/pthread.in.h: New file.
47962         * m4/pthread.m4: New file.
47963         * modules/nproc: New file.
47964         * modules/pthread: New file.
47965
47966 2009-03-24  Simon Josefsson  <simon@josefsson.org>
47967
47968         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
47969         New variable.
47970
47971 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
47972
47973         filevercmp: handle simple~ and numbered.~3~ backup suffixes
47974         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
47975         * tests/test-filevercmp.c: Add tests for backup suffixes.
47976
47977 2009-03-24  Simon Josefsson  <simon@josefsson.org>
47978
47979         * modules/stdlib (Depends-on): Add stdint, needed when defining
47980         struct random_data on, for example, HP-UX 10.20.  Reported by
47981         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47982
47983 2009-03-24  Simon Josefsson  <simon@josefsson.org>
47984
47985         * lib/readline.c (readline): Call fflush on stdout after printing
47986         prompt.
47987
47988 2009-03-20  Bruno Haible  <bruno@clisp.org>
47989
47990         Remove dependency from 'close' module to -lws2_32 on native Windows.
47991         * lib/close-hook.h: New file.
47992         * lib/close-hook.c: New file.
47993         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
47994         w32sock.h.
47995         (_gl_close_fd_maybe_socket): Remove function.
47996         (rpl_close): Invoke execute_all_close_hooks instead of
47997         _gl_close_fd_maybe_socket.
47998         * lib/sockets.c: Include close-hook.h, w32sock.h.
47999         (close_fd_maybe_socket): New function, essentially from lib/close.c.
48000         (close_sockets_hook): New variable.
48001         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
48002         (gl_sockets_cleanup): Unregister it.
48003         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
48004         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
48005         * modules/close-hook: New file.
48006         * modules/close (Files): Remove lib/w32sock.h.
48007         (Depends-on): Add close-hook.
48008         (Link): Remove section.
48009         * modules/sockets (Files): Add lib/w32sock.h.
48010         (Depends-on): Add close-hook.
48011         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
48012         invocation.
48013         * NEWS: Mention that LIB_CLOSE is gone.
48014
48015 2009-03-23  Eric Blake  <ebb9@byu.net>
48016
48017         signal-tests: test previous patch
48018         * tests/test-signal.c: New file.
48019         * modules/signal-tests: Likewise.
48020
48021         signal.h: always support 'volatile sig_atomic_t'
48022         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
48023         (gl_SIGNAL_H_DEFAULTS): Add a default.
48024         * modules/signal (Makefile.am): Substitute if needed.
48025         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
48026         users can blindly add volatile.
48027         * doc/posix-headers/signal.texi (signal.h): Document it.
48028         Reported by Matthew Woehlke.
48029
48030 2009-03-23  Jim Meyering  <meyering@redhat.com>
48031
48032         pathmax: PATH_MAX: use pathconf only when available
48033         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
48034         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
48035         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
48036         This avoids a link failure in a PSP cross-compilation environment
48037         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
48038
48039         * lib/vasnprintf.c (divide): Fix typo in comment.
48040
48041 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48042
48043         * gnulib-tool (func_filter_filelist): Fix comment.
48044
48045 2009-03-20  Bruno Haible  <bruno@clisp.org>
48046
48047         Make sockets.h self-contained.
48048         * lib/sockets.c: Include sockets.h first.
48049         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
48050
48051 2009-03-19  Eric Blake  <ebb9@byu.net>
48052
48053         doc: mention more functions added in cygwin 1.7.0
48054         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
48055         addition.
48056         * doc/posix-functions/log2f.texi: Likewise.
48057
48058 2009-03-19  Jim Meyering  <meyering@redhat.com>
48059
48060         fsusage: avoid syntax error due to statement-before-declaration
48061         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
48062         after all declarations.  Reported by Matthew Woehlke in
48063         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
48064
48065 2009-03-18  Eric Blake  <ebb9@byu.net>
48066
48067         build-aux/compile: sync from automake
48068         * build-aux/compile: New file, from automake.
48069         * config/srclist.txt: Mention build-aux/compile.
48070
48071 2009-03-17  Bruno Haible  <bruno@clisp.org>
48072
48073         * lib/git-merge-changelog.c: Fix typo in comment.
48074         Reported by Reuben Thomas <rrt@sc3d.org>.
48075
48076 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
48077
48078         * m4/regex.m4: update and improve help for
48079         --without-included-regex.
48080
48081 2009-03-17  Simon Josefsson  <simon@josefsson.org>
48082
48083         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
48084         failure on missing include files.
48085
48086 2009-03-17  Eric Blake  <ebb9@byu.net>
48087
48088         doc: mention more functions added in cygwin 1.7.0
48089         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
48090         addition.
48091         * doc/posix-functions/fwscanf.texi: Likewise.
48092         * doc/posix-functions/swprintf.texi: Likewise.
48093         * doc/posix-functions/swscanf.texi: Likewise.
48094         * doc/posix-functions/vfwprintf.texi: Likewise.
48095         * doc/posix-functions/vfwscanf.texi: Likewise.
48096         * doc/posix-functions/vswprintf.texi: Likewise.
48097         * doc/posix-functions/vswscanf.texi: Likewise.
48098         * doc/posix-functions/vwprintf.texi: Likewise.
48099         * doc/posix-functions/vwscanf.texi: Likewise.
48100         * doc/posix-functions/wcscasecmp.texi: Likewise.
48101         * doc/posix-functions/wcsdup.texi: Likewise.
48102         * doc/posix-functions/wcsftime.texi: Likewise.
48103         * doc/posix-functions/wcsncasecmp.texi: Likewise.
48104         * doc/posix-functions/wprintf.texi: Likewise.
48105         * doc/posix-functions/wscanf.texi: Likewise.
48106         * doc/glibc-functions/gethostbyname2.texi: Likewise.
48107
48108 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48109
48110         maint.mk: really add $(AM_MAKEFLAGS)
48111         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
48112         was inadvertently omitted in the last commit.
48113         Spotted by Bruno Haible.
48114
48115         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
48116         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
48117         $(AM_MAKEFLAGS)' rather than plain `make'.
48118
48119         gnulib-tool: execute $MAKE not make
48120         * gnulib-tool: Default $MAKE to 'make'.
48121         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
48122         than make.  Initialize $MAKE in the do-autobuild script.
48123
48124         gnulib-tool: use $MAKE not make in generated files
48125         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
48126         make, in generated files.  Initialize $MAKE in the do-autobuild
48127         script.
48128
48129         * top/GNUmakefile (_have-git-version-gen): Fix typo.
48130
48131         GNUmakefile: disable parallelism only for multiple, recursive targets
48132         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
48133         additions in the Makefile.
48134         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
48135         by Automake.
48136         (.NOTPARALLEL): Only disable parallel builds if multiple targets
48137         are listed on the command line and at least one of them is
48138         listed in $(ALL_RECURSIVE_TARGETS).
48139
48140 2009-03-14  Bruno Haible  <bruno@clisp.org>
48141
48142         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
48143         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
48144         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
48145         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
48146         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
48147         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
48148         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
48149         unistr/u8-uctomb.
48150         * modules/unistr/u8-strchr (Depends-on): Likewise.
48151         * modules/unistr/u8-strrchr (Depends-on): Likewise.
48152         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
48153         unistr/u16-uctomb.
48154         * modules/unistr/u16-strchr (Depends-on): Likewise.
48155         * modules/unistr/u16-strrchr (Depends-on): Likewise.
48156
48157 2009-03-12  Bruno Haible  <bruno@clisp.org>
48158
48159         Work around select() bug on Interix 3.5.
48160         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
48161         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
48162         * m4/select.m4: New file.
48163         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
48164         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
48165         * modules/select (Files): Add m4/select.m4.
48166         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
48167         * modules/nanosleep (Depends-on): Add select.
48168         * modules/poll (Depends-on): Likewise.
48169         * doc/posix-functions/select.texi: Mention the Interix bug.
48170         Reported by Markus Duft <mduft@gentoo.org>.
48171
48172         * lib/select.c: Renamed from lib/winsock-select.c.
48173         * modules/select (Files): Add lib/select.c, remove
48174         lib/winsock-select.c.
48175         (configure.ac): Update.
48176
48177 2009-03-12  Jim Meyering  <meyering@redhat.com>
48178
48179         avoid gcc warnings about unused macro definitions
48180         * lib/readtokens.c (STREQ): Remove unused definition.
48181         * lib/xmalloc.c (SIZE_MAX): Likewise.
48182         * lib/openat-die.c (N_): Likewise.
48183         * lib/mountlist.c (SIZE_MAX): Remove definition.
48184         Instead, include <stdint.h>.
48185         * lib/readutmp.c: Likewise.
48186         * modules/readutmp (Depends-on): Add stdint.
48187         * modules/mountlist (Depends-on): Add stdint.
48188         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
48189
48190 2009-03-10  Bruno Haible  <bruno@clisp.org>
48191
48192         Tests for module 'mbmemcasecoll'.
48193         * modules/mbmemcasecoll-tests: New file.
48194         * tests/test-mbmemcasecoll1.sh: New file.
48195         * tests/test-mbmemcasecoll2.sh: New file.
48196         * tests/test-mbmemcasecoll3.sh: New file.
48197         * tests/test-mbmemcasecoll.c: New file.
48198
48199         New module 'mbmemcasecoll'.
48200         * lib/mbmemcasecoll.h: New file.
48201         * lib/mbmemcasecoll.c: New file.
48202         * modules/mbmemcasecoll: New file.
48203
48204         * tests/test-mbmemcasecmp.h: New file, extracted from
48205         tests/test-mbmemcasecmp.c.
48206         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
48207         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
48208         (main): Update.
48209         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
48210
48211 2009-03-09  Bruno Haible  <bruno@clisp.org>
48212
48213         Tests for module 'mbmemcasecmp'.
48214         * modules/mbmemcasecmp-tests: New file.
48215         * tests/test-mbmemcasecmp1.sh: New file.
48216         * tests/test-mbmemcasecmp2.sh: New file.
48217         * tests/test-mbmemcasecmp3.sh: New file.
48218         * tests/test-mbmemcasecmp.c: New file.
48219
48220         New module 'mbmemcasecmp'.
48221         * lib/mbmemcasecmp.h: New file.
48222         * lib/mbmemcasecmp.c: New file.
48223         * modules/mbmemcasecmp: New file.
48224
48225 2009-03-09  Bruno Haible  <bruno@clisp.org>
48226
48227         Tests for module 'unicase/ulc-casecoll'.
48228         * modules/unicase/ulc-casecoll-tests: New file.
48229         * tests/unicase/test-ulc-casecoll1.sh: New file.
48230         * tests/unicase/test-ulc-casecoll2.sh: New file.
48231         * tests/unicase/test-ulc-casecoll.c: New file.
48232
48233         New module 'unicase/ulc-casecoll'.
48234         * lib/unicase.h (ulc_casecoll): New declaration.
48235         * lib/unicase/ulc-casecoll.c: New file.
48236         * modules/unicase/ulc-casecoll: New file.
48237
48238         New module 'unicase/ulc-casexfrm'.
48239         * lib/unicase.h (ulc_casexfrm): New declaration.
48240         * lib/unicase/ulc-casexfrm.c: New file.
48241         * modules/unicase/ulc-casexfrm: New file.
48242
48243 2009-03-09  Bruno Haible  <bruno@clisp.org>
48244
48245         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
48246         invocations.
48247
48248         * m4/mbscasecmp.m4: Remove file.
48249         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
48250         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
48251
48252         * m4/mbscasestr.m4: Remove file.
48253         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
48254         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
48255
48256         * m4/mbschr.m4: Remove file.
48257         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
48258         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
48259
48260         * m4/mbscspn.m4: Remove file.
48261         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
48262         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
48263
48264         * m4/mbslen.m4: Remove file.
48265         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
48266         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
48267
48268         * m4/mbsncasecmp.m4: Remove file.
48269         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
48270         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
48271
48272         * m4/mbsnlen.m4: Remove file.
48273         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
48274         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
48275
48276         * m4/mbspbrk.m4: Remove file.
48277         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
48278         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
48279
48280         * m4/mbspcasecmp.m4: Remove file.
48281         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
48282         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
48283
48284         * m4/mbsrchr.m4: Remove file.
48285         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
48286         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
48287
48288         * m4/mbssep.m4: Remove file.
48289         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
48290         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
48291
48292         * m4/mbsspn.m4: Remove file.
48293         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
48294         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
48295
48296         * m4/mbsstr.m4: Remove file.
48297         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
48298         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
48299
48300         * m4/mbstok_r.m4: Remove file.
48301         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
48302         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
48303
48304         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
48305
48306         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
48307         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
48308
48309         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
48310
48311 2009-03-08  Bruno Haible  <bruno@clisp.org>
48312
48313         Tests for module 'unicase/ulc-casecmp'.
48314         * modules/unicase/ulc-casecmp-tests: New file.
48315         * tests/unicase/test-ulc-casecmp1.sh: New file.
48316         * tests/unicase/test-ulc-casecmp2.sh: New file.
48317         * tests/unicase/test-ulc-casecmp.c: New file.
48318
48319         New module 'unicase/ulc-casecmp'.
48320         * lib/unicase.h (ulc_casecmp): New declaration.
48321         * lib/unicase/ulc-casecmp.c: New file.
48322         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
48323         'const SRC_UNIT *'.
48324         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
48325         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
48326         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
48327         * modules/unicase/ulc-casecmp: New file.
48328
48329         Tests for module 'unicase/u32-is-cased'.
48330         * modules/unicase/u32-is-cased-tests: New file.
48331         * tests/unicase/test-u32-is-cased.c: New file.
48332
48333         Tests for module 'unicase/u16-is-cased'.
48334         * modules/unicase/u16-is-cased-tests: New file.
48335         * tests/unicase/test-u16-is-cased.c: New file.
48336
48337         Tests for module 'unicase/u8-is-cased'.
48338         * modules/unicase/u8-is-cased-tests: New file.
48339         * tests/unicase/test-u8-is-cased.c: New file.
48340         * tests/unicase/test-is-cased.h: New file.
48341
48342         New module 'unicase/u32-is-cased'.
48343         * lib/unicase/u32-is-cased.c: New file.
48344         * modules/unicase/u32-is-cased: New file.
48345
48346         New module 'unicase/u16-is-cased'.
48347         * lib/unicase/u16-is-cased.c: New file.
48348         * modules/unicase/u16-is-cased: New file.
48349
48350         New module 'unicase/u8-is-cased'.
48351         * lib/unicase/u8-is-cased.c: New file.
48352         * lib/unicase/u-is-cased.h: New file.
48353         * modules/unicase/u8-is-cased: New file.
48354
48355         Tests for module 'unicase/u32-is-casefolded'.
48356         * modules/unicase/u32-is-casefolded-tests: New file.
48357         * tests/unicase/test-u32-is-casefolded.c: New file.
48358
48359         Tests for module 'unicase/u16-is-casefolded'.
48360         * modules/unicase/u16-is-casefolded-tests: New file.
48361         * tests/unicase/test-u16-is-casefolded.c: New file.
48362
48363         Tests for module 'unicase/u8-is-casefolded'.
48364         * modules/unicase/u8-is-casefolded-tests: New file.
48365         * tests/unicase/test-u8-is-casefolded.c: New file.
48366         * tests/unicase/test-is-casefolded.h: New file.
48367
48368         New module 'unicase/u32-is-casefolded'.
48369         * lib/unicase/u32-is-casefolded.c: New file.
48370         * modules/unicase/u32-is-casefolded: New file.
48371
48372         New module 'unicase/u16-is-casefolded'.
48373         * lib/unicase/u16-is-casefolded.c: New file.
48374         * modules/unicase/u16-is-casefolded: New file.
48375
48376         New module 'unicase/u8-is-casefolded'.
48377         * lib/unicase/u8-is-casefolded.c: New file.
48378         * modules/unicase/u8-is-casefolded: New file.
48379
48380         Tests for module 'unicase/u32-is-titlecase'.
48381         * modules/unicase/u32-is-titlecase-tests: New file.
48382         * tests/unicase/test-u32-is-titlecase.c: New file.
48383
48384         Tests for module 'unicase/u16-is-titlecase'.
48385         * modules/unicase/u16-is-titlecase-tests: New file.
48386         * tests/unicase/test-u16-is-titlecase.c: New file.
48387
48388         Tests for module 'unicase/u8-is-titlecase'.
48389         * modules/unicase/u8-is-titlecase-tests: New file.
48390         * tests/unicase/test-u8-is-titlecase.c: New file.
48391         * tests/unicase/test-is-titlecase.h: New file.
48392
48393         New module 'unicase/u32-is-titlecase'.
48394         * lib/unicase/u32-is-titlecase.c: New file.
48395         * modules/unicase/u32-is-titlecase: New file.
48396
48397         New module 'unicase/u16-is-titlecase'.
48398         * lib/unicase/u16-is-titlecase.c: New file.
48399         * modules/unicase/u16-is-titlecase: New file.
48400
48401         New module 'unicase/u8-is-titlecase'.
48402         * lib/unicase/u8-is-titlecase.c: New file.
48403         * modules/unicase/u8-is-titlecase: New file.
48404
48405         Tests for module 'unicase/u32-is-lowercase'.
48406         * modules/unicase/u32-is-lowercase-tests: New file.
48407         * tests/unicase/test-u32-is-lowercase.c: New file.
48408
48409         Tests for module 'unicase/u16-is-lowercase'.
48410         * modules/unicase/u16-is-lowercase-tests: New file.
48411         * tests/unicase/test-u16-is-lowercase.c: New file.
48412
48413         Tests for module 'unicase/u8-is-lowercase'.
48414         * modules/unicase/u8-is-lowercase-tests: New file.
48415         * tests/unicase/test-u8-is-lowercase.c: New file.
48416         * tests/unicase/test-is-lowercase.h: New file.
48417
48418         New module 'unicase/u32-is-lowercase'.
48419         * lib/unicase/u32-is-lowercase.c: New file.
48420         * modules/unicase/u32-is-lowercase: New file.
48421
48422         New module 'unicase/u16-is-lowercase'.
48423         * lib/unicase/u16-is-lowercase.c: New file.
48424         * modules/unicase/u16-is-lowercase: New file.
48425
48426         New module 'unicase/u8-is-lowercase'.
48427         * lib/unicase/u8-is-lowercase.c: New file.
48428         * modules/unicase/u8-is-lowercase: New file.
48429
48430         Tests for module 'unicase/u32-is-uppercase'.
48431         * modules/unicase/u32-is-uppercase-tests: New file.
48432         * tests/unicase/test-u32-is-uppercase.c: New file.
48433
48434         Tests for module 'unicase/u16-is-uppercase'.
48435         * modules/unicase/u16-is-uppercase-tests: New file.
48436         * tests/unicase/test-u16-is-uppercase.c: New file.
48437
48438         Tests for module 'unicase/u8-is-uppercase'.
48439         * modules/unicase/u8-is-uppercase-tests: New file.
48440         * tests/unicase/test-u8-is-uppercase.c: New file.
48441         * tests/unicase/test-is-uppercase.h: New file.
48442
48443         New module 'unicase/u32-is-uppercase'.
48444         * lib/unicase/u32-is-uppercase.c: New file.
48445         * modules/unicase/u32-is-uppercase: New file.
48446
48447         New module 'unicase/u16-is-uppercase'.
48448         * lib/unicase/u16-is-uppercase.c: New file.
48449         * modules/unicase/u16-is-uppercase: New file.
48450
48451         New module 'unicase/u8-is-uppercase'.
48452         * lib/unicase/u8-is-uppercase.c: New file.
48453         * modules/unicase/u8-is-uppercase: New file.
48454
48455         New module 'unicase/u32-is-invariant'.
48456         * lib/unicase/u32-is-invariant.c: New file.
48457         * modules/unicase/u32-is-invariant: New file.
48458
48459         New module 'unicase/u16-is-invariant'.
48460         * lib/unicase/u16-is-invariant.c: New file.
48461         * modules/unicase/u16-is-invariant: New file.
48462
48463         New module 'unicase/u8-is-invariant'.
48464         * lib/unicase/u8-is-invariant.c: New file.
48465         * lib/unicase/invariant.h: New file.
48466         * lib/unicase/u-is-invariant.h: New file.
48467         * modules/unicase/u8-is-invariant: New file.
48468
48469         Tests for module 'unicase/u32-casecoll'.
48470         * modules/unicase/u32-casecoll-tests: New file.
48471         * tests/unicase/test-u32-casecoll.c: New file.
48472
48473         Tests for module 'unicase/u16-casecoll'.
48474         * modules/unicase/u16-casecoll-tests: New file.
48475         * tests/unicase/test-u16-casecoll.c: New file.
48476
48477         Tests for module 'unicase/u8-casecoll'.
48478         * modules/unicase/u8-casecoll-tests: New file.
48479         * tests/unicase/test-u8-casecoll.c: New file.
48480
48481         New module 'unicase/u32-casecoll'.
48482         * lib/unicase/u32-casecoll.c: New file.
48483         * modules/unicase/u32-casecoll: New file.
48484
48485         New module 'unicase/u16-casecoll'.
48486         * lib/unicase/u16-casecoll.c: New file.
48487         * modules/unicase/u16-casecoll: New file.
48488
48489         New module 'unicase/u8-casecoll'.
48490         * lib/unicase/u8-casecoll.c: New file.
48491         * lib/unicase/u-casecoll.h: New file.
48492         * modules/unicase/u8-casecoll: New file.
48493
48494         New module 'unicase/u32-casexfrm'.
48495         * lib/unicase/u32-casexfrm.c: New file.
48496         * modules/unicase/u32-casexfrm: New file.
48497
48498         New module 'unicase/u16-casexfrm'.
48499         * lib/unicase/u16-casexfrm.c: New file.
48500         * modules/unicase/u16-casexfrm: New file.
48501
48502         New module 'unicase/u8-casexfrm'.
48503         * lib/unicase/u8-casexfrm.c: New file.
48504         * lib/unicase/u-casexfrm.h: New file.
48505         * modules/unicase/u8-casexfrm: New file.
48506
48507         Tests for module 'unicase/u32-casecmp'.
48508         * modules/unicase/u32-casecmp-tests: New file.
48509         * tests/unicase/test-u32-casecmp.c: New file.
48510
48511         Tests for module 'unicase/u16-casecmp'.
48512         * modules/unicase/u16-casecmp-tests: New file.
48513         * tests/unicase/test-u16-casecmp.c: New file.
48514
48515         Tests for module 'unicase/u8-casecmp'.
48516         * modules/unicase/u8-casecmp-tests: New file.
48517         * tests/unicase/test-u8-casecmp.c: New file.
48518         * tests/unicase/test-casecmp.h: New file.
48519
48520         New module 'unicase/u32-casecmp'.
48521         * lib/unicase/u32-casecmp.c: New file.
48522         * modules/unicase/u32-casecmp: New file.
48523
48524         New module 'unicase/u16-casecmp'.
48525         * lib/unicase/u16-casecmp.c: New file.
48526         * modules/unicase/u16-casecmp: New file.
48527
48528         New module 'unicase/u8-casecmp'.
48529         * lib/unicase/u8-casecmp.c: New file.
48530         * lib/unicase/u-casecmp.h: New file.
48531         * modules/unicase/u8-casecmp: New file.
48532
48533         Tests for module 'unicase/u32-casefold'.
48534         * modules/unicase/u32-casefold-tests: New file.
48535         * tests/unicase/test-u32-casefold.c: New file.
48536
48537         Tests for module 'unicase/u16-casefold'.
48538         * modules/unicase/u16-casefold-tests: New file.
48539         * tests/unicase/test-u16-casefold.c: New file.
48540
48541         Tests for module 'unicase/u8-casefold'.
48542         * modules/unicase/u8-casefold-tests: New file.
48543         * tests/unicase/test-u8-casefold.c: New file.
48544
48545         New module 'unicase/u32-casefold'.
48546         * lib/unicase/u32-casefold.c: New file.
48547         * modules/unicase/u32-casefold: New file.
48548
48549         New module 'unicase/u16-casefold'.
48550         * lib/unicase/u16-casefold.c: New file.
48551         * modules/unicase/u16-casefold: New file.
48552
48553         New module 'unicase/u8-casefold'.
48554         * lib/unicase/u8-casefold.c: New file.
48555         * lib/unicase/u-casefold.h: New file.
48556         * modules/unicase/u8-casefold: New file.
48557
48558         New module 'unicase/tocasefold'.
48559         * lib/unicase/casefold.h: New file.
48560         * lib/unicase/tocasefold.c: New file.
48561         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
48562         * modules/unicase/tocasefold: New file.
48563
48564         Tests for module 'unicase/u32-totitle'.
48565         * modules/unicase/u32-totitle-tests: New file.
48566         * tests/unicase/test-u32-totitle.c: New file.
48567
48568         Tests for module 'unicase/u16-totitle'.
48569         * modules/unicase/u16-totitle-tests: New file.
48570         * tests/unicase/test-u16-totitle.c: New file.
48571
48572         Tests for module 'unicase/u8-totitle'.
48573         * modules/unicase/u8-totitle-tests: New file.
48574         * tests/unicase/test-u8-totitle.c: New file.
48575
48576         New module 'unicase/u32-totitle'.
48577         * lib/unicase/u32-totitle.c: New file.
48578         * modules/unicase/u32-totitle: New file.
48579
48580         New module 'unicase/u16-totitle'.
48581         * lib/unicase/u16-totitle.c: New file.
48582         * modules/unicase/u16-totitle: New file.
48583
48584         New module 'unicase/u8-totitle'.
48585         * lib/unicase/u8-totitle.c: New file.
48586         * lib/unicase/u-totitle.h: New file.
48587         * modules/unicase/u8-totitle: New file.
48588
48589         Tests for module 'unicase/u32-tolower'.
48590         * modules/unicase/u32-tolower-tests: New file.
48591         * tests/unicase/test-u32-tolower.c: New file.
48592
48593         Tests for module 'unicase/u16-tolower'.
48594         * modules/unicase/u16-tolower-tests: New file.
48595         * tests/unicase/test-u16-tolower.c: New file.
48596
48597         Tests for module 'unicase/u8-tolower'.
48598         * modules/unicase/u8-tolower-tests: New file.
48599         * tests/unicase/test-u8-tolower.c: New file.
48600
48601         New module 'unicase/u32-tolower'.
48602         * lib/unicase/u32-tolower.c: New file.
48603         * modules/unicase/u32-tolower: New file.
48604
48605         New module 'unicase/u16-tolower'.
48606         * lib/unicase/u16-tolower.c: New file.
48607         * modules/unicase/u16-tolower: New file.
48608
48609         New module 'unicase/u8-tolower'.
48610         * lib/unicase/u8-tolower.c: New file.
48611         * modules/unicase/u8-tolower: New file.
48612
48613         Tests for module 'unicase/u32-toupper'.
48614         * modules/unicase/u32-toupper-tests: New file.
48615         * tests/unicase/test-u32-toupper.c: New file.
48616
48617         Tests for module 'unicase/u16-toupper'.
48618         * modules/unicase/u16-toupper-tests: New file.
48619         * tests/unicase/test-u16-toupper.c: New file.
48620
48621         Tests for module 'unicase/u8-toupper'.
48622         * modules/unicase/u8-toupper-tests: New file.
48623         * tests/unicase/test-u8-toupper.c: New file.
48624
48625         New module 'unicase/u32-toupper'.
48626         * lib/unicase/u32-toupper.c: New file.
48627         * modules/unicase/u32-toupper: New file.
48628
48629         New module 'unicase/u16-toupper'.
48630         * lib/unicase/u16-toupper.c: New file.
48631         * modules/unicase/u16-toupper: New file.
48632
48633         New module 'unicase/u8-toupper'.
48634         * lib/unicase/u8-toupper.c: New file.
48635         * modules/unicase/u8-toupper: New file.
48636
48637         New module 'unicase/u32-casemap'.
48638         * lib/unicase/u32-casemap.c: New file.
48639         * modules/unicase/u32-casemap: New file.
48640
48641         New module 'unicase/u16-casemap'.
48642         * lib/unicase/u16-casemap.c: New file.
48643         * modules/unicase/u16-casemap: New file.
48644
48645         New module 'unicase/u8-casemap'.
48646         * lib/unicase/unicasemap.h: New file.
48647         * lib/unicase/u8-casemap.c: New file.
48648         * lib/unicase/u-casemap.h: New file.
48649         * modules/unicase/u8-casemap: New file.
48650
48651         New module 'unicase/special-casing'.
48652         * lib/unicase/special-casing.h: New file.
48653         * lib/unicase/special-casing.c: New file.
48654         * lib/unicase/special-casing-table.gperf: New file, generated by
48655         gen-uni-tables.c.
48656         * modules/unicase/special-casing: New file.
48657
48658         Tests for module 'unicase/locale-language'.
48659         * modules/unicase/locale-language-tests: New file.
48660         * tests/unicase/test-locale-language.sh: New file.
48661         * tests/unicase/test-locale-language.c: New file.
48662
48663         New module 'unicase/locale-language'.
48664         * lib/unicase/locale-language.c: New file.
48665         * lib/unicase/locale-languages.gperf: New file.
48666         * modules/unicase/locale-language: New file.
48667
48668         Generate more tables for case conversion and case folding.
48669         * lib/gen-uni-tables.c (SCC_*): New enum items.
48670         (struct special_casing_rule): New type.
48671         (casing_rules, num_casing_rules, allocated_casing_rules): New
48672         variables.
48673         (add_casing_rule, fill_casing_rules): New functions.
48674         (struct casefold_rule): New type.
48675         (casefolding_rules, num_casefolding_rules,
48676         allocated_casefolding_rules): New variables.
48677         (fill_casefolding_rules): New function.
48678         (unicode_casefold): New variable.
48679         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
48680         sort_casing_rules, output_casing_rules): New functions.
48681         (main): Accept to more arguments: SpecialCasing.txt and
48682         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
48683         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
48684         Output mapping for casefolding.
48685
48686         * lib/unicase.h: Include stdbool.h, uninorm.h.
48687         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
48688         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
48689         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
48690         arguments.
48691         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
48692         resultp arguments.
48693         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
48694         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
48695         resultp arguments.
48696         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
48697         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
48698         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
48699         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
48700         declarations.
48701         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
48702
48703 2009-03-08  Bruno Haible  <bruno@clisp.org>
48704
48705         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
48706         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
48707         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
48708         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
48709
48710 2009-03-07  Bruno Haible  <bruno@clisp.org>
48711
48712         Adjust u*_normcmp, u*_normcoll API.
48713         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
48714         u16_normcoll, u32_normcoll): Change failure conventions.
48715         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
48716         errno and return -1.
48717         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
48718
48719 2009-03-07  Bruno Haible  <bruno@clisp.org>
48720
48721         Tests for module 'uninorm/u32-normcoll'.
48722         * modules/uninorm/u32-normcoll-tests: New file.
48723         * tests/uninorm/test-u32-normcoll.c: New file.
48724
48725         Tests for module 'uninorm/u16-normcoll'.
48726         * modules/uninorm/u16-normcoll-tests: New file.
48727         * tests/uninorm/test-u16-normcoll.c: New file.
48728
48729         Tests for module 'uninorm/u8-normcoll'.
48730         * modules/uninorm/u8-normcoll-tests: New file.
48731         * tests/uninorm/test-u8-normcoll.c: New file.
48732
48733 2009-03-07  Bruno Haible  <bruno@clisp.org>
48734
48735         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
48736         tests/uninorm/test-u32-normcmp.c.
48737         * tests/uninorm/test-u32-normcmp.c: Include it.
48738         (test_nonascii): New function, extracted from main. Add some more
48739         tests.
48740         (main): Invoke test_ascii and test_nonascii.
48741         * modules/uninorm/u32-normcmp-tests (Files): Add
48742         tests/uninorm/test-u32-normcmp.h.
48743         (Depends-on): Remove uninorm/u32-normcmp.
48744
48745         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
48746         tests/uninorm/test-u16-normcmp.c.
48747         * tests/uninorm/test-u16-normcmp.c: Include it.
48748         (test_nonascii): New function, extracted from main. Add some more
48749         tests.
48750         (main): Invoke test_ascii and test_nonascii.
48751         * modules/uninorm/u16-normcmp-tests (Files): Add
48752         tests/uninorm/test-u16-normcmp.h.
48753         (Depends-on): Remove uninorm/u16-normcmp.
48754
48755         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
48756         tests/uninorm/test-u8-normcmp.c.
48757         * tests/uninorm/test-u8-normcmp.c: Include it.
48758         (test_nonascii): New function, extracted from main. Add some more
48759         tests.
48760         (main): Invoke test_ascii and test_nonascii.
48761         * modules/uninorm/u8-normcmp-tests (Files): Add
48762         tests/uninorm/test-u8-normcmp.h.
48763         (Depends-on): Remove uninorm/u8-normcmp.
48764
48765 2009-03-07  Bruno Haible  <bruno@clisp.org>
48766
48767         New module 'uninorm/u32-normcoll'.
48768         * lib/uninorm/u32-normcoll.c: New file.
48769         * modules/uninorm/u32-normcoll: New file.
48770
48771         New module 'uninorm/u16-normcoll'.
48772         * lib/uninorm/u16-normcoll.c: New file.
48773         * modules/uninorm/u16-normcoll: New file.
48774
48775         New module 'uninorm/u8-normcoll'.
48776         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
48777         declarations.
48778         * lib/uninorm/u8-normcoll.c: New file.
48779         * lib/uninorm/u-normcoll.h: New file.
48780         * modules/uninorm/u8-normcoll: New file.
48781
48782         New module 'uninorm/u32-normxfrm'.
48783         * lib/uninorm/u32-normxfrm.c: New file.
48784         * modules/uninorm/u32-normxfrm: New file.
48785
48786         New module 'uninorm/u16-normxfrm'.
48787         * lib/uninorm/u16-normxfrm.c: New file.
48788         * modules/uninorm/u16-normxfrm: New file.
48789
48790         New module 'uninorm/u8-normxfrm'.
48791         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
48792         declarations.
48793         * lib/uninorm/u8-normxfrm.c: New file.
48794         * lib/uninorm/u-normxfrm.h: New file.
48795         * modules/uninorm/u8-normxfrm: New file.
48796
48797 2009-03-07  Bruno Haible  <bruno@clisp.org>
48798
48799         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
48800         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
48801         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
48802
48803 2009-03-07  Bruno Haible  <bruno@clisp.org>
48804
48805         New module 'memxfrm'.
48806         * lib/memxfrm.h: New file.
48807         * lib/memxfrm.c: New file.
48808         * modules/memxfrm: New file.
48809
48810 2009-03-07  Bruno Haible  <bruno@clisp.org>
48811
48812         New module 'memcmp2'.
48813         * lib/memcmp2.h: New file.
48814         * lib/memcmp2.c: New file.
48815         * modules/memcmp2: New file.
48816
48817 2009-03-07  Bruno Haible  <bruno@clisp.org>
48818
48819         Tests for module 'uninorm/decomposing-form'.
48820         * modules/uninorm/decomposing-form-tests: New file.
48821         * tests/uninorm/test-decomposing-form.c: New file.
48822
48823         New module 'uninorm/decomposing-form'.
48824         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
48825         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
48826         Add 'decomposing_variant' field.
48827         * lib/uninorm/decomposing-form.c: New file.
48828         * lib/uninorm/nfc.c (uninorm_nfc): Update.
48829         * lib/uninorm/nfd.c (uninorm_nfd): Update.
48830         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
48831         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
48832         * modules/uninorm/decomposing-form: New file.
48833         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
48834         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
48835
48836 2009-03-07  Bruno Haible  <bruno@clisp.org>
48837
48838         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
48839         strings.
48840
48841 2009-03-06  Bruno Haible  <bruno@clisp.org>
48842
48843         Tests for module 'uninorm/u32-normcmp'.
48844         * tests/uninorm/test-u32-normcmp.c: New file.
48845         * modules/uninorm/u32-normcmp-tests: New file.
48846
48847         Tests for module 'uninorm/u16-normcmp'.
48848         * tests/uninorm/test-u16-normcmp.c: New file.
48849         * modules/uninorm/u16-normcmp-tests: New file.
48850
48851         Tests for module 'uninorm/u8-normcmp'.
48852         * tests/uninorm/test-u8-normcmp.c: New file.
48853         * modules/uninorm/u8-normcmp-tests: New file.
48854
48855         New module 'uninorm/u32-normcmp'.
48856         * lib/uninorm/u32-normcmp.c: New file.
48857         * modules/uninorm/u32-normcmp: New file.
48858
48859         New module 'uninorm/u16-normcmp'.
48860         * lib/uninorm/u16-normcmp.c: New file.
48861         * modules/uninorm/u16-normcmp: New file.
48862
48863         New module 'uninorm/u8-normcmp'.
48864         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
48865         declarations.
48866         * lib/uninorm/u8-normcmp.c: New file.
48867         * lib/uninorm/u-normcmp.h: New file.
48868         * modules/uninorm/u8-normcmp: New file.
48869
48870 2009-03-06  Bruno Haible  <bruno@clisp.org>
48871
48872         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
48873         Reported by Eric Blake.
48874
48875 2009-03-06  Eric Blake  <ebb9@byu.net>
48876             Bruno Haible  <bruno@clisp.org>
48877
48878         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
48879         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
48880         condition.
48881         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
48882         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
48883         condition.
48884         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
48885
48886 2009-03-06  Eric Blake  <ebb9@byu.net>
48887
48888         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
48889         to avoid compiler warnings.
48890         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
48891
48892 2009-03-05  Bruno Haible  <bruno@clisp.org>
48893
48894         * tests/test-ftell.c (main): Disable test beyond end of file on
48895         FreeMiNT.
48896         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
48897
48898 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
48899
48900         * lib/filevercmp.c: Move hidden files up in ordering.
48901         * tests/test-filevercmp.c: Add tests for hidden files.
48902
48903 2009-03-04  Bruno Haible  <bruno@clisp.org>
48904
48905         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
48906         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
48907         AM_CFLAGS.
48908         Reported by Simon Josefsson.
48909
48910 2009-03-03  Bruno Haible  <bruno@clisp.org>
48911
48912         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
48913         Reported by Simon Josefsson.
48914
48915         * doc/ld-version-script.texi: Update node reference.
48916
48917 2009-03-03  Bruno Haible  <bruno@clisp.org>
48918
48919         * modules/visibility (License): Change to 'unlimited'.
48920         Suggested by Simon Josefsson.
48921
48922 2009-03-03  Jim Meyering  <meyering@redhat.com>
48923
48924         unlinkdir: cannot_unlink_dir may modify process state
48925         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
48926         it's neither thread-safe nor appropriate for use in a library.
48927
48928 2009-03-03  Eric Blake  <ebb9@byu.net>
48929
48930         test-closein: silence test under Darwin
48931         * tests/test-closein.sh: Ignore stderr from cat, since we don't
48932         care if it dies from EPIPE or EBADF.
48933
48934 2009-03-03  Bruno Haible  <bruno@clisp.org>
48935
48936         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
48937         earlier.
48938         * doc/visibility.texi: Fix @node and @section.
48939
48940 2009-03-03  Simon Josefsson  <simon@josefsson.org>
48941
48942         * doc/gnulib.texi: Link to sections for ld version script and
48943         visibility.
48944         * doc/visibility.texi: Add @node and @section.
48945         * modules/ld-version-script: New module.
48946         * m4/ld-version-script.m4: New file.
48947         * doc/ld-version-script.texi: New file.
48948
48949 2009-03-02  David Lutterkort  <lutter@redhat.com>
48950
48951         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
48952         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48953
48954 2009-03-02  Bruno Haible  <bruno@clisp.org>
48955
48956         * doc/visibility.texi: Mention libtool's -export-symbols option.
48957
48958 2009-03-02  Jim Meyering  <meyering@redhat.com>
48959
48960         announce-gen: new option: --no-print-checksums
48961         * build-aux/announce-gen (usage): Describe it.
48962         (print_checksums): Print a newline here, not in the [*] footnote.
48963         (main): Honor it.
48964
48965 2009-03-01  Bruno Haible  <bruno@clisp.org>
48966
48967         Use socklen_t in the native Windows replacements prototypes.
48968         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
48969         instead of 'int'.
48970         * lib/getsockopt.c (rpl_getsockopt): Likewise.
48971         * lib/setsockopt.c (rpl_setsockopt): Likewise.
48972         * modules/getsockopt (Depends-on): Add socklen.
48973         * modules/setsockopt (Depends-on): Add socklen.
48974
48975 2009-03-01  Bruno Haible  <bruno@clisp.org>
48976
48977         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
48978         least 4.2.
48979
48980 2009-03-01  Eric Blake  <ebb9@byu.net>
48981             Bruno Haible  <bruno@clisp.org>
48982
48983         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
48984         error messages.
48985         * lib/wait-process.c (wait_subprocess): Omit error message about
48986         deadly signal sent to the child of termsigp != NULL.
48987
48988 2009-03-01  Eric Blake  <ebb9@byu.net>
48989
48990         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
48991
48992 2009-03-01  Bruno Haible  <bruno@clisp.org>
48993
48994         Avoid a gcc warning.
48995         * tests/test-sched.c (b): Make global.
48996         Reported by Eric Blake.
48997
48998 2009-01-19  Martin Lambers  <marlam@marlam.de>
48999
49000         Provide POSIX semantics for socket timeout options on W32.
49001         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
49002         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
49003         * modules/setsockopt: Depend on sys_time module for struct timeval.
49004         * modules/getsockopt: Depend on sys_time module for struct timeval.
49005
49006 2009-03-01  Simon Josefsson  <simon@josefsson.org>
49007
49008         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
49009         __USE_GNU, for consistency with netdb.in.h.
49010         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
49011
49012 2009-03-01  Bruno Haible  <bruno@clisp.org>
49013
49014         More support for FreeMiNT.
49015         * lib/fseeko.c (rpl_fseeko): Complete last commit.
49016         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
49017
49018 2009-03-01  Bruno Haible  <bruno@clisp.org>
49019
49020         More support for FreeMiNT.
49021         * lib/fpurge.c (fpurge): Correct last commit.
49022         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
49023
49024 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49025
49026         Fix unportable awk script in vc-list-files.
49027         * build-aux/vc-list-files: In the replacement awk script, use
49028         substr with a second argument of 1, not zero.
49029         Report by Simon Josefsson.
49030
49031 2009-02-28  Bruno Haible  <bruno@clisp.org>
49032
49033         More support for FreeMiNT.
49034         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
49035         to FreeMiNT today.
49036         * lib/fwriting.c (fwriting): Likewise.
49037         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
49038
49039 2009-02-28  Bruno Haible  <bruno@clisp.org>
49040
49041         * tests/test-freadseek.c (main): Disable test beyond end of file on
49042         FreeMiNT.
49043         * tests/test-ftello.c (main): Likewise.
49044         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
49045
49046 2009-02-28  Bruno Haible  <bruno@clisp.org>
49047
49048         Add tentative support for FreeMiNT.
49049         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
49050         * lib/fpurge.c (fpurge): Likewise.
49051         * lib/freadable.c (freadable): Likewise.
49052         * lib/freading.c (freading): Likewise.
49053         * lib/freadptr.c (freadptr): Likewise.
49054         * lib/freadseek.c (freadptrinc): Likewise.
49055         * lib/fseeko.c (rpl_fseeko): Likewise.
49056         * lib/fseterr.c (fseterr): Likewise.
49057         * lib/fwritable.c (fwritable): Likewise.
49058         * lib/fwriting.c (fwriting): Likewise.
49059         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
49060         Hourihane.
49061         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
49062
49063 2009-02-28  Bruno Haible  <bruno@clisp.org>
49064
49065         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
49066         SIGCHLD.
49067         Reported by Jim Meyering.
49068
49069 2009-02-28  Bruno Haible  <bruno@clisp.org>
49070
49071         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
49072         Mention the results of these tests on various platforms.
49073         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
49074         order.
49075         * doc/posix-functions/printf.texi: Likewise.
49076         * doc/posix-functions/snprintf.texi: Likewise.
49077         * doc/posix-functions/sprintf.texi: Likewise.
49078         * doc/posix-functions/vfprintf.texi: Likewise.
49079         * doc/posix-functions/vprintf.texi: Likewise.
49080         * doc/posix-functions/vsnprintf.texi: Likewise.
49081         * doc/posix-functions/vsprintf.texi: Likewise.
49082         * doc/glibc-functions/obstack_printf.texi: Likewise.
49083         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
49084
49085 2009-02-28  Bruno Haible  <bruno@clisp.org>
49086
49087         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
49088         Reported by Loïc Minier <lool@dooz.org>.
49089
49090 2009-02-27  Bruno Haible  <bruno@clisp.org>
49091
49092         * gnulib-tool (func_import): Make the sed expression used to create the
49093         sed script for updating the .gitignore file POSIX compliant.
49094         Reported by Eric Blake.
49095
49096 2009-02-27  Bruno Haible  <bruno@clisp.org>
49097
49098         * gnulib-tool (sed): Don't alias as "sed --posix".
49099         Reported by Eric Blake.
49100
49101 2009-02-27  Bruno Haible  <bruno@clisp.org>
49102
49103         Avoid test link errors.
49104         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
49105         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
49106         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
49107         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
49108         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49109
49110 2009-02-27  Bruno Haible  <bruno@clisp.org>
49111
49112         Avoid spurious "(cached)" in configure output.
49113         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
49114         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
49115         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
49116         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
49117         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
49118         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
49119         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
49120         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
49121         Reported by Eric Blake.
49122
49123 2009-02-27  Eric Blake  <ebb9@byu.net>
49124
49125         printf: fix regression in previous patch
49126         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
49127
49128 2009-02-27  Bruno Haible  <bruno@clisp.org>
49129
49130         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
49131         value.
49132         * lib/stdint.in.h: Likewise.
49133         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
49134
49135 2009-02-27  Eric Blake  <ebb9@byu.net>
49136
49137         doc: mention more functions added in cygwin 1.7.0
49138         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
49139         addition.
49140         * doc/posix-functions/open_wmemstream.texi: Likewise.
49141         * doc/posix-functions/wcsnlen.texi: Likewise.
49142         * doc/posix-functions/wcsnrtombs.texi: Likewise.
49143         * doc/posix-functions/wcstod.texi: Likewise.
49144         * doc/posix-functions/wcstof.texi: Likewise.
49145         * doc/posix-functions/wcstoimax.texi: Likewise.
49146         * doc/posix-functions/wcstok.texi: Likewise.
49147         * doc/posix-functions/wcstoumax.texi: Likewise.
49148
49149         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
49150         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
49151         * doc/posix-functions/fprintf.texi: Update.
49152         * doc/posix-functions/printf.texi: Update.
49153         * doc/posix-functions/snprintf.texi: Update.
49154         * doc/posix-functions/sprintf.texi: Update.
49155         * doc/posix-functions/vfprintf.texi: Update.
49156         * doc/posix-functions/vprintf.texi: Update.
49157         * doc/posix-functions/vsnprintf.texi: Update.
49158         * doc/posix-functions/vsprintf.texi: Update.
49159         * doc/glibc-functions/obstack_printf.texi: Update.
49160         * doc/glibc-functions/obstack_vprintf.texi: Update.
49161
49162 2009-02-26  Eric Blake  <ebb9@byu.net>
49163
49164         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
49165         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
49166         compilation bug by using runtime conversion.
49167         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
49168         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
49169         * modules/ceill-tests (Files): Use nan.h.
49170         * modules/floorl-tests (Files): Likewise.
49171         * modules/frexpl-tests (Files): Likewise.
49172         * modules/isnanl-tests (Files): Likewise.
49173         * modules/ldexpl-tests (Files): Likewise.
49174         * modules/roundl-tests (Files): Likewise.
49175         * modules/truncl-tests (Files): Likewise.
49176         * tests/test-ceill.c (main): Use a working NaN.
49177         * tests/test-floorl.c (main): Likewise.
49178         * tests/test-frexpl.c (main): Likewise.
49179         * tests/test-isnan.c (test_long_double): Likewise.
49180         * tests/test-isnanl.h (main): Likewise.
49181         * tests/test-ldexpl.h (main): Likewise.
49182         * tests/test-roundl.h (main): Likewise.
49183         * tests/test-truncl.h (main): Likewise.
49184         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
49185
49186 2009-02-26  Eric Blake  <ebb9@byu.net>
49187             Bruno Haible  <bruno@clisp.org>
49188
49189         Work around a *printf bug with %ls on Solaris.
49190         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
49191         precision is specified, sprintf stops converting the wide string
49192         argument when the number of bytes that have been produced by this
49193         conversion equals or exceeds the precision.
49194         * doc/posix-functions/fprintf.texi: Update.
49195         * doc/posix-functions/printf.texi: Update.
49196         * doc/posix-functions/snprintf.texi: Update.
49197         * doc/posix-functions/sprintf.texi: Update.
49198         * doc/posix-functions/vfprintf.texi: Update.
49199         * doc/posix-functions/vprintf.texi: Update.
49200         * doc/posix-functions/vsnprintf.texi: Update.
49201         * doc/posix-functions/vsprintf.texi: Update.
49202         * doc/glibc-functions/obstack_printf.texi: Update.
49203         * doc/glibc-functions/obstack_vprintf.texi: Update.
49204
49205 2009-02-26  Eric Blake  <ebb9@byu.net>
49206
49207         stdlib: favor compiler check of random.h
49208         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
49209         to avoid an ObjC random.h installed by Swarm.
49210
49211 2009-02-26  Bruno Haible  <bruno@clisp.org>
49212
49213         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
49214         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
49215         Reported by Gary V. Vaughan <gary@gnu.org>.
49216
49217 2009-02-26  Bruno Haible  <bruno@clisp.org>
49218
49219         Fix *printf behaviour regarding the %ls directive.
49220         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
49221         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
49222         NEED_PRINTF_DIRECTIVE_LS.
49223         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
49224         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
49225         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49226         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
49227         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
49228         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
49229         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
49230         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49231         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49232         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49233         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49234         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
49235         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49236         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49237         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49238         * doc/posix-functions/fprintf.texi: Update.
49239         * doc/posix-functions/printf.texi: Update.
49240         * doc/posix-functions/snprintf.texi: Update.
49241         * doc/posix-functions/sprintf.texi: Update.
49242         * doc/posix-functions/vfprintf.texi: Update.
49243         * doc/posix-functions/vprintf.texi: Update.
49244         * doc/posix-functions/vsnprintf.texi: Update.
49245         * doc/posix-functions/vsprintf.texi: Update.
49246         * doc/glibc-functions/obstack_printf.texi: Update.
49247         * doc/glibc-functions/obstack_vprintf.texi: Update.
49248         Reported by Eric Blake.
49249
49250 2009-02-25  Bruno Haible  <bruno@clisp.org>
49251
49252         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
49253         with known value.
49254         Reported by Gary V. Vaughan <gary@gnu.org>.
49255
49256 2009-02-25  Bruno Haible  <bruno@clisp.org>
49257
49258         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
49259         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
49260         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
49261         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
49262         Reported by Gary V. Vaughan <gary@gnu.org>.
49263
49264 2009-02-25  Bruno Haible  <bruno@clisp.org>
49265
49266         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
49267         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
49268         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
49269         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
49270         Reported by Gary V. Vaughan <gary@gnu.org>.
49271
49272 2009-02-25  Eric Blake  <ebb9@byu.net>
49273
49274         tests: skip fseek/ftell tests if ungetc is broken
49275         * m4/ungetc.m4: New file.
49276         * modules/fseek-tests: Split test, so ungetc dependency is
49277         separate from rest of test.
49278         * modules/fseeko-tests: Likewise.
49279         * modules/ftell-tests: Likewise.
49280         * modules/ftello-tests: Likewise.
49281         * tests/test-fseek.c (main): Isolate ungetc dependency.
49282         * tests/test-fseeko.c (main): Likewise.
49283         * tests/test-ftell.c (main): Likewise.
49284         * tests/test-ftello.c (main): Likewise.
49285         * tests/test-fseek2.sh: New file.
49286         * tests/test-fseeko2.sh: Likewise.
49287         * tests/test-ftell2.sh: Likewise.
49288         * tests/test-ftello2.sh: Likewise.
49289
49290 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
49291
49292         test-getaddrinfo: fix usage of skip return code 77
49293         * tests/test-gettaddrinfo.c: Return skip code 77 only
49294         for first occurrence of skip (4x77 is not 77)
49295
49296 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
49297
49298         strtod: avoid C99 decl-after-statement
49299         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
49300
49301 2009-02-24  Eric Blake  <ebb9@byu.net>
49302
49303         strtod: detect HP-UX 11.31 bug
49304         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
49305         Reported by Gary V. Vaughan.
49306
49307 2009-02-23  Bruno Haible  <bruno@clisp.org>
49308
49309         Fix invalid read past end of memory block.
49310         * lib/vasnprintf.c (DCHAR_SET): Define.
49311         (local_wcslen): Define only when needed.
49312         (local_strnlen, local_wcsnlen): New functions.
49313         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
49314         directives that involve a conversion ourselves.
49315         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
49316         wcsnlen, mbrtowc, wcrtomb.
49317         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
49318         * tests/test-vasprintf-posix.c (test_function): Likewise.
49319         * tests/test-snprintf-posix.h (test_function): Likewise.
49320         * tests/test-sprintf-posix.h (test_function): Likewise.
49321         Reported by Ben Pfaff <blp@cs.stanford.edu>.
49322
49323 2009-02-22  Bruno Haible  <bruno@clisp.org>
49324
49325         Implement new clarified decomposition of Hangul syllables.
49326         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
49327         of type LTV, return only a pairwise decomposition.
49328         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
49329         Likewise.
49330         * tests/uninorm/test-decomposition.c (main): Updated expected result.
49331         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
49332         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
49333
49334 2009-02-22  Bruno Haible  <bruno@clisp.org>
49335
49336         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
49337         zero-length results and shrink excess allocated memory.
49338         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
49339         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
49340         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
49341         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
49342         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
49343         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
49344         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
49345         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
49346         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
49347         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
49348         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
49349         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
49350
49351 2009-02-21  Bruno Haible  <bruno@clisp.org>
49352
49353         * doc/gnulib.texi: Include safe-alloc.texi earlier.
49354         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
49355         spaces after a period. Put a space between a macro name and its
49356         argument list. Trivial rewordings.
49357         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
49358         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
49359         (main): Return 0 explicitly.
49360
49361 2009-02-21  Bruno Haible  <bruno@clisp.org>
49362
49363         Tests for module 'uninorm/filter'.
49364         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
49365         * modules/uninorm/filter-tests: New file.
49366
49367         New module 'uninorm/filter'.
49368         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
49369         uninorm_filter_flush, uninorm_filter_free): New declarations.
49370         * lib/uninorm/uninorm-filter.c: New file.
49371         * modules/uninorm/filter: New file.
49372
49373 2009-02-21  Bruno Haible  <bruno@clisp.org>
49374
49375         Tests for module 'uninorm/nfkc'.
49376         * tests/uninorm/test-nfkc.c: New file.
49377         * tests/uninorm/test-u8-nfkc.c: New file.
49378         * tests/uninorm/test-u16-nfkc.c: New file.
49379         * tests/uninorm/test-u32-nfkc.c: New file.
49380         * tests/uninorm/test-u32-nfkc-big.sh: New file.
49381         * tests/uninorm/test-u32-nfkc-big.c: New file.
49382         * modules/uninorm/nfkc-tests: New file.
49383
49384         New module 'uninorm/nfkc'.
49385         * lib/uninorm/nfkc.c: New file.
49386         * modules/uninorm/nfkc: New file.
49387
49388         Tests for module 'uninorm/nfkd'.
49389         * tests/uninorm/test-nfkd.c: New file.
49390         * tests/uninorm/test-u8-nfkd.c: New file.
49391         * tests/uninorm/test-u16-nfkd.c: New file.
49392         * tests/uninorm/test-u32-nfkd.c: New file.
49393         * tests/uninorm/test-u32-nfkd-big.sh: New file.
49394         * tests/uninorm/test-u32-nfkd-big.c: New file.
49395         * modules/uninorm/nfkd-tests: New file.
49396
49397         New module 'uninorm/nfkd'.
49398         * lib/uninorm/nfkd.c: New file.
49399         * modules/uninorm/nfkd: New file.
49400
49401         Tests for module 'uninorm/nfc'.
49402         * tests/uninorm/test-nfc.c: New file.
49403         * tests/uninorm/test-u8-nfc.c: New file.
49404         * tests/uninorm/test-u16-nfc.c: New file.
49405         * tests/uninorm/test-u32-nfc.c: New file.
49406         * tests/uninorm/test-u32-nfc-big.sh: New file.
49407         * tests/uninorm/test-u32-nfc-big.c: New file.
49408         * modules/uninorm/nfc-tests: New file.
49409
49410         New module 'uninorm/nfc'.
49411         * lib/uninorm/nfc.c: New file.
49412         * modules/uninorm/nfc: New file.
49413
49414         Tests for module 'uninorm/nfd'.
49415         * tests/uninorm/test-nfd.c: New file.
49416         * tests/uninorm/test-u8-nfd.c: New file.
49417         * tests/uninorm/test-u16-nfd.c: New file.
49418         * tests/uninorm/test-u32-nfd.c: New file.
49419         * tests/uninorm/test-u32-nfd-big.sh: New file.
49420         * tests/uninorm/test-u32-nfd-big.c: New file.
49421         * tests/uninorm/test-u32-normalize-big.h: New file.
49422         * tests/uninorm/test-u32-normalize-big.c: New file.
49423         * tests/uninorm/NormalizationTest.txt: New file, created from
49424         Unicode 5.1.0 NormalizationTest.txt.
49425         * modules/uninorm/nfd-tests: New file.
49426
49427         New module 'uninorm/nfd'.
49428         * lib/uninorm/nfd.c: New file.
49429         * modules/uninorm/nfd: New file.
49430
49431         New module 'uninorm/u32-normalize'.
49432         * lib/uninorm/u32-normalize.c: New file.
49433         * modules/uninorm/u32-normalize: New file.
49434
49435         New module 'uninorm/u16-normalize'.
49436         * lib/uninorm/u16-normalize.c: New file.
49437         * modules/uninorm/u16-normalize: New file.
49438
49439         New module 'uninorm/u8-normalize'.
49440         * lib/uninorm/u8-normalize.c: New file.
49441         * lib/uninorm/normalize-internal.h: New file.
49442         * lib/uninorm/u-normalize-internal.h: New file.
49443         * modules/uninorm/u8-normalize: New file.
49444
49445         New module 'uninorm/decompose-internal'.
49446         * lib/uninorm/decompose-internal.c: New file.
49447         * modules/uninorm/decompose-internal: New file.
49448
49449         Tests for module 'uninorm/composition'.
49450         * tests/uninorm/test-composition.c: New file.
49451         * modules/uninorm/composition-tests: New file.
49452
49453         New module 'uninorm/composition'.
49454         * lib/uninorm/composition.c: New file.
49455         * lib/uninorm/composition-table.gperf: New file, generated by
49456         gen-uni-tables.
49457         * modules/uninorm/composition: New file.
49458
49459         Tests for module 'uninorm/compat-decomposition'.
49460         * tests/uninorm/test-compat-decomposition.c: New file.
49461         * modules/uninorm/compat-decomposition-tests: New file.
49462
49463         New module 'uninorm/compat-decomposition'.
49464         * lib/uninorm/decompose-internal.h: New file.
49465         * lib/uninorm/compat-decomposition.c: New file.
49466         * modules/uninorm/compat-decomposition: New file.
49467
49468         Tests for module 'uninorm/canonical-decomposition'.
49469         * tests/uninorm/test-canonical-decomposition.c: New file.
49470         * modules/uninorm/canonical-decomposition-tests: New file.
49471
49472         New module 'uninorm/canonical-decomposition'.
49473         * lib/uninorm/canonical-decomposition.c: New file.
49474         * modules/uninorm/canonical-decomposition: New file.
49475
49476         Tests for module 'uninorm/decomposition'.
49477         * tests/uninorm/test-decomposition.c: New file.
49478         * modules/uninorm/decomposition-tests: New file.
49479
49480         New module 'uninorm/decomposition'.
49481         * lib/uninorm/decomposition.c: New file.
49482         * modules/uninorm/decomposition: New file.
49483
49484         New module 'uninorm/decomposition-table'.
49485         * lib/uninorm/decomposition-table.h: New file.
49486         * lib/uninorm/decomposition-table.c: New file.
49487         * lib/uninorm/decomposition-table1.h: New file, generated by
49488         gen-uni-tables.
49489         * lib/uninorm/decomposition-table2.h: New file, generated by
49490         gen-uni-tables.
49491         * modules/uninorm/decomposition-table: New file.
49492
49493         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
49494         (UC_DECOMP_*): New enumeration items.
49495         (get_decomposition): New function.
49496         (struct decomp_table): New type.
49497         (output_decomposition, output_decomposition_tables): New functions.
49498         (unicode_composition_exclusions): New variable.
49499         (fill_composition_exclusions, debug_output_composition_tables): New
49500         functions.
49501         (main): Accept one more argument. Invoke fill_composition_exclusions.
49502         Output decomposition and composition tables.
49503
49504         New module 'uninorm/base'.
49505         * lib/uninorm.h: New file.
49506         * lib/unictype.h: Update comment.
49507         * modules/uninorm/base: New file.
49508
49509 2009-02-21  David Lutterkort  <lutter@redhat.com>
49510
49511         Tests for module 'safe-alloc'.
49512         * tests/test-safe-alloc.c: New file.
49513         * modules/safe-alloc-tests: New file.
49514
49515         New module 'safe-alloc'.
49516         * lib/safe-alloc.h: New file.
49517         * lib/safe-alloc.c: New file.
49518         * m4/safe-alloc.m4: New file.
49519         * modules/safe-alloc: New file.
49520         * doc/safe-alloc.texi: New file.
49521         * doc/gnulib.texi: Include it.
49522         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
49523         safe-alloc.
49524
49525 2009-02-18  Bruno Haible  <bruno@clisp.org>
49526
49527         Fix link error on non-glibc systems.
49528         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
49529         variable.
49530         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49531
49532 2009-02-18  Jim Meyering  <meyering@redhat.com>
49533
49534         fts: avoid used-uninitialized error due to recent change
49535         * lib/fts.c (fts_read): Guard uses of the new member,
49536         parent->fts_n_dirs_remaining, since it's not relevant for
49537         the parent of a directory specified on the command-line.
49538
49539 2009-02-17  James Youngman  <jay@gnu.org>
49540             Bruno Haible  <bruno@clisp.org>
49541
49542         * m4/include_next.m4: Reformulate comment.
49543
49544 2009-02-16  Jim Meyering  <meyering@redhat.com>
49545
49546         fts: add #if guards so that the fts_lgpl module still builds
49547         * lib/fts.c: Guard just-added hash-table-using parts with
49548         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
49549         Reported by Simon Josefsson.
49550
49551 2009-02-15  Bruno Haible  <bruno@clisp.org>
49552
49553         * modules/array-mergesort-tests: New file.
49554         * tests/test-array-mergesort.c: New file.
49555
49556         New module 'array-mergesort'.
49557         * modules/array-mergesort: New file.
49558         * lib/array-mergesort.h: New file.
49559
49560 2009-02-15  Bruno Haible  <bruno@clisp.org>
49561
49562         Fix 2009-02-07 commit.
49563         * lib/gen-uni-tables.c (output_predicate, output_category,
49564         output_combclass, output_bidi_category, output_decimal_digit,
49565         output_digit, output_numeric, output_mirror, output_scripts,
49566         output_ident_category, output_simple_mapping): Fix format directives.
49567         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
49568
49569 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
49570
49571         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
49572         fixes are available from IBM.
49573
49574 2009-02-13  Jim Meyering  <meyering@redhat.com>
49575
49576         fts: arrange not to stat non-directories in more cases
49577         This makes GNU find (when it doesn't need to stat each file)
49578         *much* more efficient at traversing reiserfs file systems.
49579         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
49580         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
49581         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
49582         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
49583         (leaf_optimization_applies): New function.
49584         (LCO_hash, LCO_compare): New helper functions.
49585         (link_count_optimize_ok): New function.
49586         (fts_stat): Initialize new member (if dir).
49587         (fts_read): Decrement parent's fts_n_dirs_remaining count if
49588         we've just stat'ed a directory.  Skip the stat call when possible.
49589         ---
49590         Note this AFS-related exchange:
49591         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
49592         and note find's pioctl call in find/fstype.c.
49593         But that is necessary only if you want to enable the
49594         optimization for AFS, and for now, I don't.
49595
49596         fts: move a function definition "up" (no semantic change)
49597         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
49598         "up" to precede upcoming use of a related function.
49599
49600 2009-02-11  Jim Meyering  <meyering@redhat.com>
49601
49602         fts: correct internal computation of nlinks (optimization-related)
49603         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
49604         whether the current entry is a directory, so don't test it.
49605
49606 2009-02-10  Bruno Haible  <bruno@clisp.org>
49607
49608         Tests for module 'uniwbrk/ulc-wordbreaks'.
49609         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
49610         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
49611         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
49612
49613         Tests for module 'uniwbrk/u32-wordbreaks'.
49614         * modules/uniwbrk/u32-wordbreaks-tests: New file.
49615         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
49616
49617         Tests for module 'uniwbrk/u16-wordbreaks'.
49618         * modules/uniwbrk/u16-wordbreaks-tests: New file.
49619         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
49620
49621         Tests for module 'uniwbrk/u8-wordbreaks'.
49622         * modules/uniwbrk/u8-wordbreaks-tests: New file.
49623         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
49624
49625 2009-02-10  Bruno Haible  <bruno@clisp.org>
49626
49627         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
49628         property.
49629         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
49630         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
49631         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
49632
49633 2009-02-10  Simon Josefsson  <simon@josefsson.org>
49634
49635         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
49636         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
49637
49638 2009-02-10  Bruno Haible  <bruno@clisp.org>
49639
49640         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
49641         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
49642         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
49643         * lib/unilbrk/u8-possible-linebreaks.c: Update.
49644         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
49645         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
49646
49647 2009-02-09  Simon Josefsson  <simon@josefsson.org>
49648
49649         * lib/sockets.h (gl_fd_to_handle): New function.
49650
49651         * tests/test-sockets.c: Call gl_fd_to_handle.
49652
49653 2009-02-09  Bruno Haible  <bruno@clisp.org>
49654
49655         * doc/havelib.texi: Document the conventions on bi-arch systems.
49656
49657 2009-02-08  Bruno Haible  <bruno@clisp.org>
49658
49659         Document the AC_LIB_LINKFLAGS macro.
49660         * doc/havelib.texi: New file, mostly written on 2005-05-24.
49661         * doc/gnulib.texi: Include it.
49662
49663 2009-02-08  Bruno Haible  <bruno@clisp.org>
49664
49665         Fix wrong order of sections, compared to TOC.
49666         * doc/gnulib.texi: Include relocatable-maint.texi after the
49667         "Regular expressions" node, not before.
49668
49669 2009-02-08  Bruno Haible  <bruno@clisp.org>
49670
49671         Tests for module 'unicase/totitle'.
49672         * modules/unicase/totitle-tests: New file.
49673
49674         Tests for module 'unicase/tolower'.
49675         * modules/unicase/tolower-tests: New file.
49676
49677         Tests for module 'unicase/toupper'.
49678         * modules/unicase/toupper-tests: New file.
49679         * tests/unicase/test-mapping-part1.h: New file.
49680         * tests/unicase/test-mapping-part2.h: New file.
49681
49682         New module 'unicase/totitle'.
49683         * modules/unicase/totitle: New file.
49684         * lib/unicase/totitle.c: New file.
49685
49686         New module 'unicase/tolower'.
49687         * modules/unicase/tolower: New file.
49688         * lib/unicase/tolower.c: New file.
49689
49690         New module 'unicase/toupper'.
49691         * modules/unicase/toupper: New file.
49692         * lib/unicase/toupper.c: New file.
49693         * lib/unicase/simple-mapping.h: New file.
49694
49695         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
49696         (mapping_table): New structure.
49697         (output_simple_mapping): New function.
49698         (main): Invoke output_simple_mapping_test and output_simple_mapping.
49699         * modules/gen-uni-tables (Description): Update.
49700         * lib/unicase/toupper.h: New file, automatically generated by
49701         gen-uni-tables.
49702         * lib/unicase/tolower.h: New file, automatically generated by
49703         gen-uni-tables.
49704         * lib/unicase/totitle.h: New file, automatically generated by
49705         gen-uni-tables.
49706         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
49707         gen-uni-tables.
49708         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
49709         gen-uni-tables.
49710         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
49711         gen-uni-tables.
49712
49713         New module 'unicase/base'.
49714         * modules/unicase/base: New file.
49715         * lib/unicase.h: New file.
49716
49717 2009-02-08  Bruno Haible  <bruno@clisp.org>
49718
49719         New module 'uniwbrk/ulc-wordbreaks'.
49720         * modules/uniwbrk/ulc-wordbreaks: New file.
49721         * lib/uniwbrk/ulc-wordbreaks.c: New file.
49722
49723         New module 'uniwbrk/u32-wordbreaks'.
49724         * modules/uniwbrk/u32-wordbreaks: New file.
49725         * lib/uniwbrk/u32-wordbreaks.c: New file.
49726
49727         New module 'uniwbrk/u16-wordbreaks'.
49728         * modules/uniwbrk/u16-wordbreaks: New file.
49729         * lib/uniwbrk/u16-wordbreaks.c: New file.
49730
49731         New module 'uniwbrk/u8-wordbreaks'.
49732         * modules/uniwbrk/u8-wordbreaks: New file.
49733         * lib/uniwbrk/u8-wordbreaks.c: New file.
49734         * lib/uniwbrk/u-wordbreaks.h: New file.
49735
49736         New module 'uniwbrk/table'.
49737         * modules/uniwbrk/table: New file.
49738         * lib/uniwbrk/wbrktable.h: New file.
49739         * lib/uniwbrk/wbrktable.c: New file.
49740
49741         New module 'uniwbrk/wordbreak-property'.
49742         * modules/uniwbrk/wordbreak-property: New file.
49743         * lib/uniwbrk/wordbreak-property.c: New file.
49744
49745         * lib/gen-uni-tables.c (WBP_*): New enum items.
49746         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
49747         (unicode_org_wbp): New variable.
49748         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
49749         New functions.
49750         (wbp_table): New structure.
49751         (output_wbp, output_wbrk_tables): New functions.
49752         (main): Accept additional argument. Invoke fill_org_wbp,
49753         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
49754         output_wbrk_tables.
49755         * modules/gen-uni-tables (Description): Update.
49756         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
49757         gen-uni-tables.
49758
49759         New module 'uniwbrk/base'.
49760         * modules/uniwbrk/base: New file.
49761         * lib/uniwbrk.h: New file.
49762
49763 2009-02-08  Bruno Haible  <bruno@clisp.org>
49764
49765         Update to Unicode 5.1.0.
49766         * lib/gen-uni-tables.c (is_property_alphabetic): Include
49767         U+2185..U+2188.
49768         (is_property_default_ignorable_code_point): Don't include characters
49769         of category Cc or Cs and not-a-characters.
49770         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
49771         U+0D79, U+109E, U+109F, U+A60C.
49772         * lib/unictype/bidi_of.h: Regenerated.
49773         * lib/unictype/blocks.h: Regenerated.
49774         * lib/unictype/categ_C.h: Regenerated.
49775         * lib/unictype/categ_Cf.h: Regenerated.
49776         * lib/unictype/categ_Cn.h: Regenerated.
49777         * lib/unictype/categ_L.h: Regenerated.
49778         * lib/unictype/categ_Ll.h: Regenerated.
49779         * lib/unictype/categ_Lm.h: Regenerated.
49780         * lib/unictype/categ_Lo.h: Regenerated.
49781         * lib/unictype/categ_Lu.h: Regenerated.
49782         * lib/unictype/categ_M.h: Regenerated.
49783         * lib/unictype/categ_Mc.h: Regenerated.
49784         * lib/unictype/categ_Me.h: Regenerated.
49785         * lib/unictype/categ_Mn.h: Regenerated.
49786         * lib/unictype/categ_N.h: Regenerated.
49787         * lib/unictype/categ_Nd.h: Regenerated.
49788         * lib/unictype/categ_Nl.h: Regenerated.
49789         * lib/unictype/categ_No.h: Regenerated.
49790         * lib/unictype/categ_P.h: Regenerated.
49791         * lib/unictype/categ_Pd.h: Regenerated.
49792         * lib/unictype/categ_Pe.h: Regenerated.
49793         * lib/unictype/categ_Pf.h: Regenerated.
49794         * lib/unictype/categ_Pi.h: Regenerated.
49795         * lib/unictype/categ_Po.h: Regenerated.
49796         * lib/unictype/categ_Ps.h: Regenerated.
49797         * lib/unictype/categ_S.h: Regenerated.
49798         * lib/unictype/categ_Sk.h: Regenerated.
49799         * lib/unictype/categ_Sm.h: Regenerated.
49800         * lib/unictype/categ_So.h: Regenerated.
49801         * lib/unictype/categ_of.h: Regenerated.
49802         * lib/unictype/combining.h: Regenerated.
49803         * lib/unictype/ctype_alnum.h: Regenerated.
49804         * lib/unictype/ctype_alpha.h: Regenerated.
49805         * lib/unictype/ctype_graph.h: Regenerated.
49806         * lib/unictype/ctype_lower.h: Regenerated.
49807         * lib/unictype/ctype_print.h: Regenerated.
49808         * lib/unictype/ctype_punct.h: Regenerated.
49809         * lib/unictype/ctype_upper.h: Regenerated.
49810         * lib/unictype/decdigit.h: Regenerated.
49811         * lib/unictype/digit.h: Regenerated.
49812         * lib/unictype/mirror.h: Regenerated.
49813         * lib/unictype/numeric.h: Regenerated.
49814         * lib/unictype/pr_alphabetic.h: Regenerated.
49815         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
49816         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
49817         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
49818         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
49819         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
49820         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
49821         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
49822         * lib/unictype/pr_combining.h: Regenerated.
49823         * lib/unictype/pr_dash.h: Regenerated.
49824         * lib/unictype/pr_decimal_digit.h: Regenerated.
49825         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
49826         * lib/unictype/pr_deprecated.h: Regenerated.
49827         * lib/unictype/pr_diacritic.h: Regenerated.
49828         * lib/unictype/pr_extender.h: Regenerated.
49829         * lib/unictype/pr_format_control.h: Regenerated.
49830         * lib/unictype/pr_grapheme_base.h: Regenerated.
49831         * lib/unictype/pr_grapheme_extend.h: Regenerated.
49832         * lib/unictype/pr_grapheme_link.h: Regenerated.
49833         * lib/unictype/pr_id_continue.h: Regenerated.
49834         * lib/unictype/pr_id_start.h: Regenerated.
49835         * lib/unictype/pr_ideographic.h: Regenerated.
49836         * lib/unictype/pr_ignorable_control.h: Regenerated.
49837         * lib/unictype/pr_lowercase.h: Regenerated.
49838         * lib/unictype/pr_math.h: Regenerated.
49839         * lib/unictype/pr_numeric.h: Regenerated.
49840         * lib/unictype/pr_other_alphabetic.h: Regenerated.
49841         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
49842         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
49843         * lib/unictype/pr_other_id_continue.h: Regenerated.
49844         * lib/unictype/pr_other_lowercase.h: Regenerated.
49845         * lib/unictype/pr_other_math.h: Regenerated.
49846         * lib/unictype/pr_punctuation.h: Regenerated.
49847         * lib/unictype/pr_sentence_terminal.h: Regenerated.
49848         * lib/unictype/pr_soft_dotted.h: Regenerated.
49849         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
49850         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
49851         * lib/unictype/pr_unified_ideograph.h: Regenerated.
49852         * lib/unictype/pr_uppercase.h: Regenerated.
49853         * lib/unictype/pr_xid_continue.h: Regenerated.
49854         * lib/unictype/pr_xid_start.h: Regenerated.
49855         * lib/unictype/pr_zero_width.h: Regenerated.
49856         * lib/unictype/scripts.h: Regenerated.
49857         * lib/unictype/scripts_byname.gperf: Regenerated.
49858         * lib/unictype/sy_java_ident.h: Regenerated.
49859         * lib/unilbrk/lbrkprop1.h: Regenerated.
49860         * lib/unilbrk/lbrkprop2.h: Regenerated.
49861         * tests/unictype/test-categ_C.c: Regenerated.
49862         * tests/unictype/test-categ_Cf.c: Regenerated.
49863         * tests/unictype/test-categ_Cn.c: Regenerated.
49864         * tests/unictype/test-categ_L.c: Regenerated.
49865         * tests/unictype/test-categ_Ll.c: Regenerated.
49866         * tests/unictype/test-categ_Lm.c: Regenerated.
49867         * tests/unictype/test-categ_Lo.c: Regenerated.
49868         * tests/unictype/test-categ_Lu.c: Regenerated.
49869         * tests/unictype/test-categ_M.c: Regenerated.
49870         * tests/unictype/test-categ_Mc.c: Regenerated.
49871         * tests/unictype/test-categ_Me.c: Regenerated.
49872         * tests/unictype/test-categ_Mn.c: Regenerated.
49873         * tests/unictype/test-categ_N.c: Regenerated.
49874         * tests/unictype/test-categ_Nd.c: Regenerated.
49875         * tests/unictype/test-categ_Nl.c: Regenerated.
49876         * tests/unictype/test-categ_No.c: Regenerated.
49877         * tests/unictype/test-categ_P.c: Regenerated.
49878         * tests/unictype/test-categ_Pd.c: Regenerated.
49879         * tests/unictype/test-categ_Pe.c: Regenerated.
49880         * tests/unictype/test-categ_Pf.c: Regenerated.
49881         * tests/unictype/test-categ_Pi.c: Regenerated.
49882         * tests/unictype/test-categ_Po.c: Regenerated.
49883         * tests/unictype/test-categ_Ps.c: Regenerated.
49884         * tests/unictype/test-categ_S.c: Regenerated.
49885         * tests/unictype/test-categ_Sk.c: Regenerated.
49886         * tests/unictype/test-categ_Sm.c: Regenerated.
49887         * tests/unictype/test-categ_So.c: Regenerated.
49888         * tests/unictype/test-ctype_alnum.c: Regenerated.
49889         * tests/unictype/test-ctype_alpha.c: Regenerated.
49890         * tests/unictype/test-ctype_graph.c: Regenerated.
49891         * tests/unictype/test-ctype_lower.c: Regenerated.
49892         * tests/unictype/test-ctype_print.c: Regenerated.
49893         * tests/unictype/test-ctype_punct.c: Regenerated.
49894         * tests/unictype/test-ctype_upper.c: Regenerated.
49895         * tests/unictype/test-decdigit.h: Regenerated.
49896         * tests/unictype/test-digit.h: Regenerated.
49897         * tests/unictype/test-numeric.h: Regenerated.
49898         * tests/unictype/test-pr_alphabetic.c: Regenerated.
49899         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
49900         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
49901         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
49902         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
49903         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
49904         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
49905         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
49906         * tests/unictype/test-pr_combining.c: Regenerated.
49907         * tests/unictype/test-pr_dash.c: Regenerated.
49908         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
49909         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
49910         * tests/unictype/test-pr_deprecated.c: Regenerated.
49911         * tests/unictype/test-pr_diacritic.c: Regenerated.
49912         * tests/unictype/test-pr_extender.c: Regenerated.
49913         * tests/unictype/test-pr_format_control.c: Regenerated.
49914         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
49915         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
49916         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
49917         * tests/unictype/test-pr_id_continue.c: Regenerated.
49918         * tests/unictype/test-pr_id_start.c: Regenerated.
49919         * tests/unictype/test-pr_ideographic.c: Regenerated.
49920         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
49921         * tests/unictype/test-pr_lowercase.c: Regenerated.
49922         * tests/unictype/test-pr_math.c: Regenerated.
49923         * tests/unictype/test-pr_numeric.c: Regenerated.
49924         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
49925         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
49926         Regenerated.
49927         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
49928         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
49929         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
49930         * tests/unictype/test-pr_other_math.c: Regenerated.
49931         * tests/unictype/test-pr_punctuation.c: Regenerated.
49932         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
49933         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
49934         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
49935         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
49936         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
49937         * tests/unictype/test-pr_uppercase.c: Regenerated.
49938         * tests/unictype/test-pr_xid_continue.c: Regenerated.
49939         * tests/unictype/test-pr_xid_start.c: Regenerated.
49940         * tests/unictype/test-pr_zero_width.c: Regenerated.
49941
49942         Update to Unicode 5.1.0.
49943         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
49944         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
49945         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
49946         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
49947         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
49948         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
49949         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
49950         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
49951         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
49952         (nonspacing_table_ind): Update.
49953         * tests/uniwidth/test-uc_width2.sh: Update expected result.
49954
49955         Update to Unicode 5.1.0.
49956         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
49957         code transform.
49958         * lib/uniname/uniname.c (unicode_character_name,
49959         unicode_name_character): Add the range 0x1Fxxx to the code transform.
49960         * lib/uniname/uninames.h: Regenerated.
49961         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
49962
49963 2009-02-07  Bruno Haible  <bruno@clisp.org>
49964
49965         Merge gen-ctype and gen-lbrk into a single program.
49966         * lib/gen-uni-tables.c: New file, incorporating
49967         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
49968         Add directory prefixes to the names of the generated files.
49969         * lib/unictype/gen-ctype.c: Remove file.
49970         * lib/unilbrk/gen-lbrk.c: Remove file.
49971         * modules/gen-uni-tables: New file.
49972         * modules/unictype/gen-ctype: Remove file.
49973         * modules/unilbrk/gen-lbrk: Remove file.
49974
49975 2009-02-07  Bruno Haible  <bruno@clisp.org>
49976
49977         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
49978
49979         New module 'unistr/u32-strcoll'.
49980         * modules/unistr/u32-strcoll: New file.
49981         * lib/unistr/u32-strcoll.c: New file.
49982
49983         New module 'unistr/u16-strcoll'.
49984         * modules/unistr/u16-strcoll: New file.
49985         * lib/unistr/u16-strcoll.c: New file.
49986
49987         New module 'unistr/u8-strcoll'.
49988         * modules/unistr/u8-strcoll: New file.
49989         * lib/unistr/u8-strcoll.c: New file.
49990         * lib/unistr/u-strcoll.h: New file.
49991
49992 2009-02-07  Bruno Haible  <bruno@clisp.org>
49993
49994         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
49995         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
49996         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
49997         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
49998         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
49999         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
50000
50001 2009-02-07  Bruno Haible  <bruno@clisp.org>
50002
50003         Make 64-bit clean.
50004         * lib/unictype/gen-ctype.c (output_predicate, output_category,
50005         output_combclass, output_bidi_category, output_decimal_digit,
50006         output_digit, output_numeric, output_mirror, output_scripts,
50007         output_ident_category): Use proper width specifier in format strings.
50008
50009 2009-02-07  Bruno Haible  <bruno@clisp.org>
50010
50011         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
50012         failure behaviour.
50013
50014 2009-02-07  Jim Meyering  <meyering@redhat.com>
50015
50016         regex: avoid compilation failure with upcoming gcc-4.4
50017         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
50018         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
50019         "... error: integer overflow in preprocessor expression".
50020
50021 2009-02-05  Ben Pfaff  <blp@gnu.org>
50022
50023         Fix link errors on Windows when close module is used.
50024         * modules/close: Add $(LIB_CLOSE) to Link section.
50025         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
50026         $(LIB_CLOSE) on Windows.
50027
50028 2009-02-05  Jim Meyering  <meyering@redhat.com>
50029
50030         still avoid unused-parameter warnings, but do it cleanly
50031         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
50032         (get_fs_usage): Cast to void instead.
50033         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
50034         (dev_from_mount_options, read_file_system_list): Cast to void.
50035         Prompted by Bruno Haible.
50036
50037 2009-02-04  Jim Meyering  <meyering@redhat.com>
50038
50039         fsusage.c: correct copyright year
50040         * lib/fsusage.c: Reflect year in which the change is pushed into
50041
50042         avoid misc. warnings
50043         * lib/fsusage.c (UNUSED_PARAM): Define.
50044         (get_fs_usage): Mark parameter "disk" as unused.
50045         * lib/getugroups.c (getgrent): Use "void" in prototype.
50046         * lib/mountlist.c: Mark unused parameters.
50047         (read_file_system_list): Declare a local with "const".
50048         * lib/nanosleep.c (getnow): Declare static.
50049         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
50050
50051         dirfd: set errno upon failure
50052         * lib/dirfd.c: Include <errno.h>.
50053         Set errno to ENOTSUP when returning -1.
50054         * modules/dirfd (Depends-on): Add errno.
50055         Suggested by John Kodis <kodis@comcast.net>.
50056
50057 2009-02-01  Bruno Haible  <bruno@clisp.org>
50058
50059         Don't assume sizeof (long) >= sizeof (void *).
50060         * lib/memcmp.c: Include stdint.h.
50061         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
50062         srcp2 to 'const byte *'.
50063         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
50064         types to uintptr_t.
50065         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
50066         * modules/memcmp (Depends-on): Add stdint.
50067         Reported by Ozkan Sezer <sezeroz@gmail.com>.
50068
50069 2009-01-30  Eric Blake  <ebb9@byu.net>
50070
50071         fix more require-before-expand issues
50072         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
50073         expand, AC_PROG_AWK.
50074         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
50075
50076 2009-01-28  Eric Blake  <ebb9@byu.net>
50077
50078         version-etc: use consistent URL formatting
50079         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
50080         Improve formatting.  Use fputs for string without %.
50081
50082 2009-01-28  Jim Meyering  <meyering@redhat.com>
50083
50084         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
50085         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
50086         "underquoted definition of NAME" from autoconf-2.59.
50087
50088 2009-01-28  Bruno Haible  <bruno@clisp.org>
50089
50090         * doc/gnulib.texi: Add "Obsolete modules" to index.
50091
50092 2009-01-28  Jim Meyering  <meyering@redhat.com>
50093
50094         useless-if-before-free: recognize more variants
50095         * build-aux/useless-if-before-free: Also recognize e.g.,
50096         if (NULL != p) free (p);
50097
50098 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
50099
50100         test-getaddrinfo: skip (don't fail) this test when there's no network
50101         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
50102         on the presumption that it means you lack network access.
50103
50104 2009-01-26  Jim Meyering  <meyering@redhat.com>
50105
50106         fflush: avoid warnings on modern systems
50107         * lib/fflush.c (rpl_fflush): Move declarations of locals,
50108         pos and result, into scopes where they're used.
50109
50110 2009-01-26  Eric Blake  <ebb9@byu.net>
50111
50112         Silence warning reintroduced by recent extensions patch.
50113         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
50114         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
50115         autoconf.
50116
50117         Backport improved autoconf semantics of AC_DEFUN_ONCE.
50118         * m4/00gnulib.m4: New file.
50119         * gnulib-tool (func_get_filelist): Always use it.
50120         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
50121         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
50122
50123 2009-01-25  Bruno Haible  <bruno@clisp.org>
50124
50125         Make test-quotearg work on MacOS X and AIX.
50126         * tests/test-quotearg.sh: New file.
50127         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
50128         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
50129         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
50130         include <libintl.h>.
50131         (fake_locale): Remove variable.
50132         (gettext, dgettext, dcgettext): Remove functions.
50133         (main): Instead of setting a fake locale, set a real locale. Call
50134         textdomain and bindtextdomain.
50135         * modules/quotearg-tests (Files): Add the new files.
50136         (Depends-on): Add gettext, setenv, unsetenv.
50137         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
50138         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
50139         Augment TESTS_ENVIRONMENT.
50140
50141 2009-01-25  Bruno Haible  <bruno@clisp.org>
50142
50143         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
50144         fr_FR.ISO8859-1 locale on MacOS X.
50145         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
50146         ja_JP.eucJP locale on MacOS X.
50147         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
50148         zh_CN.GB18030 locale on MacOS X.
50149
50150 2009-01-25  Bruno Haible  <bruno@clisp.org>
50151
50152         Avoid link errors on MacOS X 10.3.
50153         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
50154         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
50155
50156 2009-01-25  Bruno Haible  <bruno@clisp.org>
50157
50158         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
50159         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
50160         * modules/pipe (Files): Remove m4/posix_spawn.m4.
50161         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
50162         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
50163         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
50164         posix_spawnattr_init, posix_spawnattr_setsigmask,
50165         posix_spawnattr_setflags, posix_spawnattr_destroy.
50166
50167         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
50168         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
50169         * modules/execute (Files): Remove m4/posix_spawn.m4.
50170         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
50171         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
50172         posix_spawnattr_init, posix_spawnattr_setsigmask,
50173         posix_spawnattr_setflags, posix_spawnattr_destroy.
50174
50175 2009-01-25  Bruno Haible  <bruno@clisp.org>
50176
50177         * lib/glthread/threadlib.c: Include <stdlib.h>.
50178
50179 2009-01-25  Bruno Haible  <bruno@clisp.org>
50180
50181         * lib/glthread/threadlib.c (dummy): New declaration.
50182
50183 2009-01-25  Bruno Haible  <bruno@clisp.org>
50184
50185         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
50186         multibyte characters also for the GB18030 encoding. Don't crash when
50187         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
50188
50189 2009-01-25  Bruno Haible  <bruno@clisp.org>
50190
50191         Avoid redefining 'struct random_data' on OSF/1 5.1.
50192         * lib/stdlib.in.h: Include <random.h> if it exists.
50193         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
50194         HAVE_RANDOM_H. Include <random.h> when testing whether
50195         'struct random_data' exists.
50196         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
50197
50198 2009-01-25  Bruno Haible  <bruno@clisp.org>
50199
50200         Don't install charset.alias on MacOS X >= 10.3.
50201         * lib/localcharset.c (DARWIN7): New macro.
50202         (get_charset_aliases): Hardcode the result for Darwin7.
50203         * modules/localcharset (install-exec-local): Don't install
50204         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
50205
50206 2009-01-25  Bruno Haible  <bruno@clisp.org>
50207
50208         Don't install charset.alias on mingw and Cygwin.
50209         * modules/localcharset (install-exec-local): Don't install
50210         charset.alias on mingw and Cygwin, if the file does not yet exist.
50211         The result for these platforms is hardcoded in localcharset.c.
50212
50213 2009-01-25  Bruno Haible  <bruno@clisp.org>
50214
50215         Make it possible again to use AC_GNU_SOURCE together with gnulib.
50216         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
50217         before requiring AC_USE_SYSTEM_EXTENSIONS.
50218
50219 2009-01-25  Jim Meyering  <meyering@redhat.com>
50220
50221         c-strtod: avoid warnings
50222         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
50223         "assignment discards qualifiers from pointer target type" warnings.
50224
50225 2009-01-24  Bruno Haible  <bruno@clisp.org>
50226
50227         Add support for non-UTF-8 locales on MacOS X.
50228         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
50229         canonical encodings. For Darwin 7 and newer, don't map traditional
50230         encodings to UTF-8.
50231         Reported by Vincent Lefevre <vincent@vinc17.org>
50232         at <http://savannah.gnu.org/bugs/?25235>.
50233
50234 2009-01-24  Bruno Haible  <bruno@clisp.org>
50235
50236         * doc/gnulib.texi (Obsolete modules): New section.
50237         Reported by Mike Frysinger <vapier@gentoo.org>.
50238
50239 2009-01-24  Bruno Haible  <bruno@clisp.org>
50240
50241         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
50242         (%.dvi): New rule.
50243
50244 2009-01-24  Bruno Haible  <bruno@clisp.org>
50245
50246         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
50247         Reported by Eric Blake.
50248
50249 2009-01-24  Bruno Haible  <bruno@clisp.org>
50250
50251         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
50252         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
50253         Reported by Gary V. Vaughan <gary@gnu.org>.
50254
50255 2009-01-24  Bruno Haible  <bruno@clisp.org>
50256
50257         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
50258
50259 2009-01-23  Bruno Haible  <bruno@clisp.org>
50260
50261         Make c-strtod, c-strtold usable in libraries.
50262         * lib/c-strtod.c: Include string.h instead of xalloc.h.
50263         (C_STRTOD): Call strdup instead of xstrdup.
50264         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
50265         * modules/c-strtold (Depends-on): Likewise.
50266         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
50267         * NEWS: Mention the change.
50268         Reported by Michael Gold <mgold@ncf.ca>.
50269
50270 2009-01-23  Jim Meyering  <meyering@redhat.com>
50271
50272         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
50273         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
50274         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
50275
50276 2009-01-23  Simon Josefsson  <simon@josefsson.org>
50277
50278         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
50279         GNU CoreUtils.
50280         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
50281         * modules/version-etc (Description): Update.
50282
50283 2009-01-22  Bruno Haible  <bruno@clisp.org>
50284
50285         Cache the C locale object.
50286         * lib/c-strtod.c (c_locale_cache): New variable.
50287         (c_locale): New function.
50288         (C_STRTOD): Use it, and don't call freelocale.
50289         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
50290         Suggested by Paolo Bonzini.
50291
50292 2009-01-21  Bruno Haible  <bruno@clisp.org>
50293
50294         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
50295         conditions other than overflow.
50296
50297 2009-01-21  Bruno Haible  <bruno@clisp.org>
50298
50299         * lib/c-strtod.c: Include errno.h.
50300         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
50301         value from STRTOD_L and STRTOD.
50302
50303 2009-01-21  Bruno Haible  <bruno@clisp.org>
50304         and Jim Meyering  <meyering@redhat.com>
50305
50306         nanosleep: skip configure test (fail it) for apple universal builds
50307         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
50308         universal builds, assume that nanosleep does not work.
50309         * modules/nanosleep (Depends-on): Add multiarch.
50310
50311         mktime: skip configure test (fail it) for apple universal builds
50312         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
50313         universal builds, assume that mktime does not work.
50314         * modules/mktime (Depends-on): Add multiarch.
50315
50316 2009-01-21  Eric Blake  <ebb9@byu.net>
50317
50318         multiarch: avoid expand-before-require warning
50319         * modules/multiarch (configure.ac): Require, rather than expand,
50320         gl_MULTIARCH.
50321         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
50322         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
50323         enforce that all clients require it.  Partial reversion of
50324         2008-12-29 patch.
50325
50326         error: avoid expand-before-require warning
50327         * modules/errno (configure.ac): Require, rather than expand,
50328         gl_HEADER_ERRNO_H.
50329         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
50330         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
50331         enforce that all clients require it.
50332
50333         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
50334         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
50335         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
50336         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
50337
50338 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
50339
50340         Revert:
50341         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
50342
50343         regex: do not depend on obsolete modules.
50344         * modules/regex: Remove memcmp and memmove.
50345
50346 2009-01-20  Bruno Haible  <bruno@clisp.org>
50347
50348         Make the 'link' module link on Windows NT 4.
50349         * lib/link.c (_WIN32_WINNT): Don't define.
50350         (CreateHardLinkFuncType): New type.
50351         (CreateHardLinkFunc, initialized): New variables.
50352         (initialize): New function.
50353         (link): Invoke CreateHardLink indirectly through the function pointer.
50354
50355 2009-01-20  Bruno Haible  <bruno@clisp.org>
50356
50357         Fix compilation failure on mingw.
50358         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
50359
50360 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
50361
50362         * doc/c-strtod.texi: Mention a couple of restrictions.
50363
50364 2009-01-20  Jim Meyering  <meyering@redhat.com>
50365
50366         gettimeofday: move more declarations out of functions
50367         * lib/gettimeofday.c: Move extern declarations of tzset and
50368         gmtime out of containing functions.  Prompted by Bruno Haible.
50369
50370 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
50371
50372         regex: do not depend on obsolete modules.
50373         * modules/regex: Remove memcmp and memmove.
50374
50375 2009-01-19  Bruno Haible  <bruno@clisp.org>
50376
50377         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
50378         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
50379         gl_BIGENDIAN, not AC_C_BIGENDIAN.
50380         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
50381         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
50382
50383 2009-01-19  Bruno Haible  <bruno@clisp.org>
50384
50385         * tests/test-link.c: Include <errno.h>.
50386         (main): Exit with code 77 when a hard link cannot be created due to
50387         the file system.
50388         * tests/test-link.sh: Skip test when a hard link cannot be created due
50389         to the file system.
50390         Suggested by Eric Blake.
50391
50392 2009-01-19  Martin Lambers  <marlam@marlam.de>
50393
50394         * modules/link-tests: New file.
50395         * tests/test-link.sh: New file.
50396         * tests/test-link.c: New file.
50397
50398 2009-01-19  Eric Blake  <ebb9@byu.net>
50399
50400         doc: mention another function added in cygwin 1.7.0
50401         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
50402         Another new function in cygwin 1.7.
50403
50404 2009-01-19  Bruno Haible  <bruno@clisp.org>
50405
50406         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
50407         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
50408         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
50409         gl_BIGENDIAN, not AC_C_BIGENDIAN.
50410         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
50411         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
50412         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
50413         * m4/md4.m4 (gl_MD4): Likewise.
50414         * m4/md5.m4 (gl_MD5): Likewise.
50415         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
50416         * m4/sha1.m4 (gl_SHA1): Likewise.
50417         * m4/sha256.m4 (gl_SHA256): Likewise.
50418         * m4/sha512.m4 (gl_SHA512): Likewise.
50419
50420 2009-01-19  Bruno Haible  <bruno@clisp.org>
50421
50422         * modules/uniname/uniname-tests (Depends-on): Add progname.
50423         * tests/uniname/test-uninames.c: Include progname.h.
50424         (main): Call set_program_name.
50425
50426         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
50427         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
50428         (main): Call set_program_name.
50429
50430         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
50431         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
50432         (main): Call set_program_name.
50433
50434         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
50435         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
50436         (main): Call set_program_name.
50437
50438         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
50439         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
50440         (main): Call set_program_name.
50441
50442         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
50443         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
50444         (main): Call set_program_name.
50445
50446         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
50447         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
50448         (main): Call set_program_name.
50449
50450         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
50451         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
50452         (main): Call set_program_name.
50453
50454         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
50455         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
50456         (main): Call set_program_name.
50457
50458 2009-01-19  Eric Blake  <ebb9@byu.net>
50459
50460         test-unistd: test previous patch
50461         * tests/test-unistd.c: Test *_FILENO macros.
50462
50463         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
50464         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
50465         Guarantee a definition.
50466         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
50467         * modules/unistd-safer (Depends-on): Add dependency on unistd.
50468         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
50469         * lib/dup-safer.c (STDERR_FILENO): Likewise.
50470         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
50471         Likewise.
50472         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
50473         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
50474         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
50475         Likewise.
50476         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
50477         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
50478         (STDERR_FILENO): Likewise.
50479         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
50480         (STDERR_FILENO): Likewise.
50481         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
50482         (STDERR_FILENO): Likewise.
50483         Reported by Elbert Pol.
50484
50485 2009-01-19  Eric Blake  <ebb9@byu.net>
50486
50487         doc: mention more functions added in cygwin 1.7.0
50488         * doc/posix-functions/abort.texi (abort): Update wording related
50489         to cygwin.
50490         * doc/posix-functions/daylight.texi (daylight): Likewise.
50491         * doc/posix-functions/optarg.texi (optarg): Likewise.
50492         * doc/posix-functions/optarg.texi (opterr): Likewise.
50493         * doc/posix-functions/optarg.texi (optind): Likewise.
50494         * doc/posix-functions/optarg.texi (optopt): Likewise.
50495         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
50496         worked in 1.5.x, and was withdrawn in 1.7.
50497         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
50498         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
50499         cygwin versions.
50500         * doc/posix-functions/perror.texi (perror): Likewise.
50501         * doc/posix-functions/printf.texi (printf): Likewise.
50502         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
50503         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
50504         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
50505         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
50506         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
50507         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
50508         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
50509         Likewise.
50510         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
50511         Likewise.
50512         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
50513         this function.
50514         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
50515         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
50516         Likewise.
50517         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
50518         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
50519         * doc/posix-functions/confstr.texi (confstr): Likewise.
50520         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
50521         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
50522         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
50523         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
50524         * doc/posix-functions/fputws.texi (fputws): Likewise.
50525         * doc/posix-functions/fwide.texi (fwide): Likewise.
50526         * doc/posix-functions/getwc.texi (getwc): Likewise.
50527         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
50528         * doc/posix-functions/putwc.texi (putwc): Likewise.
50529         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
50530         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
50531         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
50532         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
50533         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
50534         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
50535         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
50536         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
50537         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
50538         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
50539         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
50540
50541 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
50542
50543         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
50544         * lib/ioctl.c: Include <sys/ioctl.h>.
50545
50546 2009-01-19  Simon Josefsson  <simon@josefsson.org>
50547
50548         * modules/getdate-tests (Depends-on): Add progname.
50549         * tests/test-getdate.c: Use progname module, to avoid link errors
50550         on non-glibc systems.
50551
50552 2009-01-18  Simon Josefsson  <simon@josefsson.org>
50553
50554         * modules/filenamecat-tests (Depends-on): Add progname.
50555         * modules/fstrcmp-tests (Depends-on): Likewise.
50556
50557         * tests/test-filenamecat.c: Use progname module, to avoid link
50558         errors on non-glibc systems.
50559         * tests/test-fstrcmp.c: Likewise.
50560
50561 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
50562
50563         gettimeofday: avoid warning: nested extern declaration of 'localtime'
50564         * lib/gettimeofday.c: Move extern declaration out of function.
50565
50566 2009-01-18  Bruno Haible  <bruno@clisp.org>
50567
50568         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
50569         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
50570         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
50571
50572 2009-01-18  Bruno Haible  <bruno@clisp.org>
50573
50574         * lib/strftime.c (MEMPCPY): Remove unused macro.
50575         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
50576
50577 2009-01-18  Martin Lambers  <marlam@marlam.de>
50578
50579         New module 'link'.
50580         * lib/unistd.in.h (link): New declaration.
50581         * lib/link.c: New file.
50582         * m4/link.m4: New file.
50583         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
50584         HAVE_LINK.
50585         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
50586         * modules/link: New file.
50587         * doc/posix-functions/link.texi: Mention the new module.
50588
50589 2009-01-18  Bruno Haible  <bruno@clisp.org>
50590
50591         * tests/test-avltree_list.c (main): Call set_program_name.
50592         * tests/test-avltree_oset.c (main): Likewise.
50593         * tests/test-obstack-printf.c: Include progname.h.
50594         (main): Call set_program_name.
50595         * tests/test-quotearg.c: Include progname.h.
50596         (main): Call set_program_name.
50597         * tests/test-xmemdup0.c: Include progname.h.
50598         (main): Call set_program_name.
50599
50600 2009-01-18  Bruno Haible  <bruno@clisp.org>
50601
50602         New module 'alphasort'.
50603         * lib/dirent.in.h (alphasort): New declaration.
50604         * lib/alphasort.c: New file, from glibc with modifications.
50605         * m4/alphasort.m4: New file.
50606         * modules/alphasort: New file.
50607         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
50608         HAVE_ALPHASORT.
50609         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
50610         HAVE_ALPHASORT.
50611         * doc/posix-functions/alphasort.texi: Mention the new module and the
50612         portability problems.
50613
50614 2009-01-18  Bruno Haible  <bruno@clisp.org>
50615
50616         New module 'scandir'.
50617         * lib/dirent.in.h (scandir): New declaration.
50618         * lib/scandir.c: New file, from glibc with modifications.
50619         * m4/scandir.m4: New file.
50620         * modules/scandir: New file.
50621         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
50622         HAVE_SCANDIR.
50623         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
50624         HAVE_SCANDIR.
50625         * doc/posix-functions/scandir.texi: Mention the new module and the
50626         portability problems.
50627
50628 2009-01-17  Bruno Haible  <bruno@clisp.org>
50629
50630         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
50631         Update documentation.
50632         (func_remove_suffix): Escape all dots in the suffix. Update
50633         documentation.
50634         (func_filter_filelist): Update documentation.
50635         Reported by Ralf Wildenhues.
50636
50637 2009-01-17  Bruno Haible  <bruno@clisp.org>
50638
50639         * modules/dprintf-posix-tests: New file.
50640         * tests/test-dprintf-posix.sh: New file.
50641         * tests/test-dprintf-posix.c: New file.
50642
50643         New modules 'dprintf', 'dprintf-posix'.
50644         * lib/stdio.in.h (dprintf): New declaration.
50645         * lib/dprintf.c: New file.
50646         * m4/dprintf.m4: New file.
50647         * m4/dprintf-posix.m4: New file.
50648         * modules/dprintf: New file.
50649         * modules/dprintf-posix: New file.
50650         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
50651         HAVE_DPRINTF, REPLACE_DPRINTF.
50652         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
50653         HAVE_DPRINTF, REPLACE_DPRINTF.
50654         * doc/posix-functions/dprintf.texi: Mention the new modules.
50655
50656 2009-01-17  Bruno Haible  <bruno@clisp.org>
50657
50658         * modules/vdprintf-posix-tests: New file.
50659         * tests/test-vdprintf-posix.sh: New file.
50660         * tests/test-vdprintf-posix.c: New file.
50661
50662         New modules 'vdprintf', 'vdprintf-posix'.
50663         * lib/stdio.in.h (vdprintf): New declaration.
50664         * lib/vdprintf.c: New file.
50665         * m4/vdprintf.m4: New file.
50666         * m4/vdprintf-posix.m4: New file.
50667         * modules/vdprintf: New file.
50668         * modules/vdprintf-posix: New file.
50669         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
50670         HAVE_VDPRINTF, REPLACE_VDPRINTF.
50671         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
50672         HAVE_VDPRINTF, REPLACE_VDPRINTF.
50673         * doc/posix-functions/vdprintf.texi: Mention the new modules.
50674
50675 2009-01-17  Bruno Haible  <bruno@clisp.org>
50676
50677         Fix replacement of fopen on mingw.
50678         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
50679         mingw.
50680
50681 2009-01-17  Bruno Haible  <bruno@clisp.org>
50682
50683         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
50684         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
50685
50686 2009-01-17  Bruno Haible  <bruno@clisp.org>
50687
50688         Avoid test-fflush2.sh failure on mingw.
50689         * tests/test-fflush2.c: Include binary-io.h.
50690         (main): Put standard input into binary mode.
50691         * modules/fflush-tests (Depends-on): Add binary-io.
50692
50693 2009-01-17  Bruno Haible  <bruno@clisp.org>
50694
50695         * lib/wchar.in.h: In another particular situation, include only the
50696         system's <wchar.h> file.
50697         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
50698         Reported by Albert Chin-A-Young <china@thewrittenword.com>
50699         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
50700
50701 2009-01-17  Bruno Haible  <bruno@clisp.org>
50702
50703         Support for stripping executables in --enable-relocatable.
50704         * build-aux/install-reloc: Expect one more argument, or an environment
50705         variable RELOC_STRIP_PROG. If set, strip the destination program and
50706         its wrapper.
50707         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
50708         RELOC_STRIP_PROG.
50709         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
50710         to set RELOCATABLE_STRIP.
50711         * NEWS: Mention the new Makefile requirement.
50712
50713 2009-01-17  Bruno Haible  <bruno@clisp.org>
50714
50715         * build-aux/install-reloc: Remove debugging information left over by
50716         C compiler on MacOS X.
50717
50718 2009-01-17  Bruno Haible  <bruno@clisp.org>
50719
50720         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
50721         * lib/progreloc.c (find_executable): Fix type of pointer passed to
50722         _NSGetExecutablePath.
50723
50724 2009-01-16  Jim Meyering  <meyering@redhat.com>
50725
50726         strerror: avoid warnings about discarding "const"
50727         * lib/strerror.c (rpl_strerror): Instead of returning a const
50728         string from each and every "case", use a variable, and add a single
50729         cast after the switch.
50730
50731 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
50732
50733         * lib/arpa_inet.in.h: Add extern "C" block for C++.
50734
50735 2009-01-16  Bruno Haible  <bruno@clisp.org>
50736
50737         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
50738         array initializer syntax that also works in C++ mode.
50739         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
50740
50741 2009-01-16  Jim Meyering  <meyering@redhat.com>
50742
50743         poll: suppress a warning
50744         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
50745         to ignore "...unsigned expression < 0 is always false" warnings.
50746
50747 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
50748
50749         poll: remove declarations of unused variables
50750         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
50751         sockbuf and optlen.
50752
50753 2009-01-15  Bruno Haible  <bruno@clisp.org>
50754
50755         Make fflush-after-ungetc POSIX compliant on BSD systems.
50756         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
50757         (clear_ungetc_buffer): Implement also for other systems.
50758         (rpl_fflush): On glibc systems, invoke
50759         clear_ungetc_buffer_preserving_position. Otherwise, invoke
50760         clear_ungetc_buffer after fetching the stream's position, not before.
50761
50762 2009-01-15  Bruno Haible  <bruno@clisp.org>
50763
50764         Make fflush-after-ungetc POSIX compliant on glibc systems.
50765         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
50766         after ungetc.
50767         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
50768         (rpl_fflush): On glibc systems, simply call the system's fflush
50769         function after clearing the ungetc buffer.
50770         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
50771         Instead, lseek only to the end of file, then use the system's fseeko
50772         for the rest. On glibc systems, reset the EOF indicator bit.
50773
50774 2009-01-15  Jim Meyering  <meyering@redhat.com>
50775
50776         openmp.m4: revert quote-adding change, for portability to older autoconf
50777         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
50778         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
50779         Simon Josefsson noticed the problem when using autoconf-2.61.
50780
50781 2009-01-15  Bruno Haible  <bruno@clisp.org>
50782
50783         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
50784         * tests/test-fflush2.c (ASSERT): Always fail.
50785         (main): Add two tests for fflush() after ungetc(), taking into account
50786         the Austin Group's clarification.
50787         Suggested by Eric Blake.
50788
50789 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
50790
50791         mktime.m4: remove K&R-style function prototypes
50792         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
50793         for the Sun C++ compiler.
50794
50795 2009-01-14  Bruno Haible  <bruno@clisp.org>
50796
50797         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
50798         while including <wchar.h>.
50799         * lib/wchar.in.h: In two particular situations on HP-UX, include only
50800         the system's <wchar.h> file.
50801         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
50802
50803 2009-01-14  Bruno Haible  <bruno@clisp.org>
50804
50805         * m4/csharp.m4: Don't mention gettext on the serial number line.
50806         * m4/csharpexec.m4: Likewise.
50807         * m4/eaccess.m4: Likewise.
50808         * m4/javaexec.m4: Likewise.
50809         * m4/sig_atomic_t.m4: Likewise.
50810         * m4/tmpdir.m4: Likewise.
50811         * m4/intldir.m4: Bump gettext version.
50812         * m4/lib-ld.m4: Likewise.
50813
50814 2009-01-14  Bruno Haible  <bruno@clisp.org>
50815
50816         * lib/progname.c (set_program_name): Add more comments.
50817         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
50818
50819 2009-01-14  Simon Josefsson  <simon@josefsson.org>
50820
50821         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
50822         were sys/stat.h does not define it.
50823
50824 2009-01-14  Jim Meyering  <meyering@redhat.com>
50825
50826         many *.m4 files: improve m4 quoting
50827         99% of this change was performed by running the following commands:
50828         git ls-files | grep '\.m4$' | xargs perl -pi \
50829           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
50830           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
50831           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
50832           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
50833         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
50834         The remainder were to add Copyright dates, increment serial numbers,
50835         undo some changes in comments, exclude m4/intl.m4, and add quotes
50836         around the "1" in ",1" where the unusual spacing prohibited the
50837         above regexps from doing the job.  For more details, see
50838         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
50839         * m4/acl.m4: Modified.
50840         * m4/afs.m4: Likewise.
50841         * m4/alloca.m4: Likewise.
50842         * m4/argp.m4: Likewise.
50843         * m4/argz.m4: Likewise.
50844         * m4/atexit.m4: Likewise.
50845         * m4/bison-i18n.m4: Likewise.
50846         * m4/bison.m4: Likewise.
50847         * m4/byteswap.m4: Likewise.
50848         * m4/c-stack.m4: Likewise.
50849         * m4/c-strtod.m4: Likewise.
50850         * m4/calloc.m4: Likewise.
50851         * m4/canonicalize-lgpl.m4: Likewise.
50852         * m4/chown.m4: Likewise.
50853         * m4/clock_time.m4: Likewise.
50854         * m4/codeset.m4: Likewise.
50855         * m4/copy-file.m4: Likewise.
50856         * m4/csharp.m4: Likewise.
50857         * m4/csharpcomp.m4: Likewise.
50858         * m4/csharpexec.m4: Likewise.
50859         * m4/d-ino.m4: Likewise.
50860         * m4/d-type.m4: Likewise.
50861         * m4/dirfd.m4: Likewise.
50862         * m4/double-slash-root.m4: Likewise.
50863         * m4/eaccess.m4: Likewise.
50864         * m4/eealloc.m4: Likewise.
50865         * m4/environ.m4: Likewise.
50866         * m4/errno_h.m4: Likewise.
50867         * m4/euidaccess.m4: Likewise.
50868         * m4/execute.m4: Likewise.
50869         * m4/fatal-signal.m4: Likewise.
50870         * m4/fchdir.m4: Likewise.
50871         * m4/fcntl_h.m4: Likewise.
50872         * m4/fileblocks.m4: Likewise.
50873         * m4/filenamecat.m4: Likewise.
50874         * m4/findprog.m4: Likewise.
50875         * m4/flexmember.m4: Likewise.
50876         * m4/fnmatch.m4: Likewise.
50877         * m4/fopen.m4: Likewise.
50878         * m4/fpending.m4: Likewise.
50879         * m4/fprintf-posix.m4: Likewise.
50880         * m4/free.m4: Likewise.
50881         * m4/frexp.m4: Likewise.
50882         * m4/frexpl.m4: Likewise.
50883         * m4/fsusage.m4: Likewise.
50884         * m4/ftruncate.m4: Likewise.
50885         * m4/gc-camellia.m4: Likewise.
50886         * m4/gc-random.m4: Likewise.
50887         * m4/gc.m4: Likewise.
50888         * m4/getaddrinfo.m4: Likewise.
50889         * m4/getcwd-abort-bug.m4: Likewise.
50890         * m4/getcwd-path-max.m4: Likewise.
50891         * m4/getdate.m4: Likewise.
50892         * m4/getdomainname.m4: Likewise.
50893         * m4/getgroups.m4: Likewise.
50894         * m4/gethostname.m4: Likewise.
50895         * m4/gethrxtime.m4: Likewise.
50896         * m4/getline.m4: Likewise.
50897         * m4/getloadavg.m4: Likewise.
50898         * m4/getndelim2.m4: Likewise.
50899         * m4/getpass.m4: Likewise.
50900         * m4/gettext.m4: Likewise.
50901         * m4/gettime.m4: Likewise.
50902         * m4/gettimeofday.m4: Likewise.
50903         * m4/gnulib-common.m4: Likewise.
50904         * m4/group-member.m4: Likewise.
50905         * m4/host-os.m4: Likewise.
50906         * m4/iconv.m4: Likewise.
50907         * m4/iconv_open.m4: Likewise.
50908         * m4/inet_ntop.m4: Likewise.
50909         * m4/inet_pton.m4: Likewise.
50910         * m4/inline.m4: Likewise.
50911         * m4/intldir.m4: Likewise.
50912         * m4/intlmacosx.m4: Likewise.
50913         * m4/intmax.m4: Likewise.
50914         * m4/intmax_t.m4: Likewise.
50915         * m4/inttypes.m4: Likewise.
50916         * m4/inttypes_h.m4: Likewise.
50917         * m4/inttypes-pri.m4: Likewise.
50918         * m4/isapipe.m4: Likewise.
50919         * m4/isnand.m4: Likewise.
50920         * m4/isnanf.m4: Likewise.
50921         * m4/isnanl.m4: Likewise.
50922         * m4/javacomp.m4: Likewise.
50923         * m4/javaexec.m4: Likewise.
50924         * m4/jm-winsz1.m4: Likewise.
50925         * m4/jm-winsz2.m4: Likewise.
50926         * m4/lchown.m4: Likewise.
50927         * m4/lcmessage.m4: Likewise.
50928         * m4/ldexpl.m4: Likewise.
50929         * m4/lib-ld.m4: Likewise.
50930         * m4/lib-link.m4: Likewise.
50931         * m4/libsigsegv.m4: Likewise.
50932         * m4/link-follow.m4: Likewise.
50933         * m4/localcharset.m4: Likewise.
50934         * m4/locale-fr.m4: Likewise.
50935         * m4/locale-ja.m4: Likewise.
50936         * m4/locale-tr.m4: Likewise.
50937         * m4/locale-zh.m4: Likewise.
50938         * m4/lock.m4: Likewise.
50939         * m4/longlong.m4: Likewise.
50940         * m4/ls-mntd-fs.m4: Likewise.
50941         * m4/lstat.m4: Likewise.
50942         * m4/malloc.m4: Likewise.
50943         * m4/mathl.m4: Likewise.
50944         * m4/mbrtowc.m4: Likewise.
50945         * m4/mbstate_t.m4: Likewise.
50946         * m4/mbswidth.m4: Likewise.
50947         * m4/memchr.m4: Likewise.
50948         * m4/memcmp.m4: Likewise.
50949         * m4/memcpy.m4: Likewise.
50950         * m4/memmem.m4: Likewise.
50951         * m4/memmove.m4: Likewise.
50952         * m4/mempcpy.m4: Likewise.
50953         * m4/memrchr.m4: Likewise.
50954         * m4/memset.m4: Likewise.
50955         * m4/minmax.m4: Likewise.
50956         * m4/mkdir-slash.m4: Likewise.
50957         * m4/mkdtemp.m4: Likewise.
50958         * m4/mktime.m4: Likewise.
50959         * m4/mmap-anon.m4: Likewise.
50960         * m4/mountlist.m4: Likewise.
50961         * m4/nanosleep.m4: Likewise.
50962         * m4/nls.m4: Likewise.
50963         * m4/nocrash.m4: Likewise.
50964         * m4/open.m4: Likewise.
50965         * m4/openat.m4: Likewise.
50966         * m4/openmp.m4: Likewise.
50967         * m4/pathmax.m4: Likewise.
50968         * m4/perl.m4: Likewise.
50969         * m4/physmem.m4: Likewise.
50970         * m4/pipe.m4: Likewise.
50971         * m4/po.m4: Likewise.
50972         * m4/poll.m4: Likewise.
50973         * m4/posixtm.m4: Likewise.
50974         * m4/posixver.m4: Likewise.
50975         * m4/printf-frexp.m4: Likewise.
50976         * m4/printf-frexpl.m4: Likewise.
50977         * m4/printf-posix.m4: Likewise.
50978         * m4/printf-posix-rpl.m4: Likewise.
50979         * m4/printf.m4: Likewise.
50980         * m4/progtest.m4: Likewise.
50981         * m4/putenv.m4: Likewise.
50982         * m4/readline.m4: Likewise.
50983         * m4/readlink.m4: Likewise.
50984         * m4/readutmp.m4: Likewise.
50985         * m4/realloc.m4: Likewise.
50986         * m4/regex.m4: Likewise.
50987         * m4/relocatable.m4: Likewise.
50988         * m4/relocatable-lib.m4: Likewise.
50989         * m4/rename-dest-slash.m4: Likewise.
50990         * m4/rename.m4: Likewise.
50991         * m4/rmdir-errno.m4: Likewise.
50992         * m4/rmdir.m4: Likewise.
50993         * m4/roundf.m4: Likewise.
50994         * m4/roundl.m4: Likewise.
50995         * m4/rpmatch.m4: Likewise.
50996         * m4/save-cwd.m4: Likewise.
50997         * m4/selinux-selinux-h.m4: Likewise.
50998         * m4/setenv.m4: Likewise.
50999         * m4/settime.m4: Likewise.
51000         * m4/sig2str.m4: Likewise.
51001         * m4/sig_atomic_t.m4: Likewise.
51002         * m4/signalblocking.m4: Likewise.
51003         * m4/signbit.m4: Likewise.
51004         * m4/sigpipe.m4: Likewise.
51005         * m4/sockets.m4: Likewise.
51006         * m4/sockpfaf.m4: Likewise.
51007         * m4/st_dm_mode.m4: Likewise.
51008         * m4/stat-time.m4: Likewise.
51009         * m4/stdbool.m4: Likewise.
51010         * m4/stdint.m4: Likewise.
51011         * m4/stdint_h.m4: Likewise.
51012         * m4/stpcpy.m4: Likewise.
51013         * m4/stpncpy.m4: Likewise.
51014         * m4/strcase.m4: Likewise.
51015         * m4/strchrnul.m4: Likewise.
51016         * m4/strcspn.m4: Likewise.
51017         * m4/strdup.m4: Likewise.
51018         * m4/strftime.m4: Likewise.
51019         * m4/strndup.m4: Likewise.
51020         * m4/strnlen.m4: Likewise.
51021         * m4/strpbrk.m4: Likewise.
51022         * m4/strptime.m4: Likewise.
51023         * m4/strsep.m4: Likewise.
51024         * m4/strtod.m4: Likewise.
51025         * m4/strtoimax.m4: Likewise.
51026         * m4/strtok_r.m4: Likewise.
51027         * m4/strtol.m4: Likewise.
51028         * m4/strtoll.m4: Likewise.
51029         * m4/strtoul.m4: Likewise.
51030         * m4/strtoull.m4: Likewise.
51031         * m4/strtoumax.m4: Likewise.
51032         * m4/strverscmp.m4: Likewise.
51033         * m4/threadlib.m4: Likewise.
51034         * m4/timegm.m4: Likewise.
51035         * m4/tm_gmtoff.m4: Likewise.
51036         * m4/tmpdir.m4: Likewise.
51037         * m4/tmpfile.m4: Likewise.
51038         * m4/tzset.m4: Likewise.
51039         * m4/uintmax_t.m4: Likewise.
51040         * m4/unlinkdir.m4: Likewise.
51041         * m4/unlocked-io.m4: Likewise.
51042         * m4/uptime.m4: Likewise.
51043         * m4/userspec.m4: Likewise.
51044         * m4/utimbuf.m4: Likewise.
51045         * m4/utime.m4: Likewise.
51046         * m4/utimes-null.m4: Likewise.
51047         * m4/utimes.m4: Likewise.
51048         * m4/vararrays.m4: Likewise.
51049         * m4/vasnprintf.m4: Likewise.
51050         * m4/vfprintf-posix.m4: Likewise.
51051         * m4/vprintf-posix.m4: Likewise.
51052         * m4/wait-process.m4: Likewise.
51053         * m4/wchar_t.m4: Likewise.
51054         * m4/wint_t.m4: Likewise.
51055         * m4/write-any-file.m4: Likewise.
51056         * m4/yield.m4: Likewise.
51057
51058 2009-01-13  Bruno Haible  <bruno@clisp.org>
51059
51060         Avoid test-copy-file.sh failures when ACL support insufficient.
51061         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
51062         TESTS_ENVIRONMENT.
51063         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
51064         Reported by Jim Meyering.
51065
51066 2009-01-13  Bruno Haible  <bruno@clisp.org>
51067
51068         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
51069         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
51070         * modules/unistdio/u8-printf-parse (Files): Likewise.
51071         * modules/unistdio/u32-printf-parse (Files): Likewise.
51072         * modules/unistdio/ulc-printf-parse (Files): Likewise.
51073
51074 2009-01-13  Simon Josefsson  <simon@josefsson.org>
51075
51076         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
51077         and m4/inttypes_h.m4 too.
51078
51079 2009-01-12  Eric Blake  <ebb9@byu.net>
51080
51081         tests: IRIX 6.2 cc can't compile -0.0 into .data
51082         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
51083         rather than at compile-time.
51084         * tests/test-floorl.c (minus_zero): Likewise.
51085         * tests/test-frexpl.c (minus_zero): Likewise.
51086         * tests/test-isnan.c (minus_zerol): Likewise.
51087         * tests/test-isnanl.h (minus_zero): Likewise.
51088         * tests/test-ldexpl.c (minus_zero): Likewise.
51089         * tests/test-roundl.c (minus_zero): Likewise.
51090         * tests/test-signbit.c (minus_zerol): Likewise.
51091         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
51092         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
51093         * tests/test-truncl.c (minus_zero): Likewise.
51094         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
51095         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
51096         Reported by Tom G. Christensen and Nelson H. F. Beebe.
51097
51098 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
51099
51100         regex: fix glibc bug 9697
51101         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
51102         handling.
51103
51104 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
51105
51106         regex: fix glibc bug 697
51107         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
51108         being NULL also if there are no backreferences.
51109
51110 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
51111
51112         regex: merge glibc changes
51113         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
51114         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
51115         re_string_skip_chars, re_string_reconstruct): Likewise.
51116         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
51117
51118 2009-01-07  Jim Meyering  <meyering@redhat.com>
51119
51120         poll: filter through cppi
51121         * lib/poll.c: Indent cpp directives to reflect nesting.
51122
51123 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
51124
51125         poll: don't return uninitialized
51126         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
51127
51128 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
51129
51130         avoid compile failure on AIX 6.1
51131         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
51132         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
51133
51134 2009-01-04  Jim Meyering  <meyering@redhat.com>
51135
51136         remove duplicate inclusion of <stdio.h>
51137         * tests/test-fprintf-posix.c: Likewise.
51138         * tests/test-printf-posix.c: Likewise.
51139         * tests/test-snprintf-posix.c: Likewise.
51140         * tests/test-sprintf-posix.c: Likewise.
51141         * tests/test-vasprintf-posix.c: Likewise.
51142         * tests/test-vfprintf-posix.c: Likewise.
51143         * tests/test-vprintf-posix.c: Likewise.
51144         * tests/test-vsnprintf-posix.c: Likewise.
51145         * tests/test-vsprintf-posix.c: Likewise.
51146
51147 2009-01-03  Jim Meyering  <meyering@redhat.com>
51148
51149         gnulib-tool: fix sed-based filtering
51150         * gnulib-tool (func_filter_filelist): Remove extra backslash
51151         in sed_fff_filter definition.
51152
51153 2009-01-02  Jim Meyering  <meyering@redhat.com>
51154
51155         strftime: avoid compilation failure on Solaris 2.6
51156         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
51157         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
51158         Don't #define mbrlen or mbsinit, since now they're guaranteed to
51159         be available.  Reported by Tom G. Christensen.  Details in
51160         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
51161
51162 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51163             Bruno Haible  <bruno@clisp.org>
51164
51165         Speed up gnulib-tool by doing more string processing through shell
51166         built-ins.
51167         * gnulib-tool (fast_func_append): New variable.
51168         (func_remove_prefix, func_remove_suffix): New functions.
51169         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
51170         (func_filter_filelist): New function.
51171         (func_get_dependencies): Use func_remove_suffix instead of sed.
51172         (func_get_automake_snippet): Use func_filter_filelist instead of a
51173         subshell and sed invocation.
51174
51175 2009-01-01  Bruno Haible  <bruno@clisp.org>
51176
51177         Fix a security bug.
51178         * gnulib-tool (func_import, import, update): Don't allow the characters
51179         '"', '$', '`', '\' in macro arguments that become part of commands that
51180         are evaluated.
51181
51182 2009-01-01  Bruno Haible  <bruno@clisp.org>
51183
51184         * gnulib-tool (func_reset_sigpipe): Add more comments.
51185
51186 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51187
51188         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
51189         func_emit_tests_Makefile_am, func_import): Abort loops early if we
51190         already know the answer.
51191
51192 2009-01-01  Jim Meyering  <meyering@redhat.com>
51193
51194         * lib/version-etc.c (version_etc_va): Update copyright year.
51195
51196 2008-12-30  Bruno Haible  <bruno@clisp.org>
51197
51198         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
51199         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
51200         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
51201
51202 2008-12-29  Eric Blake  <ebb9@byu.net>
51203
51204         multiarch: avoid autoconf AC_REQUIRE bug
51205         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
51206         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
51207         2.63 and older.
51208         Reported by Bruno Haible, and analyzed in
51209         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
51210
51211 2008-12-29  Bruno Haible  <bruno@clisp.org>
51212
51213         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
51214         files in subdirectories correctly.
51215         Reported by Ralf Wildenhues.
51216
51217 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51218
51219         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
51220         rather than 'join FILE -', for Solaris join.
51221
51222 2008-12-29  Bruno Haible  <bruno@clisp.org>
51223
51224         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
51225         quoting.
51226         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
51227         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
51228         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
51229         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
51230         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
51231         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
51232         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
51233         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
51234         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
51235         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
51236         * m4/nls.m4 (AM_NLS): Likewise.
51237         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
51238         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
51239         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
51240         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
51241         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
51242         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
51243         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
51244         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
51245         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
51246         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
51247         * m4/xsize.m4 (gl_XSIZE): Likewise.
51248         Suggested by Jim Meyering.
51249
51250 2008-11-17  Bruce Korb  <bkorb@gnu.org>
51251
51252         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
51253         * lib/parse-duration.c: use a switch instead of cascading if's.
51254
51255 2008-12-29  Eric Blake  <ebb9@byu.net>
51256
51257         wchar.h: supply WEOF on Irix 5.3
51258         * lib/wchar.in.h (wint_t): Also supply WEOF.
51259         * lib/wctype.in.h (wint_t): Likewise.
51260         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
51261         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
51262         Reported by Tom G. Christensen.
51263
51264 2008-12-26  Bruno Haible  <bruno@clisp.org>
51265
51266         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
51267         i486, i586, i686.
51268
51269 2008-12-26  Bruno Haible  <bruno@clisp.org>
51270
51271         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
51272
51273 2008-12-26  Bruno Haible  <bruno@clisp.org>
51274
51275         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
51276         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
51277         not __STDC_CONSTANT_MACROS.
51278         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
51279
51280 2008-12-25  Bruno Haible  <bruno@clisp.org>
51281
51282         Add support for universal builds to vasnprintf.
51283         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
51284         universal builds, guess no.
51285         * modules/vasnprintf-posix (Depends-on): Add multiarch.
51286         * modules/vasprintf-posix (Depends-on): Likewise.
51287         * modules/fprintf-posix (Depends-on): Likewise.
51288         * modules/vfprintf-posix (Depends-on): Likewise.
51289         * modules/snprintf-posix (Depends-on): Likewise.
51290         * modules/vsnprintf-posix (Depends-on): Likewise.
51291         * modules/sprintf-posix (Depends-on): Likewise.
51292         * modules/vsprintf-posix (Depends-on): Likewise.
51293         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
51294         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
51295         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
51296         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
51297         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
51298         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
51299         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
51300
51301         Add support for universal builds to <inttypes.h>.
51302         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
51303         _SCNu64_PREFIX): In Apple
51304         universal builds, define directly, using _LP64.
51305         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
51306         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
51307         * modules/inttypes (Depends-on): Add multiarch.
51308         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
51309
51310         Add support for universal builds to <stdint.h>.
51311         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
51312         universal builds, define directly, using _LP64.
51313         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
51314         Apple universal builds, don't test for the size and suffix of ptrdiff_t
51315         and size_t.
51316         * modules/stdint (Depends-on): Add multiarch.
51317         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
51318
51319         New module 'multiarch'.
51320         * modules/multiarch: New file.
51321         * m4/multiarch.m4: New file.
51322
51323 2008-12-25  Bruno Haible  <bruno@clisp.org>
51324
51325         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
51326
51327 2008-12-25  Bruno Haible  <bruno@clisp.org>
51328
51329         * modules/btowc (License): Relicense under LGPLv2+.
51330         * modules/mbsinit (License): Likewise.
51331         * modules/mbrtowc (License): Likewise.
51332         * modules/wcrtomb (License): Likewise.
51333         * modules/streq (License): Likewise.
51334         Reported by David Lutterkort <lutter@redhat.com>.
51335
51336 2008-12-23  Bruno Haible  <bruno@clisp.org>
51337
51338         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
51339
51340 2008-12-23  Bruno Haible  <bruno@clisp.org>
51341
51342         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
51343         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
51344         GETADDRINFO_LIB, not in LIBS.
51345         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
51346         * modules/canon-host (Link): Likewise.
51347         * NEWS: Mention the change.
51348         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
51349         GETADDRINFO_LIB.
51350
51351 2008-12-22  Bruno Haible  <bruno@clisp.org>
51352
51353         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
51354         * doc/posix-functions/iswalpha_l.texi: Likewise.
51355         * doc/posix-functions/iswblank_l.texi: Likewise.
51356         * doc/posix-functions/iswcntrl_l.texi: Likewise.
51357         * doc/posix-functions/iswctype_l.texi: Likewise.
51358         * doc/posix-functions/iswdigit_l.texi: Likewise.
51359         * doc/posix-functions/iswgraph_l.texi: Likewise.
51360         * doc/posix-functions/iswlower_l.texi: Likewise.
51361         * doc/posix-functions/iswprint_l.texi: Likewise.
51362         * doc/posix-functions/iswpunct_l.texi: Likewise.
51363         * doc/posix-functions/iswspace_l.texi: Likewise.
51364         * doc/posix-functions/iswupper_l.texi: Likewise.
51365         * doc/posix-functions/iswxdigit_l.texi: Likewise.
51366         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
51367         * doc/posix-functions/open_wmemstream.texi: Likewise.
51368         * doc/posix-functions/swscanf.texi: Likewise.
51369         * doc/posix-functions/towctrans_l.texi: Likewise.
51370         * doc/posix-functions/towlower.texi: Likewise.
51371         * doc/posix-functions/towlower_l.texi: Likewise.
51372         * doc/posix-functions/towupper.texi: Likewise.
51373         * doc/posix-functions/towupper_l.texi: Likewise.
51374         * doc/posix-functions/vfwprintf.texi: Likewise.
51375         * doc/posix-functions/vfwscanf.texi: Likewise.
51376         * doc/posix-functions/vswscanf.texi: Likewise.
51377         * doc/posix-functions/vwprintf.texi: Likewise.
51378         * doc/posix-functions/vwscanf.texi: Likewise.
51379         * doc/posix-functions/wcpcpy.texi: Likewise.
51380         * doc/posix-functions/wcpncpy.texi: Likewise.
51381         * doc/posix-functions/wcscasecmp.texi: Likewise.
51382         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
51383         * doc/posix-functions/wcscoll_l.texi: Likewise.
51384         * doc/posix-functions/wcsdup.texi: Likewise.
51385         * doc/posix-functions/wcsncasecmp.texi: Likewise.
51386         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
51387         * doc/posix-functions/wcsnlen.texi: Likewise.
51388         * doc/posix-functions/wcsnrtombs.texi: Likewise.
51389         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
51390         * doc/posix-functions/wctrans_l.texi: Likewise.
51391         * doc/posix-functions/wctype_l.texi: Likewise.
51392         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
51393         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
51394         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
51395         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
51396         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
51397         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
51398         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
51399         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
51400         * doc/glibc-functions/wcschrnul.texi: Likewise.
51401         * doc/glibc-functions/wcsftime_l.texi: Likewise.
51402         * doc/glibc-functions/wcstod_l.texi: Likewise.
51403         * doc/glibc-functions/wcstof_l.texi: Likewise.
51404         * doc/glibc-functions/wcstol_l.texi: Likewise.
51405         * doc/glibc-functions/wcstold_l.texi: Likewise.
51406         * doc/glibc-functions/wcstoll_l.texi: Likewise.
51407         * doc/glibc-functions/wcstoq.texi: Likewise.
51408         * doc/glibc-functions/wcstoul_l.texi: Likewise.
51409         * doc/glibc-functions/wcstoull_l.texi: Likewise.
51410         * doc/glibc-functions/wcstouq.texi: Likewise.
51411         * doc/glibc-functions/wmempcpy.texi: Likewise.
51412
51413 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
51414             Eric Blake  <ebb9@byu.net>
51415             Paolo Bonzini  <bonzini@gnu.org>
51416             Bruno Haible  <bruno@clisp.org>
51417
51418         Make c-stack work on Haiku.
51419         * lib/c-stack.c (SA_ONSTACK): Define fallback.
51420         (c_stack_action): Use SA_ONSTACK flag.
51421
51422 2008-12-22  Bruno Haible  <bruno@clisp.org>
51423
51424         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
51425
51426 2008-12-22  Bruno Haible  <bruno@clisp.org>
51427
51428         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
51429         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
51430         being overridden.
51431         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
51432         New macros.
51433         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
51434         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
51435         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
51436         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
51437
51438 2008-12-22  Bruno Haible  <bruno@clisp.org>
51439
51440         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
51441         from test code.
51442
51443 2008-12-22  Eric Blake  <ebb9@byu.net>
51444
51445         Avoid gcc warnings on cygwin.
51446         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
51447         Avoid unused variable.
51448         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
51449         Likewise.
51450
51451 2008-12-22  Bruno Haible  <bruno@clisp.org>
51452
51453         Remove HAVE_MBRTOWC conditionals.
51454         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
51455         (mbscasecmp): Assume mbrtowc function.
51456         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
51457         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
51458         * lib/mbschr.c: Include mbuiter.h unconditionally.
51459         (mbschr): Assume mbrtowc function.
51460         * lib/mbscspn.c: Include mbuiter.h unconditionally.
51461         (mbscspn): Assume mbrtowc function.
51462         * lib/mbslen.c: Include mbuiter.h unconditionally.
51463         (mbslen): Assume mbrtowc function.
51464         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
51465         (mbsncasecmp): Assume mbrtowc function.
51466         * lib/mbsnlen.c: Include mbiter.h unconditionally.
51467         (mbsnlen): Assume mbrtowc function.
51468         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
51469         (mbspbrk): Assume mbrtowc function.
51470         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
51471         (mbspcasecmp): Assume mbrtowc function.
51472         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
51473         (mbsrchr): Assume mbrtowc function.
51474         * lib/mbssep.c: Include mbuiter.h unconditionally.
51475         (mbssep): Assume mbrtowc function.
51476         * lib/mbsspn.c: Include mbuiter.h unconditionally.
51477         (mbsspn): Assume mbrtowc function.
51478         * lib/mbsstr.c: Include mbuiter.h unconditionally.
51479         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
51480         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
51481         (mbstok_r): Assume mbrtowc function.
51482         * lib/propername.c: Include mbuiter.h unconditionally.
51483         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
51484         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
51485         (trim2): Assume mbrtowc function.
51486         * lib/mbswidth.c (mbsinit): Remove fallback definition.
51487         (mbsnwidth): Assume mbrtowc function.
51488         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
51489         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
51490         fallback definitions.
51491         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
51492
51493 2008-12-22  Bruno Haible  <bruno@clisp.org>
51494
51495         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
51496
51497 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
51498
51499         * modules/regex: Request emulations for the mb*/wc* functions we need.
51500         * m4/regex.m4: Don't look for those functions here.
51501         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
51502
51503 2008-12-22  Bruno Haible  <bruno@clisp.org>
51504
51505         * modules/fnmatch (Depends-on): Remove duplicated dependency.
51506
51507 2008-12-21  Bruno Haible  <bruno@clisp.org>
51508
51509         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
51510         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
51511         (Include): Remove conditionalization.
51512         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
51513         (Include): Remove conditionalization.
51514         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
51515         (Include): Remove conditionalization.
51516         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
51517         * m4/mbfile.m4 (gl_MBFILE): Likewise.
51518         * NEWS: Mention the change.
51519         Reported by Alan Hourihane <alanh@fairlite.co.uk>
51520         via Sergey Poznyakoff <gray@gnu.org.ua>.
51521
51522 2008-12-21  Bruno Haible  <bruno@clisp.org>
51523
51524         * MODULES.html.sh (Extended multibyte and wide character utilities
51525         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
51526         wcrtomb, wcsrtombs.
51527         (Support for systems lacking POSIX:2008): Add accept, bind, close,
51528         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
51529         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
51530         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
51531
51532 2008-12-21  Bruno Haible  <bruno@clisp.org>
51533
51534         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
51535
51536 2008-12-21  Bruno Haible  <bruno@clisp.org>
51537
51538         * modules/wcsnrtombs-tests: New file.
51539         * tests/test-wcsnrtombs1.sh: New file.
51540         * tests/test-wcsnrtombs2.sh: New file.
51541         * tests/test-wcsnrtombs3.sh: New file.
51542         * tests/test-wcsnrtombs4.sh: New file.
51543         * tests/test-wcsnrtombs.c: New file.
51544
51545         New module 'wcsnrtombs'.
51546         * lib/wchar.in.h (wcsnrtombs): New declaration.
51547         * lib/wcsnrtombs.c: New file.
51548         * lib/wcsrtombs-state.c: New file.
51549         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
51550         (internal_state): Remove variable.
51551         * m4/wcsnrtombs.m4: New file.
51552         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
51553         compilation units.
51554         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
51555         HAVE_WCSNRTOMBS.
51556         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
51557         HAVE_WCSNRTOMBS.
51558         * modules/wcsnrtombs: New file.
51559         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
51560         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
51561
51562 2008-12-21  Bruno Haible  <bruno@clisp.org>
51563
51564         * modules/wcsrtombs-tests: New file.
51565         * tests/test-wcsrtombs1.sh: New file.
51566         * tests/test-wcsrtombs2.sh: New file.
51567         * tests/test-wcsrtombs3.sh: New file.
51568         * tests/test-wcsrtombs4.sh: New file.
51569         * tests/test-wcsrtombs.c: New file.
51570
51571         New module 'wcsrtombs'.
51572         * lib/wchar.in.h (wcsrtombs): New declaration.
51573         * lib/wcsrtombs.c: New file.
51574         * m4/wcsrtombs.m4: New file.
51575         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
51576         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
51577         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
51578         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
51579         * modules/wcsrtombs: New file.
51580         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
51581         bugs.
51582
51583 2008-12-21  Bruno Haible  <bruno@clisp.org>
51584
51585         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
51586         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
51587         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
51588         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
51589         if not correct.
51590         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
51591         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
51592         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
51593         m4/locale-zh.m4, m4/codeset.m4.
51594         * doc/posix-functions/wcrtomb.texi: Document the bug.
51595
51596 2008-12-21  Bruno Haible  <bruno@clisp.org>
51597
51598         Work around a btowc() bug on IRIX 6.5.
51599         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
51600         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
51601         REPLACE_WTOBC if not.
51602         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
51603         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
51604         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
51605
51606 2008-12-21  Bruno Haible  <bruno@clisp.org>
51607
51608         * modules/wcrtomb-tests: New file.
51609         * tests/test-wcrtomb.sh: New file.
51610         * tests/test-wcrtomb.c: New file.
51611
51612         New module 'wcrtomb'.
51613         * lib/wchar.in.h (wcrtomb): New declaration.
51614         * lib/wcrtomb.c: New file.
51615         * m4/wcrtomb.m4: New file.
51616         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
51617         HAVE_WCRTOMB.
51618         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
51619         HAVE_WCRTOMB.
51620         * modules/wcrtomb: New file.
51621         * doc/posix-functions/wcrtomb.texi: Mention the new module.
51622
51623 2008-12-21  Bruno Haible  <bruno@clisp.org>
51624
51625         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
51626         * modules/mbsrtowcs (Files): Likewise.
51627         * modules/wctob (Files): Likewise.
51628         * modules/c-strcase-tests (Files): Likewise.
51629         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
51630         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
51631         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
51632         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
51633         * modules/vasnprintf-posix-tests (Files): Likewise.
51634
51635 2008-12-21  William Pursell  <bill.pursell@gmail.com>
51636
51637         gitlog-to-changelog: pass all command-line arguments to git-log
51638         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
51639         it is sometimes convenient to filter the commits in various ways.
51640         gitlog-to-changelog only allows --since to specify a start date,
51641         but git-log itself supports many other filtering mechanisms.
51642         At the moment, I want to filter by branch name.  Rather than
51643         adding a --branch option to gitlog-to-changelog, it seems more
51644         flexible to simply pass all options directly to git-log and let
51645         git do the work.  Notice that this effectively makes --since a
51646         redundant option for gitlog-to-changelog, but removing it would
51647         require current usage to change since calls would then require
51648         an additional '--'.
51649
51650 2008-12-21  Bruno Haible  <bruno@clisp.org>
51651
51652         * modules/mbsnrtowcs-tests: New file.
51653         * tests/test-mbsnrtowcs1.sh: New file.
51654         * tests/test-mbsnrtowcs2.sh: New file.
51655         * tests/test-mbsnrtowcs3.sh: New file.
51656         * tests/test-mbsnrtowcs4.sh: New file.
51657         * tests/test-mbsnrtowcs.c: New file.
51658
51659         New module 'mbsnrtowcs'.
51660         * lib/wchar.in.h (mbsnrtowcs): New declaration.
51661         * lib/mbsnrtowcs.c: New file.
51662         * lib/mbsrtowcs-state.c: New file.
51663         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
51664         (internal_state): Remove variable.
51665         * m4/mbsnrtowcs.m4: New file.
51666         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
51667         compilation units.
51668         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
51669         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
51670         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
51671         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
51672         * modules/mbsnrtowcs: New file.
51673         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
51674         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
51675         portability problem.
51676
51677 2008-12-21  Bruno Haible  <bruno@clisp.org>
51678
51679         Work around mbsrtowcs bug.
51680         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
51681         (gl_FUNC_MBSRTOWCS): Invoke it.
51682         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
51683         m4/locale-zh.m4.
51684         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
51685
51686 2008-12-21  Bruno Haible  <bruno@clisp.org>
51687
51688         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
51689
51690 2008-12-21  Bruno Haible  <bruno@clisp.org>
51691
51692         Update doc for AIX.
51693         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
51694         16-bit wchar_t type.
51695         * doc/posix-functions/btowc.texi: Likewise.
51696         * doc/posix-functions/fgetwc.texi: Likewise.
51697         * doc/posix-functions/fgetws.texi: Likewise.
51698         * doc/posix-functions/fputwc.texi: Likewise.
51699         * doc/posix-functions/fputws.texi: Likewise.
51700         * doc/posix-functions/fwide.texi: Likewise.
51701         * doc/posix-functions/fwprintf.texi: Likewise.
51702         * doc/posix-functions/fwscanf.texi: Likewise.
51703         * doc/posix-functions/getwchar.texi: Likewise.
51704         * doc/posix-functions/getwc.texi: Likewise.
51705         * doc/posix-functions/iswalnum.texi: Likewise.
51706         * doc/posix-functions/iswalpha.texi: Likewise.
51707         * doc/posix-functions/iswblank.texi: Likewise.
51708         * doc/posix-functions/iswcntrl.texi: Likewise.
51709         * doc/posix-functions/iswctype.texi: Likewise.
51710         * doc/posix-functions/iswdigit.texi: Likewise.
51711         * doc/posix-functions/iswgraph.texi: Likewise.
51712         * doc/posix-functions/iswlower.texi: Likewise.
51713         * doc/posix-functions/iswprint.texi: Likewise.
51714         * doc/posix-functions/iswpunct.texi: Likewise.
51715         * doc/posix-functions/iswspace.texi: Likewise.
51716         * doc/posix-functions/iswupper.texi: Likewise.
51717         * doc/posix-functions/iswxdigit.texi: Likewise.
51718         * doc/posix-functions/mbrtowc.texi: Likewise.
51719         * doc/posix-functions/mbsrtowcs.texi: Likewise.
51720         * doc/posix-functions/mbstowcs.texi: Likewise.
51721         * doc/posix-functions/mbtowc.texi: Likewise.
51722         * doc/posix-functions/putwchar.texi: Likewise.
51723         * doc/posix-functions/putwc.texi: Likewise.
51724         * doc/posix-functions/swprintf.texi: Likewise.
51725         * doc/posix-functions/tolower.texi: Likewise.
51726         * doc/posix-functions/toupper.texi: Likewise.
51727         * doc/posix-functions/towctrans.texi: Likewise.
51728         * doc/posix-functions/ungetwc.texi: Likewise.
51729         * doc/posix-functions/vswprintf.texi: Likewise.
51730         * doc/posix-functions/wcrtomb.texi: Likewise.
51731         * doc/posix-functions/wcscat.texi: Likewise.
51732         * doc/posix-functions/wcschr.texi: Likewise.
51733         * doc/posix-functions/wcscmp.texi: Likewise.
51734         * doc/posix-functions/wcscoll.texi: Likewise.
51735         * doc/posix-functions/wcscpy.texi: Likewise.
51736         * doc/posix-functions/wcscspn.texi: Likewise.
51737         * doc/posix-functions/wcsftime.texi: Likewise.
51738         * doc/posix-functions/wcslen.texi: Likewise.
51739         * doc/posix-functions/wcsncat.texi: Likewise.
51740         * doc/posix-functions/wcsncmp.texi: Likewise.
51741         * doc/posix-functions/wcsncpy.texi: Likewise.
51742         * doc/posix-functions/wcspbrk.texi: Likewise.
51743         * doc/posix-functions/wcsrchr.texi: Likewise.
51744         * doc/posix-functions/wcsrtombs.texi: Likewise.
51745         * doc/posix-functions/wcsspn.texi: Likewise.
51746         * doc/posix-functions/wcsstr.texi: Likewise.
51747         * doc/posix-functions/wcstod.texi: Likewise.
51748         * doc/posix-functions/wcstof.texi: Likewise.
51749         * doc/posix-functions/wcstoimax.texi: Likewise.
51750         * doc/posix-functions/wcstok.texi: Likewise.
51751         * doc/posix-functions/wcstold.texi: Likewise.
51752         * doc/posix-functions/wcstoll.texi: Likewise.
51753         * doc/posix-functions/wcstol.texi: Likewise.
51754         * doc/posix-functions/wcstombs.texi: Likewise.
51755         * doc/posix-functions/wcstoull.texi: Likewise.
51756         * doc/posix-functions/wcstoul.texi: Likewise.
51757         * doc/posix-functions/wcstoumax.texi: Likewise.
51758         * doc/posix-functions/wcswidth.texi: Likewise.
51759         * doc/posix-functions/wcsxfrm.texi: Likewise.
51760         * doc/posix-functions/wctob.texi: Likewise.
51761         * doc/posix-functions/wctomb.texi: Likewise.
51762         * doc/posix-functions/wctrans.texi: Likewise.
51763         * doc/posix-functions/wctype.texi: Likewise.
51764         * doc/posix-functions/wcwidth.texi: Likewise.
51765         * doc/posix-functions/wmemchr.texi: Likewise.
51766         * doc/posix-functions/wmemcmp.texi: Likewise.
51767         * doc/posix-functions/wmemcpy.texi: Likewise.
51768         * doc/posix-functions/wmemmove.texi: Likewise.
51769         * doc/posix-functions/wmemset.texi: Likewise.
51770         * doc/posix-functions/wprintf.texi: Likewise.
51771         * doc/posix-functions/wscanf.texi: Likewise.
51772
51773 2008-12-21  Bruno Haible  <bruno@clisp.org>
51774
51775         Update doc for HP-UX 11.11.
51776         * doc/posix-functions/btowc.texi: Clarify that the function is missing
51777         in HP-UX version 11.00, not in all versions of HP-UX 11.
51778         * doc/posix-functions/fwide.texi: Likewise.
51779         * doc/posix-functions/fwprintf.texi: Likewise.
51780         * doc/posix-functions/fwscanf.texi: Likewise.
51781         * doc/posix-functions/inet_ntop.texi: Likewise.
51782         * doc/posix-functions/inet_pton.texi: Likewise.
51783         * doc/posix-functions/mbrlen.texi: Likewise.
51784         * doc/posix-functions/mbrtowc.texi: Likewise.
51785         * doc/posix-functions/mbsinit.texi: Likewise.
51786         * doc/posix-functions/mbsrtowcs.texi: Likewise.
51787         * doc/posix-functions/swprintf.texi: Likewise.
51788         * doc/posix-functions/swscanf.texi: Likewise.
51789         * doc/posix-functions/towctrans.texi: Likewise.
51790         * doc/posix-functions/vfwprintf.texi: Likewise.
51791         * doc/posix-functions/vswprintf.texi: Likewise.
51792         * doc/posix-functions/vwprintf.texi: Likewise.
51793         * doc/posix-functions/wcrtomb.texi: Likewise.
51794         * doc/posix-functions/wcsrtombs.texi: Likewise.
51795         * doc/posix-functions/wcsstr.texi: Likewise.
51796         * doc/posix-functions/wctob.texi: Likewise.
51797         * doc/posix-functions/wctrans.texi: Likewise.
51798         * doc/posix-functions/wmemchr.texi: Likewise.
51799         * doc/posix-functions/wmemcmp.texi: Likewise.
51800         * doc/posix-functions/wmemcpy.texi: Likewise.
51801         * doc/posix-functions/wmemmove.texi: Likewise.
51802         * doc/posix-functions/wmemset.texi: Likewise.
51803         * doc/posix-functions/wprintf.texi: Likewise.
51804         * doc/posix-functions/wscanf.texi: Likewise.
51805
51806 2008-12-21  Bruno Haible  <bruno@clisp.org>
51807
51808         Work around a portability problem.
51809         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
51810         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
51811
51812 2008-12-20  Bruno Haible  <bruno@clisp.org>
51813
51814         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
51815         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
51816         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
51817         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
51818         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
51819
51820         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
51821         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
51822         set.
51823         (GNULIB_defined_mbstate_t): New macro.
51824         (mbsinit): Redefine if REPLACE_MBSINIT is set.
51825         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
51826         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
51827         reuses the system's mbrtowc function but works around the bugs.
51828         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
51829         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
51830         macros.
51831         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
51832         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
51833         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
51834         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
51835         REPLACE_MBSINIT if mbsinit needs to be overridden.
51836         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
51837         REPLACE_MBSINIT, REPLACE_MBRTOWC.
51838         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
51839         REPLACE_MBSINIT, REPLACE_MBRTOWC.
51840         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
51841         m4/locale-zh.m4.
51842         (Depends): Add mbsinit.
51843         * modules/mbsinit (Depends): Add mbrtowc.
51844         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
51845
51846 2008-12-20  Bruno Haible  <bruno@clisp.org>
51847
51848         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
51849         so that there are no conversion errors on AIX.
51850         * tests/test-mbsrtowcs.c (main): LIkewise.
51851
51852 2008-12-20  Bruno Haible  <bruno@clisp.org>
51853
51854         Work around wctob bug on Solaris <= 9.
51855         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
51856         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
51857         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
51858         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
51859         * modules/wctob (Files): Add m4/locale-fr.m4.
51860         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
51861
51862 2008-12-20  Bruno Haible  <bruno@clisp.org>
51863
51864         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
51865         /dev/null.
51866         * tests/test-select-in.sh: Likewise.
51867         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51868
51869 2008-12-20  Bruno Haible  <bruno@clisp.org>
51870
51871         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
51872         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
51873         Cygwin 1.5.x.
51874
51875 2008-12-20  Bruno Haible  <bruno@clisp.org>
51876
51877         Ensure mbstate_t is defined on HP-UX 11.11.
51878         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
51879         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
51880         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
51881         AC_USE_SYSTEM_EXTENSIONS.
51882         * modules/fnmatch (Depends-on): Add extensions.
51883         * modules/mbrlen (Depends-on): Likewise.
51884         * modules/mbrtowc (Depends-on): Likewise.
51885         * modules/mbsinit (Depends-on): Likewise.
51886         * modules/mbsrtowcs (Depends-on): Likewise.
51887         * modules/mbswidth (Depends-on): Likewise.
51888         * modules/quotearg (Depends-on): Likewise.
51889         * modules/strftime (Depends-on): Likewise.
51890
51891 2008-12-20  Bruno Haible  <bruno@clisp.org>
51892
51893         Ensure wctob is declared on IRIX 6.5.
51894         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
51895         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
51896         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
51897         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
51898         of HAVE_WCTOB.
51899         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
51900         HAVE_WCTOB.
51901         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
51902
51903 2008-12-19  Bruno Haible  <bruno@clisp.org>
51904
51905         * modules/mbsrtowcs-tests: New file.
51906         * tests/test-mbsrtowcs1.sh: New file.
51907         * tests/test-mbsrtowcs2.sh: New file.
51908         * tests/test-mbsrtowcs3.sh: New file.
51909         * tests/test-mbsrtowcs4.sh: New file.
51910         * tests/test-mbsrtowcs.c: New file.
51911
51912         New module 'mbsrtowcs'.
51913         * lib/wchar.in.h (mbsrtowcs): New declaration.
51914         * lib/mbsrtowcs.c: New file.
51915         * m4/mbsrtowcs.m4: New file.
51916         * modules/mbsrtowcs: New file.
51917         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
51918         HAVE_MBSRTOWCS.
51919         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
51920         HAVE_MBSRTOWCS.
51921         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
51922
51923 2008-12-19  Bruno Haible  <bruno@clisp.org>
51924
51925         New module 'mbrlen'.
51926         * lib/wchar.in.h (mbrlen): New declaration.
51927         * lib/mbrlen.c: New file.
51928         * m4/mbrlen.m4: New file.
51929         * modules/mbrlen: New file.
51930         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
51931         HAVE_MBRLEN.
51932         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
51933         HAVE_MBRLEN.
51934         * doc/posix-functions/mbrlen.texi: Document the new module.
51935
51936 2008-12-19  Bruno Haible  <bruno@clisp.org>
51937
51938         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
51939         * modules/mbrtowc (Depends-on): Add verify.
51940         Suggested by Paul Eggert.
51941
51942 2008-12-18  Bruno Haible  <bruno@clisp.org>
51943
51944         * modules/mbsinit-tests: New file.
51945         * tests/test-mbsinit.sh: New file.
51946         * tests/test-mbsinit.c: New file.
51947
51948 2008-12-18  Bruno Haible  <bruno@clisp.org>
51949
51950         * modules/mbrtowc-tests: New file.
51951         * tests/test-mbrtowc1.sh: New file.
51952         * tests/test-mbrtowc2.sh: New file.
51953         * tests/test-mbrtowc3.sh: New file.
51954         * tests/test-mbrtowc4.sh: New file.
51955         * tests/test-mbrtowc.c: New file.
51956
51957         New module 'mbrtowc'.
51958         * lib/wchar.in.h (mbstate_t): Override when the system does not have
51959         mbsinit and mbrtowc.
51960         (mbrtowc): New declaration.
51961         * lib/mbrtowc.c: New file.
51962         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
51963         * modules/mbrtowc: New file.
51964         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
51965         HAVE_MBRTOWC.
51966         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
51967         HAVE_MBRTOWC.
51968         * doc/posix-functions/mbrtowc.texi: Document the new module.
51969
51970 2008-12-18  Bruno Haible  <bruno@clisp.org>
51971
51972         New module 'wctob'.
51973         * lib/wchar.in.h (wctob): New declaration.
51974         * lib/wctob.c: New file.
51975         * m4/wctob.m4: New file.
51976         * modules/wctob: New file.
51977         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
51978         HAVE_WCTOB.
51979         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
51980         * doc/posix-functions/wctob.texi: Document the new module.
51981
51982 2008-12-18  Bruno Haible  <bruno@clisp.org>
51983
51984         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
51985         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
51986
51987 2008-12-18  Simon Josefsson  <simon@josefsson.org>
51988
51989         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
51990         G. Christensen" <tgc@jupiterrise.com>.
51991
51992         * lib/flock.c: Need to include errno.h.  Reported by "Tom
51993         G. Christensen" <tgc@jupiterrise.com>.
51994
51995         * lib/flock.c: Need to include string.h.  Reported by "Tom
51996         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
51997         <ebb9@byu.net>.
51998
51999 2008-12-18  Bruno Haible  <bruno@clisp.org>
52000
52001         * m4/locale-ja.m4: New file, from GNU gettext.
52002
52003 2008-12-17  Bruno Haible  <bruno@clisp.org>
52004
52005         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
52006         Suggested by Eric Blake.
52007
52008 2008-12-17  Bruno Haible  <bruno@clisp.org>
52009
52010         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
52011
52012 2008-12-17  Bruno Haible  <bruno@clisp.org>
52013
52014         * lib/mbsinit.c: Include verify.h. Verify an assumption.
52015         * modules/mbsinit (Depends-on): Add verify.
52016         Suggested by Paul Eggert.
52017
52018 2008-12-17  Bruno Haible  <bruno@clisp.org>
52019
52020         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
52021         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
52022         gl_FUNC_MBRTOWC.
52023         * m4/mbiter.m4 (gl_MBITER): LIkewise.
52024         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
52025         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
52026         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
52027         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
52028         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
52029         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
52030         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
52031         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
52032         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
52033         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
52034         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
52035         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
52036         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
52037         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
52038         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
52039         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
52040         * modules/trim (configure.ac): Likewise.
52041
52042 2008-12-17  Bruno Haible  <bruno@clisp.org>
52043
52044         * modules/btowc-tests: New file.
52045         * tests/test-btowc1.sh: New file.
52046         * tests/test-btowc2.sh: New file.
52047         * tests/test-btowc.c: New file.
52048
52049         New module 'btowc'.
52050         * lib/wchar.in.h (btowc): New declaration.
52051         * lib/btowc.c: New file.
52052         * m4/btowc.m4: New file.
52053         * modules/btowc: New file.
52054         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
52055         HAVE_BTOWC.
52056         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
52057         * doc/posix-functions/btowc.texi: Document the new module.
52058
52059 2008-12-17  Bruno Haible  <bruno@clisp.org>
52060
52061         New module 'mbsinit'.
52062         * lib/wchar.in.h (mbsinit): New declaration.
52063         * lib/mbsinit.c: New file.
52064         * m4/mbsinit.m4: New file.
52065         * modules/mbsinit: New file.
52066         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
52067         HAVE_MBSINIT.
52068         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
52069         HAVE_MBSINIT.
52070         * doc/posix-functions/mbsinit.texi: Document the new module.
52071
52072 2008-12-16  Bruno Haible  <bruno@clisp.org>
52073
52074         * lib/unistd.in.h: Add comment.
52075         * tests/test-environ.c: Don't include <stdlib.h>.
52076
52077 2008-12-16  Bruno Haible  <bruno@clisp.org>
52078
52079         * lib/parse-duration.h (parse_duration): Document return value
52080         convention.
52081         * lib/parse-duration.c: Include specification header first. Add
52082         comments.
52083         (_): Remove macro.
52084         (parse_year_month_day, parse_hour_minute_second): Move side effects
52085         outside of strchr call.
52086         (parse_non_iso8601): Move side effects outside of isspace call.
52087         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
52088         call.
52089
52090 2008-12-16  Bruno Haible  <bruno@clisp.org>
52091
52092         * tests/test-parse-duration.sh: Produce no output when the test
52093         succeeds.
52094
52095 2008-12-16  Bruno Haible  <bruno@clisp.org>
52096
52097         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
52098         expressions.
52099
52100 2008-12-15  Bruno Haible  <bruno@clisp.org>
52101
52102         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
52103         * doc/glibc-functions/flistxattr.texi: Likewise.
52104         * doc/glibc-functions/fopencookie.texi: Likewise.
52105         * doc/glibc-functions/fremovexattr.texi: Likewise.
52106         * doc/glibc-functions/fsetxattr.texi: Likewise.
52107         * doc/glibc-functions/getxattr.texi: Likewise.
52108         * doc/glibc-functions/lgetxattr.texi: Likewise.
52109         * doc/glibc-functions/listxattr.texi: Likewise.
52110         * doc/glibc-functions/llistxattr.texi: Likewise.
52111         * doc/glibc-functions/lremovexattr.texi: Likewise.
52112         * doc/glibc-functions/lsetxattr.texi: Likewise.
52113         * doc/glibc-functions/removexattr.texi: Likewise.
52114         * doc/glibc-functions/setxattr.texi: Likewise.
52115         * doc/posix-functions/open_memstream.texi: Likewise.
52116
52117 2008-12-15  Eric Blake  <ebb9@byu.net>
52118
52119         Update doc for cygwin 1.7.
52120         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
52121         functions.
52122         * doc/posix-functions/fchmodat.texi: Likewise.
52123         * doc/posix-functions/fchownat.texi: Likewise.
52124         * doc/posix-functions/fdopendir.texi: Likewise.
52125         * doc/posix-functions/fmemopen.texi: Likewise.
52126         * doc/posix-functions/freeaddrinfo.texi: Likewise.
52127         * doc/posix-functions/fstatat.texi: Likewise.
52128         * doc/posix-functions/futimens.texi: Likewise.
52129         * doc/posix-functions/gai_strerror.texi: Likewise.
52130         * doc/posix-functions/getaddrinfo.texi: Likewise.
52131         * doc/posix-functions/getnameinfo.texi: Likewise.
52132         * doc/posix-functions/if_freenameindex.texi: Likewise.
52133         * doc/posix-functions/if_indextoname.texi: Likewise.
52134         * doc/posix-functions/if_nameindex.texi: Likewise.
52135         * doc/posix-functions/if_nametoindex.texi: Likewise.
52136         * doc/posix-functions/insque.texi: Likewise.
52137         * doc/posix-functions/linkat.texi: Likewise.
52138         * doc/posix-functions/llrint.texi: Likewise.
52139         * doc/posix-functions/llrintf.texi: Likewise.
52140         * doc/posix-functions/llrintl.texi: Likewise.
52141         * doc/posix-functions/lockf.texi: Likewise.
52142         * doc/posix-functions/lrintl.texi: Likewise.
52143         * doc/posix-functions/mkdirat.texi: Likewise.
52144         * doc/posix-functions/mkfifoat.texi: Likewise.
52145         * doc/posix-functions/mknodat.texi: Likewise.
52146         * doc/posix-functions/mq_close.texi: Likewise.
52147         * doc/posix-functions/mq_getattr.texi: Likewise.
52148         * doc/posix-functions/mq_notify.texi: Likewise.
52149         * doc/posix-functions/mq_open.texi: Likewise.
52150         * doc/posix-functions/mq_receive.texi: Likewise.
52151         * doc/posix-functions/mq_send.texi: Likewise.
52152         * doc/posix-functions/mq_setattr.texi: Likewise.
52153         * doc/posix-functions/mq_timedreceive.texi: Likewise.
52154         * doc/posix-functions/mq_timedsend.texi: Likewise.
52155         * doc/posix-functions/mq_unlink.texi: Likewise.
52156         * doc/posix-functions/open_memstream.texi: Likewise.
52157         * doc/posix-functions/openat.texi: Likewise.
52158         * doc/posix-functions/posix_fadvise.texi: Likewise.
52159         * doc/posix-functions/posix_fallocate.texi: Likewise.
52160         * doc/posix-functions/posix_madvise.texi: Likewise.
52161         * doc/posix-functions/posix_memalign.texi: Likewise.
52162         * doc/posix-functions/posix_openpt.texi: Likewise.
52163         * doc/posix-functions/readlinkat.texi: Likewise.
52164         * doc/posix-functions/remque.texi: Likewise.
52165         * doc/posix-functions/renameat.texi: Likewise.
52166         * doc/posix-functions/rintl.texi: Likewise.
52167         * doc/posix-functions/sem_unlink.texi: Likewise.
52168         * doc/posix-functions/shm_open.texi: Likewise.
52169         * doc/posix-functions/shm_unlink.texi: Likewise.
52170         * doc/posix-functions/signgam.texi: Likewise.
52171         * doc/posix-functions/sigset.texi: Likewise.
52172         * doc/posix-functions/stpcpy.texi: Likewise.
52173         * doc/posix-functions/stpncpy.texi: Likewise.
52174         * doc/posix-functions/strerror.texi: Likewise.
52175         * doc/posix-functions/strtod.texi: Likewise.
52176         * doc/posix-functions/symlinkat.texi: Likewise.
52177         * doc/posix-functions/unlinkat.texi: Likewise.
52178         * doc/posix-functions/utimensat.texi: Likewise.
52179         * doc/glibc-functions/bindresvport.texi: Likewise.
52180         * doc/glibc-functions/dn_expand.texi: Likewise.
52181         * doc/glibc-functions/exp10.texi: Likewise.
52182         * doc/glibc-functions/exp10f.texi: Likewise.
52183         * doc/glibc-functions/fgetxattr.texi: Likewise.
52184         * doc/glibc-functions/flistxattr.texi: Likewise.
52185         * doc/glibc-functions/fopencookie.texi: Likewise.
52186         * doc/glibc-functions/freeifaddrs.texi: Likewise.
52187         * doc/glibc-functions/fremovexattr.texi: Likewise.
52188         * doc/glibc-functions/fsetxattr.texi: Likewise.
52189         * doc/glibc-functions/getifaddrs.texi: Likewise.
52190         * doc/glibc-functions/getxattr.texi: Likewise.
52191         * doc/glibc-functions/lgetxattr.texi: Likewise.
52192         * doc/glibc-functions/listxattr.texi: Likewise.
52193         * doc/glibc-functions/llistxattr.texi: Likewise.
52194         * doc/glibc-functions/lremovexattr.texi: Likewise.
52195         * doc/glibc-functions/lsetxattr.texi: Likewise.
52196         * doc/glibc-functions/pow10.texi: Likewise.
52197         * doc/glibc-functions/pow10f.texi: Likewise.
52198         * doc/glibc-functions/rcmd_af.texi: Likewise.
52199         * doc/glibc-functions/removexattr.texi: Likewise.
52200         * doc/glibc-functions/res_init.texi: Likewise.
52201         * doc/glibc-functions/res_mkquery.texi: Likewise.
52202         * doc/glibc-functions/res_query.texi: Likewise.
52203         * doc/glibc-functions/res_querydomain.texi: Likewise.
52204         * doc/glibc-functions/res_send.texi: Likewise.
52205         * doc/glibc-functions/rresvport_af.texi: Likewise.
52206         * doc/glibc-functions/setxattr.texi: Likewise.
52207         * doc/glibc-functions/strcasestr.texi: Likewise.
52208
52209 2008-12-15  Bruno Haible  <bruno@clisp.org>
52210
52211         Fix compilation error on OSF/1 4.0.
52212         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
52213         <sys/time.h>, simply delegate to the system header.
52214         Reported by Daniel Richard G. <oss@teragram.com>.
52215
52216 2008-12-15  Bruno Haible  <bruno@clisp.org>
52217
52218         * doc/posix-functions/openat.texi: Mention the 'openat' module.
52219         * doc/posix-functions/fchmodat.texi: Likewise.
52220         * doc/posix-functions/fchownat.texi: Likewise.
52221         * doc/posix-functions/fdopendir.texi: Likewise.
52222         * doc/posix-functions/fstatat.texi: Likewise.
52223         * doc/posix-functions/mkdirat.texi: Likewise.
52224         * doc/posix-functions/unlinkat.texi: Likewise.
52225
52226 2008-12-14  Bruno Haible  <bruno@clisp.org>
52227
52228         Update doc for POSIX:2008.
52229         * doc/posix-functions/faccessat.texi: New file.
52230         * doc/posix-functions/fchmodat.texi: New file.
52231         * doc/posix-functions/fchownat.texi: New file.
52232         * doc/posix-functions/fdopendir.texi: New file.
52233         * doc/posix-functions/fstatat.texi: New file.
52234         * doc/posix-functions/futimens.texi: New file.
52235         * doc/posix-functions/linkat.texi: New file.
52236         * doc/posix-functions/mkdirat.texi: New file.
52237         * doc/posix-functions/mkfifoat.texi: New file.
52238         * doc/posix-functions/mknodat.texi: New file.
52239         * doc/posix-functions/open_wmemstream.texi: New file.
52240         * doc/posix-functions/openat.texi: New file.
52241         * doc/posix-functions/psiginfo.texi: New file.
52242         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
52243         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
52244         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
52245         * doc/posix-functions/readlinkat.texi: New file.
52246         * doc/posix-functions/renameat.texi: New file.
52247         * doc/posix-functions/strerror_l.texi: New file.
52248         * doc/posix-functions/symlinkat.texi: New file.
52249         * doc/posix-functions/unlinkat.texi: New file.
52250         * doc/posix-functions/utimensat.texi: New file.
52251         * doc/gnulib.texi (Function Substitutes): Add these subsections.
52252
52253 2008-12-14  Bruno Haible  <bruno@clisp.org>
52254
52255         Update doc for POSIX:2008.
52256         * doc/posix-functions/alphasort.texi: Renamed from
52257         doc/glibc-functions/alphasort.texi.
52258         * doc/posix-functions/dirfd.texi: Renamed from
52259         doc/glibc-functions/dirfd.texi.
52260         * doc/posix-functions/dprintf.texi: Renamed from
52261         doc/glibc-functions/dprintf.texi.
52262         * doc/posix-functions/duplocale.texi: Renamed from
52263         doc/glibc-functions/duplocale.texi.
52264         * doc/posix-functions/fexecve.texi: Renamed from
52265         doc/glibc-functions/fexecve.texi.
52266         * doc/posix-functions/fmemopen.texi: Renamed from
52267         doc/glibc-functions/fmemopen.texi.
52268         * doc/posix-functions/freelocale.texi: Renamed from
52269         doc/glibc-functions/freelocale.texi.
52270         * doc/posix-functions/getdate_err.texi: Renamed from
52271         doc/glibc-functions/getdate_err.texi.
52272         * doc/posix-functions/isalnum_l.texi: Renamed from
52273         doc/glibc-functions/isalnum_l.texi.
52274         * doc/posix-functions/isalpha_l.texi: Renamed from
52275         doc/glibc-functions/isalpha_l.texi.
52276         * doc/posix-functions/isblank_l.texi: Renamed from
52277         doc/glibc-functions/isblank_l.texi.
52278         * doc/posix-functions/iscntrl_l.texi: Renamed from
52279         doc/glibc-functions/iscntrl_l.texi.
52280         * doc/posix-functions/isdigit_l.texi: Renamed from
52281         doc/glibc-functions/isdigit_l.texi.
52282         * doc/posix-functions/isgraph_l.texi: Renamed from
52283         doc/glibc-functions/isgraph_l.texi.
52284         * doc/posix-functions/islower_l.texi: Renamed from
52285         doc/glibc-functions/islower_l.texi.
52286         * doc/posix-functions/isprint_l.texi: Renamed from
52287         doc/glibc-functions/isprint_l.texi.
52288         * doc/posix-functions/ispunct_l.texi: Renamed from
52289         doc/glibc-functions/ispunct_l.texi.
52290         * doc/posix-functions/isspace_l.texi: Renamed from
52291         doc/glibc-functions/isspace_l.texi.
52292         * doc/posix-functions/isupper_l.texi: Renamed from
52293         doc/glibc-functions/isupper_l.texi.
52294         * doc/posix-functions/iswalnum_l.texi: Renamed from
52295         doc/glibc-functions/iswalnum_l.texi.
52296         * doc/posix-functions/iswalpha_l.texi: Renamed from
52297         doc/glibc-functions/iswalpha_l.texi.
52298         * doc/posix-functions/iswblank_l.texi: Renamed from
52299         doc/glibc-functions/iswblank_l.texi.
52300         * doc/posix-functions/iswcntrl_l.texi: Renamed from
52301         doc/glibc-functions/iswcntrl_l.texi.
52302         * doc/posix-functions/iswctype_l.texi: Renamed from
52303         doc/glibc-functions/iswctype_l.texi.
52304         * doc/posix-functions/iswdigit_l.texi: Renamed from
52305         doc/glibc-functions/iswdigit_l.texi.
52306         * doc/posix-functions/iswgraph_l.texi: Renamed from
52307         doc/glibc-functions/iswgraph_l.texi.
52308         * doc/posix-functions/iswlower_l.texi: Renamed from
52309         doc/glibc-functions/iswlower_l.texi.
52310         * doc/posix-functions/iswprint_l.texi: Renamed from
52311         doc/glibc-functions/iswprint_l.texi.
52312         * doc/posix-functions/iswpunct_l.texi: Renamed from
52313         doc/glibc-functions/iswpunct_l.texi.
52314         * doc/posix-functions/iswspace_l.texi: Renamed from
52315         doc/glibc-functions/iswspace_l.texi.
52316         * doc/posix-functions/iswupper_l.texi: Renamed from
52317         doc/glibc-functions/iswupper_l.texi.
52318         * doc/posix-functions/iswxdigit_l.texi: Renamed from
52319         doc/glibc-functions/iswxdigit_l.texi.
52320         * doc/posix-functions/isxdigit_l.texi: Renamed from
52321         doc/glibc-functions/isxdigit_l.texi.
52322         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
52323         doc/glibc-functions/mbsnrtowcs.texi.
52324         * doc/posix-functions/mkdtemp.texi: Renamed from
52325         doc/glibc-functions/mkdtemp.texi.
52326         * doc/posix-functions/newlocale.texi: Renamed from
52327         doc/glibc-functions/newlocale.texi.
52328         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
52329         doc/glibc-functions/nl_langinfo_l.texi.
52330         * doc/posix-functions/open_memstream.texi: Renamed from
52331         doc/glibc-functions/open_memstream.texi.
52332         * doc/posix-functions/opterr.texi: Renamed from
52333         doc/glibc-functions/opterr.texi.
52334         * doc/posix-functions/optind.texi: Renamed from
52335         doc/glibc-functions/optind.texi.
52336         * doc/posix-functions/optopt.texi: Renamed from
52337         doc/glibc-functions/optopt.texi.
52338         * doc/posix-functions/psignal.texi: Renamed from
52339         doc/glibc-functions/psignal.texi.
52340         * doc/posix-functions/scandir.texi: Renamed from
52341         doc/glibc-functions/scandir.texi.
52342         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
52343         doc/glibc-functions/sched_get_priority_min.texi.
52344         * doc/posix-functions/signgam.texi: Renamed from
52345         doc/glibc-functions/signgam.texi.
52346         * doc/posix-functions/stpcpy.texi: Renamed from
52347         doc/glibc-functions/stpcpy.texi.
52348         * doc/posix-functions/stpncpy.texi: Renamed from
52349         doc/glibc-functions/stpncpy.texi.
52350         * doc/posix-functions/strcasecmp_l.texi: Renamed from
52351         doc/glibc-functions/strcasecmp_l.texi.
52352         * doc/posix-functions/strcoll_l.texi: Renamed from
52353         doc/glibc-functions/strcoll_l.texi.
52354         * doc/posix-functions/strfmon_l.texi: Renamed from
52355         doc/glibc-functions/strfmon_l.texi.
52356         * doc/posix-functions/strftime_l.texi: Renamed from
52357         doc/glibc-functions/strftime_l.texi.
52358         * doc/posix-functions/strncasecmp_l.texi: Renamed from
52359         doc/glibc-functions/strncasecmp_l.texi.
52360         * doc/posix-functions/strndup.texi: Renamed from
52361         doc/glibc-functions/strndup.texi.
52362         * doc/posix-functions/strnlen.texi: Renamed from
52363         doc/glibc-functions/strnlen.texi.
52364         * doc/posix-functions/strsignal.texi: Renamed from
52365         doc/glibc-functions/strsignal.texi.
52366         * doc/posix-functions/strxfrm_l.texi: Renamed from
52367         doc/glibc-functions/strxfrm_l.texi.
52368         * doc/posix-functions/timer_gettime.texi: Renamed from
52369         doc/glibc-functions/timer_gettime.texi.
52370         * doc/posix-functions/tolower_l.texi: Renamed from
52371         doc/glibc-functions/tolower_l.texi.
52372         * doc/posix-functions/toupper_l.texi: Renamed from
52373         doc/glibc-functions/toupper_l.texi.
52374         * doc/posix-functions/towctrans_l.texi: Renamed from
52375         doc/glibc-functions/towctrans_l.texi.
52376         * doc/posix-functions/towlower_l.texi: Renamed from
52377         doc/glibc-functions/towlower_l.texi.
52378         * doc/posix-functions/towupper_l.texi: Renamed from
52379         doc/glibc-functions/towupper_l.texi.
52380         * doc/posix-functions/uselocale.texi: Renamed from
52381         doc/glibc-functions/uselocale.texi.
52382         * doc/posix-functions/vdprintf.texi: Renamed from
52383         doc/glibc-functions/vdprintf.texi.
52384         * doc/posix-functions/wcpcpy.texi:
52385         Renamed from doc/glibc-functions/wcpcpy.texi.
52386         * doc/posix-functions/wcpncpy.texi: Renamed from
52387         doc/glibc-functions/wcpncpy.texi.
52388         * doc/posix-functions/wcscasecmp.texi: Renamed from
52389         doc/glibc-functions/wcscasecmp.texi.
52390         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
52391         doc/glibc-functions/wcscasecmp_l.texi.
52392         * doc/posix-functions/wcscoll_l.texi: Renamed from
52393         doc/glibc-functions/wcscoll_l.texi.
52394         * doc/posix-functions/wcsdup.texi: Renamed from
52395         doc/glibc-functions/wcsdup.texi.
52396         * doc/posix-functions/wcsncasecmp.texi: Renamed from
52397         doc/glibc-functions/wcsncasecmp.texi.
52398         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
52399         doc/glibc-functions/wcsncasecmp_l.texi.
52400         * doc/posix-functions/wcsnlen.texi: Renamed from
52401         doc/glibc-functions/wcsnlen.texi.
52402         * doc/posix-functions/wcsnrtombs.texi: Renamed from
52403         doc/glibc-functions/wcsnrtombs.texi.
52404         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
52405         doc/glibc-functions/wcsxfrm_l.texi.
52406         * doc/posix-functions/wctrans_l.texi: Renamed from
52407         doc/glibc-functions/wctrans_l.texi.
52408         * doc/posix-functions/wctype_l.texi: Renamed from
52409         doc/glibc-functions/wctype_l.texi.
52410         * doc/gnulib.texi (Function Substitutes): Add these subsections.
52411         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
52412         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
52413         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
52414         these subsections.
52415         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
52416         Remove sections.
52417
52418 2008-12-14  Bruno Haible  <bruno@clisp.org>
52419
52420         Update doc for POSIX:2008.
52421         * doc/posix-functions/*.texi: Update URL of POSIX specification.
52422
52423 2008-12-14  Bruno Haible  <bruno@clisp.org>
52424
52425         Update doc for POSIX:2008.
52426         * doc/pastposix-functions/bcmp.texi: Renamed from
52427         doc/posix-functions/bcmp.texi.
52428         * doc/pastposix-functions/bcopy.texi: Renamed from
52429         doc/posix-functions/bcopy.texi.
52430         * doc/pastposix-functions/bsd_signal.texi: Renamed from
52431         doc/posix-functions/bsd_signal.texi.
52432         * doc/pastposix-functions/bzero.texi: Renamed from
52433         doc/posix-functions/bzero.texi.
52434         * doc/pastposix-functions/ecvt.texi: Renamed from
52435         doc/posix-functions/ecvt.texi.
52436         * doc/pastposix-functions/fcvt.texi: Renamed from
52437         doc/posix-functions/fcvt.texi.
52438         * doc/pastposix-functions/ftime.texi: Renamed from
52439         doc/posix-functions/ftime.texi.
52440         * doc/pastposix-functions/gcvt.texi: Renamed from
52441         doc/posix-functions/gcvt.texi.
52442         * doc/pastposix-functions/getcontext.texi: Renamed from
52443         doc/posix-functions/getcontext.texi.
52444         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
52445         doc/posix-functions/gethostbyaddr.texi.
52446         * doc/pastposix-functions/gethostbyname.texi: Renamed from
52447         doc/posix-functions/gethostbyname.texi.
52448         * doc/pastposix-functions/getwd.texi: Renamed from
52449         doc/posix-functions/getwd.texi.
52450         * doc/pastposix-functions/h_errno.texi: Renamed from
52451         doc/posix-functions/h_errno.texi.
52452         * doc/pastposix-functions/index.texi: Renamed from
52453         doc/posix-functions/index.texi.
52454         * doc/pastposix-functions/makecontext.texi: Renamed from
52455         doc/posix-functions/makecontext.texi.
52456         * doc/pastposix-functions/mktemp.texi: Renamed from
52457         doc/posix-functions/mktemp.texi.
52458         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
52459         doc/posix-functions/pthread_attr_getstackaddr.texi.
52460         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
52461         doc/posix-functions/pthread_attr_setstackaddr.texi.
52462         * doc/pastposix-functions/rindex.texi: Renamed from
52463         doc/posix-functions/rindex.texi.
52464         * doc/pastposix-functions/scalb.texi: Renamed from
52465         doc/posix-functions/scalb.texi.
52466         * doc/pastposix-functions/setcontext.texi: Renamed from
52467         doc/posix-functions/setcontext.texi.
52468         * doc/pastposix-functions/swapcontext.texi: Renamed from
52469         doc/posix-functions/swapcontext.texi.
52470         * doc/pastposix-functions/ualarm.texi: Renamed from
52471         doc/posix-functions/ualarm.texi.
52472         * doc/pastposix-functions/usleep.texi: Renamed from
52473         doc/posix-functions/usleep.texi.
52474         * doc/pastposix-functions/vfork.texi: Renamed from
52475         doc/posix-functions/vfork.texi.
52476         * doc/pastposix-functions/wcswcs.texi: Renamed from
52477         doc/posix-functions/wcswcs.texi.
52478         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
52479         (Function Substitutes): Update.
52480
52481 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52482
52483         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
52484         m4/strerror.m4.
52485
52486 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52487             Bruno Haible  <bruno@clisp.org>
52488
52489         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
52490
52491 2008-12-13  Bruno Haible  <bruno@clisp.org>
52492
52493         * modules/strtoull (Depends-on): Remove unistd.
52494
52495 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52496
52497         * modules/strtoull (Depends-on): Add stdlib.
52498
52499 2008-12-11  Simon Josefsson  <simon@josefsson.org>
52500
52501         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
52502
52503 2008-12-10  Jim Meyering  <meyering@redhat.com>
52504
52505         gl_ASSERT: don't say assertions are disabled when they're not
52506         * m4/assert.m4 (gl_ASSERT): Do not make configure report
52507         "checking whether to enable assertions... no", when they are in
52508         fact enabled.  This is solely a bug in the output of configure.
52509         In spite of saying "no", NDEBUG was not defined in that case.
52510         Also, as noted by Eric Blake, leave assertions enabled upon
52511         --enable-assert=INVALID.
52512
52513 2008-12-10  Bruno Haible  <bruno@clisp.org>
52514
52515         Change MODULES.html to refer to POSIX:2008 where possible.
52516         * MODULES.html.sh (POSIX2008_URL): New variable.
52517         (posix_headers): Remove sys/timeb, ucontext.
52518         (posix2001_headers): New variable.
52519         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
52520         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
52521         index, makecontext, mktemp, pthread_attr_getstackaddr,
52522         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
52523         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
52524         (posix2001_functions): New variable.
52525         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
52526         otherwise.
52527
52528 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52529
52530         add missing include to parse-duration.c
52531         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
52532         * modules/parse-duration (Depends-on): Add xalloc.
52533
52534         fix sed script reading maint.mk
52535         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
52536         (syntax-check-rules): Use it.
52537
52538 2008-12-09  Bruno Haible  <bruno@clisp.org>
52539
52540         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
52541         MacOS X 10.4/PowerPC.
52542         Reported by Simon Josefsson.
52543
52544 2008-12-08  Jim Meyering  <meyering@redhat.com>
52545
52546         work around mingw's lack of some S_IF definitions
52547         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
52548         Reported by Simon Josefsson.
52549
52550 2008-12-08  Bruno Haible  <bruno@clisp.org>
52551
52552         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
52553         applied to variables. Needed on MacOS X 10.4/PowerPC.
52554         Reported by Simon Josefsson.
52555
52556 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
52557         and Eric Blake  <ebb9@byu.net>
52558
52559         assert: honor --enable-assert
52560         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
52561         order to honor --enable-assert, rather than treating it as a
52562         synonym for --disable-assert.
52563
52564 2008-12-08  Jim Meyering  <meyering@redhat.com>
52565
52566         * lib/posixtm.c: Remove now-useless declaration of mktime.
52567
52568         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
52569
52570 2008-12-07  Bruno Haible  <bruno@clisp.org>
52571
52572         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
52573         test_once): Mark functions as static.
52574         * tests/test-tls.c (test_tls): Likewise.
52575
52576 2008-12-07  Bruno Haible  <bruno@clisp.org>
52577
52578         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
52579         iconv_register_autodetect.
52580
52581 2008-12-07  Jim Meyering  <meyering@redhat.com>
52582
52583         posixtm.c: avoid a warning
52584         * lib/posixtm.c (posixtime): Don't initialize tm0.
52585         It's no longer needed to placate gcc4's -Wuninitialized,
52586         and the attempt to placate would elicit a new warning.
52587
52588         unicodeio.c: mark unused parameters
52589         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
52590         (fallback_failure_callback): Likewise.
52591
52592 2008-12-07  Bruno Haible  <bruno@clisp.org>
52593
52594         * gnulib-tool (func_create_testdir): When building the tests
52595         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
52596         Reported by Simon Josefsson.
52597
52598 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52599
52600         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
52601
52602 2008-12-06  Bruno Haible  <bruno@clisp.org>
52603
52604         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
52605         Suggested by Eric Blake.
52606
52607 2008-12-06  Bruno Haible  <bruno@clisp.org>
52608
52609         Fix a c-stack test failure on MacOS X.
52610         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
52611         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
52612         handler for SIGBUS as well.
52613         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
52614         install a signal handler for SIGBUS as well.
52615         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
52616
52617 2008-12-06  Bruno Haible  <bruno@clisp.org>
52618
52619         Advocacy documentation.
52620         * doc/gnulib-intro.texi (Benefits): New section.
52621         * doc/gnulib.texi: Update.
52622
52623 2008-12-06  Bruno Haible  <bruno@clisp.org>
52624
52625         Document the 'manywarnings' module.
52626         * doc/manywarnings.texi: New file.
52627         * doc/gnulib.texi: Include it.
52628
52629 2008-12-05  Eric Blake  <ebb9@byu.net>
52630
52631         tests: silence some gcc warnings
52632         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
52633         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
52634         type mismatches.
52635
52636 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52637             Bruno Haible  <bruno@clisp.org>
52638
52639         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
52640
52641 2008-11-29  Jim Meyering  <meyering@redhat.com>
52642
52643         unicodeio.c: mark unused parameters
52644         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
52645         (fallback_failure_callback): Likewise.
52646
52647         fts: fix a thinko
52648         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
52649         (set_stat_type): Return S_IF*-valued "type" directly.
52650         Prompted by James Youngman's spotting a related bug.
52651         Confirmed by further testing through find.
52652
52653         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
52654         * lib/fts.c (D_TYPE): Define.
52655         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
52656         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
52657         (s_ifmt_shift_bits): New function.
52658         (set_stat_type): New function.
52659         (fts_build): When not calling fts_stat, call set_stat_type
52660         to propagate dirent.d_type info to fts_read caller.
52661         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
52662         fts_statp->st_mode type information may be valid.
52663
52664 2008-11-28  Simon Josefsson  <simon@josefsson.org>
52665
52666         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
52667         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
52668         <sds@gnu.org>.
52669
52670 2008-11-20  Bruno Haible  <bruno@clisp.org>
52671
52672         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
52673         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
52674         INCLUDE_NEXT.
52675         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
52676         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
52677         * modules/math (Makefile.am): Substitute
52678         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
52679         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
52680
52681 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
52682             Bruno Haible  <bruno@clisp.org>
52683
52684         * lib/stdint.in.h: Define all type macros so that their expansion is
52685         a single typedef'ed token. Fixes a compilation failure in Boost which
52686         does "using ::int8_t;".
52687
52688 2008-11-18  Simon Josefsson  <simon@josefsson.org>
52689
52690         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
52691         gl_MANYWARN_ALL_GCC.
52692         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
52693         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
52694         * modules/manywarnings: New file.
52695         * MODULES.html.sh: Mention manywarnings module.
52696
52697 2008-11-18  Bruno Haible  <bruno@clisp.org>
52698
52699         * doc/gnulib-tool.texi (Unit tests): New section.
52700
52701 2008-11-18  Simon Josefsson  <simon@josefsson.org>
52702
52703         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
52704         paths like 'lib/po/foo.po'.
52705
52706 2008-11-17  Simon Josefsson  <simon@josefsson.org>
52707
52708         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
52709         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
52710
52711 2008-11-17  Simon Josefsson  <simon@josefsson.org>
52712
52713         * m4/warnings.m4: Use CPPFLAGS to really check whether the
52714         parameter works.
52715
52716 2008-11-17  Simon Josefsson  <simon@josefsson.org>
52717
52718         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
52719
52720 2008-11-17  Bruce Korb  <bkorb@gnu.org>
52721
52722         * modules/parse-duration-tests: New file.
52723         * tests/test-parse-duration.sh: New file.
52724         * tests/test-parse-duration.c: New file.
52725
52726         New module 'parse-duration'.
52727         * lib/parse-duration.h: New file.
52728         * lib/parse-duration.c: New file.
52729         * modules/parse-duration: New file.
52730
52731 2008-11-17  Bruno Haible  <bruno@clisp.org>
52732
52733         * tests/test-select-out.sh: Comment out the first pipe test.
52734         Reported by Simon Josefsson.
52735
52736 2008-11-17  Bruno Haible  <bruno@clisp.org>
52737
52738         * modules/getaddrinfo (Depends-on): Add servent, hostent.
52739         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
52740         gl_HOSTENT.
52741
52742 2008-11-17  Bruno Haible  <bruno@clisp.org>
52743
52744         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
52745         -lnetwork and -lnet. Needed for Haiku and BeOS.
52746
52747 2008-11-16  Bruno Haible  <bruno@clisp.org>
52748
52749         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
52750
52751 2008-11-16  Bruno Haible  <bruno@clisp.org>
52752
52753         Avoid test failure on Haiku.
52754         * tests/test-fsync.c: Include <errno.h>.
52755         (main): Don't require that fsync (0) fails.
52756
52757 2008-11-15  Bruno Haible  <bruno@clisp.org>
52758
52759         New module 'hostent'.
52760         * modules/hostent: New file.
52761         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
52762
52763 2008-11-15  Bruno Haible  <bruno@clisp.org>
52764
52765         New module 'servent'.
52766         * modules/servent: New file.
52767         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
52768
52769 2008-11-15  Bruno Haible  <bruno@clisp.org>
52770
52771         Avoid generating same test program with two different rules.
52772         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
52773         test-frexp to test-frexp-nolibm.
52774         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
52775         test-frexpl to test-frexpl-nolibm.
52776
52777 2008-11-15  Bruno Haible  <bruno@clisp.org>
52778
52779         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
52780         $(FREXPL_LIBM).
52781
52782 2008-11-15  Bruno Haible  <bruno@clisp.org>
52783
52784         * lib/netdb.in.h: Activate the definitions also when the system's
52785         <netdb.h> has 'struct addrinfo'.
52786         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
52787         EAI_OVERFLOW or AI_NUMERICSERV.
52788         * doc/posix-headers/netdb.texi: Document the problem.
52789
52790 2008-11-15  Bruno Haible  <bruno@clisp.org>
52791
52792         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
52793
52794         Make the 'sched' module work on platforms where <sched.h> exists but
52795         is incomplete (such as Haiku).
52796         * lib/sched.in.h; Include the system's <sched.h> if it exists.
52797         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
52798         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
52799         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
52800         HAVE_STRUCT_SCHED_PARAM.
52801         * modules/sched (Depends-on): Add include_next.
52802         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
52803         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
52804         * doc/posix-headers/sched.texi: Document the issue.
52805
52806 2008-11-13  Jim Meyering  <meyering@redhat.com>
52807
52808         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
52809         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
52810         test would fail due to the difference in the Report bugs to ...
52811         line.  The expected address is empty, "<>", while the actual
52812         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
52813
52814 2008-11-12  Bruno Haible  <bruno@clisp.org>
52815
52816         lstat: don't compile lstat.c on systems lacking lstat
52817         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
52818         which don't have lstat; this is handled by lib/sys_stat.in.h already.
52819         Reported by Daniel P. Berrange via Jim Meyering.
52820
52821 2008-11-12  Jim Meyering  <meyering@redhat.com>
52822
52823         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
52824
52825 2008-11-12  Simon Josefsson  <simon@josefsson.org>
52826
52827         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
52828         instead.
52829
52830 2008-11-12  Bruno Haible  <bruno@clisp.org>
52831
52832         * lib/unicodeio.c: Include unistr.h.
52833         (utf8_wctomb): Remove function.
52834         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
52835
52836 2008-11-12  Simon Josefsson  <simon@josefsson.org>
52837
52838         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
52839         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
52840         <bruno@clisp.org>.
52841         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
52842
52843 2008-11-12  Simon Josefsson  <simon@josefsson.org>
52844
52845         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
52846         * doc/gnulib.texi: Add section for warnings.
52847
52848 2008-11-11  Bruno Haible  <bruno@clisp.org>
52849
52850         * lib/sockets.h: Add a comment.
52851
52852 2008-11-11  Karl Berry  <karl@gnu.org>
52853
52854         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
52855
52856 2008-11-11  Eric Blake  <ebb9@byu.net>
52857
52858         fdl.texi: avoid git symlinks
52859         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
52860
52861 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
52862
52863         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
52864
52865 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
52866
52867         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
52868         (gl_WARN_ADD): Substitute $2 if literal.
52869
52870 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
52871
52872         * m4/warning.m4: Remove.
52873
52874 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
52875
52876         * m4/warnings.m4: Almost complete rewrite. :-)
52877
52878 2008-11-10  Simon Josefsson  <simon@josefsson.org>
52879
52880         * modules/warnings: New module.
52881         * m4/warnings.m4: New file.
52882         * MODULES.html.sh: Mention warnings module.
52883         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
52884         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52885
52886 2008-11-10  Eric Blake  <ebb9@byu.net>
52887
52888         fdl.texi: make a symlink to the latest version
52889         * doc/standards.texi: Revert today's earlier change.
52890         * doc/fdl-1.2.texi: Rename from old fdl.texi...
52891         * doc/fdl.texi: ...and replace this with a symlink to the newer
52892         fdl-1.3.texi.
52893
52894 2008-11-10  Bruno Haible  <bruno@clisp.org>
52895
52896         * tests/test-select-fd.c (main): Accept the result file name as fourth
52897         argument.
52898         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
52899         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
52900
52901 2008-11-10  Bruno Haible  <bruno@clisp.org>
52902
52903         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
52904         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
52905         as autoconf-substituted macros.
52906         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
52907         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
52908         gl_NETDB_H_DEFAULTS. Set these variables.
52909         * modules/netdb (Makefile.am): Substitute these variables.
52910
52911 2008-11-10  Eric Blake  <ebb9@byu.net>
52912
52913         standards.texi: include correct file for FDL 1.3
52914         * doc/standards.texi (GNU Free Documentation License): Change
52915         include file to pull in FDL 1.3, not 1.2.
52916
52917         fdl.texi: revert accidental change to license
52918         * doc/fdl.texi: This is FDL 1.2, not 1.3.
52919
52920 2008-11-10  Bruno Haible  <bruno@clisp.org>
52921
52922         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
52923         cross-compiling guesses also when the native compile gives no result.
52924
52925 2008-11-10  Bruno Haible  <bruno@clisp.org>
52926
52927         * lib/spawni.c (__spawni): Force variable into the stack.
52928
52929 2008-11-10  Bruno Haible  <bruno@clisp.org>
52930
52931         Add support for Haiku.
52932         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
52933         glibc and BeOS, but also on Haiku.
52934         * lib/fpurge.c (fpurge): Likewise.
52935         * lib/freadable.c (freadable): Likewise.
52936         * lib/freadahead.c (freadahead): Likewise.
52937         * lib/freading.c (freading): Likewise.
52938         * lib/freadptr.c (freadptr): Likewise.
52939         * lib/freadseek.c (freadptrinc): Likewise.
52940         * lib/fseeko.c (rpl_fseeko): Likewise.
52941         * lib/fseterr.c (fseterr): Likewise.
52942         * lib/fwritable.c (fwritable): Likewise.
52943         * lib/fwriting.c (fwriting): Likewise.
52944         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
52945
52946 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
52947
52948         * lib/config.charset: Treat Haiku like BeOS.
52949
52950 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
52951
52952         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
52953         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
52954
52955 2008-11-08  Bruno Haible  <bruno@clisp.org>
52956
52957         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
52958         AC_CACHE_CHECK.
52959
52960 2008-11-08  Bruno Haible  <bruno@clisp.org>
52961
52962         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
52963
52964 2008-11-08  Bruno Haible  <bruno@clisp.org>
52965
52966         * tests/test-select-fd.c: New file.
52967         * tests/test-select-in.sh: New file.
52968         * tests/test-select-out.sh: New file.
52969         * tests/test-select-stdin.c: New file.
52970         * modules/select-tests (Files): Add the new files.
52971         (Depends-on): Add gettimeofday.
52972         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
52973         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
52974         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
52975
52976 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
52977             Bruno Haible  <bruno@clisp.org>
52978
52979         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
52980
52981 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
52982
52983         * build-aux/pmccabe2html: Added support for C++ source files.
52984
52985 2008-11-05  Ben Pfaff  <blp@gnu.org>
52986
52987         Fix lib/close.c build on Windows.
52988         * modules/close (Files): Add lib/w32sock.h.
52989
52990 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
52991
52992         Accept Bison's NEWS format.
52993         * build-aux/announce-gen (print_news_deltas): Tweak
52994         $re_prefix.
52995
52996 2008-11-04  Bruno Haible  <bruno@clisp.org>
52997
52998         * modules/random_r (Maintainer): Add glibc.
52999
53000 2008-11-04  Simon Josefsson  <simon@josefsson.org>
53001
53002         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
53003         by karl@freefriends.org (Karl Berry).
53004         * doc/alloca.texi: Likewise.
53005         * doc/c-ctype.texi: Likewise.
53006         * doc/c-strcase.texi: Likewise.
53007         * doc/c-strcaseeq.texi: Likewise.
53008         * doc/c-strcasestr.texi: Likewise.
53009         * doc/c-strstr.texi: Likewise.
53010         * doc/c-strtod.texi: Likewise.
53011         * doc/c-strtold.texi: Likewise.
53012         * doc/ctime.texi: Likewise.
53013         * doc/error.texi: Likewise.
53014         * doc/fdl.texi: Likewise.
53015         * doc/gcd.texi: Likewise.
53016         * doc/getdate.texi: Likewise.
53017         * doc/gnulib-intro.texi: Likewise.
53018         * doc/gnulib-tool.texi: Likewise.
53019         * doc/gnulib.texi: Likewise.
53020         * doc/inet_ntoa.texi: Likewise.
53021         * doc/maintain.texi: Likewise.
53022         * doc/make-stds.texi: Likewise.
53023         * doc/quote.texi: Likewise.
53024         * doc/regexprops-generic.texi: Likewise.
53025         * doc/standards.texi: Likewise.
53026         * doc/verify.texi: Likewise.
53027         * doc/visibility.texi: Likewise.
53028         * doc/gnulib.texi (GNU Free Documentation License): Include
53029         fdl-1.3.texi instead of fdl.texi.
53030
53031 2008-11-04  Simon Josefsson  <simon@josefsson.org>
53032
53033         * doc/fdl-1.3.texi: New file, from
53034         <http://www.gnu.org/licenses/fdl-1.3.texi>.
53035         * modules/fdl-1.3: Add.
53036         * MODULES.html.sh: Add fdl-1.3.
53037
53038 2008-11-03  Bruno Haible  <bruno@clisp.org>
53039
53040         Make determination of absolute name of header file work with AIX xlc.
53041         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
53042         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
53043         preprocessing.
53044         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
53045         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
53046
53047 2008-11-03  Simon Josefsson  <simon@josefsson.org>
53048
53049         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
53050         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
53051         <ludo@gnu.org>.
53052
53053 2008-11-02  Bruno Haible  <bruno@clisp.org>
53054
53055         Mark 'strpbrk' obsolete.
53056         * modules/strpbrk (Status, Notice): New sections.
53057         * modules/strtok_r (Depends-on): Add strpbrk.
53058
53059 2008-11-02  Bruno Haible  <bruno@clisp.org>
53060
53061         Mark 'strdup' obsolete.
53062         * modules/strdup (Status, Notice): New sections.
53063         * modules/findprog (Depends-on): Add strdup.
53064         * modules/getaddrinfo (Depends-on): Likewise.
53065         * modules/localename (Depends-on): Likewise.
53066         * modules/relocatable-lib (Depends-on): Likewise.
53067         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
53068         * modules/relocatable-prog (Depends-on): Likewise.
53069         * modules/trim (Depends-on): Likewise.
53070         * modules/unictype/gen-ctype (Depends-on): Likewise.
53071         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
53072
53073 2008-11-02  Bruno Haible  <bruno@clisp.org>
53074
53075         Mark 'strcspn' obsolete.
53076         * modules/strcspn (Status, Notice): New sections.
53077
53078 2008-11-02  Bruno Haible  <bruno@clisp.org>
53079
53080         Mark 'rmdir' obsolete.
53081         * modules/rmdir (Status, Notice): New sections.
53082         * modules/clean-temp (Depends-on): Add rmdir.
53083         * modules/openat (Depends-on): Likewise.
53084
53085 2008-11-02  Bruno Haible  <bruno@clisp.org>
53086
53087         Mark 'raise' obsolete.
53088         * modules/raise (Status, Notice): New sections.
53089         (Include): Specify <signal.h>.
53090         * modules/stdio (Depends-on): Add raise.
53091         * modules/write (Depends-on): Likewise.
53092
53093 2008-11-02  Bruno Haible  <bruno@clisp.org>
53094
53095         Mark 'memset' obsolete.
53096         * modules/memset (Status, Notice): New sections.
53097
53098 2008-11-02  Bruno Haible  <bruno@clisp.org>
53099
53100         Mark 'memmove' obsolete.
53101         * modules/memmove (Status, Notice): New sections.
53102         * modules/argp (Depends-on): Add memmove.
53103         * modules/argz (Depends-on): Likewise.
53104         * modules/canonicalize (Depends-on): Likewise.
53105         * modules/canonicalize-lgpl (Depends-on): Likewise.
53106         * modules/fts (Depends-on): Likewise.
53107         * modules/getcwd (Depends-on): Likewise.
53108         * modules/human (Depends-on): Likewise.
53109         * modules/regex (Depends-on): Likewise.
53110         * modules/striconveh (Depends-on): Likewise.
53111         * modules/trim (Depends-on): Likewise.
53112         * modules/unistr/u8-move (Depends-on): Likewise.
53113         * modules/unistr/u16-move (Depends-on): Likewise.
53114         * modules/unistr/u32-move (Depends-on): Likewise.
53115
53116 2008-11-02  Bruno Haible  <bruno@clisp.org>
53117
53118         Mark 'memcpy' obsolete.
53119         * modules/memcpy (Status, Notice): New sections.
53120
53121 2008-11-02  Bruno Haible  <bruno@clisp.org>
53122
53123         Mark 'memcmp' obsolete.
53124         * modules/memcmp (Status, Notice): New sections.
53125         * modules/argmatch (Depends-on): Add memchr.
53126         * modules/backupfile (Depends-on): Likewise.
53127         * modules/c-strcasestr (Depends-on): Likewise.
53128         * modules/crypto/des (Depends-on): Likewise.
53129         * modules/csharpcomp (Depends-on): Likewise.
53130         * modules/fnmatch (Depends-on): Likewise.
53131         * modules/git-merge-changelog (Depends-on): Likewise.
53132         * modules/isnand (Depends-on): Likewise.
53133         * modules/isnand-nolibm (Depends-on): Likewise.
53134         * modules/isnanf (Depends-on): Likewise.
53135         * modules/isnanf-nolibm (Depends-on): Likewise.
53136         * modules/isnanl (Depends-on): Likewise.
53137         * modules/isnanl-nolibm (Depends-on): Likewise.
53138         * modules/mbchar (Depends-on): Likewise.
53139         * modules/memcoll (Depends-on): Likewise.
53140         * modules/quotearg (Depends-on): Likewise.
53141         * modules/regex (Depends-on): Likewise.
53142         * modules/relocatable-prog (Depends-on): Likewise.
53143         * modules/same (Depends-on): Likewise.
53144         * modules/signbit (Depends-on): Likewise.
53145         * modules/strcasestr-simple (Depends-on): Likewise.
53146         * modules/unictype/gen-ctype (Depends-on): Likewise.
53147         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
53148         * modules/uniname/uniname (Depends-on): Likewise.
53149         * modules/unistr/u8-cmp (Depends-on): Likewise.
53150
53151 2008-11-02  Bruno Haible  <bruno@clisp.org>
53152
53153         Mark 'memchr' obsolete.
53154         * modules/memchr (Status, Notice): New sections.
53155         * modules/argp (Depends-on): Add memchr.
53156         * modules/base64 (Depends-on): Likewise.
53157         * modules/c-strcasestr (Depends-on): Likewise.
53158         * modules/chdir-long (Depends-on): Likewise.
53159         * modules/fnmatch (Depends-on): Likewise.
53160         * modules/getsubopt (Depends-on): Likewise.
53161         * modules/git-merge-changelog (Depends-on): Likewise.
53162         * modules/glob (Depends-on): Likewise.
53163         * modules/strcasestr-simple (Depends-on): Likewise.
53164         * modules/strnlen (Depends-on): Likewise.
53165
53166 2008-11-02  Bruno Haible  <bruno@clisp.org>
53167
53168         Mark 'atexit' obsolete.
53169         * modules/atexit (Status, Notice): New sections.
53170         * modules/chdir-long (Depends-on): Add atexit.
53171         * modules/wait-process (Depends-on): Likewise.
53172
53173 2008-11-02  Bruno Haible  <bruno@clisp.org>
53174
53175         * gnulib-tool: New option --with-obsolete.
53176         (func_usage): Document it.
53177         (func_modules_transitive_closure): Drop obsolete dependencies if
53178         incobsolete is not true.
53179         (func_import): Read and save the incobsolete variable to the cache.
53180
53181 2008-11-02  Bruno Haible  <bruno@clisp.org>
53182
53183         * modules/TEMPLATE-EXTENDED: New field 'Status'.
53184         * gnulib-tool: New option --extract-status.
53185         (func_usage): Document it.
53186         (sed_extract_prog): Recognize it.
53187         (func_get_status): New function.
53188
53189 2008-10-30  Simon Josefsson  <simon@josefsson.org>
53190
53191         * modules/sockets (License): Change from LGPL to LGPLv2+.
53192
53193 2008-10-28  Simon Josefsson  <simon@josefsson.org>
53194
53195         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
53196
53197 2008-10-28  Simon Josefsson  <simon@josefsson.org>
53198
53199         * MODULES.html.sh (Support for systems lacking POSIX:2001):
53200         Mention times and sys_times.
53201         * modules/sys_times, modules/sys_times-tests: New modules.
53202         * modules/times, modules/times-tests: Likewise
53203         * m4/sys_times_h.m4: New file.
53204         * lib/sys_times.in.h: Likewise
53205         * lib/times.c: Likewise.
53206         * tests/test-sys_times.c: Likewise.
53207         * tests/test-times.c: Likewise.
53208         * doc/posix-headers/sys_times.texi: Update.
53209         * doc/posix-functions/times.texi: Update.
53210
53211 2008-10-28  Jim Meyering  <meyering@redhat.com>
53212
53213         * modules/tempname (Depends-on): Add lstat.
53214
53215         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
53216
53217 2008-10-28  Simon Josefsson  <simon@josefsson.org>
53218
53219         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
53220         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
53221         using idiom used elsewhere in gnulib.
53222
53223 2008-10-27  Jim Meyering  <meyering@redhat.com>
53224
53225         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
53226
53227 2008-10-27  Simon Josefsson  <simon@josefsson.org>
53228
53229         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
53230         TESTS_ENVIRONMENT, for shell scripts that needs to call built
53231         programs.
53232         * tests/test-argp-2.sh: Use $EXEEXT when needed.
53233
53234 2008-10-27  Simon Josefsson  <simon@josefsson.org>
53235
53236         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
53237
53238 2008-10-27  Bruno Haible  <bruno@clisp.org>
53239
53240         * tests/test-lstat.c: Include <stdio.h>.
53241
53242 2008-10-27  Simon Josefsson  <simon@josefsson.org>
53243
53244         * modules/lstat-tests: New module.
53245         * tests/test-lstat.c: New file.
53246
53247 2008-10-26  Jim Meyering  <meyering@redhat.com>
53248
53249         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
53250
53251 2008-10-26  Simon Josefsson  <simon@josefsson.org>
53252             Bruno Haible  <bruno@clisp.org>
53253
53254         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
53255         * modules/configmake (Include): Add a note that the include must come
53256         after all system headers.
53257         * lib/javaversion.c: Include configmake.h after all other includes.
53258
53259 2008-10-26  Bruno Haible  <bruno@clisp.org>
53260
53261         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
53262         HAVE_STRUCT_RANDOM_DATA to 1.
53263         (gl_STDLIB_H): Simplify.
53264
53265 2008-10-26  Simon Josefsson  <simon@josefsson.org>
53266
53267         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
53268         substitute HAVE_STRUCT_RANDOM_DATA.
53269         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
53270         random_data.
53271         * modules/stdlib (Makefile.am): Substitute
53272         HAVE_STRUCT_RANDOM_DATA.
53273
53274 2008-10-26  Simon Josefsson  <simon@josefsson.org>
53275
53276         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
53277         * doc/gnulib-intro.texi (Copyright): Likewise.
53278
53279 2008-10-26  Simon Josefsson  <simon@josefsson.org>
53280
53281         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
53282         findings.
53283
53284 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
53285             Bruno Haible  <bruno@clisp.org>
53286
53287         * lib/unistd.in.h: Include <winsock2.h>.
53288         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
53289         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
53290         Provide dummy declarations.
53291         (gethostname): Override.
53292         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
53293         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
53294         gl_PREREQ_SYS_H_WINSOCK2.
53295         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
53296         * doc/posix-functions/gethostname.texi: More details.
53297
53298 2008-10-25  Bruno Haible  <bruno@clisp.org>
53299
53300         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
53301         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
53302         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
53303
53304         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
53305         here ...
53306         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
53307         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
53308         gl_UNISTD_H_DEFAULTS.
53309
53310 2008-10-25  Eric Blake  <ebb9@byu.net>
53311
53312         signbit: avoid spurious compiler failure
53313         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
53314         declarations inside function.
53315
53316 2008-10-24  Simon Josefsson  <simon@josefsson.org>
53317             Bruno Haible  <bruno@clisp.org>
53318
53319         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
53320         * modules/random_r (Depends-on): Add stdint.
53321
53322 2008-10-24  Bruno Haible  <bruno@clisp.org>
53323
53324         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
53325         Eggert.
53326         * modules/strerror (License): Likewise.
53327
53328 2008-10-24  Jim Meyering  <meyering@redhat.com>
53329
53330         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
53331         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
53332
53333 2008-10-24  Eric Blake  <ebb9@byu.net>
53334
53335         getgroups: fix compilation when getgroups is available
53336         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
53337         but with <config.h> override of getgroups disabled.
53338
53339 2008-10-24  Simon Josefsson  <simon@josefsson.org>
53340
53341         * doc/gnulib.texi (Header files): Add note about C++ problems.
53342         Explained by Bruno Haible <bruno@clisp.org>.
53343
53344 2008-10-23  Bruno Haible  <bruno@clisp.org>
53345
53346         Define a dummy SA_NODEFER macro on Interix.
53347         * lib/signal.in.h (SA_NODEFER): Define fallback.
53348         Reported by Aleksey Cheusov <cheusov@tut.by> via
53349         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
53350
53351 2008-10-23  Bruno Haible  <bruno@clisp.org>
53352
53353         * modules/freadahead (License): Change to LGPLv2+.
53354         Suggested by Simon Josefsson.
53355
53356 2008-10-23  Jim Meyering  <meyering@redhat.com>
53357
53358         random_r: new module
53359         * modules/random_r: New file.
53360         * m4/random_r.m4: New file.
53361         * lib/random_r.c: New file, from glibc.
53362         * modules/random_r-tests: New file.
53363         * tests/test-random_r.c: New file.
53364         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
53365          Declare.
53366         (RAND_MAX): Define.
53367         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
53368         * modules/stdlib: Substitute them, too.
53369         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
53370         * doc/glibc-functions/initstate_r.texi: Mention the new module.
53371         * doc/glibc-functions/random_r.texi: Likewise.
53372         * doc/glibc-functions/setstate_r.texi: Likewise.
53373         * doc/glibc-functions/srandom_r.texi: Likewise.
53374         * config/srclist.txt: Mention it.
53375
53376 2008-10-23  David Lutterkort  <lutter@redhat.com>
53377
53378         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
53379         link requirement
53380
53381 2008-10-23  Jim Meyering  <meyering@redhat.com>
53382
53383         selinux-h: mark parameters of stub functions as intentionally unused
53384         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
53385         * lib/se-context.in.h: Likewise.
53386
53387 2008-10-22  Simon Josefsson  <simon@josefsson.org>
53388
53389         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
53390
53391 2008-10-22  Simon Josefsson  <simon@josefsson.org>
53392
53393         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
53394
53395 2008-10-22  Eric Blake  <ebb9@byu.net>
53396
53397         glthread/thread: avoid compiler warning
53398         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
53399         Add unreachable abort to silence compiler.
53400
53401 2008-10-22  Eric Blake  <ebb9@byu.net>
53402
53403         netdb: also supply struct addrinfo for cygwin 1.5.x
53404         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
53405         older cygwin.
53406         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
53407         cygwin.
53408         * doc/posix-headers/netdb.texi (netdb.h): Document this.
53409
53410 2008-10-22  Bruno Haible  <bruno@clisp.org>
53411
53412         * users.txt: Update entry about pspp.
53413
53414 2008-10-21  Bruno Haible  <bruno@clisp.org>
53415
53416         Simplification.
53417         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
53418         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
53419
53420         Simplification.
53421         * lib/ioctl.c (ioctl): Don't undefine.
53422         * lib/socket.c (socket): Don't undefine.
53423
53424         Remove unused module indicator macros.
53425         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
53426         GNULIB_$1 as a C macro.
53427
53428         * doc/posix-functions/close.texi: Undo last change.
53429         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
53430         Windows platforms.
53431
53432 2008-10-21  Bruno Haible  <bruno@clisp.org>
53433
53434         Add gethostname() declaration to <unistd.h>.
53435         * lib/unistd.in.h (gethostname): New declaration.
53436         * lib/gethostname.c: Include <unistd.h>.
53437         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
53438         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
53439         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
53440         and HAVE_GETHOSTNAME.
53441         * modules/gethostname (Depends-on): Add unistd.
53442         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53443         (Include): Specify <unistd.h>.
53444         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
53445         HAVE_GETHOSTNAME.
53446         * tests/test-gethostname.c: Include <unistd.h> first.
53447
53448 2008-10-21  Bruno Haible  <bruno@clisp.org>
53449
53450         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
53451         * modules/select-tests (Depends-on): Likewise.
53452         Reported by Simon Josefsson.
53453
53454 2008-10-21  Simon Josefsson  <simon@josefsson.org>
53455
53456         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
53457         * lib/accept.c: New file, based on winsock.c.
53458         * lib/bind.c: New file, based on winsock.c.
53459         * lib/connect.c: New file, based on winsock.c.
53460         * lib/getpeername.c: New file, based on winsock.c.
53461         * lib/getsockname.c: New file, based on winsock.c.
53462         * lib/getsockopt.c: New file, based on winsock.c.
53463         * lib/ioctl.c: New file, based on winsock.c.
53464         * lib/listen.c: New file, based on winsock.c.
53465         * lib/recv.c: New file, based on winsock.c.
53466         * lib/recvfrom.c: New file, based on winsock.c.
53467         * lib/send.c: New file, based on winsock.c.
53468         * lib/sendto.c: New file, based on winsock.c.
53469         * lib/setsockopt.c: New file, based on winsock.c.
53470         * lib/shutdown.c: New file, based on winsock.c.
53471         * lib/socket.c: New file, based on winsock.c.
53472         * lib/w32sock.h: New file, based on winsock.c.
53473         * lib/winsock.c: Remove file.
53474         * modules/accept: Likewise.
53475         * modules/bind: Likewise.
53476         * modules/connect: Likewise.
53477         * modules/getpeername: Likewise.
53478         * modules/getsockname: Likewise.
53479         * modules/getsockopt: Likewise.
53480         * modules/ioctl: Likewise.
53481         * modules/listen: Likewise.
53482         * modules/recv: Likewise.
53483         * modules/recvfrom: Likewise.
53484         * modules/send: Likewise.
53485         * modules/sendto: Likewise.
53486         * modules/setsockopt: Likewise.
53487         * modules/shutdown: Likewise.
53488         * modules/socket: Use socket.c instead of winsock.c.
53489         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
53490         * doc/posix-functions/accept.texi: Doc fix.
53491         * doc/posix-functions/bind.texi: Doc fix.
53492         * doc/posix-functions/close.texi: Doc fix.
53493         * doc/posix-functions/connect.texi: Doc fix.
53494         * doc/posix-functions/getpeername.texi: Doc fix.
53495         * doc/posix-functions/getsockname.texi: Doc fix.
53496         * doc/posix-functions/getsockopt.texi: Doc fix.
53497         * doc/posix-functions/ioctl.texi: Doc fix.
53498         * doc/posix-functions/listen.texi: Doc fix.
53499         * doc/posix-functions/recv.texi: Doc fix.
53500         * doc/posix-functions/recvfrom.texi: Doc fix.
53501         * doc/posix-functions/send.texi: Doc fix.
53502         * doc/posix-functions/sendto.texi: Doc fix.
53503         * doc/posix-functions/setsockopt.texi: Doc fix.
53504         * doc/posix-functions/shutdown.texi: Doc fix.
53505         * doc/posix-functions/socket.texi: Doc fix.
53506
53507 2008-10-20  Bruno Haible  <bruno@clisp.org>
53508
53509         Take into account the role of SIGABRT_COMPAT on Windows 2008.
53510         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
53511         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
53512         as an alias for SIGABRT.
53513         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
53514         (sigaction): Map it to SIGABRT.
53515         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
53516
53517 2008-10-20  Bruno Haible  <bruno@clisp.org>
53518
53519         * lib/fts.c: Don't include lstat.h.
53520         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
53521
53522         Move the lstat() declaration to <sys/stat.h>.
53523         * lib/lstat.h: Remove file.
53524         * lib/sys_stat.in.h: Add special invocation convention.
53525         (lstat): New declaration.
53526         * lib/lstat.c (orig_lstat): New function.
53527         (rpl_lstat): Use orig_lstat instead of lstat.
53528         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
53529         AC_C_INLINE. Set REPLACE_LSTAT.
53530         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
53531         and REPLACE_LSTAT.
53532         * modules/lstat (Files): Remove lib/lstat.h.
53533         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
53534         (Include): Specify <sys/stat.h> instead of lstat.h.
53535         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
53536         REPLACE_LSTAT.
53537         * NEWS: Mention the change.
53538
53539 2008-10-20  Bruno Haible  <bruno@clisp.org>
53540
53541         * modules/posix_spawn-tests: New file.
53542         * tests/test-posix_spawn3.c: New file.
53543
53544 2008-10-20  Bruno Haible  <bruno@clisp.org>
53545
53546         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
53547         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
53548         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
53549         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
53550         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
53551
53552 2008-10-20  Bruno Haible  <bruno@clisp.org>
53553
53554         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
53555         of posix_spawn on AIX 5.3.
53556
53557 2008-10-20  Bruno Haible  <bruno@clisp.org>
53558
53559         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
53560
53561 2008-10-20  Bruno Haible  <bruno@clisp.org>
53562
53563         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
53564         of AC_LANG_PROGRAM.
53565
53566 2008-10-20  Simon Josefsson  <simon@josefsson.org>
53567
53568         * lib/netdb.in.h: Don't define GNU specific constants until they
53569         are supported or needed.  Reported by Bruno Haible
53570         <bruno@clisp.org>.
53571
53572 2008-10-20  Simon Josefsson  <simon@josefsson.org>
53573
53574         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
53575
53576 2008-10-20  Simon Josefsson  <simon@josefsson.org>
53577
53578         * lib/getaddrinfo.h: Remove file.
53579         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
53580         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
53581         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
53582         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
53583         * modules/netdb: Substitute GNULIB_GETADDRINFO.
53584         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
53585         * tests/test-getaddrinfo.c: Likewise.
53586         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
53587         * NEWS: Mention change.
53588
53589 2008-10-19  Bruno Haible  <bruno@clisp.org>
53590
53591         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
53592
53593 2008-10-19  Bruno Haible  <bruno@clisp.org>
53594
53595         * lib/wait-process.c: Include simply <sys/wait.h>.
53596         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
53597         WIFSTOPPED): Remove fallback definitions.
53598         * modules/wait-process (Depends-on): Add sys_wait.
53599
53600         New module 'sys_wait'.
53601         * modules/sys_wait: New file.
53602         * lib/sys_wait.in.h: New file, partially copied from
53603         lib/wait-process.c.
53604         * m4/sys_wait_h.m4: New file.
53605         * doc/posix-headers/sys_wait.texi: Mention the new module.
53606
53607 2008-10-19  Bruno Haible  <bruno@clisp.org>
53608
53609         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
53610
53611 2008-10-19  Bruno Haible  <bruno@clisp.org>
53612
53613         Assume that waitpid() fills an 'int' status, not a 'union wait'.
53614         * lib/wait-process.c (WAIT_T): Remove type.
53615         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
53616         (wait_subprocess): Update.
53617
53618 2008-10-19  Bruno Haible  <bruno@clisp.org>
53619
53620         New module 'atoll'.
53621         * modules/atoll: New file.
53622         * lib/stdlib.in.h (atoll): New declaration.
53623         * lib/atoll.c: New file, from glibc with modifications.
53624         * m4/atoll.m4: New file.
53625         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
53626         HAVE_ATOLL.
53627         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
53628         * doc/posix-functions/atoll.texi: Mention the new module.
53629
53630 2008-10-19  Bruno Haible  <bruno@clisp.org>
53631
53632         Add strtoull() declaration to <stdlib.h>.
53633         * lib/stdlib.in.h (strtoull): New declaration.
53634         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
53635         Set HAVE_STRTOULL.
53636         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
53637         HAVE_STRTOULL.
53638         * modules/strtoull (Depends-on): Add stdlib.
53639         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53640         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
53641         HAVE_STRTOULL.
53642
53643 2008-10-19  Bruno Haible  <bruno@clisp.org>
53644
53645         Add strtoll() declaration to <stdlib.h>.
53646         * lib/stdlib.in.h (strtoll): New declaration.
53647         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
53648         Set HAVE_STRTOLL.
53649         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
53650         HAVE_STRTOLL.
53651         * modules/strtoll (Depends-on): Add stdlib.
53652         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53653         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
53654
53655 2008-10-19  Bruno Haible  <bruno@clisp.org>
53656
53657         * modules/bcopy (Depends-on): Add strings.
53658         (Include): Specify <strings.h>.
53659
53660 2008-10-19  Bruno Haible  <bruno@clisp.org>
53661
53662         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
53663
53664 2008-10-19  Bruno Haible  <bruno@clisp.org>
53665
53666         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
53667         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
53668         mingw.
53669
53670 2008-10-19  Bruno Haible  <bruno@clisp.org>
53671
53672         * lib/atanl.c: Don't include isnanl.h.
53673         * lib/cosl.c: Likewise.
53674         * lib/ldexpl.c: Likewise.
53675         * lib/logl.c: Likewise.
53676         * lib/sinl.c: Likewise.
53677         * lib/sqrtl.c: Likewise.
53678         * lib/tanl.c: Likewise.
53679
53680         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
53681         * lib/isnanf.h: Remove file.
53682         * lib/isnand.h: Remove file.
53683         * lib/isnanl.h: Remove file.
53684         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
53685         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
53686         macros.
53687         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
53688         HAVE_ISNANF, don't define it as a C macro.
53689         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
53690         HAVE_ISNAND, don't define it as a C macro.
53691         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
53692         HAVE_ISNANL, don't define it as a C macro.
53693         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
53694         HAVE_ISNAN[FDL].
53695         * modules/isnanf (Files): Remove lib/isnanf.h.
53696         (Depends-on): Add math.
53697         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
53698         (Include): Specify <math.h> instead of isnanf.h.
53699         * modules/isnand (Files): Remove lib/isnand.h.
53700         (Depends-on): Add math.
53701         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
53702         (Include): Specify <math.h> instead of isnand.h.
53703         * modules/isnanl (Files): Remove lib/isnanl.h.
53704         (Depends-on): Add math.
53705         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
53706         (Include): Specify <math.h> instead of isnanl.h.
53707         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
53708         HAVE_ISNAN[FDL].
53709         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
53710         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
53711         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
53712         * NEWS: Mention the change.
53713
53714 2008-10-18  Bruno Haible  <bruno@clisp.org>
53715
53716         Add getusershell(), setusershell(), endusershell() declarations to
53717         <unistd.h>.
53718         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
53719         declarations.
53720         * lib/getusershell.c: Include unistd.h.
53721         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
53722         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
53723         HAVE_GETUSERSHELL.
53724         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
53725         and HAVE_GETUSERSHELL.
53726         * modules/getusershell (Depends-on): Add unistd, extensions.
53727         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53728         (Include): Specify <unistd.h>.
53729         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
53730         HAVE_GETUSERSHELL.
53731
53732 2008-10-18  Bruno Haible  <bruno@clisp.org>
53733
53734         Add a getloadavg() declaration to <stdlib.h>.
53735         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
53736         getloadavg declaration.
53737         (getloadavg): New declaration.
53738         * lib/getloadavg.c: Include <stdlib.h> first.
53739         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
53740         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
53741         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
53742         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
53743         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
53744         * modules/getloadavg (Depends-on): Add stdlib, extensions.
53745         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53746         (Include): Specify <stdlib.h>.
53747         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
53748         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
53749
53750 2008-10-18  Bruno Haible  <bruno@clisp.org>
53751
53752         * lib/dirchownmod.c: Don't include lchmod.h.
53753
53754         Move the lchmod() declaration to <sys/stat.h>.
53755         * lib/lchmod.h: Remove file.
53756         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
53757         (lchmod): New declaration, moved here from lib/lchown.h.
53758         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
53759         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
53760         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
53761         and HAVE_LCHMOD.
53762         * modules/lchmod (Files): Remove lib/lchmod.h.
53763         (Depends-on): Add sys_stat, extensions.
53764         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
53765         (Include): Specify <sys/stat.h> instead of lchmod.h.
53766         * modules/sys_stat (Depends-on): Add link-warning.
53767         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
53768         definition of GL_LINK_WARNING.
53769         * NEWS: Mention the change.
53770
53771 2008-10-18  Bruno Haible  <bruno@clisp.org>
53772
53773         * lib/fchdir.c: Don't include dirfd.h.
53774         * lib/fts.c: Likewise.
53775         * lib/getcwd.c: Likewise.
53776         * lib/glob.c: Likewise.
53777
53778         Move the dirfd() declaration to <dirent.h>.
53779         * lib/dirfd.h: Remove file.
53780         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
53781         (dirfd): New declaration.
53782         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
53783         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
53784         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
53785         HAVE_DECL_DIRFD.
53786         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
53787         HAVE_DECL_DIRFD.
53788         * modules/dirfd (Files): Remove lib/dirfd.h.
53789         (Depends-on): Add dirent, extensions.
53790         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
53791         (Include): Specify <dirent.h> instead of dirfd.h.
53792         * modules/dirent (Depends-on): Add link-warning.
53793         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
53794         definition of GL_LINK_WARNING.
53795         * NEWS: Mention the change.
53796
53797 2008-10-18  Bruno Haible  <bruno@clisp.org>
53798
53799         Move the euidaccess() declaration to <unistd.h>.
53800         * lib/euidaccess.h: Remove file.
53801         * lib/unistd.in.h (euidaccess): New declaration.
53802         * lib/euidaccess.c: Don't include euidaccess.h.
53803         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
53804         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
53805         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
53806         and HAVE_EUIDACCESS.
53807         * modules/euidaccess (Files): Remove lib/euidaccess.h.
53808         (Depends-on): Add unistd.
53809         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53810         (Include): Specify <unistd.h> instead of euidaccess.h.
53811         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
53812         HAVE_EUIDACCESS.
53813         * NEWS: Mention the change.
53814
53815 2008-10-18  Bruno Haible  <bruno@clisp.org>
53816
53817         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
53818
53819         Move the getdomainname() declaration to <unistd.h>.
53820         * lib/getdomainname.h: Remove file.
53821         * lib/unistd.in.h (getdomainname): New declaration.
53822         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
53823         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
53824         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
53825         HAVE_GETDOMAINNAME.
53826         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
53827         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
53828         * modules/getdomainname (Files): Remove lib/getdomainname.h.
53829         (Depends-on): Add unistd, extensions.
53830         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53831         (Includes): Specify <unistd.h> instead of getdomainname.h.
53832         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
53833         HAVE_GETDOMAINNAME.
53834         * NEWS: Mention the change.
53835
53836 2008-10-18  Bruno Haible  <bruno@clisp.org>
53837
53838         * modules/dirent: New file.
53839         * m4/dirent_h.m4: New file.
53840         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
53841         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
53842         * modules/fchdir (Files): Remove lib/dirent.in.h.
53843         (Depends-on): Add dirent.
53844         (Makefile.am): Move rules to modules/dirent.
53845         * doc/posix-headers/dirent.texi: Mention the new module.
53846
53847 2008-10-18  Bruno Haible  <bruno@clisp.org>
53848
53849         Avoid -Wunused-parameter warnings in public gnulib header files.
53850         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
53851         macro.
53852         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
53853
53854 2008-10-18  Bruno Haible  <bruno@clisp.org>
53855
53856         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
53857         * doc/glibc-functions/error.texi: Mention the module 'error'.
53858         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
53859         * doc/glibc-functions/getdomainname.texi: Mention the module
53860         'getdomainname'.
53861         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
53862         * doc/glibc-functions/getpagesize.texi: Mention the module
53863         'getpagesize'.
53864         * doc/glibc-functions/getusershell.texi: Mention the module
53865         'getusershell'.
53866         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
53867         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
53868         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
53869         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
53870         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
53871         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
53872         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
53873         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
53874         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
53875         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
53876         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
53877         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
53878         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
53879         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
53880
53881 2008-10-17  Bruno Haible  <bruno@clisp.org>
53882
53883         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
53884         HP-UX and IRIX, use -0.0L.
53885         * tests/test-ceill.c (minus_zero): Likewise.
53886         * tests/test-floorl.c (minus_zero): Likewise.
53887         * tests/test-frexpl.c (minus_zero): Likewise.
53888         * tests/test-isnan.c (minus_zerol): Likewise.
53889         * tests/test-isnanl.h (minus_zero): Likewise.
53890         * tests/test-ldexpl.c (minus_zero): Likewise.
53891         * tests/test-roundl.c (minus_zero): Likewise.
53892         * tests/test-signbit.c (minus_zerol): Likewise.
53893         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
53894         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
53895         * tests/test-truncl.c (minus_zero): Likewise.
53896         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
53897         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
53898         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
53899         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
53900
53901 2008-10-17  Bruno Haible  <bruno@clisp.org>
53902
53903         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
53904         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
53905         that it gets activated only for gcc >= 3.0.
53906         * lib/dirent.in.h: Likewise.
53907         * lib/errno.in.h: Likewise.
53908         * lib/fcntl.in.h: Likewise.
53909         * lib/float.in.h: Likewise.
53910         * lib/iconv.in.h: Likewise.
53911         * lib/inttypes.in.h: Likewise.
53912         * lib/locale.in.h: Likewise.
53913         * lib/math.in.h: Likewise.
53914         * lib/netdb.in.h: Likewise.
53915         * lib/netinet_in.in.h: Likewise.
53916         * lib/search.in.h: Likewise.
53917         * lib/signal.in.h: Likewise.
53918         * lib/spawn.in.h: Likewise.
53919         * lib/stdarg.in.h: Likewise.
53920         * lib/stdint.in.h: Likewise.
53921         * lib/stdio.in.h: Likewise.
53922         * lib/stdlib.in.h: Likewise.
53923         * lib/string.in.h: Likewise.
53924         * lib/strings.in.h: Likewise.
53925         * lib/sys_file.in.h: Likewise.
53926         * lib/sys_ioctl.in.h: Likewise.
53927         * lib/sys_select.in.h: Likewise.
53928         * lib/sys_socket.in.h: Likewise.
53929         * lib/sys_stat.in.h: Likewise.
53930         * lib/sys_time.in.h: Likewise.
53931         * lib/sysexits.in.h: Likewise.
53932         * lib/time.in.h: Likewise.
53933         * lib/unistd.in.h: Likewise.
53934         * lib/wchar.in.h: Likewise.
53935         * lib/wctype.in.h: Likewise.
53936         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
53937
53938 2008-10-17  Jim Meyering  <meyering@redhat.com>
53939
53940         ignore-value: don't depend on inline module
53941         * modules/ignore-value (Depends-on): Remove 'inline'.
53942         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
53943         Suggestion from Bruno Haible.
53944
53945 2008-10-17  Bruno Haible  <bruno@clisp.org>
53946
53947         New implementation of condition variables for Win32.
53948         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
53949         (gl_linked_waitqueue_t): New type.
53950         (gl_cond_t): Use it.
53951         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
53952         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
53953         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
53954         (glthread_cond_init_func, glthread_cond_wait_func,
53955         glthread_cond_timedwait_func, glthread_cond_signal_func,
53956         glthread_cond_broadcast_func, glthread_cond_destroy_func):
53957         Reimplemented on the basis of gl_linked_waitqueue_t.
53958         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
53959         gl_waitqueue_t.
53960         (gl_rwlock_t): Update.
53961         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
53962
53963 2008-10-17  Simon Josefsson  <simon@josefsson.org>
53964
53965         * modules/recvfrom (Depends-on): Add dependency on getpeername.
53966         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
53967
53968 2008-10-17  Jim Meyering  <meyering@redhat.com>
53969
53970         ignore-value: new module
53971         * modules/ignore-value: New file.
53972         * lib/ignore-value.h: New file.
53973         * MODULES.html.sh (Compiler warning management): New section,
53974         just for this module.  More to come.
53975
53976 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
53977
53978         open-safer.c: avoid 'signed and unsigned in conditional...' warning
53979         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
53980         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
53981
53982 2008-10-16  Jim Meyering  <meyering@redhat.com>
53983
53984         openat-die.c: avoid 'no previous prototype' warning
53985         * lib/openat-die.c: Include "openat.h".
53986         Reported by Reuben Thomas <rrt@sc3d.org>.
53987
53988 2008-10-16  Simon Josefsson  <simon@josefsson.org>
53989
53990         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
53991         * lib/netdb.in.h: Fix typo.
53992         Reported by Bruno Haible  <bruno@clisp.org>
53993
53994         * lib/netdb.in.h: Include sys/socket.h for platforms without
53995         netdb.h, to get structures like hostent on MinGW.
53996         * modules/netdb (Depends-on): Add sys_socket.
53997
53998 2008-10-15  Simon Josefsson  <simon@josefsson.org>
53999
54000         * modules/netdb, modules/netdb-tests: New file.
54001         * m4/netdb_h.m4: New file.
54002         * lib/netdb.in.h: Add, currently just an empty file pending
54003         definitions.
54004         * tests/test-netdb.c: New file.
54005         * doc/posix-headers/netdb.texi: Mention that we replace it if
54006         needed.
54007         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54008         netdb.
54009
54010 2008-10-15  Simon Josefsson  <simon@josefsson.org>
54011
54012         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
54013         with code.
54014
54015 2008-10-13  Bruno Haible  <bruno@clisp.org>
54016
54017         * lib/glthread/cond.c (glthread_cond_wait_func,
54018         glthread_cond_timedwait_func): Add a comment.
54019
54020 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54021
54022         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
54023         * tests/test-select.c: Likewise,
54024
54025 2008-10-13  Bruno Haible  <bruno@clisp.org>
54026
54027         * lib/glthread/cond.c (glthread_cond_wait_func,
54028         glthread_cond_timedwait_func): Fix variable name.
54029         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
54030
54031 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
54032
54033         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
54034         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
54035         struct sockaddr.sa_len.
54036         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
54037
54038 2008-10-13  Simon Josefsson  <simon@josefsson.org>
54039
54040         * build-aux/pmccabe2html: Add css and css_url parameters.
54041
54042 2008-10-12  Bruno Haible  <bruno@clisp.org>
54043
54044         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
54045         calling aclx_get.
54046         Reported by Rainer Tammer <tammer@tammer.net>.
54047
54048 2008-10-12  Bruno Haible  <bruno@clisp.org>
54049
54050         Use msvcrt aware primitives for creation/termination of Win32 threads.
54051         * lib/glthread/thread.c: Include <process.h>.
54052         (glthread_create_func): Use _beginthreadex instead of CreateThread.
54053         (wrapper_func): Update signature.
54054         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
54055
54056 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54057             Bruno Haible  <bruno@clisp.org>
54058
54059         Provide a Win32 implementation of the 'cond' module.
54060         * lib/glthread/cond.h [USE_WIN32]: New implementation.
54061         * lib/glthread/cond.c (glthread_cond_init_func,
54062         glthread_cond_wait_func, glthread_cond_timedwait_func,
54063         glthread_cond_signal_func, glthread_cond_broadcast_func,
54064         glthread_cond_destroy_func) [USE_WIN32]: New functions.
54065         * modules/cond (Dependencies): Add gettimeofday.
54066
54067 2008-10-11  Bruno Haible  <bruno@clisp.org>
54068
54069         Make sleep work on older versions of mingw.
54070         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
54071         only whether it exists.
54072         * doc/posix-functions/sleep.texi: Mention the problem with older
54073         versions of mingw.
54074
54075 2008-10-11  Bruno Haible  <bruno@clisp.org>
54076
54077         New module 'shutdown'.
54078         * modules/shutdown: New file.
54079         * lib/sys_socket.in.h (shutdown): New declaration.
54080         * lib/winsock.c (shutdown): New function.
54081         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
54082         GNULIB_SHUTDOWN.
54083         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
54084         * doc/posix-functions/shutdown.texi: Document the new module.
54085
54086 2008-10-11  Jim Meyering  <meyering@redhat.com>
54087
54088         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
54089
54090 2008-10-11  Bruno Haible  <bruno@clisp.org>
54091
54092         New module 'fclose'.
54093         * modules/fclose: New file.
54094         * lib/stdio.in.h (fclose): New declaration.
54095         * lib/fclose.c: New file.
54096         * m4/fclose.m4: New file.
54097         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
54098         REPLACE_FCLOSE.
54099         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
54100         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
54101         REPLACE_FCLOSE.
54102         * modules/close (Depends-on): fclose.
54103         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
54104
54105 2008-10-11  Bruno Haible  <bruno@clisp.org>
54106
54107         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
54108         set errno and don't call _close.
54109
54110 2008-10-10  Bruno Haible  <bruno@clisp.org>
54111
54112         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
54113         ACL, not afterwards. Fixes test failure on Cygwin.
54114
54115 2008-10-09  Ben Pfaff  <blp@gnu.org>
54116
54117         * build-aux/announce-gen: Fix gnulib version related part of usage
54118         message.  Die with a useful error message if no tarballs are
54119         found.
54120
54121 2008-10-10  Jim Meyering  <meyering@redhat.com>
54122
54123         bootstrap: use git's --depth=N option only if it's supported
54124         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
54125         recognize the --depth option.  Reported by Pádraig Brady.
54126
54127 2008-10-09  Bruno Haible  <bruno@clisp.org>
54128
54129         New module 'ioctl'.
54130         * modules/ioctl: New file.
54131         * lib/sys_socket.in.h (ioctl): Remove declaration.
54132         * lib/winsock.c: Include <sys/ioctl.h>.
54133         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
54134         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
54135         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
54136         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
54137         * doc/posix-functions/ioctl.texi: Mention the new module.
54138
54139 2008-10-09  Bruno Haible  <bruno@clisp.org>
54140
54141         New module 'sys_ioctl'.
54142         * lib/sys_ioctl.in.h: New file.
54143         * m4/sys_ioctl_h.m4: New file.
54144         * modules/sys_ioctl: New file.
54145         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
54146
54147 2008-10-09  Bruno Haible  <bruno@clisp.org>
54148
54149         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
54150         * lib/winsock.c: Include <stdarg.h>.
54151         (rpl_ioctl): Change to second argument 'int' and then varargs.
54152
54153 2008-10-09  Bruno Haible  <bruno@clisp.org>
54154
54155         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
54156         when the sys_socket module is present and the system has <winsock2.h>.
54157
54158 2008-10-09  Bruno Haible  <bruno@clisp.org>
54159
54160         * doc/posix-functions/close.texi: Mention module 'close' instead of
54161         module 'sys_socket'.
54162
54163 2008-10-09  Bruno Haible  <bruno@clisp.org>
54164
54165         * doc/glibc-headers/sys_ioctl.texi: New file.
54166         * doc/gnulib.texi: Include it.
54167
54168 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
54169             Bruno Haible  <bruno@clisp.org>
54170
54171         Combine the two replacements of 'close'.
54172         * lib/sys_socket.in.h (close): Define to a reminder to include
54173         <unistd.h>.
54174         (_gl_close_fd_maybe_socket): New declaration.
54175         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
54176         * lib/winsock.c (close): Remove undefinition.
54177         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
54178         needed for the gnulib module 'close'.
54179         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
54180         define to an error symbol or to a warning, if suitable.
54181         * lib/close.c: Include <sys/socket.h>.
54182         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
54183         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
54184         UNISTD_H_HAVE_WINSOCK2_H.
54185         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
54186         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
54187         UNISTD_H_HAVE_WINSOCK2_H.
54188         * modules/sys_socket (Files): Add m4/unistd_h.m4.
54189         (configure.ac): Set a module indicator.
54190         (Makefile.am): Substitute GNULIB_CLOSE.
54191         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
54192         * modules/poll-tests (Depends-on): Add close.
54193         * modules/select-tests (Depends-on): Likewise.
54194
54195 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
54196             Bruno Haible  <bruno@clisp.org>
54197
54198         New module 'close'.
54199         * modules/close: New file.
54200         * lib/unistd.in.h (close): Move declaration out of the
54201         FCHDIR_REPLACEMENT scope.
54202         (_gl_unregister_fd): New declaration.
54203         * lib/close.c: New file.
54204         * lib/fchdir.c (rpl_close): Remove function.
54205         * m4/close.m4: New file.
54206         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
54207         close.
54208         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
54209         REPLACE_CLOSE.
54210         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
54211         REPLACE_CLOSE.
54212         * modules/fchdir (Depends-on): Add close.
54213
54214 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
54215             Bruno Haible  <bruno@clisp.org>
54216
54217         * lib/fcntl.in.h (open): Simplify conditionals.
54218         (_gl_register_fd): New declaration.
54219         * lib/fchdir.c (rpl_open): Remove function.
54220         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
54221         also.
54222         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
54223         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
54224         open.
54225
54226 2008-10-09  Jim Meyering  <meyering@redhat.com>
54227
54228         GNUmakefile: use the more name-space-friendly "_version"
54229         * top/GNUmakefile (_dummy): Update.
54230         (_version): Rename from "version".
54231
54232 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
54233             Bruno Haible  <bruno@clisp.org>
54234
54235         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
54236         rpl_close.
54237         (_gl_register_fd): New function, extracted from rpl_open.
54238         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
54239         (rpl_open, rpl_opendir): Use _gl_register_fd.
54240
54241 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
54242
54243         Fix organization of 'open' replacement.
54244         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
54245         (gl_FUNC_OPEN): Use it.
54246         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
54247
54248 2008-10-08  Bruno Haible  <bruno@clisp.org>
54249
54250         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
54251
54252 2008-10-08  Simon Josefsson  <simon@josefsson.org>
54253
54254         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
54255         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
54256         listen).
54257
54258 2008-10-08  Eric Blake  <ebb9@byu.net>
54259
54260         GNUmakefile: add 'make version' target
54261         * top/GNUmakefile (_curr-ver): Split version update rules...
54262         (version): ...into a target.
54263
54264 2008-10-07  Bruno Haible  <bruno@clisp.org>
54265
54266         Use a more portable replacement expression for -0.0L.
54267         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
54268         instead of -0.0L. Fix m4 quotation.
54269
54270         * tests/test-signbit.c: Include <float.h>.
54271         (minus_zero): New variable.
54272         (test_signbitl): Use minus_zero instead of -zero.
54273         * modules/signbit-tests (Depends-on): Add float.
54274
54275         * tests/test-ceill.c: Include <float.h>.
54276         (zero): Remove variable.
54277         (minus_zero): New variable.
54278         (main): Use minus_zero instead of -zero.
54279         * modules/ceill-tests (Depends-on): Add float.
54280
54281         * tests/test-floorl.c: Include <float.h>.
54282         (zero): Remove variable.
54283         (minus_zero): New variable.
54284         (main): Use minus_zero instead of -zero.
54285         * modules/floorl-tests (Depends-on): Add float.
54286
54287         * tests/test-roundl.c: Include <float.h>.
54288         (zero): Remove variable.
54289         (minus_zero): New variable.
54290         (main): Use minus_zero instead of -zero.
54291         * modules/roundl-tests (Depends-on): Add float.
54292
54293         * tests/test-truncl.c: Include <float.h>.
54294         (zero): Remove variable.
54295         (minus_zero): New variable.
54296         (main): Use minus_zero instead of -zero.
54297         * modules/truncl-tests (Depends-on): Add float.
54298
54299         * tests/test-frexpl.c (zero): Remove variable.
54300         (minus_zero): New variable.
54301         (main): Use minus_zero instead of -zero.
54302         * modules/frexpl-tests (Depends-on): Add float.
54303
54304         * tests/test-isnan.c (zerol): Remove variable.
54305         (minus_zerol): New variable.
54306         (test_long_double): Use minus_zerol instead of -zerol.
54307         * modules/isnan-tests (Depends-on): Add float.
54308
54309         * tests/test-isnanl.h (zero): Remove variable.
54310         (minus_zero): New variable.
54311         (main): Use minus_zero instead of -zero.
54312         * modules/isnanl-nolibm-tests (Depends-on): Add float.
54313         * modules/isnanl-tests (Depends-on): Add float.
54314
54315         * tests/test-ldexpl.c (zero): Remove variable.
54316         (minus_zero): New variable.
54317         (main): Use minus_zero instead of -zero.
54318         * modules/ldexpl-tests (Depends-on): Add float.
54319
54320         * tests/test-snprintf-posix.h (zerol): Remove variable.
54321         (minus_zerol): New variable.
54322         (test_function): Use minus_zerol instead of -zerol.
54323         * modules/snprintf-posix-tests (Depends-on): Add float.
54324         * modules/vsnprintf-posix-tests (Depends-on): Add float.
54325
54326         * tests/test-sprintf-posix.h (zerol): Remove variable.
54327         (minus_zerol): New variable.
54328         (test_function): Use minus_zerol instead of -zerol.
54329         * modules/sprintf-posix-tests (Depends-on): Add float.
54330         * modules/vsprintf-posix-tests (Depends-on): Add float.
54331
54332         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
54333         (minus_zerol): New variable.
54334         (test_function): Use minus_zerol instead of -zerol.
54335         * modules/vasnprintf-posix-tests (Depends-on): Add float.
54336
54337         * tests/test-vasprintf-posix.c (zerol): Remove variable.
54338         (minus_zerol): New variable.
54339         (test_function): Use minus_zerol instead of -zerol.
54340         * modules/vasprintf-posix-tests (Depends-on): Add float.
54341
54342 2008-10-07  Simon Josefsson  <simon@josefsson.org>
54343
54344         * MODULES.html.sh (Support for building documentation): Mention
54345         pmccabe2html.  Sort entries.
54346
54347         Add pmccabe2html module, from gnupdf.
54348         * build-aux/pmccabe.css: New file.
54349         * build-aux/pmccabe2html: New file.
54350         * m4/pmccabe2html.m4: New file.
54351         * modules/pmccabe2html: New file.
54352
54353 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
54354
54355         flock: new module
54356         * MODULES.html.sh: Add to list of modules.
54357         * lib/flock.c: flock implementation for Windows and Unix systems
54358         which have fcntl.
54359         * doc/glibc-functions/flock.texi: Update documentation.
54360         * lib/sys_file.in.h: <sys/file.h> header file.
54361         * m4/flock.m4: M4 macros.
54362         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
54363         * modules/flock: flock module.
54364         * modules/flock-tests: flock tests module.
54365         * modules/sys_file: sys/file.h module.
54366         * tests/test-flock.c: test suite for flock.
54367
54368 2008-10-06  Jim Meyering  <meyering@redhat.com>
54369
54370         bootstrap: check for LT_INIT more portably still ;-)
54371         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
54372         Spotted by Bruno Haible.
54373
54374 2008-10-06  Eric Blake  <ebb9@byu.net>
54375
54376         test-signbit: avoid tripping Irix cc bug on -0.0L
54377         * tests/test-signbit.c (minus_zerol): Delete, and replace with
54378         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
54379         entire testsuite consistent and avoids an Irix 6.2 bug.
54380
54381 2008-10-05  Bruno Haible  <bruno@clisp.org>
54382             Jim Meyering  <jim@meyering.net>
54383
54384         Add an option for ignoring EPIPE during close_stdout.
54385         * lib/closeout.h: Include <stdbool.h>.
54386         (close_stdout_set_ignore_EPIPE): New declaration.
54387         * lib/closeout.c: Include <stdbool.h>.
54388         (ignore_EPIPE): New variable.
54389         (close_stdout_set_ignore_EPIPE): New function.
54390         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
54391         * lib/close-stream.c (close_stream): Mention the possible EPIPE
54392         failure.
54393         * modules/closeout (Depends-on): Add stdbool.
54394
54395 2008-10-05  Bruno Haible  <bruno@clisp.org>
54396
54397         * modules/accept: New file.
54398         * modules/bind: New file.
54399         * modules/connect: New file.
54400         * modules/getpeername: New file.
54401         * modules/getsockname: New file.
54402         * modules/getsockopt: New file.
54403         * modules/listen: New file.
54404         * modules/recv: New file.
54405         * modules/recvfrom: New file.
54406         * modules/send: New file.
54407         * modules/sendto: New file.
54408         * modules/setsockopt: New file.
54409         * modules/socket: New file.
54410         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
54411         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
54412         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
54413         the particular module is requested. Add a link warning when the
54414         particular module is not requested.
54415         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
54416         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
54417         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
54418         the particular module is requested.
54419         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
54420         gl_SYS_SOCKET_H_DEFAULTS): New macros.
54421         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
54422         * modules/sys_socket (Depends-on): Add link-warning.
54423         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
54424         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
54425         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
54426         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
54427         GL_LINK_WARNING.
54428         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
54429         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
54430         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
54431         * doc/posix-functions/getpeername.texi: Mention the new module
54432         'getpeername'.
54433         * doc/posix-functions/getsockname.texi: Mention the new module
54434         'getsockname'.
54435         * doc/posix-functions/getsockopt.texi: Mention the new module
54436         'getsockopt'.
54437         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
54438         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
54439         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
54440         * doc/posix-functions/send.texi: Mention the new module 'send'.
54441         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
54442         * doc/posix-functions/setsockopt.texi: Mention the new module
54443         'setsockopt'.
54444         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
54445         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
54446         listen, connect, accept.
54447         * modules/select-tests (Depends-on): Likewise.
54448
54449 2008-10-05  Bruno Haible  <bruno@clisp.org>
54450
54451         * lib/winsock.c (strerror): Remove unused #undef.
54452         (rpl_close): Remove unused local variable.
54453
54454         * modules/sys_socket (Depends-on); Add errno.
54455
54456 2008-10-05  Bruno Haible  <bruno@clisp.org>
54457
54458         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
54459         (select): Add a link warning when the 'select' module is not used.
54460         * modules/sys_select (Depends-on): Add link-warning.
54461         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
54462         Suggested by Paolo Bonzini.
54463
54464 2008-10-05  Jim Meyering  <meyering@redhat.com>
54465
54466         bootstrap: check for LT_INIT more portably
54467         * build-aux/bootstrap: Avoid using grep -E, since it's not
54468         portable enough.  Suggestion from Bruno Haible.
54469
54470 2008-10-05  Bruno Haible  <bruno@clisp.org>
54471
54472         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
54473         as being fixed by gnulib.
54474
54475 2008-10-05  Bruno Haible  <bruno@clisp.org>
54476
54477         * modules/select-tests: New file, mostly copied from
54478         modules/sys_select-tests.
54479         * tests/test-select.c: New file, mostly copied from
54480         tests/test-sys_select.c.
54481         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
54482         * modules/sys_select-tests (Depends-on): Remove all dependencies.
54483         (Makefile.am): Remove test_sys_select_LDADD.
54484
54485         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
54486         to an undefined symbol, for an error message.
54487         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
54488         (gl_SYS_SELECT_H_DEFAULTS): New macro.
54489         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
54490         winsock-select.c here.
54491         * modules/sys_select (Files): Remove lib/winsock-select.c.
54492         (Depends-on): Remove alloca.
54493         (Makefile.am): Substitute GNULIB_SELECT.
54494         * modules/select: New file.
54495         * doc/posix-functions/select.texi: Update.
54496
54497 2008-10-05  Bruno Haible  <bruno@clisp.org>
54498
54499         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
54500         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
54501         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
54502         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
54503         getdtablesize.
54504         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
54505         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
54506
54507 2008-10-05  Bruno Haible  <bruno@clisp.org>
54508
54509         * modules/getdtablesize-tests: New file.
54510         * tests/test-getdtablesize.c: New file.
54511
54512         New module 'getdtablesize'.
54513         * lib/unistd.in.h (getdtablesize): New declaration.
54514         * lib/getdtablesize.c: New file.
54515         * m4/getdtablesize.m4: New file.
54516         * modules/getdtablesize: New file.
54517         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
54518         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
54519         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
54520         HAVE_GETDTABLESIZE.
54521         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
54522
54523 2008-10-05  Bruno Haible  <bruno@clisp.org>
54524
54525         * modules/sched (Makefile.am): Fix typo.
54526         Reported by Simon Josefsson.
54527
54528 2008-10-05  Jim Meyering  <meyering@redhat.com>
54529
54530         bootstrap: check for LT_INIT, too
54531         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
54532         are deprecated.  Suggestion from Ralf Wildenhues.
54533
54534 2008-10-05  Bruno Haible  <bruno@clisp.org>
54535
54536         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
54537         overriding them by ours.
54538         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
54539
54540 2008-10-05  Jim Meyering  <meyering@redhat.com>
54541
54542         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
54543         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
54544         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
54545
54546 2008-10-04  Bruno Haible  <bruno@clisp.org>
54547
54548         * modules/dup2 (License): Change to LGPLv2+.
54549         * modules/sleep (License): Likewise.
54550         * modules/perror (License): Likewise.
54551         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
54552         Blake.
54553         * modules/signal (License): Likewise.
54554         * modules/sigprocmask (License): Likewise.
54555         * modules/raise (License): Change to LGPLv2+, with approval by Jim
54556         Meyering.
54557
54558 2008-10-04  Bruno Haible  <bruno@clisp.org>
54559
54560         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
54561         Reported by Rainer Tammer <tammer@tammer.net>.
54562
54563 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
54564             Bruno Haible  <bruno@clisp.org>
54565
54566         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
54567         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
54568         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
54569
54570 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
54571
54572         filevercmp: new module
54573         * lib/filevercmp.h: New function filevercmp comparing version strings.
54574         * lib/filevercmp.c: Implementation of filevercmp function.
54575         * modules/filevercmp: Module metadata.
54576         * tests/test-filevercmp.c: Unit test for new module.
54577         * modules/filevercmp-tests: Unit test metadata.
54578         * MODULES.html.sh: Add filevercmp module.
54579
54580 2008-10-03  Bruno Haible  <bruno@clisp.org>
54581
54582         * lib/c-ctype.h: Add comment.
54583         Reported by Jim Meyering.
54584
54585 2008-10-02  Bruno Haible  <bruno@clisp.org>
54586
54587         * modules/posix_spawn-internal (Depends-on): Add 'open'.
54588
54589 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
54590
54591         * build-aux/bootstrap: Allow renaming bootstrap, and change the
54592         name of bootstrap.conf accordingly.
54593
54594 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
54595
54596         * build-aux/bootstrap: Install git-merge-changelog configuration
54597         items into .gitconfig if needed.
54598
54599 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
54600
54601         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
54602         git repository, and initialize/update it accordingly.
54603
54604 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
54605
54606         * modules/fsync-tests: New file.
54607         * tests/test-fsync.c: New file.
54608
54609         New module 'fsync'.
54610         * lib/fsync.c: New file.
54611         * m4/fsync.m4: New file.
54612         * modules/fsync: New file.
54613         * lib/unistd.in.h (fsync): New declaration.
54614         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
54615         GNULIB_FSYNC and HAVE_FSYNC.
54616         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
54617         * MODULES.html.sh (posix_functions): Add fsync.
54618         * doc/posix-functions/fsync.texi: Mention the new module.
54619
54620 2008-10-02  Jim Meyering  <meyering@redhat.com>
54621
54622         fts.c: sync with similar code from coreutils' remove.c
54623         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
54624         Guard also with "#if defined __linux__", since for now at least,
54625         this code is Linux-kernel-specific.
54626
54627 2008-10-02  Jim Meyering  <meyering@redhat.com>
54628
54629         fts: bug fixes
54630         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
54631         Include <sys/vfs.h>, not <sys/statfs.h>.
54632
54633         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
54634         Include <sys/vfs.h>, not <sys/statfs.h>.
54635
54636 2008-10-01  Bruno Haible  <bruno@clisp.org>
54637
54638         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
54639         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
54640         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
54641         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
54642         * doc/posix-functions/posix_spawnp.texi: Likewise.
54643         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
54644         whether posix_spawn actually works.
54645         * m4/pipe.m4 (gl_PIPE): Likewise.
54646         * modules/execute (Files): Add m4/posix_spawn.m4.
54647         * modules/pipe (Files): Add m4/posix_spawn.m4.
54648         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
54649
54650 2008-10-01  Jim Meyering  <meyering@redhat.com>
54651
54652         remove trailing spaces
54653         * NEWS: Likewise.
54654         * lib/poll.c (poll): Likewise.
54655         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
54656         * lib/winsock.c (rpl_close): Likewise.
54657         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
54658         * modules/yield: Likewise.
54659         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
54660         * tests/test-sys_select.c (connect_to_socket): Likewise.
54661
54662         fts.c: adjust a new interface to be more generally useful
54663         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
54664         (fts_build): Adjust caller.
54665
54666 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54667
54668         * modules/cond-tests: New file.
54669         * tests/test-cond.c: New file.
54670
54671 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54672             Bruno Haible  <bruno@clisp.org>
54673
54674         * modules/cond (Dependencies): Add errno, time.
54675         * lib/glthread/cond.h: Include <time.h>.
54676         (gl_cond_define, gl_cond_define_initialized): Use the same definition
54677         across platforms.
54678
54679 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54680             Bruno Haible  <bruno@clisp.org>
54681
54682         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
54683
54684 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54685             Bruno Haible  <bruno@clisp.org>
54686
54687         * modules/tls-tests (Depends-on): Add thread, yield.
54688         (configure.ac): Remove all checks.
54689         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
54690         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
54691         gl_thread_self): Remove definitions. Include glthread/thread.h and
54692         glthread/yield.h instead.
54693         (test_tls): Pass an additional NULL argument to gl_thread_join.
54694
54695 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54696             Bruno Haible  <bruno@clisp.org>
54697
54698         * modules/lock-tests (Depends-on): Add thread, yield.
54699         (configure.ac): Remove all checks.
54700         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
54701         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
54702         gl_thread_self): Remove definitions. Include glthread/thread.h and
54703         glthread/yield.h instead.
54704         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
54705         additional NULL argument to gl_thread_join.
54706
54707 2008-09-30  Bruno Haible  <bruno@clisp.org>
54708
54709         Fix the Win32 implementation of the 'thread' module.
54710         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
54711         pointer type.
54712         (gl_thread_self): Invoke gl_thread_self_func.
54713         (gl_thread_self_func): New declaration.
54714         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
54715         (do_init_self_key, init_self_key): New functions.
54716         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
54717         Remove some fields.
54718         (running_threads, running_lock): Remove variables.
54719         (get_current_thread_handle): New function.
54720         (gl_thread_self_func, wrapper_func, glthread_create_func,
54721         glthread_join_func, gl_thread_exit_func): Largely rewritten and
54722         simplified.
54723
54724 2008-09-30  Bruno Haible  <bruno@clisp.org>
54725
54726         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
54727         files.
54728
54729 2008-09-30  Jim Meyering  <meyering@redhat.com>
54730
54731         fts.m4: correct the test for statfs.f_type
54732         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
54733         when checking for statfs.f_type.
54734
54735 2008-09-15  Simon Josefsson  <simon@josefsson.org>
54736
54737         tests: avoid some compiler warnings
54738         * tests/test-memchr.c (main): Pass NULL indirectly.
54739         * tests/test-getdate.c (main): Remove unused variable 'ret'.
54740
54741 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
54742
54743         getdate.y: disallow countable dayshifts like "4 yesterday ago"
54744         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
54745         exactly specified dayshifts.
54746         (dayshift): New rule.
54747         (rel): Add dayshift.
54748         (relative_time_table) [tomorrow, yesterday, today, now]:
54749         Use tDAY_SHIFT in place of tDAY_UNIT.
54750         * tests/test-getdate.c: Add tests for now-disallowed countable
54751         dayshifts, e.g., "4 yesterday ago".
54752
54753 2008-09-29  Bruno Haible  <bruno@clisp.org>
54754
54755         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
54756         * tests/test-posix_spawn1.in.sh: Renamed from
54757         tests/test-posix_spawn.in.sh.
54758         * tests/test-posix_spawn2.c: New file.
54759         * tests/test-posix_spawn2.in.sh: New file.
54760         * modules/posix_spawnp-tests (Files): Update.
54761         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
54762
54763 2008-09-29  Bruno Haible  <bruno@clisp.org>
54764
54765         Propagate effects of putenv/setenv/unsetenv to child processes.
54766         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
54767         * lib/pipe.c (create_pipe): Likewise.
54768
54769 2008-09-29  Bruno Haible  <bruno@clisp.org>
54770
54771         Enable use of shell scripts as executables in mingw.
54772         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
54773         run the program as a shell script.
54774         * lib/pipe.c (create_pipe): Likewise.
54775         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
54776         resulting array.
54777
54778 2008-09-29  Eric Blake  <ebb9@byu.net>
54779
54780         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
54781
54782 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
54783
54784         * doc/posix-functions/accept.texi: Update mingw problems.
54785         * doc/posix-functions/bind.texi: Update mingw problems.
54786         * doc/posix-functions/close.texi: Update mingw problems.
54787         * doc/posix-functions/connect.texi: Update mingw problems.
54788         * doc/posix-functions/getpeername.texi: Update mingw problems.
54789         * doc/posix-functions/getsockname.texi: Update mingw problems.
54790         * doc/posix-functions/getsockopt.texi: Update mingw problems.
54791         * doc/posix-functions/ioctl.texi: Update mingw problems.
54792         * doc/posix-functions/listen.texi: Update mingw problems.
54793         * doc/posix-functions/recv.texi: Update mingw problems.
54794         * doc/posix-functions/recvfrom.texi: Update mingw problems.
54795         * doc/posix-functions/select.texi: Update mingw problems.
54796         * doc/posix-functions/send.texi: Update mingw problems.
54797         * doc/posix-functions/sendto.texi: Update mingw problems.
54798         * doc/posix-functions/setsockopt.texi: Update mingw problems.
54799         * doc/posix-functions/socket.texi: Update mingw problems.
54800
54801 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
54802             Bruno Haible  <bruno@clisp.org>
54803
54804         * lib/sys_select.in.h: Include sys/time.h.
54805         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
54806         * modules/sys_select: Depend on sys_time.
54807         * tests/test-sys_select.c: Test that sys/select.h defines struct
54808         timeval fully.
54809
54810 2008-09-29  Bruno Haible  <bruno@clisp.org>
54811
54812         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
54813         * lib/sys_select.in.h: Likewise.
54814
54815 2008-09-29  Bruno Haible  <bruno@clisp.org>
54816
54817         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
54818
54819 2008-09-29  Bruno Haible  <bruno@clisp.org>
54820
54821         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
54822         Set LIBSOCKET instead of augmenting LIBS.
54823         * modules/sockets (Link): New section.
54824         * modules/sockets-tests (test_sockets_LDADD): New variable.
54825         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
54826         * modules/poll-tests (test_poll_LDADD): New variable.
54827         * NEWS: Document the change.
54828
54829 2008-09-29  Bruno Haible  <bruno@clisp.org>
54830
54831         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
54832         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
54833         ARPA_INET_H directly.
54834         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
54835
54836 2008-09-28  Bruno Haible  <bruno@clisp.org>
54837
54838         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
54839         from gl_HEADER_SYS_SOCKET.
54840         (gl_HEADER_SYS_SOCKET): Invoke it.
54841         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
54842
54843 2008-09-28  Bruno Haible  <bruno@clisp.org>
54844
54845         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
54846         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
54847         Needed on OSF/1 4.0.
54848
54849 2008-09-28  Bruno Haible  <bruno@clisp.org>
54850
54851         Override open more carefully.
54852         * lib/open.c (orig_open): New function.
54853         (rpl_open): Use orig_open instead of open.
54854         * lib/fcntl.in.h: Add special invocation convention.
54855         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
54856         (gl_FUNC_OPEN): Invoke it.
54857
54858         Override freopen more carefully.
54859         * lib/freopen.c (orig_freopen): New function.
54860         (rpl_freopen): Use orig_freopen instead of freopen.
54861         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
54862         (gl_FUNC_FREOPEN): Invoke it.
54863
54864         Override fopen more carefully.
54865         * lib/fopen.c (orig_fopen): New function.
54866         (rpl_fopen): Use orig_fopen instead of fopen.
54867         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
54868         (gl_FUNC_FOPEN): Invoke it.
54869         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
54870
54871 2008-09-28  Bruno Haible  <bruno@clisp.org>
54872
54873         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
54874         SIGPIPE.
54875
54876 2008-09-28  Bruno Haible  <bruno@clisp.org>
54877
54878         * tests/test-sigaction.c (handler, main): Disable the check whether
54879         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
54880         glibc systems with LinuxThreads.
54881
54882 2008-09-28  Bruno Haible  <bruno@clisp.org>
54883
54884         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
54885
54886         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
54887         with AIX xlc.
54888         * lib/fcntl.in.h (open): Likewise.
54889         Reported by Rainer Tammer <tammer@tammer.net>.
54890
54891 2008-09-28  Bruno Haible  <bruno@clisp.org>
54892
54893         * modules/posix_spawnp-tests: New file.
54894         * tests/test-posix_spawn.c: New file.
54895         * tests/test-posix_spawn.in.sh: New file.
54896
54897         New module 'posix_spawnp'.
54898         * modules/posix_spawnp: New file.
54899         * lib/spawnp.c: New file, from GNU libc with modifications.
54900         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
54901
54902         New module 'posix_spawn'.
54903         * modules/posix_spawn: New file.
54904         * lib/spawn.c: New file, from GNU libc with modifications.
54905         * doc/posix-functions/posix_spawn.texi: Mention the new module.
54906
54907         New module 'posix_spawnattr_destroy'.
54908         * modules/posix_spawnattr_destroy: New file.
54909         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
54910         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
54911         module.
54912
54913         New module 'posix_spawnattr_setsigmask'.
54914         * modules/posix_spawnattr_setsigmask: New file.
54915         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
54916         modifications.
54917         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
54918         new module.
54919
54920         New module 'posix_spawnattr_getsigmask'.
54921         * modules/posix_spawnattr_getsigmask: New file.
54922         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
54923         modifications.
54924         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
54925         new module.
54926
54927         New module 'posix_spawnattr_setsigdefault'.
54928         * modules/posix_spawnattr_setsigdefault: New file.
54929         * lib/spawnattr_setdefault.c: New file, from GNU libc with
54930         modifications.
54931         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
54932         new module.
54933
54934         New module 'posix_spawnattr_getsigdefault'.
54935         * modules/posix_spawnattr_getsigdefault: New file.
54936         * lib/spawnattr_getdefault.c: New file, from GNU libc with
54937         modifications.
54938         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
54939         new module.
54940
54941         New module 'posix_spawnattr_setschedpolicy'.
54942         * modules/posix_spawnattr_setschedpolicy: New file.
54943         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
54944         modifications.
54945         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
54946         new module.
54947
54948         New module 'posix_spawnattr_getschedpolicy'.
54949         * modules/posix_spawnattr_getschedpolicy: New file.
54950         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
54951         modifications.
54952         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
54953         new module.
54954
54955         New module 'posix_spawnattr_setschedparam'.
54956         * modules/posix_spawnattr_setschedparam: New file.
54957         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
54958         modifications.
54959         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
54960         new module.
54961
54962         New module 'posix_spawnattr_getschedparam'.
54963         * modules/posix_spawnattr_getschedparam: New file.
54964         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
54965         modifications.
54966         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
54967         new module.
54968
54969         New module 'posix_spawnattr_setpgroup'.
54970         * modules/posix_spawnattr_setpgroup: New file.
54971         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
54972         modifications.
54973         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
54974         module.
54975
54976         New module 'posix_spawnattr_getpgroup'.
54977         * modules/posix_spawnattr_getpgroup: New file.
54978         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
54979         modifications.
54980         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
54981         module.
54982
54983         New module 'posix_spawnattr_setflags'.
54984         * modules/posix_spawnattr_setflags: New file.
54985         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
54986         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
54987         module.
54988
54989         New module 'posix_spawnattr_getflags'.
54990         * modules/posix_spawnattr_getflags: New file.
54991         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
54992         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
54993         module.
54994
54995         New module 'posix_spawnattr_init'.
54996         * modules/posix_spawnattr_init: New file.
54997         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
54998         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
54999         module.
55000
55001         New module 'posix_spawn_file_actions_destroy'.
55002         * modules/posix_spawn_file_actions_destroy: New file.
55003         * lib/spawn_faction_destroy.c: New file, from GNU libc with
55004         modifications.
55005         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
55006         the new module.
55007
55008         New module 'posix_spawn_file_actions_addopen'.
55009         * modules/posix_spawn_file_actions_addopen: New file.
55010         * lib/spawn_faction_addopen.c: New file, from GNU libc with
55011         modifications.
55012         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
55013         the new module.
55014
55015         New module 'posix_spawn_file_actions_adddup2'.
55016         * modules/posix_spawn_file_actions_adddup2: New file.
55017         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
55018         modifications.
55019         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
55020         the new module.
55021
55022         New module 'posix_spawn_file_actions_addclose'.
55023         * modules/posix_spawn_file_actions_addclose: New file.
55024         * lib/spawn_faction_addclose.c: New file, from GNU libc with
55025         modifications.
55026         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
55027         the new module.
55028
55029         New module 'posix_spawn_file_actions_init'.
55030         * modules/posix_spawn_file_actions_init: New file.
55031         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
55032         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
55033         new module.
55034
55035         New module 'posix_spawn-internal'.
55036         * modules/posix_spawn-internal: New file.
55037         * lib/spawn_int.h: New file, from GNU libc with modifications.
55038         * lib/spawni.c: New file, from GNU libc with modifications.
55039         * m4/posix_spawn.m4: New file.
55040
55041         New module 'spawn'.
55042         * modules/spawn: New file.
55043         * lib/spawn.in.h: New file, from GNU libc with modifications.
55044         * m4/spawn_h.m4: New file.
55045         * doc/posix-headers/spawn.texi: Mention the new module.
55046
55047 2008-09-28  Bruno Haible  <bruno@clisp.org>
55048
55049         * modules/sched-tests: New file.
55050         * tests/test-sched.c: New file.
55051
55052         New module 'sched'.
55053         * modules/sched: New file.
55054         * lib/sched.in.h: New file.
55055         * m4/sched_h.m4: New file.
55056         * doc/posix-headers/sched.texi: Mention the new module.
55057
55058 2008-09-27  Eric Blake  <ebb9@byu.net>
55059
55060         Fix previous patch, and tweak references to $0.
55061         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
55062         (func_version, func_gnulib_dir): Don't call this program
55063         gnulib-tool.
55064         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
55065         with using $0 in function.
55066         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
55067         (func_fatal_error): Reuse the name the user invoked us with.
55068
55069 2008-09-27  Bruno Haible  <bruno@clisp.org>
55070
55071         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
55072         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
55073         (gl_ICONV_H): Not here.
55074         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
55075         instead of assigning ICONV_H directly.
55076
55077         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
55078         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
55079         WCHAR_H directly.
55080
55081 2008-09-27  Bruno Haible  <bruno@clisp.org>
55082
55083         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
55084         * modules/arpa_inet (Depends-on): Add link-warning.
55085         (Makefile.am): Insert the definition of GL_LINK-WARNING.
55086         * modules/unistd (Makefile.am): Likewise.
55087
55088 2008-09-26  Bruno Haible  <bruno@clisp.org>
55089
55090         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
55091         variables.
55092         (func_version): Essentially copied from gnulib-tool.
55093         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
55094         func_readlink): Copied from gnulib-tool.
55095
55096 2008-09-26  Bruno Haible  <bruno@clisp.org>
55097
55098         * gnulib-tool (func_version): Change directory to $gnulib_dir before
55099         invoking git-version-gen.
55100
55101 2008-09-26  Bruno Haible  <bruno@clisp.org>
55102
55103         * posix-modules: Update to directory names changed on 2008-01-19.
55104         Remove commas in output before splitting into words. No more need to
55105         avoid 'ftruncate' since 2007-02-19.
55106
55107 2008-09-26  Bruno Haible  <bruno@clisp.org>
55108
55109         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
55110
55111 2008-09-26  Bruno Haible  <bruno@clisp.org>
55112
55113         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
55114         * modules/fwriteerror (Depends-on): Add errno.
55115
55116 2008-09-26  Bruno Haible  <bruno@clisp.org>
55117
55118         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
55119         * tests/test-vc-list-files-cvs.sh: Likewise.
55120
55121 2008-09-26  Bruno Haible  <bruno@clisp.org>
55122
55123         * doc/posix-headers/sys_resource.texi: Reorder items.
55124
55125 2008-09-26  Jim Meyering  <meyering@redhat.com>
55126
55127         fts: tweak inode comparison function
55128         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
55129         inode numbers, as documented.
55130
55131         fts: sort dirent entries on inode number before traversing
55132         This avoids a quadratic, seek-related performance penalty when
55133         operating on a directory containing many entries (measurable at 10k;
55134         3.5 hours at 2 million entries with a cold cache) on certain types
55135         of file systems, including ext3 and ext4, but not tmpfs.
55136         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
55137         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
55138         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
55139         (fs_handles_readdir_ordered_dirents_efficiently): New function.
55140         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
55141         (fts_build): Set the stat.st_ino member from D_INO.
55142         If it is likely to be useful, sort dirent entries on inode number.
55143
55144         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
55145         and the struct statfs.f_type member.
55146         * modules/fts (Depends-on): Add d-ino.
55147
55148 2008-09-26  Bruno Haible  <bruno@clisp.org>
55149
55150         * modules/sigpipe-die (Depends-on): Add sigpipe.
55151
55152         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
55153         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
55154         and GNULIB_STDIO_H_SIGPIPE are set.
55155         * lib/stdio-write.c: New file.
55156         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
55157         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
55158         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
55159         REPLACE_STDIO_WRITE_FUNCS.
55160         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
55161         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
55162         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
55163         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
55164         * modules/stdio (Files): Add lib/stdio-write.c.
55165         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
55166         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
55167         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
55168         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
55169         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
55170         REPLACE_FPRINTF_POSIX.
55171         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
55172         REPLACE_PRINTF_POSIX.
55173         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
55174         REPLACE_VFPRINTF_POSIX.
55175         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
55176         REPLACE_VPRINTF_POSIX.
55177         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
55178         SIGPIPE issue.
55179         * doc/posix-functions/fputc.texi: Likewise.
55180         * doc/posix-functions/fputs.texi: Likewise.
55181         * doc/posix-functions/fwrite.texi: Likewise.
55182         * doc/posix-functions/printf.texi: Likewise.
55183         * doc/posix-functions/putc.texi: Likewise.
55184         * doc/posix-functions/putchar.texi: Likewise.
55185         * doc/posix-functions/puts.texi: Likewise.
55186         * doc/posix-functions/vfprintf.texi: Likewise.
55187         * doc/posix-functions/vprintf.texi: Likewise.
55188
55189         * modules/safe-write (Depends-on): Add write.
55190
55191         * modules/sigpipe-tests: New file.
55192         * tests/test-sigpipe.c: New file.
55193         * tests/test-sigpipe.sh: New file.
55194
55195         * modules/write: New file.
55196         * lib/unistd.in.h: Include <sys/types.h>.
55197         (write): New declaration.
55198         * lib/write.c: New file.
55199         * m4/write.m4: New file.
55200         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
55201         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
55202         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
55203         GNULIB_WRITE, REPLACE_WRITE.
55204         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
55205         and the SIGPIPE issue.
55206
55207         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
55208         (raise): New declaration.
55209         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
55210         (ext_signal): New function.
55211         (rpl_raise): New function.
55212         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
55213         GNULIB_SIGNAL_H_SIGPIPE.
55214         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
55215         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
55216
55217         * modules/sigpipe: New file.
55218         * m4/sigpipe.m4: New file.
55219
55220 2008-09-25  Derek Price  <derek@ximbiot.com>
55221             Bruno Haible  <bruno@clisp.org>
55222
55223         * gnulib-tool (func_import): Report all license incompatibilities, not
55224         just the first one.
55225
55226 2008-09-25  Bruno Haible  <bruno@clisp.org>
55227
55228         * gnulib-tool (func_import): When computing the edits, consider not
55229         only the Makefile.ams that exist but also those that will be generated.
55230
55231 2008-09-25  Simon Josefsson  <simon@josefsson.org>
55232
55233         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
55234         fixes gnulib-tool --test warning about duplicate dependency.
55235
55236 2008-09-25  Bruno Haible  <bruno@clisp.org>
55237
55238         * gnulib-tool: Don't ask the user to perform edits in the generated
55239         Makefile.ams.
55240         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
55241         apply to the Makefile.am being generated.
55242         (func_emit_tests_Makefile_am): Execute edits that apply to the
55243         Makefile.am being generated.
55244         (func_import): Setup list of Makefile.am edits before emitting the
55245         Makefile.ams, not at the end.
55246         (func_create_testdir): Update.
55247         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
55248
55249 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55250
55251         * gnulib-tool (func_import): Store the --tests-base option in the
55252         comment in gnulib-cache.m4.
55253
55254 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
55255
55256         * NEWS: Document increased portability that sys_select now provides.
55257
55258         * lib/sys_select.in.h: Install select wrapper.
55259         * lib/sys_socket.in.h: Use more descriptive name when there is no
55260         select wrapper.
55261         * lib/winsock-select.c: New.
55262         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
55263         Require gl_HEADER_SYS_SOCKET.
55264         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
55265         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
55266         * tests/test-sys_select.c: Add functional tests.
55267
55268 2008-09-24  Eric Blake  <ebb9@byu.net>
55269
55270         open, fopen: close fd leak in last patch
55271         * lib/open.c (rpl_open): Close fd before returning error.
55272         * lib/fopen.c (rpl_fopen): Close fd before returning error.
55273         * doc/posix-functions/open.texi (open): Document that Irix also
55274         has the bug.
55275         * doc/posix-functions/fopen.texi (fopen): Likewise.
55276         Reported by Paolo Bonzini.
55277
55278 2008-09-24  Bruno Haible  <bruno@clisp.org>
55279
55280         Ensure that a filename ending in a slash cannot be used to access a
55281         non-directory.
55282         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
55283         to check whether it's really a directory.
55284         * lib/fopen.c: Include fcntl.h, unistd.h.
55285         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
55286         and fdopen().
55287         * modules/fopen (Depends-on): Add unistd.
55288         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
55289         * tests/test-fopen.c (main): Likewise.
55290         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
55291         * doc/posix-functions/fopen.texi: Likewise.
55292         Reported by Eric Blake.
55293
55294 2008-09-23  Eric Blake  <ebb9@byu.net>
55295
55296         c-stack: avoid compiler optimizations when provoking overflow
55297         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
55298         recursion harder to optimize, to ensure a stack overflow occurs.
55299         * tests/test-c-stack.c (recurse): Likewise.
55300         Borrowed from libsigsegv.
55301
55302         c-stack: work around Irix sigaltstack bug
55303         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
55304         whether sigaltstack uses wrong end of stack_t (copied in part from
55305         libsigsegv).
55306         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
55307         Irix bug, without requiring an over-allocation.
55308         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
55309         bug.
55310
55311         fopen: document mingw bug on directories
55312         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
55313         not allowing a stream visiting a directory, even though reading
55314         from such a stream is not portable.
55315
55316 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
55317
55318         * lib/poll.c: Rewrite.
55319         * modules/poll: Depend on alloca.
55320
55321 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
55322
55323         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
55324         instead define prototypes for a full set of wrappers.  Ensure
55325         that Cygwin does not use the compatibility code, which is only
55326         for MinGW.
55327         * lib/winsock.c: New.
55328         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
55329         * modules/sys_socket: Add lib/winsock.c.
55330
55331         * modules/poll-tests: Add errno and perror.
55332         * tests/test-poll.c: Use ioctl, not ioctlsocket.
55333
55334 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
55335
55336         * tests/test-poll.c: Downgrade minimum needed Winsock version.
55337
55338 2008-09-23  Bruno Haible  <bruno@clisp.org>
55339
55340         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
55341         * doc/glibc-functions/*: Likewise.
55342
55343 2008-09-23  Simon Josefsson  <simon@josefsson.org>
55344
55345         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
55346         success.
55347
55348 2008-09-22  Eric Blake  <ebb9@byu.net>
55349             Bruno Haible  <bruno@clisp.org>
55350
55351         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
55352         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
55353         supply %A but mishandle pseudo-NaN.
55354         Reported by Simon Josefsson.
55355
55356 2008-09-21  Bruno Haible  <bruno@clisp.org>
55357
55358         * tests/test-lock.c (main): Tweak skip message.
55359         * tests/test-tls.c (main): Likewise.
55360
55361 2008-09-21  Bruno Haible  <bruno@clisp.org>
55362
55363         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
55364         whether 'struct sigaction' has sa_sigaction here...
55365         (gl_PREREQ_SIG_HANDLER_H): ... not here.
55366         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
55367
55368 2008-09-21  Bruno Haible  <bruno@clisp.org>
55369
55370         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
55371         section.
55372         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
55373         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
55374         the new section.
55375         (Support for obsolete systems lacking POSIX:2001): New section.
55376         (String handling <string.h>): Move strdup to the new section.
55377         Suggested by Simon Josefsson and Paolo Bonzini.
55378
55379 2008-09-21  Bruno Haible  <bruno@clisp.org>
55380
55381         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
55382         exponents in %e and %g results on 'long double'. Needed for mingw's
55383         improved *printf functions.
55384         * tests/test-vasprintf-posix.c (test_function): Likewise.
55385         * tests/test-snprintf-posix.h (test_function): Likewise.
55386         * tests/test-sprintf-posix.h (test_function): Likewise.
55387         Reported by Eric Blake.
55388
55389 2008-09-21  Bruno Haible  <bruno@clisp.org>
55390
55391         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
55392         * tests/test-sprintf-posix.h (test_function): Likewise.
55393
55394 2008-09-21  Bruno Haible  <bruno@clisp.org>
55395
55396         * modules/getpass (Depends-on): Add strdup-posix.
55397
55398         New module 'strdup-posix'.
55399         * modules/strdup-posix: New file.
55400         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
55401         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
55402         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
55403         REPLACE_STRDUP.
55404         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
55405         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
55406         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55407         strdup-posix.
55408
55409         * modules/strdup (Depends-on): Remove malloc-posix.
55410
55411 2008-09-20  Bruno Haible  <bruno@clisp.org>
55412
55413         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
55414         Wildenhues.
55415
55416 2008-09-20  Bruno Haible  <bruno@clisp.org>
55417
55418         Ensure that wint_t gets defined on IRIX 5.3.
55419         * lib/wchar.in.h (wint_t): Define if not defined by the system.
55420         * lib/wctype.in.h (wint_t): Likewise.
55421         (__wctype_wint_t): Remove type.
55422         (isw*): Use wint_t instead of __wctype_wint_t.
55423         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
55424         * modules/wchar (Files): Add m4/wint_t.m4.
55425         (Makefile.am): Substitute HAVE_WINT_T.
55426         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
55427         * tests/test-wctype.c: Check that wint_t is defined.
55428         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
55429         * doc/posix-headers/wctype.texi: Likewise.
55430         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
55431
55432 2008-09-18  Bruno Haible  <bruno@clisp.org>
55433
55434         * gnulib-tool (func_exit): Update comment.
55435
55436 2008-09-18  Simon Josefsson  <simon@josefsson.org>
55437
55438         * modules/getaddrinfo (Depends-on): Remove strdup, this module
55439         assumes strdup exists and does not depend on strdup to return
55440         ENOMEM on out of memory conditions.
55441
55442 2008-09-18  Bruno Haible  <bruno@clisp.org>
55443
55444         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
55445         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
55446         digits for the exponent.
55447
55448 2008-09-18  Jim Meyering  <meyering@redhat.com>
55449             Bruno Haible  <bruno@clisp.org>
55450
55451         * lib/vasnprintf.c (decimal_point_char): Define also if
55452         NEED_PRINTF_INFINITE_LONG_DOUBLE.
55453
55454 2008-09-16  Bruno Haible  <bruno@clisp.org>
55455         and Eric Blake  <ebb9@byu.net>
55456
55457         vasnprintf: support Irix 5.3
55458         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
55459         that mishandle long double infinity.
55460         Reported by Tom G. Christensen.
55461
55462 2008-09-16  Bruno Haible  <bruno@clisp.org>
55463
55464         * doc/glibc-functions/scandir.texi: Mention the function is missing on
55465         Solaris 9.
55466         * doc/glibc-functions/alphasort.texi: Likewise.
55467         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
55468
55469 2008-09-16  Jim Meyering  <meyering@redhat.com>
55470
55471         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
55472         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
55473         a umask modification leak out of a subshell.  Otherwise, the
55474         opensolaris /bin/sh would be accepted and thus cause unwarranted
55475         failures in the coreutils test suite.
55476
55477 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
55478
55479         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
55480         to succeed.
55481
55482 2008-09-16  Jim Meyering  <meyering@redhat.com>
55483
55484         avoid spurious test failure when library is built without ACL support
55485         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
55486         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
55487         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
55488         * tests/test-copy-acl.sh: Likewise.
55489
55490 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55491
55492         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
55493         based on character occurrence counts.
55494
55495 2008-09-15  Eric Blake  <ebb9@byu.net>
55496
55497         tests: avoid some compiler warnings
55498         * tests/test-memchr.c (main): Pass NULL indirectly.
55499         * tests/test-closein.c (main): Avoid unused variable.
55500
55501 2008-09-15  Bruno Haible  <bruno@clisp.org>
55502
55503         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
55504         are missing on OpenBSD 4.0 individually.
55505         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
55506
55507 2008-09-15  Bruno Haible  <bruno@clisp.org>
55508
55509         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
55510         * doc/posix-functions/strerror.texi: Mention also Cygwin.
55511         * doc/posix-functions/perror.texi: Likewise.
55512         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
55513         is missing.
55514         Reported by Eric Blake.
55515
55516         * lib/errno.in.h: Use replacement values >= 2000.
55517         Reported by Eric Blake.
55518
55519 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55520
55521         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
55522         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
55523         limit.
55524         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
55525         compareseq was aborted.
55526
55527 2008-09-14  Bruno Haible  <bruno@clisp.org>
55528
55529         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
55530         yvec_edit_count.
55531         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
55532         (fstrcmp_bounded): Simplify result computation accordingly.
55533
55534 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55535
55536         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
55537         (fstrcmp): Define in terms of fstrcmp_bounded.
55538         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
55539         lower_bound argument.
55540         Return quickly if the result is certainly < lower_bound.
55541         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
55542
55543 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55544
55545         * lib/diffseq.h (EARLY_ABORT): New macro.
55546         (compareseq): Change return type to bool. Return true when EARLY_ABORT
55547         evaluates to true.
55548
55549 2008-09-14  Bruno Haible  <bruno@clisp.org>
55550
55551         * modules/perror-tests: New file.
55552         * tests/test-perror.sh: New file.
55553         * tests/test-perror.c: New file.
55554
55555         New module 'perror'.
55556         * lib/stdio.in.h (perror): New declaration.
55557         * lib/perror.c: New file.
55558         * m4/perror.m4: New file.
55559         * modules/perror: New file.
55560         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
55561         * doc/posix-functions/perror.texi: Mention the perror module.
55562         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
55563         REPLACE_PERROR.
55564         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
55565         REPLACE_PERROR.
55566
55567 2008-09-14  Bruno Haible  <bruno@clisp.org>
55568
55569         * modules/stdio (Makefile.am): Reorder to match the order in
55570         lib/stdio.in.h.
55571         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
55572
55573 2008-09-13  Bruno Haible  <bruno@clisp.org>
55574
55575         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
55576
55577 2008-09-13  Bruno Haible  <bruno@clisp.org>
55578
55579         Extend strerror to cover the added errno values.
55580         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
55581         (rpl_strerror): Provide error messages for the added errno values and
55582         for the WSA* values.
55583         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
55584         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
55585         strerror.
55586         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
55587         * modules/strerror (Depends-on): Add errno.
55588         * doc/posix-functions/strerror.texi: Document the change.
55589         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
55590         and EOVERFLOW.
55591
55592 2008-09-13  Bruno Haible  <bruno@clisp.org>
55593
55594         * modules/EOVERFLOW: Remove file.
55595         * m4/eoverflow.m4: Remove file.
55596         * modules/EOVERFLOW-tests: Remove file.
55597         * tests/test-EOVERFLOW.c: Remove file.
55598         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
55599         * modules/ftell (Depends-on): Likewise.
55600         * modules/getdelim (Depends-on): Likewise.
55601         * modules/getugroups (Depends-on): Likewise.
55602         * modules/poll (Depends-on): Likewise.
55603         * modules/snprintf (Depends-on): Likewise.
55604         * modules/sprintf-posix (Depends-on): Likewise.
55605         * modules/vasnprintf (Depends-on): Likewise.
55606         * modules/vasprintf (Depends-on): Likewise.
55607         * modules/vfprintf-posix (Depends-on): Likewise.
55608         * modules/vsnprintf (Depends-on): Likewise.
55609         * modules/vsprintf-posix (Depends-on): Likewise.
55610         * modules/xvasprintf (Depends-on): Likewise.
55611         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
55612         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
55613         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
55614         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
55615         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
55616         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
55617         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
55618         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
55619         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
55620         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
55621         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
55622         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
55623         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
55624         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
55625         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
55626         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
55627         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
55628         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
55629         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
55630         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
55631         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
55632         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
55633         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
55634         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
55635         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
55636         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
55637         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
55638         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
55639         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
55640         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
55641         * MODULES.html.sh: Remove EOVERFLOW.
55642         * NEWS: Mention the change.
55643
55644 2008-09-13  Bruno Haible  <bruno@clisp.org>
55645
55646         * modules/errno-tests: New file.
55647         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
55648
55649         * lib/errno.in.h: New file.
55650         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
55651         * modules/errno: New file.
55652         * doc/posix-headers/errno.texi: Update documentation.
55653         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
55654
55655 2008-09-13  Bruno Haible  <bruno@clisp.org>
55656
55657         * tests/test-poll.c: Use #if for native Windows, rather than testing
55658         __MSVCRT__.
55659
55660 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55661             Bruno Haible  <bruno@clisp.org>
55662
55663         * lib/glob.c: Don't include <pwd.h> on native Windows.
55664         (WINDOWS32): New macro.
55665         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
55666
55667 2008-09-13  Bruno Haible  <bruno@clisp.org>
55668
55669         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
55670         (ETIMEDOUT): Remove macro.
55671         (glthread_cond_timedwait_multithreaded): New declaration.
55672         (glthread_cond_timedwait): Use it.
55673         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
55674         (glthread_cond_timedwait_multithreaded): New function.
55675
55676 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
55677
55678         * modules/poll-tests: Do not check for io.h.
55679         * tests/test-poll.c: Check for __MSVCRT__ instead.
55680
55681 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
55682
55683         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
55684         * modules/poll-tests: Add inet_pton, stdbool, sockets.
55685         * tests/test-poll.c: Use them.  Use _pipe on Windows.
55686
55687 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
55688
55689         * modules/poll-tests: New.
55690         * tests/test-poll.c: New.
55691
55692 2008-09-12  Eric Blake  <ebb9@byu.net>
55693
55694         frexp: test for NetBSD failure on -0.0
55695         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
55696         not all, bugs from NetBSD 3.0 have been fixed.
55697         * doc/posix-functions/frexp.texi (frexp): Document bug.
55698         Reported by Thomas Klausner.
55699
55700         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
55701         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
55702         literal -0.0.
55703         Reported by Jonathan C. Patschke <jp@centtech.com>.
55704
55705 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55706
55707         * lib/glthread/cond.h: Use dummy implementation also if
55708         USE_WIN32_THREADS.
55709
55710 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55711
55712         * modules/fnmatch-posix (License): Change to LGPLv2+.
55713         * modules/fnmatch-gnu (License): Likewise.
55714
55715 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55716
55717         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
55718
55719 2008-09-11  Jim Meyering  <meyering@redhat.com>
55720
55721         * users.txt: Add gtk-vnc.
55722
55723 2008-09-08  Simon Josefsson  <simon@josefsson.org>
55724
55725         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
55726         rotate amounts.
55727
55728         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
55729         required for 16-bit and 8-bit rotates.
55730         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
55731         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
55732         UINT8_MAX instead of hard-coded constants.
55733         Suggested by Paul Eggert.
55734
55735 2008-09-07  Bruno Haible  <bruno@clisp.org>
55736
55737         * tests/test-striconveh.c (main): Check behaviour when converting from
55738         UTF-7.
55739
55740         Make striconveh work better with stateful encodings.
55741         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
55742         that iconv does not increment the inptr when returning -1/EINVAL.
55743
55744 2008-09-07  Bruno Haible  <bruno@clisp.org>
55745
55746         * build-aux/config.rpath: Update according to libtool-2.2.6.
55747         * build-aux/config.libpath: Likewise.
55748
55749 2008-09-06  Bruno Haible  <bruno@clisp.org>
55750
55751         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
55752         * lib/freadptr.c (freadptr): Likewise.
55753         * lib/freadseek.c (freadptrinc): Likewise.
55754         Reported by Simon Josefsson.
55755
55756 2008-09-06  Bruno Haible  <bruno@clisp.org>
55757
55758         * modules/freadptr (License): Change to LGPLv2+.
55759         * modules/freadseek (License): Likewise.
55760         Suggested by Eric Blake.
55761
55762         * modules/memchr2 (License): Change to LGPLv2+.
55763         Approved by Eric Blake.
55764
55765 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55766             Bruno Haible  <bruno@clisp.org>
55767
55768         Make gnulib-tool work with native 'sed' on AIX.
55769         * gnulib-tool (sed_noop): New variable.
55770         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
55771         func_add_or_update, func_create_testdir): Use it to initialize sed
55772         script variables.
55773         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
55774
55775 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
55776             Bruno Haible  <bruno@clisp.org>
55777
55778         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
55779         also works after #include directives.
55780
55781 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
55782
55783         getdate.y: reject an out-of-range timezone value
55784         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
55785         the range [-24...+24].  When specified with only one or two digits,
55786         * tests/test-getdate.c: Tests for the fix.
55787         * doc/getdate.texi: Document this change.
55788
55789 2008-09-03  Bruno Haible  <bruno@clisp.org>
55790
55791         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
55792
55793 2008-09-02  Simon Josefsson  <simon@josefsson.org>
55794
55795         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
55796         <bruce.korb@gmail.com> with ideas from Ben Pfaff
55797         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
55798         Blake <ebb9@byu.net>.
55799
55800         * tests/test-bitrotate.c: Add more test vectors.
55801
55802 2008-09-02  Eric Blake  <ebb9@byu.net>
55803
55804         vasnprintf-posix: handle large precision via %.*d
55805         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
55806         when handling it ourselves.
55807         * tests/test-vasnprintf-posix.c (test_function): Add test.
55808         * tests/test-snprintf-posix.h (test_function): Likewise.
55809         * tests/test-sprintf-posix.h (test_function): Likewise.
55810         * tests/test-vasprintf-posix.c (test_function): Likewise.
55811         Reported by Alain Guibert.
55812
55813 2008-09-01  Eric Blake  <ebb9@byu.net>
55814
55815         c-stack: make configure-time check more robust
55816         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
55817         successful sigaction call.
55818         Reported by Tom G. Christensen.
55819
55820 2008-09-01  Bruno Haible  <bruno@clisp.org>
55821
55822         New module 'findprog-lgpl'.
55823         * modules/findprog-lgpl: New file.
55824         * lib/findprog-lgpl.c: New file.
55825         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
55826         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
55827         to decide whether to use strdup or xstrdup, concatenated_filename or
55828         xconcatenated_filename.
55829
55830 2008-09-01  Bruno Haible  <bruno@clisp.org>
55831
55832         Split module 'concat-filename' into 'concat-filename' (LGPL) and
55833         'xconcat-filename' (GPL).
55834         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
55835         (License): Change to LGPLv2+.
55836         * modules/xconcat-filename: New file.
55837         * lib/concat-filename.h (concatenated_filename): Change specification.
55838         (xconcatenated_filename): New declaration.
55839         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
55840         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
55841         memory situations.
55842         * lib/xconcat-filename.c: New file.
55843         * NEWS: Mention the change.
55844         * lib/findprog.c: Include concat-filename.h, not filename.h.
55845         (find_in_path): Use xconcatenated_filename instead of
55846         concatenated_filename.
55847         * lib/javacomp.c: Include concat-filename.h, not filename.h.
55848         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
55849         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
55850         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
55851         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
55852         instead of concatenated_filename.
55853         * lib/javaexec.c: Include concat-filename.h, not filename.h.
55854         (execute_java_class): Use xconcatenated_filename instead of
55855         concatenated_filename.
55856         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
55857         * modules/javacomp (Depends-on): Likewise.
55858         * modules/javaexec (Depends-on): Likewise.
55859
55860 2008-09-01  Bruno Haible  <bruno@clisp.org>
55861
55862         Split module 'filename' into 'filename' and 'concat-filename'.
55863         * modules/filename: Keep only lib/filename.h.
55864         (License): Change to LGPLv2+.
55865         * modules/concat-filename: New file, extracted from modules/filename.
55866         * lib/filename.h (concatenated_filename): Remove declaration.
55867         * lib/concat-filename.h: New file, extracted from lib/filename.h.
55868         * lib/concat-filename.c: Include concat-filename.h.
55869         * NEWS: Mention the change.
55870
55871 2008-09-01  Simon Josefsson  <simon@josefsson.org>
55872
55873         * lib/bitrotate.h (rotl8, rotr8): Add.
55874
55875         * modules/bitrotate (configure.ac): Need
55876         AC_REQUIRE([AC_C_INLINE]).
55877         (Description): Mention stdint.h.  Reported by Bruno Haible
55878         <bruno@clisp.org>.
55879
55880         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
55881         Paolo Bonzini <bonzini@gnu.org>.
55882
55883 2008-08-31  Bruno Haible  <bruno@clisp.org>
55884
55885         Assume Solaris specific bi-arch conventions on Solaris systems.
55886         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
55887         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
55888         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
55889         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
55890         like acl_libdirstem.
55891         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
55892         acl_libdirstem.
55893         * NEWS: Mention the change.
55894         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
55895
55896 2008-08-31  Jim Meyering  <meyering@redhat.com>
55897
55898         * lib/strftime.h: Add comments describing the two added arguments.
55899
55900         remove duplicate #include directives
55901         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
55902         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
55903
55904 2008-08-31  Bruno Haible  <bruno@clisp.org>
55905
55906         New module 'sigpipe-die'.
55907         * modules/sigpipe-die: New file.
55908         * lib/sigpipe-die.h: New file.
55909         * lib/sigpipe-die.c: New file.
55910         * MODULES.html.sh (Signal handling): Add sigpipe-die.
55911
55912 2008-08-31  Bruno Haible  <bruno@clisp.org>
55913
55914         Don't override previously installed signal handlers.
55915         * lib/fatal-signal.c (saved_sigactions): New variable.
55916         (uninstall_handlers): Reset the signal to the saved handler, not
55917         to SIG_DFL (except when ignored).
55918         (install_handlers): Save the previous handlers.
55919
55920 2008-08-30  Bruno Haible  <bruno@clisp.org>
55921
55922         * gnulib-tool (func_reset_sigpipe): New function.
55923         (func_get_automake_snippet, func_modules_transitive_closure,
55924         func_import): Invoke it before a join command that reads from stdin,
55925         to avoid "echo: write error: Broken pipe" error messages on stderr.
55926         Reported by Sam Steingold <sds@gnu.org>.
55927
55928 2008-08-30  Bruno Haible  <bruno@clisp.org>
55929
55930         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
55931         Code copied from m4/open.m4.
55932         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
55933         access and the filename ends in a slash. Code copied from lib/open.c.
55934         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
55935         * tests/test-fopen.c (main): Check against bug with trailing slash.
55936
55937 2008-08-29  Bruno Haible  <bruno@clisp.org>
55938
55939         Avoid some "gcc -pedantic" warnings.
55940         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
55941         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
55942         * lib/dirent.in.h: Likewise.
55943         * lib/fcntl.in.h: Likewise.
55944         * lib/float.in.h: Likewise.
55945         * lib/iconv.in.h: Likewise.
55946         * lib/inttypes.in.h: Likewise.
55947         * lib/locale.in.h: Likewise.
55948         * lib/math.in.h: Likewise.
55949         * lib/netinet_in.in.h: Likewise.
55950         * lib/search.in.h: Likewise.
55951         * lib/signal.in.h: Likewise.
55952         * lib/stdarg.in.h: Likewise.
55953         * lib/stdint.in.h: Likewise.
55954         * lib/stdio.in.h: Likewise.
55955         * lib/stdlib.in.h: Likewise.
55956         * lib/string.in.h: Likewise.
55957         * lib/strings.in.h: Likewise.
55958         * lib/sys_select.in.h: Likewise.
55959         * lib/sys_socket.in.h: Likewise.
55960         * lib/sys_stat.in.h: Likewise.
55961         * lib/sys_time.in.h: Likewise.
55962         * lib/sysexits.in.h: Likewise.
55963         * lib/time.in.h: Likewise.
55964         * lib/unistd.in.h: Likewise.
55965         * lib/wchar.in.h: Likewise.
55966         * lib/wctype.in.h: Likewise.
55967         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
55968         * modules/fchdir (Makefile.am): Likewise.
55969         * modules/fcntl (Makefile.am): Likewise.
55970         * modules/float (Makefile.am): Likewise.
55971         * modules/iconv_open (Makefile.am): Likewise.
55972         * modules/inttypes (Makefile.am): Likewise.
55973         * modules/locale (Makefile.am): Likewise.
55974         * modules/math (Makefile.am): Likewise.
55975         * modules/netinet_in (Makefile.am): Likewise.
55976         * modules/search (Makefile.am): Likewise.
55977         * modules/signal (Makefile.am): Likewise.
55978         * modules/stdarg (Makefile.am): Likewise.
55979         * modules/stdint (Makefile.am): Likewise.
55980         * modules/stdio (Makefile.am): Likewise.
55981         * modules/stdlib (Makefile.am): Likewise.
55982         * modules/string (Makefile.am): Likewise.
55983         * modules/strings (Makefile.am): Likewise.
55984         * modules/sys_select (Makefile.am): Likewise.
55985         * modules/sys_socket (Makefile.am): Likewise.
55986         * modules/sys_stat (Makefile.am): Likewise.
55987         * modules/sys_time (Makefile.am): Likewise.
55988         * modules/sysexits (Makefile.am): Likewise.
55989         * modules/time (Makefile.am): Likewise.
55990         * modules/unistd (Makefile.am): Likewise.
55991         * modules/wchar (Makefile.am): Likewise.
55992         * modules/wctype (Makefile.am): Likewise.
55993         Reported by Reuben Thomas <rrt@sc3d.org>.
55994
55995 2008-08-29  Bruno Haible  <bruno@clisp.org>
55996
55997         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
55998         any more.
55999
56000 2008-08-29  Simon Josefsson  <simon@josefsson.org>
56001
56002         * MODULES.html.sh (Misc): Add bitrotate.
56003
56004         * modules/bitrotate: New file.
56005
56006         * lib/bitrotate.h: New file.
56007
56008         * modules/bitrotate-tests: New file.
56009
56010         * tests/test-bitrotate.c: New file.
56011
56012         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
56013         on the bitrotate module.
56014
56015         * lib/arctwo.c: Use new bitrotate module.
56016
56017 2008-08-29  Jim Meyering  <meyering@redhat.com>
56018
56019         bootstrap: merge changes from coreutils
56020         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
56021         of copied files.  Remove a kludge, now that this is fixed.
56022         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
56023         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
56024         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
56025
56026 2008-08-29  Bruno Haible  <bruno@clisp.org>
56027
56028         * MODULES.html.sh: Remove --cvs-urls option.
56029
56030 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
56031
56032         maint.mk: adjust to file name change
56033         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
56034
56035 2008-08-28  Jim Meyering  <meyering@redhat.com>
56036
56037         * modules/getndelim2 (License): Relicense to LGPLv2+.
56038         Approved by Richard Stallman for the version of 1995, and by
56039         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
56040
56041 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
56042
56043         * lib/getdelim.c (flockfile, funlockfile): Make all of them
56044         dummy if one is not available.  Do not touch them if
56045         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
56046         (getc_maybe_unlocked): New.
56047         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
56048
56049 2008-08-26  Eric Blake  <ebb9@byu.net>
56050
56051         doc/INSTALL: resync from autoconf
56052         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
56053         (INSTALL_PRELUDE): Delete; this is done more efficiently by
56054         moving...
56055         * install.texi [!autoconf]: ...here.  Resync from autoconf.
56056         * INSTALL: Regenerate.
56057         * INSTALL.ISO: New file.
56058         * INSTALL.UTF-8: Likewise.
56059
56060 2008-08-26  Jim Meyering  <meyering@redhat.com>
56061
56062         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
56063         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
56064         these definitions conditional, so that they may be overridden, too.
56065
56066 2008-08-26  Bruno Haible  <bruno@clisp.org>
56067
56068         Generate INSTALL file variants with prettier quotes.
56069         * doc/Makefile (INSTALL_PRELUDE): New macro.
56070         (INSTALL): Use it.
56071         (INSTALL.ISO, INSTALL.UTF-8): New rules.
56072
56073 2008-08-26  Bruno Haible  <bruno@clisp.org>
56074
56075         Run makeinfo in an English locale.
56076         * doc/Makefile (MAKEINFO): New variable.
56077
56078 2008-08-26  Bruno Haible  <bruno@clisp.org>
56079
56080         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
56081         Suggested by Eric Blake.
56082
56083 2008-08-25  Bruno Haible  <bruno@clisp.org>
56084
56085         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
56086
56087 2008-08-25  Eric Blake  <ebb9@byu.net>
56088
56089         c-stack: test that stack overflow can be caught
56090         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
56091         that platform allows handling stack overflow; at least OS/2 EMX
56092         has sigaltstack, but crashes before transferring control to
56093         handler on stack overflow.
56094         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
56095         check for HAVE_STACK_OVERFLOW_HANDLING.
56096         Reported by Elbert Pol.
56097
56098 2008-08-25  Bruno Haible  <bruno@clisp.org>
56099
56100         * doc/posix-functions/strftime.texi: Fix description of strftime
56101         module.
56102
56103 2008-08-24  Bruno Haible  <bruno@clisp.org>
56104
56105         * tests/uniwidth/test-uc_width2.c: New file.
56106         * tests/uniwidth/test-uc_width2.sh: New file.
56107         * modules/uniwidth/width-tests (Files): Add the new files.
56108         (TESTS): Add uniwidth/test-uc_width2.sh.
56109         (TESTS_ENVIRONMENT): New variable.
56110         (check_PROGRAMS): Add test-uc_width2.
56111         (test_uc_width2_SOURCES): New variable.
56112
56113         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
56114         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
56115         not 0x00AB.
56116         Reported by Alexander V. Lukyanov <lav@netis.ru>.
56117
56118 2008-08-22  Eric Blake  <ebb9@byu.net>
56119
56120         test-lock, test-tls: mention why a test is skipped
56121         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
56122         skipped.
56123         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
56124
56125         count-one-bits: relax license
56126         * modules/count-one-bits (License): Relicense to LGPLv2+.
56127         Suggested by Ludovic Courtès, approved by Ben Pfaff.
56128
56129 2008-08-22  Andreas Schwab  <schwab@suse.de>
56130
56131         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
56132         Remove spurious space in assignment.
56133
56134 2008-08-21  Simon Josefsson  <simon@josefsson.org>
56135
56136         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
56137         Paul Eggert <eggert@CS.UCLA.EDU>.
56138
56139 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
56140
56141         * modules/gettext: Add m4/threadlib.m4.
56142
56143 2008-08-19  Eric Blake  <ebb9@byu.net>
56144
56145         test-c-stack: fix compilation failure on FreeBSD 5.0
56146         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
56147         headers before <sys/resource.h>.
56148         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
56149         the bug.
56150         Reported by Nelson H. F. Beebe.
56151
56152         strverscmp: migrate from "strverscmp.h" to <string.h>
56153         * modules/string (Makefile.am): Add new hooks.
56154         * modules/strverscmp (Files): Remove strverscmp.h.
56155         (Depends-on): Add string.
56156         (configure.ac): Add indicator.
56157         (Include): Mention new header.
56158         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
56159         defaults.
56160         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
56161         results.
56162         * lib/strverscmp.h: Delete.
56163         * lib/string.in.h (strverscmp): Provide declaration, when needed.
56164         * tests/test-strverscmp.c (includes): Adjust client.
56165         * lib/check-version.c (includes): Likewise.
56166         * NEWS: Document the change.
56167
56168         strverscmp: add unit test
56169         * modules/strverscmp-tests: New file.
56170         * tests/test-strverscmp.c: Likewise.
56171
56172 2008-08-19  Simon Josefsson  <simon@josefsson.org>
56173
56174         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
56175         regarding Windows crypto stuff, from Mono.
56176
56177 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
56178
56179         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
56180         if present, for intel RND.  Return error on failures.
56181
56182 2008-08-18  Ben Pfaff  <blp@gnu.org>
56183
56184         gitlog-to-changelog: give better diagnostic for failed pipe-open
56185         * build-aux/gitlog-to-changelog: Improve error message: suggest
56186         that the version of Git may be too old.
56187
56188 2008-08-18  Simon Josefsson  <simon@josefsson.org>
56189
56190         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
56191         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
56192
56193 2008-08-18  Bruno Haible  <bruno@clisp.org>
56194
56195         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
56196         pthread_in_use().
56197
56198 2008-08-18  Bruno Haible  <bruno@clisp.org>
56199
56200         * lib/glthread/threadlib.c: Include <pthread.h>.
56201
56202 2008-08-18  Bruno Haible  <bruno@clisp.org>
56203
56204         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
56205         glthread_recursive_lock_* macros.
56206         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
56207         Fix syntax error.
56208
56209 2008-08-18  Bruno Haible  <bruno@clisp.org>
56210
56211         * lib/glthread/thread.c: Avoid forcing a context switch right after
56212         thread creation.
56213
56214 2008-08-17  Bruno Haible  <bruno@clisp.org>
56215
56216         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
56217         * lib/glthread/thread.h: Provide Win32 specific implementation.
56218         * modules/thread (Files): Add lib/glthread/thread.c.
56219         (Depends-on): Add lock.
56220         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
56221
56222 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56223
56224         New module 'yield'.
56225         * modules/yield: New file.
56226         * lib/glthread/yield.h: New file.
56227         * m4/yield.m4: New file.
56228         * MODULES.html.sh (Multithreading): Add yield.
56229
56230 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56231
56232         New module 'thread'.
56233         * modules/thread: New file.
56234         * lib/glthread/thread.h: New file.
56235         * m4/thread.m4: New file.
56236         * MODULES.html.sh (Multithreading): Add thread.
56237
56238 2008-08-17  Bruno Haible  <bruno@clisp.org>
56239
56240         * lib/glthread/lock.h: Include <stdlib.h> always.
56241         * lib/glthread/tls.h: Likewise.
56242         * lib/glthread/cond.h: Likewise.
56243
56244 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56245
56246         New module 'cond'.
56247         * modules/cond: New file.
56248         * lib/glthread/cond.h: New file.
56249         * lib/glthread/cond.c: New file.
56250         * m4/cond.m4: New file.
56251         * MODULES.html.sh (Multithreading): Add cond.
56252
56253 2008-08-16  Eric Blake  <ebb9@byu.net>
56254
56255         c-stack: fix regression on Irix 5.3 from 2008-06-21
56256         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
56257         sa_sigaction...
56258         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
56259         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
56260         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
56261         * modules/signal (Makefile.am): Use the value.
56262         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
56263         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
56264         * doc/posix-headers/signal.texi (signal.h): Document this
56265         portability issue.
56266         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
56267         Reported by Tom G. Christensen.
56268
56269 2008-08-17  Bruno Haible  <bruno@clisp.org>
56270
56271         New module 'threadlib'.
56272         * modules/threadlib: New file.
56273         * lib/glthread/threadlib.c: New file, extracted from
56274         lib/glthread/lock.c.
56275         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
56276         functions.
56277         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
56278         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
56279         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
56280         macros.
56281         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
56282         (gl_DISABLE_THREADS): Remove macro.
56283         * modules/lock (Files): Remove build-aux/config.rpath.
56284         (Depends-on): Remove havelib. Add threadlib.
56285         (configure.ac-early): Remove section.
56286         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
56287         * modules/tls (Depends-on): Remove lock. Add threadlib.
56288         (Link): New section, copied from threadlib.
56289         * MODULES.html.sh (Multithreading): Add threadlib.
56290
56291 2008-08-14  Bruno Haible  <bruno@clisp.org>
56292
56293         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
56294         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
56295         glthread_rwlock_unlock, glthread_rwlock_destroy,
56296         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
56297         glthread_recursive_lock_destroy): Define as macros always.
56298         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
56299         glthread_lock_lock.
56300         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
56301         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
56302         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
56303         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
56304         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
56305         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
56306         (glthread_recursive_lock_lock_func): Renamed from
56307         glthread_recursive_lock_lock.
56308         (glthread_recursive_lock_unlock_func): Renamed from
56309         glthread_recursive_lock_unlock.
56310         (glthread_recursive_lock_destroy_func): Renamed from
56311         glthread_recursive_lock_destroy.
56312
56313 2008-08-14  Bruno Haible  <bruno@clisp.org>
56314
56315         * lib/glthread/lock.h: Renamed from lib/lock.h.
56316         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
56317         * lib/glthread/tls.h: Renamed from lib/tls.h.
56318         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
56319         * lib/fstrcmp.c: Update includes.
56320         * lib/strsignal.c: Update includes.
56321         * modules/lock (Files, Makefile.am): Update.
56322         (Include): Change to "glthread/lock.h".
56323         * modules/tls (Files, Makefile.am): Update.
56324         (Include): Change to "glthread/tls.h".
56325         * tests/test-lock.c: Update includes.
56326         * tests/test-tls.c: Update includes.
56327         * NEWS: Mention the renamed header files.
56328
56329 2008-08-11  Jim Meyering  <meyering@redhat.com>
56330
56331         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
56332
56333 2008-08-11  Eric Blake  <ebb9@byu.net>
56334
56335         test-c-stack: avoid C99-ism
56336         * tests/test-c-stack.c (main): Fix whitespace, move declaration
56337         before statement.
56338         Reported by Alain Guibert.
56339
56340 2008-08-10  Jim Meyering  <meyering@redhat.com>
56341
56342         ensure that return value of uinttostr et al are not ignored
56343         * lib/inttostr.h (__GNUC_PREREQ): Define.
56344         (__attribute_warn_unused_result__): Define.
56345         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
56346
56347 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
56348
56349         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
56350         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
56351
56352 2008-08-07  Jim Meyering  <meyering@redhat.com>
56353
56354         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
56355
56356         * modules/mkstemp (License): Relicense under LGPLv2+.
56357         * modules/tempname (License): Likewise.
56358
56359 2008-08-06  Bruno Haible  <bruno@clisp.org>
56360
56361         * lib/poll.c (poll): Further micro-optimization.
56362
56363 2008-08-06  Jim Meyering  <meyering@redhat.com>
56364
56365         inet_pton.c: use locale-independent tolower
56366         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
56367         (inet_pton6): Use c_tolower rather than tolower.
56368         * modules/inet_pton (Depends-on): Add c-ctype.
56369
56370 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
56371
56372         * lib/poll.c (poll): Avoid division when timeout is 0, cache
56373         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
56374
56375 2008-08-06  Jim Meyering  <meyering@redhat.com>
56376
56377         * modules/inet_pton (License): Relicense under LGPLv2+.
56378
56379 2008-08-03  Bruno Haible  <bruno@clisp.org>
56380
56381         Additional non-aborting API for lock and tls.
56382         * lib/lock.h: Include <errno.h>.
56383         (glthread_lock_init): New macro/function.
56384         (gl_lock_init): Define as wrapper around glthread_lock_init.
56385         (glthread_lock_lock): New macro/function.
56386         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
56387         (glthread_lock_unlock): New macro/function.
56388         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
56389         (glthread_lock_destroy): New macro/function.
56390         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
56391         (glthread_rwlock_init): New macro/function.
56392         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
56393         (glthread_rwlock_rdlock): New macro/function.
56394         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
56395         (glthread_rwlock_wrlock): New macro/function.
56396         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
56397         (glthread_rwlock_unlock): New macro/function.
56398         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
56399         (glthread_rwlock_destroy): New macro/function.
56400         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
56401         (glthread_recursive_lock_init): New macro/function.
56402         (gl_recursive_lock_init): Define as wrapper around
56403         glthread_recursive_lock_init.
56404         (glthread_recursive_lock_lock): New macro/function.
56405         (gl_recursive_lock_lock): Define as wrapper around
56406         glthread_recursive_lock_lock.
56407         (glthread_recursive_lock_unlock): New macro/function.
56408         (gl_recursive_lock_unlock): Define as wrapper around
56409         glthread_recursive_lock_unlock.
56410         (glthread_recursive_lock_destroy): New macro/function.
56411         (gl_recursive_lock_destroy): Define as wrapper around
56412         glthread_recursive_lock_destroy.
56413         (glthread_once): New macro/function.
56414         (gl_once): Define as wrapper around glthread_once.
56415         Update function declarations.
56416         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
56417         glthread_rwlock_init. Return error code.
56418         (glthread_rwlock_rdlock_multithreaded): Renamed from
56419         glthread_rwlock_rdlock. Return error code.
56420         (glthread_rwlock_wrlock_multithreaded): Renamed from
56421         glthread_rwlock_wrlock. Return error code.
56422         (glthread_rwlock_unlock_multithreaded): Renamed from
56423         glthread_rwlock_unlock. Return error code.
56424         (glthread_rwlock_destroy_multithreaded): Renamed from
56425         glthread_rwlock_destroy. Return error code.
56426         (glthread_recursive_lock_init_multithreaded): Renamed from
56427         glthread_recursive_lock_init. Return error code.
56428         (glthread_recursive_lock_lock_multithreaded): Renamed from
56429         glthread_recursive_lock_lock. Return error code.
56430         (glthread_recursive_lock_unlock_multithreaded): Renamed from
56431         glthread_recursive_lock_unlock. Return error code.
56432         (glthread_recursive_lock_destroy_multithreaded): Renamed from
56433         glthread_recursive_lock_destroy. Return error code.
56434         (glthread_once_call): Make static.
56435         (glthread_once_multithreaded): Renamed from glthread_once.
56436         * lib/tls.h: Include <errno.h>.
56437         (glthread_tls_key_init): New macro/function.
56438         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
56439         (glthread_tls_set): New macro/function.
56440         (gl_tls_set): Define as wrapper around glthread_tls_set.
56441         (glthread_tls_key_destroy): New macro/function.
56442         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
56443         Update function declarations.
56444         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
56445         glthread_tls_get.
56446         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
56447
56448 2008-08-04  Eric Blake  <ebb9@byu.net>
56449
56450         gnumakefile: use space, not TAB, outside of targets
56451         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
56452
56453 2008-08-02  Jim Meyering  <meyering@redhat.com>
56454
56455         getdate.y: avoid locale-dependent date parsing failure
56456         In Turkish locales, getdate would fail to recognize keywords
56457         containing a lowercase "i".  The solution is not to rely on
56458         locale-sensitive case-conversion.
56459         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
56460         (lookup_word): Use c_toupper in place of toupper.
56461         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
56462         Reported by Vefa Bicakci <bicave@superonline.com> in
56463         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
56464         * modules/getdate (Depends-on): Add c-ctype.
56465
56466 2008-08-02  Bruno Haible  <bruno@clisp.org>
56467
56468         * gnulib-tool (func_import): When updating or creating a .gitignore
56469         file, prepend each added line with a slash, and ignore leading slashes
56470         from the existing lines.
56471         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
56472
56473 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56474
56475         Portability fix for GNU make 3.79.1.
56476         * top/GNUmakefile: Avoid 'else COND', which older GNU make
56477         versions do not understand.
56478
56479 2008-08-01  Bruno Haible  <bruno@clisp.org>
56480
56481         Work around bug of HP-UX 10.20 cc with -0.0 literal.
56482         * tests/test-isnanf.h (zero): New variable.
56483         (main): Avoid literal -0.0f.
56484         * tests/test-isnand.h (zero): New variable.
56485         (main): Avoid literal -0.0.
56486         * tests/test-isnanl.h (zero): New variable.
56487         (main): Avoid literal -0.0L.
56488         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
56489         (test_float, test_double, test_long_double): Avoid literals -0.0f,
56490         -0.0, -0.0L.
56491         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
56492         (test_signbitd): Avoid literal -0.0.
56493         (test_signbitl): Avoid literal -0.0L.
56494         * tests/test-ceilf1.c (zero): New variable.
56495         (main): Avoid literal -0.0f.
56496         * tests/test-ceill.c (zero): New variable.
56497         (main): Avoid literal -0.0L.
56498         * tests/test-floorf1.c (zero): New variable.
56499         (main): Avoid literal -0.0f.
56500         * tests/test-floorl.c (zero): New variable.
56501         (main): Avoid literal -0.0L.
56502         * tests/test-roundf1.c (zero): New variable.
56503         (main): Avoid literal -0.0f.
56504         * tests/test-round1.c (zero): New variable.
56505         (main): Avoid literal -0.0.
56506         * tests/test-roundl.c (zero): New variable.
56507         (main): Avoid literal -0.0L.
56508         * tests/test-truncf1.c (zero): New variable.
56509         (main): Avoid literal -0.0f.
56510         * tests/test-trunc1.c (zero): New variable.
56511         (main): Avoid literal -0.0.
56512         * tests/test-truncl.c (zero): New variable.
56513         (main): Avoid literal -0.0L.
56514         * tests/test-frexp.c (zero): New variable.
56515         (main): Avoid literal -0.0.
56516         * tests/test-frexpl.c (zero): New variable.
56517         (main): Avoid literal -0.0L.
56518         * tests/test-ldexpl.c (zero): New variable.
56519         (main): Avoid literal -0.0L.
56520         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
56521         (zerod, zerol): New variables.
56522         (test_function): Avoid literals -0.0, -0.0L.
56523         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
56524         (zerod, zerol): New variables.
56525         (test_function): Avoid literals -0.0, -0.0L.
56526         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
56527         (zerod, zerol): New variables.
56528         (test_function): Avoid literals -0.0, -0.0L.
56529         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
56530         (zerod, zerol): New variables.
56531         (test_function): Avoid literals -0.0, -0.0L.
56532         * tests/test-strtod.c (zero): New variable.
56533         (main): Avoid literal -0.0.
56534         Reported by Jonathan C. Patschke <jp@centtech.com>.
56535
56536 2008-07-31  Jim Meyering  <meyering@redhat.com>
56537
56538         sha256.h: correct definition of SHA224_DIGEST_SIZE
56539         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
56540         Reported by Paulie Pena IV <paulie4@gmail.com>.
56541         Define as 224 / 8, rather than as a literal.
56542         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
56543         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
56544         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
56545
56546 2008-07-31  Bruno Haible  <bruno@clisp.org>
56547
56548         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
56549         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
56550         Reported by Jonathan Patschke <jp@centtech.com>.
56551
56552 2008-07-31  Bruno Haible  <bruno@clisp.org>
56553
56554         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
56555         Reported by Paolo Bonzini <bonzini@gnu.org>.
56556
56557 2008-07-30  Eric Blake  <ebb9@byu.net>
56558
56559         test-strtod: allow compilation without -lm
56560         * tests/test-strtod.c (main): Avoid link dependence on fabs.
56561         Reported by Dennis Clarke <blastwave@gmail.com>.
56562
56563 2008-07-28  Jim Meyering  <meyering@redhat.com>
56564
56565         bootstrap: work also when there are no .po files in po/
56566         * build-aux/bootstrap (update_po_files): Complete the change
56567         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
56568
56569 2008-07-27  Jim Meyering  <meyering@redhat.com>
56570
56571         * users.txt: Add zile.
56572
56573 2008-07-26  Ben Pfaff  <blp@gnu.org>
56574
56575         Add missing dependencies on new m4/exponent[fdl].m4 files.
56576         * modules/isnanf-nolibm: Add m4/exponentf.m4.
56577         * modules/isnand-nolibm: Add m4/exponentd.m4.
56578         * modules/isnanl-nolibm: Add m4/exponentl.m4.
56579         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
56580         m4/isnan[fdl].m4, because the macros actually used moved.
56581         Reported by Jim Meyering.
56582
56583 2008-07-14  Ben Pfaff  <blp@gnu.org>
56584
56585         Add isinf module.
56586         * lib/isinf.c: New file.
56587         * lib/math.in.h: Define isinf macro if we have decided to replace
56588         it.
56589         * m4/isinf.m4: New file.
56590         * m4/math_h.m4: Initialize and substitute variables for isinf
56591         module.
56592         * modules/isinf: New file.
56593         * modules/isinf-tests: New file.
56594         * modules/math: Add substitutions for new module.
56595         * tests/test-isinf.c: New file.
56596         * doc/posix-functions/isinf.texi: Mention new module.
56597         * MODULES.html.sh: Mention new module.
56598
56599 2008-07-14  Ben Pfaff  <blp@gnu.org>
56600
56601         Factor out some macros for use by additional modules.
56602         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
56603         exponentf.m4.
56604         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
56605         exponentd.m4.
56606         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
56607         file exponentl.m4.
56608         * m4/exponentf.m4: New file.
56609         * m4/exponentd.m4: New file.
56610         * m4/exponentl.m4: New file.
56611         * modules/isnanf: Use new file m4/exponentf.m4.
56612         * modules/isnand: Use new file m4/exponentd.m4.
56613         * modules/isnanl: Use new file m4/exponentl.m4.
56614
56615 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
56616
56617         mktime.c: normalize tp->tm_isdst value to -1/0/1.
56618         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
56619         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
56620         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
56621
56622         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
56623         readlink on platforms without PATH_MAX.
56624
56625 2008-07-21  Eric Blake  <ebb9@byu.net>
56626
56627         Warn, not fail, on stale version.
56628         * top/GNUmakefile (_curr-ver): Tone down previous patch.
56629
56630         Don't allow installation with stale devel version number.
56631         * top/GNUmakefile (_is-install-target): New macro.
56632         (_curr-ver): Forbid installation with stale version number.
56633
56634 2008-07-20  Bruno Haible  <bruno@clisp.org>
56635
56636         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
56637         TESTS_ENVIRONMENT.
56638         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
56639
56640 2008-07-20  Bruno Haible  <bruno@clisp.org>
56641
56642         * lib/c-stack.h (c_stack_action): Add documentation.
56643         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
56644
56645 2008-07-20  Bruno Haible  <bruno@clisp.org>
56646
56647         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
56648         * modules/readlink (License): Likewise.
56649
56650 2008-07-17  Eric Blake  <ebb9@byu.net>
56651
56652         * modules/c-stack (Link): Fix typo.
56653
56654         Make c-stack use libsigsegv, when available.
56655         * modules/c-stack (Depends-on): Add libsigsegv.
56656         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
56657         needed.
56658         * lib/c-stack.c (SIGSTKSZ): Define fallback.
56659         (segv_handler, overflow_handler, c_stack_action)
56660         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
56661         implementation when libsigsegv is available, but only when using
56662         the library is necessary.
56663         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
56664         comment, explaining why XSI check fails on Linux.
56665         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
56666         * tests/test-c-stack2.sh: Tweak skip message.
56667         * NEWS: Document new link-time requirements.
56668
56669 2008-07-16  Eric Blake  <ebb9@byu.net>
56670
56671         c-stack: Expose false positives when not using libsigsegv.
56672         * modules/c-stack-tests (Files): Expand test.
56673         * tests/test-c-stack.c (main): Add means to conditionally trigger
56674         non-overflow SIGSEGV.
56675         * tests/test-c-stack2.sh: New file.
56676
56677 2008-07-14  Bruno Haible  <bruno@clisp.org>
56678
56679         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
56680         Reported by Eric Blake.
56681
56682 2008-07-14  Sam Steingold  <sds@gnu.org>
56683             Bruno Haible  <bruno@clisp.org>
56684
56685         New module libsigsegv.
56686         * modules/libsigsegv: New file.
56687         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
56688         modifications.
56689         * MODULES.html.sh (Signal handling): New section.
56690
56691 2008-07-14  Bruno Haible  <bruno@clisp.org>
56692
56693         * modules/unictype/ctype-* (Description): Add the word "function".
56694         Improves the resulting doc in MODULES.html.
56695
56696 2008-07-12  Ben Pfaff  <blp@gnu.org>
56697
56698         Add longlong module.
56699         * modules/longlong: New file.
56700
56701 2008-07-12  Bruno Haible  <bruno@clisp.org>
56702
56703         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
56704         to empty.
56705
56706 2008-07-10  Ben Pfaff  <blp@gnu.org>
56707
56708         Add isnan module.
56709         * doc/posix-functions/isnan.texi: Mention new module.
56710         * lib/math.in.h: Define isnan macro if we have decided to replace
56711         it.
56712         * m4/isnan.m4: New file.
56713         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
56714         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
56715         also.
56716         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
56717         redundancy.
56718         * m4/math_h.m4: Initialize and substitute variables for isnan
56719         module.
56720         * modules/isnan: New file.
56721         * modules/isnan-tests: New file.
56722         * modules/math: Add substitutions for new module.
56723         * tests/test-isnan.c: New file.
56724         * MODULES.html.sh: Mention new module.
56725
56726 2008-07-10  Ben Pfaff  <blp@gnu.org>
56727
56728         Add isnanf module.
56729         * lib/isnanf.m4: New file.
56730         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
56731         (gl_HAVE_ISNANF_IN_LIBM): New macro.
56732         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
56733         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
56734         * modules/isnanf: New file.
56735         * modules/isnanf-tests: New file.
56736         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
56737         files.
56738         * tests/test-isnanf-nolibm.c: factored most of its contents into
56739         new file tests/test-isnanf.h.
56740         * tests/test-isnanf.h: New file.
56741         * tests/test-isnanf.c: New file.
56742         * MODULES.html.sh: Mention new module.
56743         * doc/glibc-functions/isnanf.texi: Mention new module.
56744
56745 2008-07-10  Ben Pfaff  <blp@gnu.org>
56746
56747         Add isnand module.
56748         * lib/isnand.h: New file.
56749         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
56750         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
56751         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
56752         functionality also.
56753         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
56754         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
56755         (gl_HAVE_ISNAND_IN_LIBM): New macro.
56756         * modules/isnand: New file.
56757         * modules/isnand-tests: New file.
56758         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
56759         files.
56760         * tests/test-isnand-nolibm.c: factored most of its contents into
56761         new file tests/test-isnand.h.
56762         * tests/test-isnand.h: New file.
56763         * tests/test-isnand.c: New file.
56764         * MODULES.html.sh: Mention new module.
56765
56766 2008-07-10  Ben Pfaff  <blp@gnu.org>
56767
56768         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
56769         * lib/isnand.h: Rename lib/isnand-nolibm.h.
56770         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
56771         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
56772         * modules/isnanf-nolibm: Update references to renamed files.
56773         * modules/isnand-nolibm: Likewise.
56774         * modules/isnanf-nolibm-tests: Likewise.
56775         * modules/isnand-nolibm-tests: Likewise.
56776         * lib/frexp.c: Likewise.
56777         * lib/isfinite.c: Likewise.
56778         * lib/signbitd.c: Likewise.
56779         * lib/signbitf.c: Likewise.
56780         * lib/vasnprintf.c: Likewise.
56781         * tests/test-ceilf1.c: Likewise.
56782         * tests/test-ceilf2.c: Likewise.
56783         * tests/test-floorf1.c: Likewise.
56784         * tests/test-floorf2.c: Likewise.
56785         * tests/test-frexp.c: Likewise.
56786         * tests/test-round1.c: Likewise.
56787         * tests/test-round2.c: Likewise.
56788         * tests/test-roundf1.c: Likewise.
56789         * tests/test-strtod.c: Likewise.
56790         * tests/test-trunc1.c: Likewise.
56791         * tests/test-trunc2.c: Likewise.
56792         * tests/test-truncf1.c: Likewise.
56793         * tests/test-truncf2.c: Likewise.
56794         * NEWS: Mention the renamed header files.
56795
56796 2008-07-11  Jim Meyering  <meyering@redhat.com>
56797
56798         vc-list-files: make the last-resort awk code more portable
56799         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
56800         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
56801         does not support it.
56802
56803 2008-07-10  Eric Blake  <ebb9@byu.net>
56804
56805         Work with tar's bootstrap.
56806         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
56807         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
56808         an m4 comment.
56809
56810 2008-07-09  Jim Meyering  <meyering@redhat.com>
56811
56812         posix-shell.m4: fix typo that made this test malfunction
56813         * m4/posix-shell.m4: Remove capitalization in variable name.
56814
56815 2008-07-08  Bruno Haible  <bruno@clisp.org>
56816
56817         * m4/onceonly.m4: Update comments.
56818         Reported by Ben Pfaff <blp@cs.stanford.edu>.
56819
56820 2008-07-04  Jim Meyering  <meyering@redhat.com>
56821
56822         * users.txt: Add vc-dwim.
56823         (bison, coreutils): Use the gitweb URL.
56824
56825 2008-07-03  Jim Meyering  <meyering@redhat.com>
56826
56827         * users.txt: Add libffcall.  From Sam Steingold.
56828
56829 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
56830
56831         getdate.y: do not ignore TZ with relative day, month or year offset
56832         * lib/getdate.y (get_date): Move the tz-handling block to follow the
56833         relative-date-handling, since otherwise, the latter would clobber the
56834         sole output (an updated Start value) of the tz-handling block.
56835         * tests/test-getdate.c: Tests for the fix
56836
56837 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56838
56839         Recognize 'foo_LIBRARIES += libgnu.a'.
56840         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
56841         makefile snippet has already specified an installation location,
56842         also using '+='.
56843
56844 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
56845
56846         getdate.y: factor out common actions
56847         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
56848         Use them in place of open-coded actions.
56849
56850 2008-07-01  Simon Josefsson  <simon@josefsson.org>
56851
56852         Add self-test for getdate module.
56853         * modules/getdate-tests: New file.
56854         * tests/test-getdate.c: New file.
56855
56856 2008-06-29  Bruno Haible  <bruno@clisp.org>
56857
56858         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
56859         .gitignore.
56860         Reported by Sylvain Beucler <beuc@beuc.net>.
56861
56862 2008-06-29  Bruno Haible  <bruno@clisp.org>
56863
56864         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
56865         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
56866
56867 2008-06-29  Bruno Haible  <bruno@clisp.org>
56868
56869         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
56870         EXTRA_DIST.
56871         Reported by Sylvain Beucler <beuc@beuc.net>.
56872
56873 2008-06-26  Jim Meyering  <meyering@redhat.com>
56874
56875         make several modules depend on the "open" module
56876         This provides slightly increased consistency when opening-for-write
56877         the name of a non-directory spelled with a trailing slash.
56878         * modules/chdir-safer: Likewise.
56879         * modules/chown: Likewise.
56880         * modules/clean-temp: Likewise.
56881         * modules/copy-file: Likewise.
56882         * modules/fchdir: Likewise.
56883         * modules/fcntl-safer: Likewise.
56884         * modules/pipe: Likewise.
56885         * modules/utime: Likewise.
56886         Prompted by Eric Blake and Bruno Haible.
56887
56888 2008-06-24  Andreas Schwab  <schwab@suse.de>
56889
56890         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
56891         literals can be used as initializers for global variables.
56892
56893 2008-06-23  Eric Blake  <ebb9@byu.net>
56894
56895         Make gnulib-cache.m4 easier to diff.
56896         * gnulib-tool (func_import): Allow newlines when reading cached
56897         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
56898
56899 2008-06-23  Bruno Haible  <bruno@clisp.org>
56900
56901         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
56902         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
56903         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
56904         m4/signalblocking.m4.
56905         (gl_PREREQ_SIGACTION): Don't invoke it.
56906         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
56907         gl_PREREQ_SIG_HANDLER_H.
56908         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
56909         Don't check for sigaction here.
56910
56911 2008-06-23  Bruno Haible  <bruno@clisp.org>
56912
56913         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
56914         (install_handlers): Don't set the SA_RESETHAND flag.
56915
56916 2008-06-23  Bruno Haible  <bruno@clisp.org>
56917
56918         * m4/sigaction.m4: Comment fixes.
56919         * lib/signal.in.h: Likewise.
56920
56921 2008-06-23  Eric Blake  <ebb9@byu.net>
56922
56923         Fix typo.
56924         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
56925
56926         Avoid SA_ namespace.
56927         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
56928         Reported by Ralf Wildenhues.
56929
56930         Avoid test failure due to SA_RESTORER.
56931         * tests/test-sigaction.c (SA_MASK): New macro.
56932         (main): Avoid failing due to extension flags being set.
56933         Reported by Jim Meyering.
56934
56935         Revert use of sig-handler.h in sigprocmask.c.
56936         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
56937         it requires the existence of struct sigaction.
56938         * lib/sigprocmask.c (handler_t): Restore typedef.
56939         (rpl_signal, old_handlers): Use local type.
56940
56941 2008-06-22  Bruno Haible  <bruno@clisp.org>
56942
56943         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
56944         conditionally.
56945         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
56946
56947 2008-06-22  Bruno Haible  <bruno@clisp.org>
56948
56949         * doc/posix-functions/siginterrupt.texi: Move note.
56950
56951         * lib/signal.in.h (SA_RESTART): New macro.
56952         * lib/sigaction.c: Update comment.
56953
56954         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
56955
56956         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
56957         (gl_PREREQ_SIGPROCMASK): Invoke it.
56958         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
56959
56960         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
56961
56962         * lib/sigprocmask.c: Update a comment.
56963
56964 2008-06-21  Eric Blake  <ebb9@byu.net>
56965
56966         Use sigaction module rather than signal().
56967         * modules/c-stack (Depends-on): Add sigaction.
56968         * modules/fatal-signal (Depends-on): Likewise.
56969         * modules/nanosleep (Depends-on): Likewise.
56970         * modules/sigprocmask (Files): Add sig-handler.h.
56971         * modules/sigaction (Files): Likewise.
56972         * lib/sig-handler.h (get_handler): New file, suggested by Paul
56973         Eggert.
56974         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
56975         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
56976         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
56977         (init_fatal_signals): Likewise.
56978         * lib/nanosleep.c (rpl_nanosleep): Likewise.
56979         (siginterrupt): Delete fallback.
56980         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
56981         instead.
56982         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
56983         siginterrupt.
56984
56985         New module sigaction, for mingw.
56986         * modules/sigaction: New module...
56987         * modules/sigaction-tests: ...and its test.
56988         * m4/sigaction.m4: New file.
56989         * lib/sigaction.c: Likewise.
56990         * tests/test-sigaction.c: Likewise.
56991         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
56992         * modules/signal (Makefile.am): Likewise.
56993         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
56994         needed.
56995         * doc/posix-headers/signal.texi (signal.h): Mention provided
56996         types.
56997         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
56998         that sigaction is preferable.
56999         * doc/posix-functions/sigaction.texi (sigaction): Mention new
57000         module.
57001         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57002         sigaction.
57003
57004         Improve robustness of sigprocmask by overriding signal.
57005         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
57006         is in use.
57007         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
57008         (SIGKILL, SIGSTOP): Provide fallbacks.
57009         (rpl_signal): Implement.
57010         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
57011         signal can be called inside handlers.
57012
57013         Fix nanosleep module on mingw.
57014         * modules/nanosleep (Depends-on): Add sys_select.
57015         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
57016
57017         Fix licensing of sigprocmask.
57018         * modules/raise (License): Relicense as LGPL.
57019
57020 2008-06-21  Bruno Haible  <bruno@clisp.org>
57021
57022         * lib/propername.c (proper_name_utf8): Don't use the transliterated
57023         result if it contains question marks.
57024         Reported by Michael Geng <linux@michaelgeng.de>.
57025
57026 2008-06-19  Bruno Haible  <bruno@clisp.org>
57027
57028         Fix CVS-ism.
57029         * doc/gnulib.texi: Include updated-stamp.texi.
57030         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
57031         (updated-stamp.texi): New rule.
57032         (gnulib.info): Depend on it.
57033         * doc/.gitignore: Add updated-stamp.texi.
57034         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
57035
57036 2008-06-19  Bruno Haible  <bruno@clisp.org>
57037
57038         * doc/Makefile (gnulib.info): Update and simplify dependencies.
57039         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
57040
57041 2008-06-19  Eric Blake  <ebb9@byu.net>
57042
57043         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
57044         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
57045         Reported by Stepan Kasal.
57046
57047 2008-06-18  Bruno Haible  <bruno@clisp.org>
57048
57049         * lib/fatal-signal.c (init_fatal_signals): Add comment.
57050         Reported by Eric Blake.
57051
57052 2008-06-18  Eric Blake  <ebb9@byu.net>
57053
57054         Work around cygwin 1.5.25 strsignal bug.
57055         * tests/test-strsignal.c: Allow for const char *.
57056         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
57057
57058 2008-06-18  Simon Josefsson  <simon@josefsson.org>
57059
57060         * users.txt: Update URL to article and add author/date
57061         information.
57062
57063 2008-06-17  Bruno Haible  <bruno@clisp.org>
57064
57065         New macro gl_DISABLE_THREADS.
57066         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
57067         if the user did not pass --enable-threads or --disable-threads option.
57068         (gl_DISABLE_THREADS): New macro.
57069         Reported by Eric Blake <ebb9@byu.net>.
57070
57071 2008-06-17  Bruno Haible  <bruno@clisp.org>
57072
57073         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
57074         when the macro ignores it.
57075         Based on a patch by Eric Blake <ebb9@byu.net>.
57076
57077 2008-06-17  Bruno Haible  <bruno@clisp.org>
57078
57079         * modules/tls (License): Change to LGPLv2+.
57080         Reported by Eric Blake.
57081
57082 2008-06-17  Eric Blake  <ebb9@byu.net>
57083
57084         Simplify c-stack prerequisites.
57085         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
57086         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
57087         no longer requires <ucontext.h> to exist.  Optimize setrlimit
57088         check.
57089         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
57090         <sys/resource.h>.
57091
57092         Move c-stack test into testsuite.
57093         * modules/c-stack-tests: New file.
57094         * lib/c-stack.c [DEBUG]: Move test program...
57095         * tests/test-c-stack.c: ...into this new file.  Skip rather than
57096         fail test if sigaltstack is lacking.
57097         * tests/test-c-stack.sh: New driver file.
57098
57099 2008-06-16  Eric Blake  <ebb9@byu.net>
57100
57101         Use raise module consistently.
57102         * modules/fatal-signal (Depends-on): Add raise.
57103         * modules/sigprocmask (Depends-on): Likewise.
57104         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
57105         * lib/sigprocmask.c (sigprocmask): Likewise.
57106         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
57107         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
57108
57109         Fix compliance bug in sigpending.
57110         * lib/sigprocmask.c (sigpending): Return pending array via
57111         parameter, not return value.
57112
57113 2008-06-14  Eric Blake  <ebb9@byu.net>
57114
57115         Improve obstack-printf test code.
57116         * tests/test-obstack-printf.c (test_function): Fix comment, and
57117         simplify usage of obstack_* in macros.  Add a test for coverage.
57118         Reported by Bruno Haible.
57119
57120 2008-06-14  Bruno Haible  <bruno@clisp.org>
57121
57122         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
57123         array size as a constant, not as a const variable.
57124         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
57125         AC_USE_SYSTEM_EXTENSIONS.
57126         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
57127         Test whether the obstack_printf function actually exists.
57128         * modules/obstack-printf (Depends-on): Add extensions.
57129         (Include): Remove obstack.h.
57130         * modules/obstack-printf-posix (Depends-on): Add extensions.
57131         (Include): Remove obstack.h.
57132
57133 2008-06-13  Eric Blake  <ebb9@byu.net>
57134
57135         Add obstack-printf and obstack-printf-posix modules.
57136         * modules/obstack-printf: New file.
57137         * modules/obstack-printf-posix: Likewise.
57138         * MODULES.html.sh (Misc): Mention them.
57139         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
57140         Likewise.
57141         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
57142         Likewise.
57143         * modules/stdio (Makefile.am): Accomodate new modules.
57144         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
57145         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
57146         Declare.
57147         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
57148         functions.
57149         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
57150         (gl_REPLACE_OBSTACK_PRINTF): New macros
57151         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
57152         * tests/test-obstack-printf.c: New file.
57153         * modules/obstack-printf-tests: Likewise.
57154         * modules/obstack-printf-posix-tests: Likewise.
57155
57156 2008-06-11  Bruno Haible  <bruno@clisp.org>
57157
57158         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
57159         * lib/open.c: Include errno.h.
57160         (open): Fail when attempting to write to a file that has a trailing
57161         slash.
57162         * tests/test-open.c (main): Test against trailing slash bug.
57163         * doc/posix-functions/open.texi: Mention the trailing slash bug.
57164
57165 2008-06-10  Bruno Haible  <bruno@clisp.org>
57166
57167         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
57168         for $? to work inside the trap command, with various /bin/sh-s.
57169         * tests/test-vc-list-files-cvs.sh: Likewise.
57170
57171 2008-06-10  Bruno Haible  <bruno@clisp.org>
57172
57173         * lib/acl-internal.h: Don't include gettext.h here.
57174         * lib/set-mode-acl.c: Include gettext.h here.
57175         * lib/copy-acl.c: Likewise.
57176
57177 2008-06-10  Bruno Haible  <bruno@clisp.org>
57178
57179         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
57180         * lib/wait-process.c (wait_subprocess): Likewise.
57181         * lib/execute.h (execute): Add termsigp argument.
57182         * lib/execute.c (execute): Likewise.
57183         * lib/csharpcomp.c (compile_csharp_using_pnet,
57184         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
57185         * lib/csharpexec.c (execute_csharp_using_pnet,
57186         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
57187         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
57188         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
57189         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
57190         is_jikes_present): Update.
57191         * lib/javaexec.c (execute_java_class): Update.
57192         * lib/javaversion.c (execute_and_read_line): Update.
57193         * NEWS: Document the changes.
57194         Reported by Eric Blake.
57195
57196 2008-06-10  Eric Blake  <ebb9@byu.net>
57197
57198         Add missing include.
57199         * tests/test-strstr.c (includes): Add <signal.h>.
57200         * tests/test-strcasestr.c (includes): Likewise.
57201         * tests/test-memmem.c (includes): Likewise.
57202
57203 2008-06-10  Bruno Haible  <bruno@clisp.org>
57204
57205         * lib/wait-process.c (wait_subprocess): Add an assertion.
57206
57207 2008-06-10  Bruno Haible  <bruno@clisp.org>
57208
57209         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
57210
57211 2008-06-10  Bruno Haible  <bruno@clisp.org>
57212
57213         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
57214         using alarm().
57215         * tests/test-strcasestr.c (main): Likewise.
57216         * tests/test-strstr.c (main): Likewise.
57217
57218 2008-06-09  Bruno Haible  <bruno@clisp.org>
57219
57220         Work around the Solaris 10 ACE ACLs ABI change.
57221         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
57222         declare if ACL_NO_TRIVIAL is present.
57223         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
57224         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
57225         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
57226         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
57227         define if ACL_NO_TRIVIAL is present.
57228         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
57229         and use the current ABI.
57230         (file_has_acl): Use same #if condition as elsewhere.
57231         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
57232         in use, and use the current ABI.
57233         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
57234         Reported by Jim Meyering.
57235
57236 2008-06-09  Eric Blake  <ebb9@byu.net>
57237
57238         Work around environments that (stupidly) ignore SIGALRM.
57239         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
57240         before using alarm().
57241         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
57242         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
57243         Reported by Ian Beckwith <ianb@erislabs.net>.
57244
57245         Produce autobuild blurb earlier in log.
57246         * modules/autobuild (configure.ac-early): Move AB_INIT here.
57247
57248 2008-06-09  Jim Meyering  <meyering@redhat.com>
57249         and OndÅ™ej Vašík  <ovasik@redhat.com>
57250
57251         utimens.c: correct kernel bug work-around
57252         OndÅ™ej Vašík found that the invalid return value of 280 indicates
57253         failure, not success, and the kernel bug we're trying to work
57254         around affects not just the utimensat call, but also the fallback
57255         futimens call.
57256         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
57257         not success.
57258         [HAVE_FUTIMENS]: Use the same work-around, here.
57259
57260 2008-06-09  Jim Meyering  <meyering@redhat.com>
57261
57262         add more guards around definition of ACE_-related code
57263         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
57264         ALLOW and ACE_OWNER are also defined.
57265
57266 2008-06-08  Bruno Haible  <bruno@clisp.org>
57267
57268         * lib/acl-internal.h: Add me as co-author.
57269         * lib/file-has-acl.c: Likewise.
57270         * lib/set-mode-acl.c: Likewise.
57271         * lib/copy-acl.c: Likewise.
57272
57273 2008-06-08  Bruno Haible  <bruno@clisp.org>
57274
57275         Add support for AIX ACLs.
57276         * lib/acl-internal.h (acl_nontrivial): New declaration.
57277         * lib/file-has-acl.c (acl_nontrivial): New function.
57278         (file_has_acl): Add implementation using AIX 4 ACL API.
57279         * lib/set-mode-acl.c (qset_acl): Likewise.
57280         * lib/copy-acl.c (qcopy_acl): Likewise.
57281
57282 2008-06-08  Bruno Haible  <bruno@clisp.org>
57283
57284         Add support for HP-UX ACLs.
57285         * lib/acl-internal.h (acl_nontrivial): New declaration.
57286         * lib/file-has-acl.c (acl_nontrivial): New function.
57287         (file_has_acl): Add implementation using HP-UX 11 ACL API.
57288         * lib/set-mode-acl.c (qset_acl): Likewise.
57289         * lib/copy-acl.c (qcopy_acl): Likewise.
57290
57291 2008-06-08  Bruno Haible  <bruno@clisp.org>
57292
57293         Add support for Cygwin ACLs.
57294         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
57295         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
57296         the chmod_or_fchmod call.
57297         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
57298
57299 2008-06-08  Bruno Haible  <bruno@clisp.org>
57300
57301         Fix bug with setuid modes in Solaris 10+ code.
57302         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
57303         succeeded, when the mode contains some special bits.
57304
57305 2008-06-08  Bruno Haible  <bruno@clisp.org>
57306
57307         Add support for Solaris 7..10 ACLs.
57308         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
57309         declarations.
57310         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
57311         functions.
57312         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
57313         * lib/set-mode-acl.c (qset_acl): Likewise.
57314         * lib/copy-acl.c (qcopy_acl): Likewise.
57315
57316 2008-06-08  Bruno Haible  <bruno@clisp.org>
57317
57318         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
57319         declaration.
57320         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
57321         (acl_access_nontrivial): Remove MacOS X case.
57322         (file_has_acl): Use acl_extended_nontrivial.
57323         * lib/copy-acl.c (qcopy_acl): Likewise.
57324
57325 2008-06-08  Bruno Haible  <bruno@clisp.org>
57326
57327         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
57328
57329 2008-06-08  Jim Meyering  <meyering@redhat.com>
57330
57331         * modules/acl (Maintainer): Add Bruno Haible.
57332
57333 2008-06-07  Bruno Haible  <bruno@clisp.org>
57334
57335         Improve support for Tru64 ACLs.
57336         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
57337         ACL on OSF/1.
57338
57339 2008-06-07  Bruno Haible  <bruno@clisp.org>
57340
57341         Add support for MacOS X ACLs.
57342         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
57343         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
57344         * lib/set-mode-acl.c (qset_acl): Likewise.
57345         * lib/copy-acl.c (qcopy_acl): Likewise.
57346
57347 2008-06-07  Bruno Haible  <bruno@clisp.org>
57348
57349         Fix memory leak introduced on 2008-05-22.
57350         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
57351         use.
57352
57353 2008-06-07  Bruno Haible  <bruno@clisp.org>
57354
57355         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
57356         to construct an empty ACL.
57357
57358 2008-06-07  Bruno Haible  <bruno@clisp.org>
57359
57360         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
57361         precisely.
57362         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
57363
57364 2008-06-07  Bruno Haible  <bruno@clisp.org>
57365
57366         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
57367         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
57368
57369 2008-06-07  Bruno Haible  <bruno@clisp.org>
57370
57371         * doc/posix-functions/_setjmp.texi: Explain the use of this function
57372         regardless of POSIX.
57373         * doc/posix-functions/_longjmp.texi: Likewise.
57374         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
57375         SystemV platform in this case.
57376
57377 2008-06-06  Eric Blake  <ebb9@byu.net>
57378
57379         Document abort() bugs.
57380         * doc/posix-functions/abort.texi (abort): Mention anomalies.
57381
57382         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
57383         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
57384         sigsetjmp.
57385         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
57386         siglongjmp, but only as a macro.
57387         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
57388         is obsolete.
57389         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
57390
57391         Tweak documentation to cover cygwin argz bugs.
57392         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
57393         argz bug fix; no code change needed since no cygwin releases
57394         occurred between the last fix and the bug being tested.
57395         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
57396         module and recently fixed cygwin bugs.
57397         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
57398         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
57399         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
57400         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
57401         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
57402         Likewise.
57403         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
57404         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
57405         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
57406         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
57407         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
57408         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
57409         Likewise.
57410
57411         Avoid gcc warning on cygwin.
57412         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
57413         !ACL_NO_TRIVIAL]: Avoid unused variable.
57414
57415 2008-06-05  Eric Blake  <ebb9@byu.net>
57416
57417         Be tolerant of UNKNOWN version in gnulib-tool test dir.
57418         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
57419         git-version-gen fails to come up with a version.
57420         Reported by Simon Josefsson.
57421
57422 2008-06-05  Jim Meyering  <meyering@redhat.com>
57423             Paul Eggert  <eggert@cs.ucla.edu>
57424
57425         utimens.c: work around a probable Linux kernel bug
57426         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
57427         appears to be a kernel bug that causes utimensat to return 280
57428         instead of 0, indicating success.
57429
57430 2008-06-04  Bruno Haible  <bruno@clisp.org>
57431
57432         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
57433         2008-06-01 commit.
57434
57435 2008-06-04  Bruno Haible  <bruno@clisp.org>
57436
57437         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
57438         * lib/file-has-acl.c (acl_access_nontrivial): New function.
57439         (file_has_acl): Use it. Save errno afterwards.
57440         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
57441
57442 2008-06-03  Bruno Haible  <bruno@clisp.org>
57443
57444         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
57445         draft code. Simplify #ifs.
57446         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
57447         Put Solaris code after POSIX-draft code. Fix comments regarding
57448         Solaris 10, HP-UX. Mention Cygwin.
57449         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
57450
57451 2008-06-03  Eric Blake  <ebb9@byu.net>
57452
57453         Provide fallback for older kernels.
57454         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
57455         Provide runtime fallback if kernel lacks support.
57456         Reported by Mike Frysinger.
57457
57458 2008-06-02  Bruno Haible  <bruno@clisp.org>
57459
57460         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
57461         it exists.
57462
57463 2008-06-02  Bruno Haible  <bruno@clisp.org>
57464
57465         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
57466         * lib/copy-acl.c (qcopy_acl): Update comment.
57467
57468 2008-06-02  Bruno Haible  <bruno@clisp.org>
57469
57470         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
57471         like ACL APIs.
57472
57473 2008-06-02  Bruno Haible  <bruno@clisp.org>
57474
57475         * tests/test-file-has-acl.sh: Use different code for Cygwin.
57476         * tests/test-set-mode-acl.sh: Likewise.
57477         * tests/test-copy-acl.sh: Likewise.
57478         * tests/test-copy-file.sh: Likewise.
57479
57480 2008-06-02  Bruno Haible  <bruno@clisp.org>
57481
57482         * tests/test-file-has-acl.sh: Remove unused code.
57483
57484 2008-06-01  Bruno Haible  <bruno@clisp.org>
57485
57486         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
57487         (copy_acl): Just a wrapper around qcopy_acl that emits the error
57488         messages.
57489         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
57490
57491 2008-06-01  Bruno Haible  <bruno@clisp.org>
57492
57493         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
57494         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
57495         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
57496         APIs.
57497         * modules/acl-tests (configure.ac): Remove tests now contained in
57498         m4/acl.m4.
57499
57500 2008-06-02  Jim Meyering  <meyering@redhat.com>
57501
57502         announce-gen: use a better key-server host name
57503         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
57504         it may be more consistently reliable.  Suggested by Werner Koch
57505         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
57506
57507 2008-06-01  Bruno Haible  <bruno@clisp.org>
57508
57509         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
57510         Reported by Voroskoi Andras <voroskoi@gmail.com>.
57511
57512 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
57513
57514         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
57515
57516 2008-06-01  Bruno Haible  <bruno@clisp.org>
57517
57518         New ACL tests.
57519         * tests/test-file-has-acl.sh: New file.
57520         * tests/test-file-has-acl.c: New file.
57521         * tests/test-set-mode-acl.sh: New file.
57522         * tests/test-set-mode-acl.c: New file.
57523         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
57524         * tests/test-copy-acl.c: New file.
57525         * modules/acl-tests: New file, based on modules/copy-file-tests.
57526         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
57527         (Depends-on): Add acl-tests.
57528         (configure.ac): Remove checks.
57529         (Makefile.am): Don't create test-sameacls program here any more.
57530
57531 2008-06-01  Bruno Haible  <bruno@clisp.org>
57532
57533         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
57534         * tests/test-sameacls.c: Include progname.h.
57535         (main): Invoke set_program_name. Portability fixes for MacOS X,
57536         Solaris, HP-UX.
57537
57538 2008-06-01  Bruno Haible  <bruno@clisp.org>
57539
57540         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
57541         function.
57542         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
57543
57544 2008-06-01  Bruno Haible  <bruno@clisp.org>
57545
57546         * modules/rpmatch (Depends-on): Add strdup.
57547
57548 2008-06-01  Bruno Haible  <bruno@clisp.org>
57549
57550         * lib/pipe.c: Include unistd-safer.h.
57551         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
57552         * modules/pipe (Depends-on): Add unistd-safer.
57553
57554 2008-05-30  Simon Josefsson  <simon@josefsson.org>
57555
57556         * modules/autobuild (configure.ac): Call AB_INIT.
57557
57558 2008-05-30  Simon Josefsson  <simon@josefsson.org>
57559
57560         * tests/test-getaddrinfo.c: Don't print debug messages by default.
57561         Suggested by Bruno Haible <bruno@clisp.org>.
57562
57563 2008-05-30  Simon Josefsson  <simon@josefsson.org>
57564
57565         * tests/test-base64.c: Cast size_t to unsigned long when invoking
57566         printf.  Use %lu instead of %d.  Reported by Bruno Haible
57567         <bruno@clisp.org>.
57568
57569 2008-05-29  Eric Blake  <ebb9@byu.net>
57570
57571         Prefer new POSIX 200x interfaces over futimesat.
57572         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
57573         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
57574         when available.
57575         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
57576
57577 2008-05-28  Bruno Haible  <bruno@clisp.org>
57578
57579         * modules/stpcpy (License): Change to LGPLv2+.
57580         Requested by David Lutterkort <dlutter@redhat.com>.
57581
57582 2008-05-27  Bruno Haible  <bruno@clisp.org>
57583
57584         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
57585         current mingw.
57586         Reported by Jose E. Marchesi <jemarch@gnu.org>.
57587
57588 2008-05-27  Bruno Haible  <bruno@clisp.org>
57589
57590         * modules/iconv_open (Link): New section, from module 'iconv'.
57591         * modules/striconv (Link): Likewise.
57592         * modules/striconveh (Link): Likewise.
57593         * modules/xstriconv (Link): Likewise.
57594         * modules/unicodeio (Link): Likewise.
57595         * modules/propername (Link): Likewise.
57596         Reported by Jim Meyering.
57597
57598 2008-05-26  Jim Meyering  <meyering@redhat.com>
57599
57600         sha256: do not artificially restrict buffer length to be < 2^32
57601         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
57602         uint32_t to size_t.
57603         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
57604         to match.
57605
57606         avoid unaligned access errors, e.g., on sparc
57607         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
57608         direct access through a possibly-unaligned uint64* pointer.
57609         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
57610         direct access through a possibly-unaligned uint32* pointer.
57611         Prompted by this patch from Tom "spot" Callaway:
57612         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
57613
57614         sha512.c: fix typo in comment
57615         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
57616
57617 2008-05-25  Bruno Haible  <bruno@clisp.org>
57618
57619         * lib/set-mode-acl.c: Renamed from lib/acl.c.
57620         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
57621         (Makefile.am): Update lib_SOURCES.
57622
57623 2008-05-25  Bruno Haible  <bruno@clisp.org>
57624
57625         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
57626
57627 2008-05-25  Jim Meyering  <meyering@redhat.com>
57628
57629         useless-if-before-free: freed expr may have white-space differences
57630         * build-aux/useless-if-before-free: Recognize cases in which the
57631         freed expression differs from the tested one in embedded white
57632         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
57633         $1 was used, so we can't make any regexp shy.  Improved tests now
57634         detect this.
57635
57636         useless-if-before-free: accept white space in the expression.
57637         * build-aux/useless-if-before-free: For now, any white space
57638         in the expression must be identical in the free argument.
57639
57640         useless-if-before-free: efficiency tweak
57641         * build-aux/useless-if-before-free: Make the expression-matching
57642         regexp "shy".
57643         Make the *outer* regexp shy, not the expr-matching one.
57644
57645         update code-in-comment to accept cast of free arg
57646         * build-aux/useless-if-before-free: Update regexp.
57647
57648 2008-05-25  Bruno Haible  <bruno@clisp.org>
57649
57650         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
57651         * modules/copy-file-tests (Files, Makefile.am): Update.
57652         * tests/test-copy-file.c (func_test_copy): Update.
57653
57654 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
57655
57656         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
57657
57658 2008-05-23  Bruno Haible  <bruno@clisp.org>
57659
57660         Improve support for ACLs on OSF/1.
57661         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
57662         Remove fallback for unknown flavors of ACLs.
57663
57664 2008-05-22  Bruno Haible  <bruno@clisp.org>
57665
57666         Add support for ACLs on OSF/1.
57667         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
57668         replacements.
57669         (acl_free_text): New macro fallback.
57670         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
57671         acl_free.
57672         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
57673         acl_free_text function. Require AC_C_INLINE.
57674
57675 2008-05-22  Bruno Haible  <bruno@clisp.org>
57676
57677         Make copy_acl work on MacOS X 10.5.
57678         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
57679         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
57680         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
57681         If MODE_INSIDE_ACL, don't assume that every system has the same text
57682         representation for ACLs as FreeBSD.
57683         * lib/copy-acl.c (copy_acl): Add support for platforms with
57684         !MODE_INSIDE_ACL.
57685         * lib/file-has-acl.c (file_has_acl): Likewise.
57686         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
57687         FreeBSD, MacOS X, or IRIX, respectively.
57688
57689 2008-05-22  Bruno Haible  <bruno@clisp.org>
57690
57691         * lib/acl.h: Don't include <sys/acl.h>.
57692         (GETACLCNT): Move fallback to lib/acl-internal.h.
57693         * lib/acl-internal.h: Include <sys/acl.h> here.
57694         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
57695
57696 2008-05-22  Bruno Haible  <bruno@clisp.org>
57697
57698         Split off copy_acl function to separate file.
57699         * lib/copy-acl.c: New file, extracted from lib/acl.c.
57700         * lib/acl.c (copy_acl): Moved function to separate file.
57701         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
57702         * modules/acl (Files): Add lib/copy-acl.c.
57703         (Makefiles.am): Augment lib_SOURCES.
57704
57705 2008-05-22  Bruno Haible  <bruno@clisp.org>
57706
57707         * modules/copy-file-tests: New file.
57708         * tests/test-copy-file.sh: New file.
57709         * tests/test-copy-file.c: New file.
57710         * tests/test-copy-file-sameacls.c: New file.
57711
57712 2008-05-22  Eric Blake  <ebb9@byu.net>
57713
57714         Avoid gcc warning.
57715         * tests/test-memcmp.c (main): Pass NULL indirectly.
57716
57717 2008-05-21  Bruno Haible  <bruno@clisp.org>
57718
57719         Add reference doc about ACLs.
57720         * doc/acl-resources.txt: New file.
57721         * doc/acl-cygwin.txt: New file.
57722
57723 2008-05-21  Bruno Haible  <bruno@clisp.org>
57724
57725         Avoid one more warning from gcc.
57726         * lib/vasnprintf.c (IF_LINT): Update comments.
57727         (VASNPRINTF): Use it also for the 'prefix' array initializer.
57728
57729 2008-05-21  Jim Meyering  <meyering@redhat.com>
57730
57731         avoid a warning from gcc
57732         * lib/vasnprintf.c (IF_LINT): Define.
57733         (scale10_round_decimal_long_double):
57734         Use it to avoid a "may be used uninitialized" warning.
57735         (scale10_round_decimal_double): Likewise.
57736
57737 2008-05-21  Simon Josefsson  <simon@josefsson.org>
57738
57739         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
57740         declared.
57741
57742 2008-05-20  Bruno Haible  <bruno@clisp.org>
57743
57744         * tests/test-memcmp.c (main): Test also the sign of the result. Test
57745         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
57746
57747 2008-05-20  Simon Josefsson  <simon@josefsson.org>
57748
57749         * modules/memcmp-tests: New file.
57750         * tests/test-memcmp.c: New file.
57751
57752 2008-05-19  Bruno Haible  <bruno@clisp.org>
57753
57754         * modules/propername (Notice, configure.ac): Put quoted "..." into
57755         --keyword option.
57756         * lib/propername.h: Update comments accordingly.
57757         Reported by Eric Blake.
57758
57759 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
57760
57761         * modules/getpass-gnu (Depends-on): Add fseeko.
57762
57763 2008-05-19  Simon Josefsson  <simon@josefsson.org>
57764
57765         * modules/base64-tests: New file.
57766
57767 2008-05-19  Bo Borgerson <gigabo@gmail.com>
57768
57769         * lib/base64.c (base64_decode_ctx): If a decode context structure
57770         was passed in use it to ignore newlines.  If a context structure
57771         was _not_ passed in, continue to treat newlines as garbage (this
57772         is the historical behavior).  Formerly base64_decode.
57773         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
57774         takes a decode context structure.
57775         * lib/base64.h (base64_decode): Macro for four-argument calls.
57776         (base64_decode_alloc): Likewise.
57777         * lib/base64.c (base64_decode_ctx): If a decode context structure
57778         was passed in use it to ignore newlines.  If a context structure
57779         was _not_ passed in, continue to treat newlines as garbage (this
57780         is the historical behavior).  Formerly base64_decode.
57781         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
57782         takes a decode context structure.
57783         * lib/base64.h (base64_decode): Macro for four-argument calls.
57784         (base64_decode_alloc): Likewise.
57785
57786 2008-05-19  Jim Meyering  <meyering@redhat.com>
57787
57788         avoid a warning from gcc
57789         * lib/trim.c (IF_LINT): Define.
57790         (trim2): Use it to avoid a "may be used uninitialized" warning.
57791
57792         Fix doc typo.
57793         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
57794
57795 2008-05-19  Bruno Haible  <bruno@clisp.org>
57796
57797         * doc/glibc-functions/getpass.texi: Document limits of other
57798         implementations.
57799
57800 2008-05-19  Simon Josefsson  <simon@josefsson.org>
57801             Bruno Haible <bruno@clisp.org>
57802
57803         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
57804
57805 2008-05-18  Bruno Haible  <bruno@clisp.org>
57806
57807         * modules/propername: New file, from GNU gettext.
57808         * lib/propername.h: New file, from GNU gettext.
57809         * lib/propername.c: New file, from GNU gettext.
57810         * MODULES.html.sh (Internationalization functions): Add propername.
57811
57812 2008-05-16  Jim Meyering  <meyering@redhat.com>
57813             Bruno Haible  <bruno@clisp.org>
57814
57815         Avoid some warnings from "gcc -Wshadow".
57816         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
57817
57818 2008-05-15  Eric Blake  <ebb9@byu.net>
57819
57820         Extend previous patch to cygwin 1.7.0.
57821         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
57822         fast implementation in cygwin >= 1.7.0.
57823         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
57824         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
57825
57826 2008-05-15  Bruno Haible  <bruno@clisp.org>
57827
57828         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
57829         implementation in glibc >= 2.9.
57830         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
57831         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
57832
57833 2008-05-15  Bruno Haible  <bruno@clisp.org>
57834
57835         * MODULES.html.sh (Internationalization functions): Remove linebreak.
57836         (Unicode string functions): Add unilbrk/*.
57837         Reported by Karl Berry.
57838
57839 2008-05-15  Eric Blake  <ebb9@byu.net>
57840
57841         Fix violation of <stdbool.h> replacement in regex.
57842         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
57843         * lib/regexec.c (re_search_internal): Likewise.
57844         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
57845
57846 2008-05-15  Jim Meyering  <meyering@redhat.com>
57847
57848         avoid distracting test output when git or cvs is not found
57849         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
57850         * tests/test-vc-list-files-git.sh: Likewise.
57851
57852 2008-05-15  Eric Blake  <ebb9@byu.net>
57853
57854         Glibc finally accepted the memmem speedup code, bugzilla #5514.
57855         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
57856         glibc version.
57857         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
57858         * doc/posix-functions/strstr.texi (strstr): Likewise.
57859         * lib/str-two-way.h (MAX): Sychronize with glibc.
57860
57861 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
57862
57863         * lib/regcomp.c (optimize_utf8): Add a note on why we test
57864         opr.ctx_type.
57865         (calc_first): Initialize constraint field.
57866         (duplicate_node_closure): Use it instead of special casing ANCHORS.
57867         Fix grammar.
57868         (duplicate_node): Merge constraint field for all node types.
57869         (calc_eclosure_iter): Look at constraint field for all node types.
57870         * lib/regex_internal.c (create_cd_newstate): Don't look at
57871         opr.ctx_type.
57872
57873 2008-05-14  Bruno Haible  <bruno@clisp.org>
57874
57875         Help GCC to do better code generation.
57876         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
57877         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
57878         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
57879         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
57880         Declare with attribute 'malloc' if supported.
57881
57882 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
57883
57884         use "echo STR|wc -c" rather than unportable "expr length STR"
57885         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
57886         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
57887
57888 2008-05-14  Jim Meyering  <meyering@redhat.com>
57889
57890         use dd ibs=$n count=1 ... rather than less-portable head -c$n
57891         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
57892         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
57893         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
57894         via Collin Lasse.
57895
57896 2008-05-14  Eric Blake  <ebb9@byu.net>
57897
57898         Avoid quadratic growth in gl_LIBSOURCES.
57899         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
57900         Suggested by Bruno Haible.
57901
57902         Test xmemdup0.
57903         * modules/xmemdup0-tests: New file.
57904         * tests/test-xmemdup0.c: Likewise.
57905
57906 2008-05-13  Eric Blake  <ebb9@byu.net>
57907
57908         Split xmemdup0 into its own module.
57909         * modules/xmemdup0: New file.
57910         * lib/xmemdup0.h: Likewise.
57911         * lib/xmemdup0.c: Likewise.
57912         * MODULES.html.sh (Memory management functions): Add xmemdup0.
57913         * lib/xalloc.h (xmemdup0): Remove.
57914         * lib/xmalloc.c (xmemdup0): Likewise.
57915
57916 2008-05-13  Eric Blake  <ebb9@byu.net>
57917             Bruno Haible  <bruno@clisp.org>
57918
57919         Reduce number of forks required during autoconf.
57920         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
57921         and gl_LIBSOURCES_DIR.
57922         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
57923         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
57924         m4_syscmd per file.
57925         <m4_foreach_w>: Move...
57926         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
57927
57928 2008-05-13  Eric Blake  <ebb9@byu.net>
57929
57930         * gnulib-tool: Fix various comment typos.
57931
57932 2008-05-12  Bruno Haible  <bruno@clisp.org>
57933
57934         Tailor the linebreaking algorithm.
57935         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
57936
57937 2008-05-12  Bruno Haible  <bruno@clisp.org>
57938
57939         Update to Unicode 5.0.0.
57940         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
57941         LBP_JV, LBP_JT. Redistribute values.
57942         (unilbrk_table): Change size.
57943         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
57944         Unicode TR#14 rev. 22.
57945         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
57946         LBP_JV, LBP_JT. Redistribute values.
57947         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
57948         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
57949         Update.
57950         * lib/unilbrk/lbrkprop1.h: Regenerated.
57951         * lib/unilbrk/lbrkprop2.h: Regenerated.
57952         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
57953         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
57954         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
57955         Likewise.
57956         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
57957         Likewise.
57958         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
57959         result.
57960         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
57961         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
57962         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
57963         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
57964         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
57965         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
57966
57967 2008-05-11  Bruno Haible  <bruno@clisp.org>
57968
57969         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
57970
57971 2008-05-11  Bruno Haible  <bruno@clisp.org>
57972
57973         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
57974         * modules/unilbrk/gen-lbrk: New file.
57975
57976 2008-05-11  Bruno Haible  <bruno@clisp.org>
57977
57978         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
57979         * m4/sha512.m4 (gl_SHA512): Likewise.
57980
57981 2008-05-11  Jim Meyering  <meyering@redhat.com>
57982
57983         New modules: crypto/sha256, crypto/sha512 (from coreutils)
57984         * modules/crypto/sha256: New file.
57985         * modules/crypto/sha512: Likewise.
57986         * lib/sha256.c: Likewise.
57987         * lib/sha256.h: Likewise.
57988         * lib/sha512.c: Likewise.
57989         * lib/sha512.h: Likewise.
57990         * lib/u64.h: Likewise.
57991         * m4/sha256.m4: Likewise.
57992         * m4/sha512.m4: Likewise.
57993         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
57994
57995 2008-05-10  Bruno Haible  <bruno@clisp.org>
57996
57997         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
57998         (Input/Output <stdio.h>): Add xprintf.
57999         (Signal handling <signal.h>): Add strsignal.
58000         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
58001         (Core language properties): Add func.
58002         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
58003         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
58004         strings.
58005         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
58006         (Input/output): New section.
58007         (File system functions): Add openat-die, stat-macros.
58008         (Networking functions): Add sockets.
58009         (Unicode string functions): Add unictype/*.
58010         (Support for building libraries and executables): Add gperf.
58011         (Support for building documentation): Add agpl-3.0.
58012         (Misc): Add nocrash.
58013
58014 2008-05-10  Bruno Haible  <bruno@clisp.org>
58015
58016         * modules/unictype/gen-ctype: New file.
58017
58018 2008-05-10  Jim Meyering  <meyering@redhat.com>
58019
58020         Make chdir-safer.c more efficient on a system with no symlinks.
58021         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
58022         also if ELOOP is zero.  Suggested by Bruno Haible.
58023
58024         Make chdir-safer.c slightly safer.
58025         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
58026         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
58027
58028         Avoid compile failure on systems without ELOOP (like mingw).
58029         * lib/chdir-safer.c (ELOOP): Define if not already defined.
58030         Reported by Bruno Haible.
58031
58032 2008-05-10  Bruno Haible  <bruno@clisp.org>
58033
58034         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
58035         (is_utf8_encoding): Use a case-insensitive comparison.
58036         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
58037         streq.
58038
58039 2008-05-10  Bruno Haible  <bruno@clisp.org>
58040
58041         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
58042         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
58043         * lib/unilbrk/ulc-common.h (iconv_string_length,
58044         iconv_string_keeping_offsets): Remove declarations.
58045         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
58046         Don't include <iconv.h>, streq.h, xsize.h.
58047         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
58048         conversion.
58049         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
58050         <iconv.h>, streq.h, xsize.h.
58051         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
58052         conversion.
58053         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
58054         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
58055         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
58056         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
58057
58058 2008-05-10  Bruno Haible  <bruno@clisp.org>
58059
58060         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
58061         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
58062
58063         * modules/unilbrk/u32-width-linebreaks-tests: New file.
58064         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
58065
58066         * modules/unilbrk/u16-width-linebreaks-tests: New file.
58067         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
58068
58069         * modules/unilbrk/u8-width-linebreaks-tests: New file.
58070         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
58071
58072         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
58073         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
58074
58075         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
58076         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
58077
58078         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
58079         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
58080
58081         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
58082         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
58083
58084 2008-05-10  Bruno Haible  <bruno@clisp.org>
58085
58086         Split up 'linebreak' module.
58087         * lib/unilbrk.h: New file, based on lib/linebreak.h.
58088         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
58089         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
58090         modifications.
58091         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
58092         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
58093         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
58094         lib/linebreak.c.
58095         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
58096         lib/linebreak.c.
58097         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
58098         lib/linebreak.c.
58099         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
58100         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
58101         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
58102         lib/linebreak.c.
58103         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
58104         lib/linebreak.c.
58105         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
58106         lib/linebreak.c.
58107         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
58108         lib/linebreak.c.
58109         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
58110         lib/linebreak.c.
58111         * modules/unilbrk/base: New file.
58112         * modules/unilbrk/tables: New file.
58113         * modules/unilbrk/u8-possible-linebreaks: New file.
58114         * modules/unilbrk/u16-possible-linebreaks: New file.
58115         * modules/unilbrk/u32-possible-linebreaks: New file.
58116         * modules/unilbrk/ulc-common: New file.
58117         * modules/unilbrk/ulc-possible-linebreaks: New file.
58118         * modules/unilbrk/u8-width-linebreaks: New file.
58119         * modules/unilbrk/u16-width-linebreaks: New file.
58120         * modules/unilbrk/u32-width-linebreaks: New file.
58121         * modules/unilbrk/ulc-width-linebreaks: New file.
58122         * lib/linebreak.h: Remove file.
58123         * lib/linebreak.c: Remove file.
58124         * m4/linebreak.m4: Remove file.
58125         * modules/linebreak: Remove file.
58126         * NEWS: Mention the changes.
58127
58128 2008-05-09  Eric Blake  <ebb9@byu.net>
58129
58130         Add xmemdup0.
58131         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
58132         implementation.
58133         * lib/xmalloc.c (xmemdup0): New C implementation.
58134
58135 2008-05-08  Bruno Haible  <bruno@clisp.org>
58136
58137         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
58138
58139 2008-05-07  Eric Blake  <ebb9@byu.net>
58140
58141         Support cross-compilation of <wctype.h>.
58142         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
58143         AC_CACHE_CHECK.
58144
58145 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
58146
58147         * build-aux/vc-list-files: Add support for bzr.
58148
58149 2008-05-03  Jim Meyering  <meyering@redhat.com>
58150
58151         avoid failed assertion with tight malloc
58152         * tests/test-getndelim2.c: Correct an off-by-one assertion.
58153
58154 2008-05-03  Simon Josefsson  <simon@josefsson.org>
58155
58156         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
58157         are needed from arpa/inet.h.
58158         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
58159         Reported by Bruno Haible.
58160
58161 2008-05-02  Jim Meyering  <meyering@redhat.com>
58162
58163         avoid compilation error on FreeBSD 6
58164         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
58165
58166 2008-05-01  Jim Meyering  <meyering@redhat.com>
58167
58168         useless-if-before-free: correct --help's exit status description
58169         * build-aux/useless-if-before-free (usage): Like grep, exit 0
58170         for one or more matches, etc.  Reported by Bruno Haible.
58171
58172         vc-list-files: make the stand-alone gnulib test work
58173         * modules/vc-list-files-tests (configure.ac):
58174         Define and AC_SUBST abs_aux_dir.
58175         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
58176         $(abs_top_srcdir) to each script and having each of them
58177         duplicate the work of setting PATH, set PATH here, using
58178         the new variable, abs_aux_dir instead.
58179         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
58180         * tests/test-vc-list-files-git.sh: Likewise.
58181         Reported by Bruno Haible.
58182
58183 2008-05-01  Bruno Haible  <bruno@clisp.org>
58184
58185         * lib/getndelim2.c (getndelim2): Fix newsize computation during
58186         reallocation. Rename 'done' to 'found_delimiter'.
58187
58188 2008-05-01  Jim Meyering  <meyering@redhat.com>
58189
58190         vc-list-files: accommodate /bin/sh like the one from Solaris 10
58191         * build-aux/vc-list-files: Use `...`, not $(...).
58192
58193 2008-04-30  Jim Meyering  <meyering@redhat.com>
58194
58195         add tests for vc-list-files
58196         * modules/vc-list-files-tests: New module.
58197         * tests/test-vc-list-files-cvs.sh: New file.
58198         * tests/test-vc-list-files-git.sh: New file.
58199
58200         avoid a warning from gcc
58201         * lib/getndelim2.c (IF_LINT): Define.
58202         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
58203
58204         vc-list-files: work properly with build-aux/cvsu, too
58205         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
58206         to all cvs-based clauses.
58207
58208         vc-list-files: work properly in the CVS+awk case, too
58209         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
58210
58211         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
58212         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
58213         take more than one file argument, so .  Add quotes, just in case $dir
58214         ever contains a shell meta-character.  Prompted by Soren Hansen in
58215         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
58216
58217 2008-04-29  Eric Blake  <ebb9@byu.net>
58218
58219         Optimize getndelim2 to use block operations when possible.
58220         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
58221         freadseek, and memchr2.
58222         * lib/getndelim2.c (getndelim2): Use them for block reads.
58223
58224 2008-04-29  Bruno Haible  <bruno@clisp.org>
58225
58226         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
58227         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
58228         * modules/inet_ntop (Depends-on): Add extensions.
58229         * modules/inet_pton (Depends-on): Likewise.
58230         Reported by Simon Josefsson.
58231
58232 2008-04-29  Jim Meyering  <meyering@redhat.com>
58233
58234         When the is more than one match in a block, match all of them.
58235         * build-aux/useless-if-before-free: Iterate through each block
58236         until there are no more matches.
58237
58238         Fix broken useless-if-before-free script.
58239         * build-aux/useless-if-before-free: Fix typo: missing "?" after
58240         the expression to match cast of argument to free-like function.
58241
58242 2008-04-29  Eric Blake  <ebb9@byu.net>
58243
58244         Use new header.
58245         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
58246
58247 2008-04-29  Jim Meyering  <meyering@redhat.com>
58248
58249         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
58250         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
58251         by gnulib to exist and to declare e.g., inet_ntop.
58252         Don't include "inet_ntop.h", now removed.
58253
58254         * m4/arpa_inet_h.m4: Remove trailing blanks.
58255
58256 2008-04-29  Eric Blake  <ebb9@byu.net>
58257
58258         Silence valgrind on safe reads beyond potential array bounds.
58259         * lib/rawmemchr.valgrind: New file.
58260         * lib/strchrnul.valgrind: Likewise.
58261         * modules/rawmemchr (Files): Distribute new file.
58262         * modules/strchrnul (Files): Likewise.
58263         Suggested by Bruno Haible.
58264
58265 2008-04-29  Bruno Haible  <bruno@clisp.org>
58266
58267         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
58268         (inet_ntop, inet_pton): Change portability warning's wording.
58269         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
58270         Invoke gl_CHECK_NEXT_HEADERS.
58271         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
58272         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
58273         set ARPA_INET_H.
58274         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
58275         * modules/arpa_inet (Description): No longer only for systems that
58276         lack it.
58277         (Depends-on): Add include_next.
58278         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
58279         HAVE_ARPA_INET_H.
58280
58281 2008-04-29  Jim Meyering  <meyering@redhat.com>
58282
58283         * modules/mkdir (License): Re-license as LGPLv2+.
58284
58285 2008-04-29  Bruno Haible  <bruno@clisp.org>
58286
58287         * modules/rawmemchr (Maintainer): Set to Eric.
58288         * modules/strchrnul (Maintainer): Likewise.
58289
58290 2008-04-29  Simon Josefsson  <simon@josefsson.org>
58291
58292         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
58293         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
58294
58295         * modules/arpa_inet (arpa/inet.h): Use them.
58296
58297 2008-04-28  Eric Blake  <ebb9@byu.net>
58298
58299         Test getndelim2.
58300         * modules/getndelim2-tests: New file.
58301         * tests/test-getndelim2.c: Likewise.
58302         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
58303         stream.
58304         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
58305
58306         * MODULES.html.sh: Document new module.
58307
58308 2008-04-20  Bruno Haible  <bruno@clisp.org>
58309
58310         * lib/c-stack.c (die): Use raise.
58311         * modules/c-stack (Depends-on): Add raise.
58312
58313 2008-04-28  Bruno Haible  <bruno@clisp.org>
58314
58315         Expect rpmatch to be declared.
58316         * lib/yesno.c (rpmatch): Remove declaration.
58317
58318         Declare rpmatch.
58319         * lib/stdlib.in.h (rpmatch): New declaration.
58320         * lib/rpmatch.c: Include <stdlib.h> first.
58321         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
58322         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
58323         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
58324         HAVE_RPMATCH.
58325         * modules/rpmatch (Depends-on): Add stdlib, extensions.
58326         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
58327         (Include): Set to <stdlib.h>.
58328         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
58329         HAVE_RPMATCH.
58330         * NEWS: Document the change.
58331
58332 2008-04-28  Bruno Haible  <bruno@clisp.org>
58333
58334         Change rpmatch to use nl_langinfo when appropriate.
58335         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
58336         (N_): New macro.
58337         (localized_pattern): New function/macro.
58338         (try): Remove match, nomatch arguments. Copy the pattern into safe
58339         memory before caching it.
58340         (rpmatch): Use localized_pattern. Add translator comments.
58341         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
58342         Suggested by Eric Blake.
58343         * modules/rpmatch (Depends-on): Add stdbool.
58344
58345 2008-04-28  Eric Blake  <ebb9@byu.net>
58346
58347         Add rawmemchr module, matching glibc.
58348         * modules/string (Makefile.am): New indicator.
58349         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
58350         * lib/string.in.h (rawmemchr): Declare when appropriate.
58351         * modules/rawmemchr: New file.
58352         * m4/rawmemchr.m4: Likewise.
58353         * lib/rawmemchr.c: Likewise.
58354         * modules/rawmemchr-tests: Likewise.
58355         * tests/test-rawmemchr.c: Likewise.
58356         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
58357         module.
58358         * modules/strchrnul (Depends-on): Add rawmemchr.
58359         * lib/strchrnul.c (strchrnul): Optimize a corner case.
58360
58361         Whitespace cleanup.
58362         * tests/test-strchrnul.c: Reindent.
58363         * lib/strchrnul.c: Likewise.
58364
58365         Optimize and test strchrnul.
58366         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
58367         * modules/strchrnul-tests: New file.
58368         * tests/test-strchrnul.c: Likewise.
58369
58370         Remove intprops dependency.
58371         * modules/memchr (Depends-on): Remove intprops.
58372         * modules/memrchr (Depends-on): Likewise.
58373         * modules/memchr2 (Depends-on): Likewise.
58374         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
58375         * lib/memrchr.c (__memrchr): Likewise.
58376         * lib/memrchr2.c (memchr2): Likewise.
58377         Reported by Simon Josefsson.
58378
58379 2008-04-28  Simon Josefsson  <simon@josefsson.org>
58380
58381         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
58382         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58383
58384 2008-04-28  Simon Josefsson  <simon@josefsson.org>
58385
58386         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
58387
58388         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
58389
58390         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
58391
58392         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
58393         declarations.
58394         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
58395
58396         * m4/inet_pton.m4: Don't check for header files.
58397
58398         * m4/inet_ntop.m4: Don't check for header files.
58399
58400 2008-04-28  Simon Josefsson  <simon@josefsson.org>
58401
58402         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
58403         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
58404         trigger for cygwin).
58405         Reported by Bruno Haible  <bruno@clisp.org>.
58406
58407 2008-04-28  Bruno Haible  <bruno@clisp.org>
58408
58409         * doc/posix-functions/strdup.texi: Mention mingw problem.
58410
58411 2008-04-27  Bruno Haible  <bruno@clisp.org>
58412
58413         * modules/stat-time-tests (Depends-on): Add sleep.
58414         * tests/test-stat-time.c (force_unlink): New function.
58415         (cleanup): Use it.
58416         (test_mtime): Remove the ctime related tests.
58417         (test_ctime): New function, containing the ctime related tests.
58418         (main): Call test_ctime, except on native Windows platforms.
58419
58420 2008-04-27  Bruno Haible  <bruno@clisp.org>
58421
58422         * lib/rpmatch.c (rpmatch): Add some comments.
58423         Reported by James Youngman <jay@gnu.org>.
58424
58425 2008-04-27  Bruno Haible  <bruno@clisp.org>
58426
58427         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
58428         quiet NaNs.
58429
58430 2008-04-27  Bruno Haible  <bruno@clisp.org>
58431
58432         Make test-yesno.sh work on mingw.
58433         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
58434         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
58435         (main): Set stdin to binary mode.
58436         * modules/yesno-tests (Depends-on): Add binary-io.
58437
58438 2008-04-27  Bruno Haible  <bruno@clisp.org>
58439
58440         Fix 'isfinite' on x86, x86_64, ia64 platforms.
58441         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
58442         argument that lie outside the IEEE 854 domain.
58443         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
58444         (gl_ISFINITE): Use it.
58445         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
58446
58447 2008-04-27  Bruno Haible  <bruno@clisp.org>
58448
58449         Allow local renaming in config.h.
58450         * lib/memrchr.c (memrchr): Don't undefine outside libc.
58451
58452 2008-04-27  Bruno Haible  <bruno@clisp.org>
58453
58454         * lib/memchr.c (__memchr): Change type of 'i'.
58455         * lib/memchr2.c (memchr2): Likewise.
58456
58457 2008-04-26  Eric Blake  <ebb9@byu.net>
58458         and Bruno Haible  <bruno@clisp.org>
58459
58460         Optimize and test memrchr.
58461         * modules/memrchr (Depends-on): Add intprops.
58462         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
58463         * modules/memrchr-tests: New file.
58464         * tests/test-memrchr.c: New file.
58465
58466 2008-04-26  Bruno Haible  <bruno@clisp.org>
58467
58468         Add tentative support for DragonFly BSD.
58469         * lib/stdio-impl.h: Add macros for DragonFly BSD.
58470         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
58471         fp.
58472         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
58473         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
58474         * lib/fpurge.c (fpurge): Likewise.
58475         * lib/freadable.c (freaadable): Likewise.
58476         * lib/freadahead.c (freadahead): Likewise.
58477         * lib/freading.c (freading): Likewise.
58478         * lib/freadptr.c (freadptr): Likewise.
58479         * lib/freadseek.c (freadptrinc): Likewise.
58480         * lib/fseeko.c (fseeko): Likewise.
58481         * lib/fseterr.c (fseterr): Likewise.
58482         * lib/fwritable.c (fwritable): Likewise.
58483         * lib/fwriting.c (fwriting): Likewise.
58484
58485 2008-04-26  Bruno Haible  <bruno@clisp.org>
58486
58487         * lib/stdio-impl.h: New file.
58488         * lib/fbufmode.c: Include stdio-impl.h.
58489         (fbufmode): Use fp_, remove redundant #defines.
58490         * lib/fflush.c: Include stdio-impl.h.
58491         (clear_ungetc_buffer): Remove redundant #defines.
58492         * lib/fpurge.c: Include stdio-impl.h.
58493         (fpurge): Remove redundant #defines.
58494         * lib/freadable.c: Include stdio-impl.h.
58495         (freadable): Remove redundant #defines.
58496         * lib/freadahead.c: Include stdio-impl.h.
58497         (freadahead): Remove redundant #defines.
58498         * lib/freading.c: Include stdio-impl.h.
58499         (freading): Remove redundant #defines.
58500         * lib/freadptr.c: Include stdio-impl.h.
58501         (freadptr): Remove redundant #defines.
58502         * lib/freadseek.c: Include stdio-impl.h.
58503         (freadptrinc): Remove redundant #defines.
58504         * lib/fseeko.c: Include stdio-impl.h.
58505         (rpl_fseeko): Remove redundant #defines.
58506         * lib/fseterr.c: Include stdio-impl.h.
58507         (fseterr): Remove redundant #defines.
58508         * lib/fwritable.c: Include stdio-impl.h.
58509         (fwritable: Remove redundant #defines.
58510         * lib/fwriting.c: Include stdio-impl.h.
58511         (fwriting): Remove redundant #defines.
58512         * modules/fbufmode (Files): Add lib/stdio-impl.h.
58513         * modules/fflush (Files): Likewise.
58514         * modules/fpurge (Files): Likewise.
58515         * modules/freadable (Files): Likewise.
58516         * modules/freadahead (Files): Likewise.
58517         * modules/freading (Files): Likewise.
58518         * modules/freadptr (Files): Likewise.
58519         * modules/freadseek (Files): Likewise.
58520         * modules/fseeko (Files): Likewise.
58521         * modules/fseterr (Files): Likewise.
58522         * modules/fwritable (Files): Likewise.
58523         * modules/fwriting (Files): Likewise.
58524
58525 2008-04-26  Bruno Haible  <bruno@clisp.org>
58526
58527         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
58528         restore_seek_optimization, update_fpos_cache): New functions, extracted
58529         from rpl_fflush.
58530         (rpl_fflush): Use them.
58531         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
58532         (gl_REPLACE_FFLUSH): Use it.
58533
58534 2008-04-26  Bruno Haible  <bruno@clisp.org>
58535
58536         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
58537         on Solaris.
58538         * tests/test-xstrtoimax.sh: Likewise.
58539         * tests/test-xstrtoumax.sh: Likewise.
58540         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58541
58542 2008-04-26  Bruno Haible  <bruno@clisp.org>
58543
58544         * modules/memchr-tests: New file.
58545         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
58546
58547 2008-04-26  Eric Blake  <ebb9@byu.net>
58548             Bruno Haible  <bruno@clisp.org>
58549
58550         * lib/memchr.c: Include intprops.h.
58551         (__memchr): Optimize parallel detection of matching bytes. Rename local
58552         variables. Add explanatory comments.
58553
58554 2008-04-26  Bruno Haible  <bruno@clisp.org>
58555
58556         Fix module 'memchr', broken since 2000-10-28.
58557         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
58558
58559 2008-04-26  Bruno Haible  <bruno@clisp.org>
58560
58561         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
58562         comments.
58563
58564 2008-04-25  Eric Blake  <ebb9@byu.net>
58565
58566         Use native fstatat on cygwin 1.7.0.
58567         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
58568         first.
58569
58570 2008-04-23  Eric Blake  <ebb9@byu.net>
58571
58572         Improve memchr2 performance.
58573         * lib/memchr2.c (memchr2): Further optimize parallel detection of
58574         NUL bytes.
58575         * modules/memchr2 (Depends-on): Use intprops.h.
58576
58577 2008-04-23  Simon Josefsson  <simon@josefsson.org>
58578
58579         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
58580         an inline function instead of a CPP macro.  Patch by Ben Pfaff
58581         <blp@cs.stanford.edu>.
58582
58583 2008-04-23  Simon Josefsson  <simon@josefsson.org>
58584
58585         * lib/arpa_inet.in.h: New file.
58586
58587         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
58588         (Makefile.am): Sed in substitute header file.
58589
58590         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
58591         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
58592
58593         * modules/inet_ntop (configure.ac): Use
58594         gl_ARPA_INET_MODULE_INDICATOR.
58595
58596         * modules/inet_pton (configure.ac): Use
58597         gl_ARPA_INET_MODULE_INDICATOR.
58598
58599 2008-04-22  Jim Meyering  <meyering@redhat.com>
58600
58601         * modules/verify (License): Re-license as LGPLv2+.
58602
58603 2008-04-22  Simon Josefsson  <simon@josefsson.org>
58604
58605         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
58606         parameter to void* as per POSIX standard (MinGW uses char*).
58607
58608 2008-04-21  Bruno Haible  <bruno@clisp.org>
58609
58610         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
58611         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
58612         Define to replacements if REPLACE_ISWCNTRL is 1.
58613         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
58614         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
58615         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
58616         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
58617         what it fixes.
58618         * doc/posix-functions/iswalpha.texi: Likewise.
58619         * doc/posix-functions/iswblank.texi: Likewise.
58620         * doc/posix-functions/iswcntrl.texi: Likewise.
58621         * doc/posix-functions/iswdigit.texi: Likewise.
58622         * doc/posix-functions/iswgraph.texi: Likewise.
58623         * doc/posix-functions/iswlower.texi: Likewise.
58624         * doc/posix-functions/iswprint.texi: Likewise.
58625         * doc/posix-functions/iswpunct.texi: Likewise.
58626         * doc/posix-functions/iswspace.texi: Likewise.
58627         * doc/posix-functions/iswupper.texi: Likewise.
58628         * doc/posix-functions/iswxdigit.texi: Likewise.
58629         Reported by Alain Guibert.
58630
58631 2008-04-21  Bruno Haible  <bruno@clisp.org>
58632
58633         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
58634         Patch by Alain Guibert.
58635
58636 2008-04-21  Bruno Haible  <bruno@clisp.org>
58637
58638         Fix test failures on mingw.
58639         * tests/test-xstrtol.c (print_no_progname): New function.
58640         (main): Install it in error_print_progname hook.
58641         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
58642         * tests/test-xstrtoimax.sh: Likewise.
58643         * tests/test-xstrtoumax.sh: Likewise.
58644
58645 2008-04-21  Bruno Haible  <bruno@clisp.org>
58646
58647         Fix test failure on mingw.
58648         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
58649
58650 2008-04-21  Bruno Haible  <bruno@clisp.org>
58651
58652         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
58653         Actually assign a value.
58654
58655 2008-04-20  Bruno Haible  <bruno@clisp.org>
58656
58657         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
58658         take 2.
58659         * lib/canonicalize.c (canonicalize_file_name): Elide if the
58660         'canonicalize-lgpl' module is also used.
58661         * lib/canonicalize-lgpl.c: Undo last change.
58662         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
58663
58664 2008-04-20  Bruno Haible  <bruno@clisp.org>
58665
58666         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
58667         config.h. Provide _mkdir based fallback for mingw.
58668         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
58669         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
58670         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
58671         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
58672         rather than defining mkdir in config.h.
58673         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
58674         (gl_SYS_STAT_H_DEFAULTS): New macro.
58675         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
58676         HAVE_IO_H any more.
58677         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
58678         HAVE_DECL_MKDIR and HAVE_IO_H.
58679
58680 2008-04-20  Bruno Haible  <bruno@clisp.org>
58681
58682         * lib/isapipe.c: Port to native Windows platforms.
58683
58684 2008-04-20  Bruno Haible  <bruno@clisp.org>
58685
58686         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
58687
58688 2008-04-21  Eric Blake  <ebb9@byu.net>
58689
58690         Work around preprocessors that don't handle UINTMAX_MAX.
58691         * lib/memchr2.c (memchr2): Avoid embedded #if.
58692         Reported by Alain Guibert, fix suggested by Bruno Haible.
58693
58694 2008-04-21  Simon Josefsson  <simon@josefsson.org>
58695
58696         * doc/posix-functions/strftime.texi (strftime): Explain better
58697         Windows incompatibility.  Suggested by Micah Cowan
58698         <micah@cowan.name>.
58699
58700 2008-04-20  Bruno Haible  <bruno@clisp.org>
58701
58702         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
58703         unistr/u8-mblen.
58704
58705 2008-04-20  Bruno Haible  <bruno@clisp.org>
58706
58707         Fix test failure on platforms with non-GNU iconv.
58708         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
58709         (U_TO_U8): Use it, rather than u16_to_u8.
58710         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
58711         units at the end of the input string.
58712         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
58713
58714 2008-04-20  Bruno Haible  <bruno@clisp.org>
58715
58716         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
58717         when the resulting length is 0.
58718         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
58719
58720 2008-04-20  Bruno Haible  <bruno@clisp.org>
58721
58722         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
58723         works.
58724         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
58725
58726 2008-04-20  Bruno Haible  <bruno@clisp.org>
58727
58728         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
58729         * modules/tsearch-tests (configure.ac): Test for initstate function.
58730
58731 2008-04-20  Bruno Haible  <bruno@clisp.org>
58732
58733         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
58734         for nlink_t if missing.
58735         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
58736
58737 2008-04-19  Bruno Haible  <bruno@clisp.org>
58738
58739         Work around snprintf bug on Linux libc5.
58740         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
58741         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
58742         gl_SNPRINTF_SIZE1.
58743         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58744         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
58745         that test failed.
58746         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
58747         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
58748         * modules/snprintf (Files): Add m4/printf.m4.
58749         * modules/vsnprintf (Files): Likewise.
58750         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
58751         * doc/posix-functions/vsnprintf.texi: Likewise.
58752
58753 2008-04-19  Bruno Haible  <bruno@clisp.org>
58754
58755         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
58756         from 0.0058 to less than 10^-7.
58757
58758 2008-04-19  Bruno Haible  <bruno@clisp.org>
58759
58760         Fix rounding when a precision is given.
58761         * lib/vasnprintf.c (is_borderline): New function.
58762         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
58763         9...9x.
58764         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
58765         %e, %g.
58766         * tests/test-vasprintf-posix.c (test_function): Likewise.
58767         * tests/test-snprintf-posix.h (test_function): Likewise.
58768         * tests/test-sprintf-posix.h (test_function): Likewise.
58769         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
58770         * tests/test-printf-posix.h (test_function): Likewise.
58771         * tests/test-printf-posix.output: Update.
58772         Reported by John Darrington <john@darrington.wattle.id.au> via
58773         Ben Pfaff <blp@cs.stanford.edu>.
58774
58775 2008-04-18  Simon Josefsson  <simon@josefsson.org>
58776
58777         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
58778         Suggested by Bruno Haible <bruno@clisp.org>.
58779
58780 2008-04-17  Bruno Haible  <bruno@clisp.org>
58781
58782         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
58783         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
58784         implementation.
58785         Patch by Bruce Merry <bmerry@gmail.com>.
58786
58787 2008-04-17  Simon Josefsson  <simon@josefsson.org>
58788
58789         * doc/posix-functions/strftime.texi (strftime): Mention that %e
58790         doesn't work under Windows.
58791
58792 2008-04-16  Bruno Haible  <bruno@clisp.org>
58793
58794         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
58795         New macros.
58796         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
58797         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
58798         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
58799         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
58800         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
58801         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
58802         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
58803         macros.
58804         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
58805         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
58806         Northern Sotho, Uighur.
58807
58808 2008-04-16  Bruno Haible  <bruno@clisp.org>
58809
58810         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
58811         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
58812         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
58813         Reported by Daniel Bergström <daniel@octocode.com>.
58814
58815 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
58816             Bruno Haible  <bruno@clisp.org>
58817
58818         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
58819         function.
58820         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
58821         New functions, mostly extracted from gl_locale_name_default.
58822         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
58823
58824 2008-04-16  Eric Blake  <ebb9@byu.net>
58825
58826         Adjust strtod detection to catch glibc 2.7 bug.
58827         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
58828         Reported by John Gatewood Ham.
58829
58830 2008-04-16  Bruno Haible  <bruno@clisp.org>
58831
58832         Add tentative support for Linux libc5.
58833         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
58834         * lib/fpurge.c (fpurge): Likewise.
58835         * lib/freadable.c (freadable): Likewise.
58836         * lib/freadahead.c (freadahead): Likewise.
58837         * lib/freading.c (freading): Likewise.
58838         * lib/freadptr.c (freadptr): Likewise.
58839         * lib/freadseek.c (freadptrinc): Likewise.
58840         * lib/fseeko.c (rpl_fseeko): Likewise.
58841         * lib/fseterr.c (fseterr): Likewise.
58842         * lib/fwritable.c (fwritable): Likewise.
58843         * lib/fwriting.c (fwriting): Likewise.
58844         Reported by Alain Guibert <alguibert+bts@free.fr>.
58845
58846 2008-04-15  Bruno Haible  <bruno@clisp.org>
58847
58848         * modules/mathl (configure.ac): Define module indicator.
58849
58850 2008-04-15  Bruno Haible  <bruno@clisp.org>
58851
58852         * lib/logl.c (logl): Remove unused variables.
58853
58854 2008-04-15  Bruno Haible  <bruno@clisp.org>
58855
58856         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
58857         fails.
58858
58859 2008-04-15  Bruno Haible  <bruno@clisp.org>
58860
58861         * lib/trim.c (trim2): Fix argument of isspace() macro.
58862
58863 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
58864
58865         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
58866         to 0.
58867         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
58868
58869 2008-04-14  Bruno Haible  <bruno@clisp.org>
58870
58871         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
58872         AC_LANG_PROGRAM argument.
58873         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
58874         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
58875         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
58876         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
58877         * m4/math_h.m4 (gl_MATH_H): Likewise.
58878         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
58879         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
58880         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
58881         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
58882         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
58883         * m4/regex.m4 (gl_REGEX): Likewise.
58884         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
58885         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
58886         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
58887         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
58888         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
58889         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
58890         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
58891         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
58892
58893 2008-04-14  Jim Meyering  <meyering@redhat.com>
58894
58895         test-strtod: fix typos: s/abs/fabs/
58896         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
58897
58898 2008-04-13  Bruno Haible  <bruno@clisp.org>
58899
58900         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
58901         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
58902         module is also used and while not building the reloc-wrapper.
58903
58904 2008-04-13  Bruno Haible  <bruno@clisp.org>
58905
58906         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
58907
58908 2008-04-13  Bruno Haible  <bruno@clisp.org>
58909
58910         Fix AIX compilation failure introduced on 2008-04-02.
58911         * tests/test-frexp.c (exp): Undefine before redefining.
58912         * tests/test-frexpl.c (exp): Likewise.
58913
58914 2008-04-13  Bruno Haible  <bruno@clisp.org>
58915
58916         Work around a HP-UX stdio bug.
58917         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
58918         * tests/test-ftello.c (main): Likewise.
58919         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
58920         * doc/posix-functions/ftello.texi: Likewise.
58921
58922 2008-04-13  Bruno Haible  <bruno@clisp.org>
58923
58924         Make test-signbit pass on HP-UX/hppa.
58925         * tests/test-signbit.c (minus_zerol): New variable.
58926         (test_signbitl): Use it.
58927
58928 2008-04-13  Bruno Haible  <bruno@clisp.org>
58929
58930         Make truncl work on OSF/1 4.0.
58931         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
58932         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
58933         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
58934         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
58935         HAVE_DECL_TRUNCL.
58936         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
58937         HAVE_DECL_TRUNCL.
58938         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
58939
58940 2008-04-13  Bruno Haible  <bruno@clisp.org>
58941
58942         * lib/unictype.h: Remove trailing comma from enumeration definitions.
58943
58944 2008-04-13  Bruno Haible  <bruno@clisp.org>
58945
58946         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
58947         expression, so as to avoid HP-UX 11 cc compiler bug.
58948
58949 2008-04-13  Bruno Haible  <bruno@clisp.org>
58950
58951         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
58952
58953 2008-04-13  Bruno Haible  <bruno@clisp.org>
58954
58955         * lib/git-merge-changelog.c: Remove empty declaration outside of
58956         functions.
58957
58958 2008-04-13  Bruno Haible  <bruno@clisp.org>
58959
58960         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
58961
58962 2008-04-13  Bruno Haible  <bruno@clisp.org>
58963
58964         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
58965         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
58966         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
58967         also if it exists but lacks definitions of the SHUT_* macros.
58968         * modules/sys_socket (Description): Update.
58969         Reported by Elbert Pol <e.pol@chello.nl>.
58970
58971 2008-04-13  Bruno Haible  <bruno@clisp.org>
58972
58973         * lib/localcharset.c (OS2): Don't redefine if already defined.
58974         Reported by Elbert Pol <e.pol@chello.nl>.
58975
58976 2008-04-13  Bruno Haible  <bruno@clisp.org>
58977
58978         * lib/binary-io.h [__EMX__]: Include <io.h>.
58979         Reported by Elbert Pol <e.pol@chello.nl>.
58980
58981 2008-04-12  Bruno Haible  <bruno@clisp.org>
58982
58983         * lib/fpucw.h: Enable the definitions also for x86_64.
58984         Needed for NetBSD/x86_64.
58985         Reported by Thomas Klausner <tk@giga.or.at>.
58986
58987 2008-04-12  Bruno Haible  <bruno@clisp.org>
58988
58989         * tests/test-strtod.c: Include isnand.h.
58990         (main): Use isnand instead of isnan.
58991         Reported by Jim Meyering.
58992
58993 2008-04-12  Bruno Haible  <bruno@clisp.org>
58994
58995         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
58996         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
58997
58998 2008-04-12  Jim Meyering  <meyering@redhat.com>
58999
59000         * m4/math_h.m4 (gl_MATH_H): Fix typos.
59001
59002 2008-04-12  Bruno Haible  <bruno@clisp.org>
59003
59004         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
59005         Reported by Elbert Pol <e.pol@chello.nl>.
59006
59007 2008-04-12  Eric Blake  <ebb9@byu.net>
59008
59009         Work around Solaris 10 math.h bug.
59010         * m4/math_h.m4 (gl_MATH_H): Check for bug.
59011         (gl_MATH_H_DEFAULTS): Set up default.
59012         * modules/math (Makefile.am): Replace new indicators.
59013         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
59014         * tests/test-math.c (main): Test this.
59015         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
59016         * doc/posix-headers/math.texi (math.h): Mention bug.
59017         Reported by Nelson H. F. Beebe and Jim Meyering.
59018
59019 2008-04-11  Bruno Haible  <bruno@clisp.org>
59020
59021         Adapt to future versions of Apple GCC.
59022         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
59023         Reported by Peter O'Gorman <peter@pogma.com>.
59024
59025 2008-04-11  Bruno Haible  <bruno@clisp.org>
59026
59027         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
59028
59029 2008-04-11  Bruno Haible  <bruno@clisp.org>
59030
59031         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
59032
59033         * modules/getaddrinfo-tests (Makefile.am): Define
59034         test_getaddrinfo_LDADD.
59035
59036 2008-04-11  Bruno Haible  <bruno@clisp.org>
59037
59038         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
59039         (init): Fix syntax error.
59040         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
59041         is declared.
59042
59043 2008-04-11  Bruno Haible  <bruno@clisp.org>
59044
59045         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
59046         * modules/glob (Depends-on): Add stdbool.
59047
59048 2008-04-11  Bruno Haible  <bruno@clisp.org>
59049
59050         * lib/trim.c: Include <string.h>.
59051
59052 2008-04-11  Eric Blake  <ebb9@byu.net>
59053
59054         Avoid compile failure on OS/2.
59055         * lib/regex_internal.h (internal_function): Disable optimization
59056         on OS/2 (__EMX__), where it caused compiler error.
59057         Reported by Elbert Pol.
59058
59059 2008-04-11  Bruno Haible  <bruno@clisp.org>
59060
59061         Flush the standard error stream before aborting. Needed on mingw.
59062         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
59063         * tests/test-array_list.c (ASSERT): Likewise.
59064         * tests/test-array_oset.c (ASSERT): Likewise.
59065         * tests/test-avltree_list.c (ASSERT): Likewise.
59066         * tests/test-avltree_oset.c (ASSERT): Likewise.
59067         * tests/test-avltreehash_list.c (ASSERT): Likewise.
59068         * tests/test-binary-io.c (ASSERT): Likewise.
59069         * tests/test-byteswap.c (ASSERT): Likewise.
59070         * tests/test-c-ctype.c (ASSERT): Likewise.
59071         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
59072         * tests/test-c-strcasestr.c (ASSERT): Likewise.
59073         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
59074         * tests/test-c-strstr.c (ASSERT): Likewise.
59075         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
59076         * tests/test-canonicalize.c (ASSERT): Likewise.
59077         * tests/test-carray_list.c (ASSERT): Likewise.
59078         * tests/test-ceilf1.c (ASSERT): Likewise.
59079         * tests/test-ceilf2.c (ASSERT): Likewise.
59080         * tests/test-ceill.c (ASSERT): Likewise.
59081         * tests/test-count-one-bits.c (ASSERT): Likewise.
59082         * tests/test-fbufmode.c (ASSERT): Likewise.
59083         * tests/test-fflush2.c (ASSERT): Likewise.
59084         * tests/test-floorf1.c (ASSERT): Likewise.
59085         * tests/test-floorf2.c (ASSERT): Likewise.
59086         * tests/test-floorl.c (ASSERT): Likewise.
59087         * tests/test-fopen.c (ASSERT): Likewise.
59088         * tests/test-fpending.c (ASSERT): Likewise.
59089         * tests/test-fprintf-posix.c (ASSERT): Likewise.
59090         * tests/test-fpurge.c (ASSERT): Likewise.
59091         * tests/test-freadable.c (ASSERT): Likewise.
59092         * tests/test-freadahead.c (ASSERT): Likewise.
59093         * tests/test-freading.c (ASSERT): Likewise.
59094         * tests/test-freadptr.c (ASSERT): Likewise.
59095         * tests/test-freadptr2.c (ASSERT): Likewise.
59096         * tests/test-freadseek.c (ASSERT): Likewise.
59097         * tests/test-freopen.c (ASSERT): Likewise.
59098         * tests/test-frexp.c (ASSERT): Likewise.
59099         * tests/test-frexpl.c (ASSERT): Likewise.
59100         * tests/test-fseek.c (ASSERT): Likewise.
59101         * tests/test-fseeko.c (ASSERT): Likewise.
59102         * tests/test-fstrcmp.c (ASSERT): Likewise.
59103         * tests/test-ftell.c (ASSERT): Likewise.
59104         * tests/test-ftello.c (ASSERT): Likewise.
59105         * tests/test-func.c (ASSERT): Likewise.
59106         * tests/test-fwritable.c (ASSERT): Likewise.
59107         * tests/test-fwriting.c (ASSERT): Likewise.
59108         * tests/test-getdelim.c (ASSERT): Likewise.
59109         * tests/test-getline.c (ASSERT): Likewise.
59110         * tests/test-i-ring.c (ASSERT): Likewise.
59111         * tests/test-iconv-utf.c (ASSERT): Likewise.
59112         * tests/test-iconv.c (ASSERT): Likewise.
59113         * tests/test-isfinite.c (ASSERT): Likewise.
59114         * tests/test-isnand.c (ASSERT): Likewise.
59115         * tests/test-isnanf.c (ASSERT): Likewise.
59116         * tests/test-isnanl.h (ASSERT): Likewise.
59117         * tests/test-ldexpl.c (ASSERT): Likewise.
59118         * tests/test-linked_list.c (ASSERT): Likewise.
59119         * tests/test-linkedhash_list.c (ASSERT): Likewise.
59120         * tests/test-localename.c (ASSERT): Likewise.
59121         * tests/test-lseek.c (ASSERT): Likewise.
59122         * tests/test-mbscasecmp.c (ASSERT): Likewise.
59123         * tests/test-mbscasestr1.c (ASSERT): Likewise.
59124         * tests/test-mbscasestr2.c (ASSERT): Likewise.
59125         * tests/test-mbscasestr3.c (ASSERT): Likewise.
59126         * tests/test-mbscasestr4.c (ASSERT): Likewise.
59127         * tests/test-mbschr.c (ASSERT): Likewise.
59128         * tests/test-mbscspn.c (ASSERT): Likewise.
59129         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
59130         * tests/test-mbspbrk.c (ASSERT): Likewise.
59131         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
59132         * tests/test-mbsrchr.c (ASSERT): Likewise.
59133         * tests/test-mbsspn.c (ASSERT): Likewise.
59134         * tests/test-mbsstr1.c (ASSERT): Likewise.
59135         * tests/test-mbsstr2.c (ASSERT): Likewise.
59136         * tests/test-mbsstr3.c (ASSERT): Likewise.
59137         * tests/test-memchr2.c (ASSERT): Likewise.
59138         * tests/test-memmem.c (ASSERT): Likewise.
59139         * tests/test-open.c (ASSERT): Likewise.
59140         * tests/test-printf-frexp.c (ASSERT): Likewise.
59141         * tests/test-printf-frexpl.c (ASSERT): Likewise.
59142         * tests/test-printf-posix.c (ASSERT): Likewise.
59143         * tests/test-quotearg.c (ASSERT): Likewise.
59144         * tests/test-rbtree_list.c (ASSERT): Likewise.
59145         * tests/test-rbtree_oset.c (ASSERT): Likewise.
59146         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
59147         * tests/test-round1.c (ASSERT): Likewise.
59148         * tests/test-roundf1.c (ASSERT): Likewise.
59149         * tests/test-roundl.c (ASSERT): Likewise.
59150         * tests/test-signbit.c (ASSERT): Likewise.
59151         * tests/test-sleep.c (ASSERT): Likewise.
59152         * tests/test-snprintf-posix.c (ASSERT): Likewise.
59153         * tests/test-snprintf.c (ASSERT): Likewise.
59154         * tests/test-sprintf-posix.c (ASSERT): Likewise.
59155         * tests/test-stat-time.c (ASSERT): Likewise.
59156         * tests/test-strcasestr.c (ASSERT): Likewise.
59157         * tests/test-strerror.c (ASSERT): Likewise.
59158         * tests/test-striconv.c (ASSERT): Likewise.
59159         * tests/test-striconveh.c (ASSERT): Likewise.
59160         * tests/test-striconveha.c (ASSERT): Likewise.
59161         * tests/test-strsignal.c (ASSERT): Likewise.
59162         * tests/test-strstr.c (ASSERT): Likewise.
59163         * tests/test-strtod.c (ASSERT): Likewise.
59164         * tests/test-trunc1.c (ASSERT): Likewise.
59165         * tests/test-trunc2.c (ASSERT): Likewise.
59166         * tests/test-truncf1.c (ASSERT): Likewise.
59167         * tests/test-truncf2.c (ASSERT): Likewise.
59168         * tests/test-truncl.c (ASSERT): Likewise.
59169         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
59170         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
59171         * tests/test-vasnprintf.c (ASSERT): Likewise.
59172         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
59173         * tests/test-vasprintf.c (ASSERT): Likewise.
59174         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
59175         * tests/test-vprintf-posix.c (ASSERT): Likewise.
59176         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
59177         * tests/test-vsnprintf.c (ASSERT): Likewise.
59178         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
59179         * tests/test-wcwidth.c (ASSERT): Likewise.
59180         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
59181         * tests/test-xprintf-posix.c (ASSERT): Likewise.
59182         * tests/test-xvasprintf.c (ASSERT): Likewise.
59183         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
59184         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
59185         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
59186         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
59187         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
59188         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
59189         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
59190         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
59191         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
59192         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
59193         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
59194         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
59195         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
59196         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
59197         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
59198         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
59199         * tests/unictype/test-block_list.c (ASSERT): Likewise.
59200         * tests/unictype/test-block_of.c (ASSERT): Likewise.
59201         * tests/unictype/test-block_test.c (ASSERT): Likewise.
59202         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
59203         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
59204         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
59205         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
59206         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
59207         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
59208         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
59209         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
59210         * tests/unictype/test-combining.c (ASSERT): Likewise.
59211         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
59212         * tests/unictype/test-digit.c (ASSERT): Likewise.
59213         * tests/unictype/test-mirror.c (ASSERT): Likewise.
59214         * tests/unictype/test-numeric.c (ASSERT): Likewise.
59215         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
59216         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
59217         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
59218         * tests/unictype/test-scripts.c (ASSERT): Likewise.
59219         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
59220         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
59221         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
59222         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
59223         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
59224         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
59225         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
59226         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
59227         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
59228         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
59229         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
59230         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
59231         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
59232         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
59233         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
59234         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
59235         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
59236         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
59237         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
59238         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
59239         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
59240         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
59241         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
59242         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
59243         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
59244         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
59245         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
59246         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
59247         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
59248         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
59249         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
59250         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
59251         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
59252         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
59253         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
59254         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
59255         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
59256         Reported by Eric Blake.
59257
59258 2008-04-11  Bruno Haible  <bruno@clisp.org>
59259
59260         * lib/wchar.in.h: Tweak comment.
59261
59262 2008-04-11  Bruno Haible  <bruno@clisp.org>
59263
59264         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
59265         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
59266         gl_COMMON.
59267         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
59268
59269 2008-04-11  Bruno Haible  <bruno@clisp.org>
59270
59271         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
59272
59273 2008-04-11  Simon Josefsson  <simon@josefsson.org>
59274
59275         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
59276         of attempting to use non-existing /dev/*random.  Based on patch
59277         from Adam Strzelecki <ono@java.pl> in
59278         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
59279
59280 2008-04-08  Bruno Haible  <bruno@clisp.org>
59281
59282         Add tentative support for emx+gcc.
59283         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
59284         * lib/fpurge.c (fpurge): Likewise.
59285         * lib/freadable.c (freadable): Likewise.
59286         * lib/freadahead.c (freadahead): Likewise.
59287         * lib/freading.c (freading): Likewise.
59288         * lib/freadptr.c (freadptr): Likewise.
59289         * lib/freadseek.c (freadptrinc): Likewise.
59290         * lib/fseeko.c (rpl_fseeko): Likewise.
59291         * lib/fseterr.c (fseterr): Likewise.
59292         * lib/fwritable.c (fwritable): Likewise.
59293         * lib/fwriting.c (fwriting): Likewise.
59294         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
59295
59296 2008-04-09  Eric Blake  <ebb9@byu.net>
59297
59298         Avoid some autoconf warnings.
59299         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
59300         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
59301         * m4/afs.m4 (gl_AFS): Likewise.
59302         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
59303         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
59304         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
59305         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
59306         (gl_INTEGER_TYPE_SUFFIX): Likewise.
59307         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
59308         (AC_CHECK_DECLS_ONCE): Likewise.
59309         Rename file...
59310         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
59311         gnulib-tool requires autoconf 2.59 or better.
59312         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
59313
59314 2008-04-08  Eric Blake  <ebb9@byu.net>
59315
59316         Use 'git describe --match' if present (added in git 1.5.5).
59317         * build-aux/git-version-gen: Limit result to tags that match 'v*'
59318         if possible.
59319
59320 2008-04-08  Bruno Haible  <bruno@clisp.org>
59321
59322         Add tentative support for OpenServer.
59323         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
59324         _ptr, _cnt.
59325         * lib/fpurge.c (fpurge): Likewise.
59326         * lib/freadable.c (freadable): Likewise.
59327         * lib/freadahead.c (freadahead): Likewise.
59328         * lib/freading.c (freading): Likewise.
59329         * lib/freadptr.c (freadptr): Likewise.
59330         * lib/freadseek.c (freadptrinc): Likewise.
59331         * lib/fseeko.c (rpl_fseeko): Likewise.
59332         * lib/fseterr.c (fseterr): Likewise.
59333         * lib/fwritable.c (fwritable): Likewise.
59334         * lib/fwriting.c (fwriting): Likewise.
59335         Reported by Roger Cornelius <rac@tenzing.org> and
59336         Brian K. White <brian@aljex.com>.
59337
59338 2008-04-06  Jim Meyering  <meyering@redhat.com>
59339
59340         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
59341
59342 2008-04-06  Bruno Haible  <bruno@clisp.org>
59343
59344         Avoid possible error with non-ASCII bytes in UTF-8 locales.
59345         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
59346         * tests/test-printf-posix.sh: Likewise.
59347         * tests/test-vfprintf-posix.sh: Likewise.
59348         * tests/test-vprintf-posix.sh: Likewise.
59349         * tests/test-xprintf-posix.sh: Likewise.
59350
59351 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59352
59353         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
59354         hide error from 'ls', needed on OS/2.
59355         Report by Elbert Pol <elbert.pol@gmail.com>.
59356
59357 2008-04-04  Eric Blake  <ebb9@byu.net>
59358
59359         Make test-fseeko.c failures meaningful.
59360         * tests/test-fseeko.c: Print line number on failure.
59361         * tests/test-fseek.c: Likewise.
59362         Reported by Nelson H. F. Beebe.
59363
59364         Improve strtod bug detection check.
59365         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
59366         required for Solaris 10.
59367         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
59368
59369 2008-04-04  Bruno Haible  <bruno@clisp.org>
59370
59371         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
59372         by m4/setenv.m4.
59373
59374 2008-04-03  Eric Blake  <ebb9@byu.net>
59375
59376         Ensure sane .version contents.
59377         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
59378         version string.
59379         * build-aux/git-version-gen: Improve documentation.
59380
59381         Make GNU make output nicer.
59382         * top/GNUmakefile [!_have-Makefile]: Add dependency on
59383         MAKECMDGOALS to enforce message for all command line targets.  Set
59384         srcdir for use in maint.mk.
59385
59386         Another maintainer tweak.
59387         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
59388         a target that regenerates version.
59389
59390 2008-04-03  Jim Meyering  <meyering@redhat.com>
59391
59392         vc-list-files: don't cause coreutils "make po-check" failure
59393         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
59394
59395 2008-04-03  Eric Blake  <ebb9@byu.net>
59396
59397         Allow VPATH usage of vc-list-files.
59398         * build-aux/vc-list-files (scriptversion): Add timestamp.
59399         (options): Add --help, --version, -C.
59400         (CVS): Support installed cvsu.
59401
59402 2008-04-02  Bruno Haible  <bruno@clisp.org>
59403
59404         Avoid some "statement with no effect" warnings from gcc.
59405         * tests/test-wctype.c (main): Explicitly ignore unused values.
59406         Reported by Jim Meyering.
59407
59408 2008-04-02  Jim Meyering  <meyering@redhat.com>
59409
59410         Avoid some warnings from "gcc -Wshadow".
59411         * tests/test-frexp.c (exp): Define to a different identifier.
59412         * tests/test-frexpl.c (exp): Likewise.
59413
59414 2008-04-03  Jim Meyering  <meyering@redhat.com>
59415
59416         bootstrap: remove dangling *.[ch] symlinks from lib
59417         * build-aux/bootstrap [dangling symlink removal]: Move find's
59418         -depth option to precede all others, to avoid a warning.
59419         Remove *.[ch] files too, and from "$source_base" (usually lib/).
59420
59421 2008-04-02  Bruno Haible  <bruno@clisp.org>
59422
59423         Avoid some warnings from "gcc -Wshadow".
59424         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
59425         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
59426         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
59427         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
59428         Reported by Jim Meyering.
59429
59430 2008-04-01  Bruno Haible  <bruno@clisp.org>
59431
59432         Fix test to work on IRIX 6.5 with cc.
59433         * tests/test-math.c (numeric_equal): New function.
59434         (main): Use it.
59435
59436 2008-04-01  Bruno Haible  <bruno@clisp.org>
59437
59438         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
59439
59440 2008-04-01  Bruno Haible  <bruno@clisp.org>
59441
59442         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
59443         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
59444         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
59445         (Depends-on): Remove math.
59446
59447         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
59448         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
59449         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
59450         (Depends-on): Remove math.
59451
59452         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
59453         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
59454         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
59455         (Depends-on): Remove math.
59456         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
59457         (Depends-on): Remove math.
59458
59459         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
59460         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
59461         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
59462         (Depends-on): Remove math.
59463         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
59464         (Depends-on): Remove math.
59465
59466         * tests/test-round1.c: Include nan.h.
59467         (main): Use NaNd instead of NAN.
59468         * modules/round-tests (Files): Add tests/nan.h.
59469
59470         * tests/test-trunc1.c: Include nan.h.
59471         (main): Use NaNd instead of NAN.
59472         * modules/trunc-tests (Files): Add tests/nan.h.
59473
59474         * tests/test-roundf1.c: Include nan.h.
59475         (main): Use NaNf instead of NAN.
59476         * modules/roundf-tests (Files): Add tests/nan.h.
59477
59478         * tests/test-truncf1.c: Include nan.h.
59479         (main): Use NaNf instead of NAN.
59480         * modules/truncf-tests (Files): Add tests/nan.h.
59481
59482         * tests/test-ceilf1.c: Include nan.h.
59483         (main): Use NaNf instead of NAN.
59484         * modules/ceilf-tests (Files): Add tests/nan.h.
59485
59486         * tests/test-floorf1.c: Include nan.h.
59487         (main): Use NaNf instead of NAN.
59488         * modules/floorf-tests (Files): Add tests/nan.h.
59489
59490         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
59491         (main): Use NaNf instead of NAN.
59492         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
59493
59494         * tests/test-isnand.c: Include nan.h instead of <math.h>.
59495         (main): Use NaNd instead of NAN.
59496         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
59497
59498         * tests/test-frexp.c: Include nan.h.
59499         (main): Use NaNd instead of NAN.
59500         * modules/frexp-tests (Files): Add tests/nan.h.
59501
59502         * lib/isnan.c: Don't include <math.h>.
59503         (FUNC): Don't use NAN macro.
59504         * modules/isnand-nolibm (Depends-on): Remove math.
59505         * modules/isnanf-nolibm (Depends-on): Remove math.
59506         * modules/isnanl (Depends-on): Remove math.
59507         * modules/isnanl-nolibm (Depends-on): Remove math.
59508
59509         * tests/nan.h: New file.
59510
59511 2008-04-01  Eric Blake  <ebb9@byu.net>
59512
59513         Fix typos.
59514         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
59515         values to be the right type.
59516
59517         For now, cater to gnulib strtod inaccuracies.
59518         * tests/test-strtod.c (main): Allow 1-ulp error on expected
59519         fractional results.  While not as nice from a QoI perspective, it
59520         is a quicker patch than correctly implementing decimal to binary
59521         rounding.
59522
59523 2008-03-31  Eric Blake  <ebb9@byu.net>
59524
59525         Guarantee a definition of NAN.
59526         * lib/math.in.h (NAN): Define if missing.
59527         * tests/test-math.c (main): Test it.
59528         * doc/posix-headers/math.texi (math.h): Document this.
59529         * lib/isnan.c (rpl_isnand): Use it.
59530         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
59531         * tests/test-floorf1.c (NaN): Likewise.
59532         * tests/test-frexp.c (NaN): Likewise.
59533         * tests/test-isnand.c (NaN): Likewise.
59534         * tests/test-isnanf.c (NaN): Likewise.
59535         * tests/test-round1.c (NaN): Likewise.
59536         * tests/test-roundf1.c (NaN): Likewise.
59537         * tests/test-snprintf-posix.h (NaN): Likewise.
59538         * tests/test-sprintf-posix.h (NaN): Likewise.
59539         * tests/test-trunc1.c (NaN): Likewise.
59540         * tests/test-truncf1.c (NaN): Likewise.
59541         * tests/test-vasnprintf-posix.c (NaN): Likewise.
59542         * tests/test-vasprintf-posix.c (NaN): Likewise.
59543         * modules/isnand-nolibm (Depends-on): Add math.
59544         * modules/isnanf-nolibm (Depends-on): Likewise.
59545         * modules/isnanl (Depends-on): Likewise.
59546         * modules/isnanl-nolibm (Depends-on): Likewise.
59547         * modules/snprintf-posix-tests (Depends-on): Likewise.
59548         * modules/sprintf-posix-tests (Depends-on): Likewise.
59549         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
59550         * modules/vsprintf-posix-tests (Depends-on): Likewise.
59551         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
59552         * modules/vasprintf-posix-tests (Depends-on): Likewise.
59553
59554 2008-03-31  Bruno Haible  <bruno@clisp.org>
59555
59556         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
59557         * doc/posix-functions/strtod.texi: Likewise.
59558
59559 2008-03-31  Bruno Haible  <bruno@clisp.org>
59560
59561         * tests/test-strtod.c (main): Don't use C99 syntax.
59562
59563 2008-03-31  Bruno Haible  <bruno@clisp.org>
59564
59565         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
59566         Reported by Eric Blake.
59567
59568 2008-03-31  Jim Meyering  <meyering@redhat.com>
59569
59570         Don't compare actual signbit return values.
59571         * tests/test-strtod.c (main): Rather, compare only their
59572         zero/non-zero nature.
59573
59574 2008-03-31  Eric Blake  <ebb9@byu.net>
59575
59576         More strtod documentation.
59577         * doc/posix-functions/strtod.texi (strtod): Interpret more test
59578         failures as distinct bugs.
59579
59580 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
59581
59582         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
59583         Problem reported by Erik Benada in
59584         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
59585
59586 2008-03-30  Bruno Haible  <bruno@clisp.org>
59587
59588         * tests/test-strtod.c: Add comments about which assertion fails on which
59589         platform.
59590         * doc/posix-functions/strtod.texi: Add info about many more platforms.
59591
59592 2008-03-30  Eric Blake  <ebb9@byu.net>
59593
59594         Test signbit behavior on zeros.
59595         * tests/test-signbit.c (test_signbitf): Add tests for zero.
59596         (test_signbitd, test_signbitl): Likewise.
59597
59598         More strtod touchups.
59599         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
59600         sign of negative underflow, for now.  Use .5, not .1.
59601         * doc/posix-functions/strtod.texi (strtod): Mention these
59602         limitations.
59603         Reported by Jim Meyering.
59604
59605 2008-03-30  Bruno Haible  <bruno@clisp.org>
59606
59607         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
59608         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
59609
59610 2008-03-30  Bruno Haible  <bruno@clisp.org>
59611
59612         Avoid failure when attempting to return empty iconv results on some
59613         platforms.
59614         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
59615         allocation, don't report ENOMEM when the resulting string is empty.
59616
59617 2008-03-30  Bruno Haible  <bruno@clisp.org>
59618
59619         Fix buffer overrun.
59620         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
59621         Don't consider the width for tmp_length. Check count against tmp_length
59622         before doing the padding. Ensure enough allocation during padding.
59623
59624 2008-03-30  Eric Blake  <ebb9@byu.net>
59625
59626         strtod touchups.
59627         * lib/strtod.c (strtod): Avoid compiler warnings.
59628         Reported by Jim Meyering.
59629
59630 2008-03-30  Bruno Haible  <bruno@clisp.org>
59631
59632         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
59633         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
59634         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
59635         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
59636         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
59637         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
59638         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
59639         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
59640
59641         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
59642         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
59643         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
59644         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
59645         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
59646         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
59647         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
59648         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
59649
59650         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
59651         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
59652         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
59653         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
59654         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
59655         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
59656         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
59657         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
59658
59659         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
59660         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
59661
59662         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
59663         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
59664
59665         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
59666         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
59667
59668         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
59669         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
59670         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
59671
59672         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
59673         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
59674         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
59675
59676         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
59677         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
59678         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
59679
59680         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
59681         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
59682         * modules/vasprintf (Depends-on): Add EOVERFLOW.
59683
59684         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
59685         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
59686         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
59687         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
59688         (Depends-on): Add EOVERFLOW.
59689         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
59690         (Depends-on): Add EOVERFLOW.
59691         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
59692         (Depends-on): Add EOVERFLOW.
59693         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
59694         (Depends-on): Add EOVERFLOW.
59695         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
59696         (Depends-on): Add EOVERFLOW.
59697         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
59698         (Depends-on): Add EOVERFLOW.
59699         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
59700         (Depends-on): Add EOVERFLOW.
59701         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
59702         (Depends-on): Add EOVERFLOW.
59703
59704         * lib/sprintf.c (EOVERFLOW): Remove fallback.
59705         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
59706         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
59707
59708         * lib/snprintf.c (EOVERFLOW): Remove fallback.
59709         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
59710         * modules/snprintf (Depends-on): Add EOVERFLOW.
59711
59712         * lib/poll.c (EOVERFLOW): Remove fallback.
59713         * modules/poll (Depends-on): Add EOVERFLOW.
59714
59715         * lib/getugroups.c (EOVERFLOW): Remove fallback.
59716         * modules/getugroups (Depends-on): Add EOVERFLOW.
59717
59718         * lib/getdelim.c (EOVERFLOW): Remove fallback.
59719         * modules/getdelim (Depends-on): Add EOVERFLOW.
59720
59721         * lib/ftell.c (EOVERFLOW): Remove fallback.
59722         * modules/ftell (Depends-on): Add EOVERFLOW.
59723
59724         * lib/fprintf.c (EOVERFLOW): Remove fallback.
59725         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
59726         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
59727
59728         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
59729
59730         * modules/EOVERFLOW-tests: New file.
59731         * tests/test-EOVERFLOW.c: New file.
59732
59733         * modules/EOVERFLOW: New file.
59734         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
59735
59736 2008-03-30  Bruno Haible  <bruno@clisp.org>
59737
59738         Fix bug introduced on 2007-06-10.
59739         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
59740         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
59741
59742 2008-03-30  Bruno Haible  <bruno@clisp.org>
59743
59744         Improve freadseek's efficiency after ungetc.
59745         * lib/freadseek.c: Include freadahead.h.
59746         (freadptrinc): New function, extracted from freadseek.
59747         (freadseek): Use it in a loop. Use freadahead to determine the number
59748         of loop iterations.
59749         * modules/freadseek (Depends-on): Add freadahead.
59750         (configure.ac): Require AC_C_INLINE.
59751
59752 2008-03-30  Bruno Haible  <bruno@clisp.org>
59753
59754         * lib/freadseek.c (freadseek): Don't ignore the return value of
59755         freadptr.
59756
59757 2008-03-29  Eric Blake  <ebb9@byu.net>
59758
59759         Add hex float support.
59760         * modules/strtod (Depends-on): Add c-ctype.
59761         (Link): Mention POW_LIB.
59762         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
59763         whitespace between 'e' and exponent.
59764         * tests/test-strtod.c (main): Enable hex float tests.
59765         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
59766         now provides.
59767
59768         Document various strtod bugs, with some fixes.
59769         * doc/posix-functions/strtod.texi (strtod): Document bugs with
59770         "-0x", "inf", "nan", and hex constants.
59771         * doc/posix-functions/atof.texi (atof): Likewise.
59772         * modules/stdlib (Makefile.am): Support strtod.
59773         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
59774         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
59775         detect additional strtod bugs.
59776         * lib/stdlib.in.h (rpl_strtod): Add declarations.
59777         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
59778         bool where appropriate.  Parse 'inf' and 'nan'.
59779         * tests/test-strtod.c: New file.
59780         * modules/strtod (Depends-on): Add stdbool, stdlib.
59781         (configure.ac): Turn on module indicator.
59782         * modules/strtod-tests: New module.
59783
59784 2008-03-29  Eric Blake  <ebb9@byu.net>
59785
59786         Fix ftell on mingw.
59787         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
59788         * modules/ftell-tests (Depends-on): Add binary-io.
59789         * modules/ftello-tests (Depends-on): Likewise.
59790         * tests/test-ftell.c (main): Enhance test to cover behavior after
59791         ungetc.  Enforce binary mode.
59792         * tests/test-ftello.c (main): Likewise.
59793
59794         Pass test-freadseek on cygwin.
59795         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
59796         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
59797         ungetc buffer.
59798
59799         * tests/test-fflush2.c (main): Fix typo.
59800
59801 2008-03-29  Bruno Haible  <bruno@clisp.org>
59802
59803         * tests/test-fflush2.c (main): Temporarily disable the contents of
59804         this test.
59805         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
59806         Reported by Eric Blake.
59807
59808 2008-03-28  Simon Josefsson  <simon@josefsson.org>
59809
59810         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
59811         (GC_SHA224_DIGEST_SIZE): Add.
59812
59813         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
59814         (gc_hash_digest_length): Likewise.
59815         (gc_hash_buffer): Likewise.
59816
59817 2008-03-25  Bruno Haible  <bruno@clisp.org>
59818
59819         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
59820         detail which gettext release to use.
59821         Reported by Simon Josefsson.
59822
59823 2008-03-26  Jim Meyering  <meyering@redhat.com>
59824
59825         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
59826         * modules/gnumakefile (clean-GNUmakefile): Also, use
59827         test ... && ... || : syntax rather than if-then ... fi.
59828
59829         gnumakefile: Don't double-quote-expand $(VPATH) value.
59830         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
59831
59832 2008-03-24  Eric Blake  <ebb9@byu.net>
59833
59834         Alter GNUmakefile to install into top directory.
59835         * modules/maintainer-makefile: Split, and add dependency...
59836         * modules/gnumakefile: to this new module.
59837         * build-aux/GNUmakefile: Move...
59838         * top/GNUmakefile: ...here.
59839         * build-aux/maint.mk: Move...
59840         * top/maint.mk: ...here.
59841         * MODULES.html.sh (Support for maintaining...): Document new
59842         module.
59843
59844 2008-03-23  Bruno Haible  <bruno@clisp.org>
59845
59846         * gnulib-tool: New options --vc-files, --no-vc-files.
59847         (func_usage): Document them.
59848         (vc_files): New variable.
59849         (func_import): Consider vc_files.
59850         (func_create_testdir): Set vc_files to empty.
59851         Suggested by Jim Meyering and Karl Berry.
59852
59853 2008-03-23  Bruno Haible  <bruno@clisp.org>
59854
59855         Fix regex compilation error on HP-UX 11.
59856         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
59857         * modules/regex (Files): Add m4/mbstate_t.m4.
59858         Reported by Ton Voon <ton.voon@altinity.com>.
59859
59860 2008-03-23  Bruno Haible  <bruno@clisp.org>
59861
59862         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
59863
59864 2008-03-23  Eric Blake  <ebb9@byu.net>
59865             Bruno Haible  <bruno@clisp.org>
59866
59867         Install files from top/ in the destination directory.
59868         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
59869         augmentation also for the files from top/.
59870         (func_import, func_create_testdir): Rewrite file names:
59871         top/filename -> filename.
59872
59873 2008-03-23  Bruno Haible  <bruno@clisp.org>
59874
59875         Tweak "gnulib --version" output.
59876         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
59877
59878 2008-03-23  Bruno Haible  <bruno@clisp.org>
59879
59880         Tweak "gnulib --version" output.
59881         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
59882         rather than contents of ChangeLog, when possible.
59883
59884 2008-03-21  Eric Blake  <ebb9@byu.net>
59885
59886         More --version tweaks.
59887         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
59888         date of last ChangeLog entry.
59889
59890 2008-03-21  Jim Meyering  <meyering@redhat.com>
59891
59892         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
59893
59894 2008-03-20  Eric Blake  <ebb9@byu.net>
59895
59896         VPATH fix.
59897         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
59898
59899 2008-03-20  Simon Josefsson  <simon@josefsson.org>
59900
59901         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
59902         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
59903
59904 2008-03-20  Eric Blake  <ebb9@byu.net>
59905
59906         Sync GNUmakefile with coreutils.
59907         * build-aux/GNUmakefile (have-Makefile): Rename...
59908         (_have-Makefile): ...to this, for namespace consideration.
59909         (GNUmakefile.cfg): Include, if present.
59910         (_autoreconf): Define a default.
59911         (_is-dist-target): New rule for rebuilds to pick up intra-release
59912         version.
59913         (maint-cfg.mk): Rename...
59914         (cfg.mk): ...to this.
59915
59916 2008-03-18  Jim Meyering  <meyering@redhat.com>
59917
59918         New script and module: mktempd
59919         * MODULES.html.sh (maint+release support): Add mktempd.
59920         * build-aux/mktempd: New file.
59921         * modules/mktempd: New file.
59922
59923 2008-03-15  Jim Meyering  <meyering@redhat.com>
59924
59925         Undo last change.
59926         * lib/sha1.c, lib/md5.c: 63 != ~63.
59927         Reported by Andreas Schwab.
59928
59929         sha1.c, md5.c: Hoist a redundant expression.
59930         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
59931         "ctx->buflen" only once, before calling *_process_block.
59932         * lib/md5.c (md5_process_bytes): Likewise.
59933
59934 2008-03-14  Eric Blake  <ebb9@byu.net>
59935
59936         Bump copyright year in files generated by gnulib-tool.
59937         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
59938         gnulib-tool, rather than hard-coding it.
59939
59940         Fix 'gnulib-tool --version' output to work with git.
59941         * gnulib-tool (func_gnulib_dir): New function, extracted from...
59942         (startup): ...here.
59943         (func_version): Use it to invoke git-version-gen, rather than
59944         relying on CVS keyword expansion.  Modernize wording.
59945         (cvsdatestamp, last_checkin_date, version): Kill unused
59946         variables.
59947
59948 2008-03-12  Jim Meyering  <meyering@redhat.com>
59949
59950         Recognize optional cast of the argument to free.
59951         * build-aux/useless-if-before-free: Update regexps.
59952
59953         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
59954
59955 2008-03-11  Bruno Haible  <bruno@clisp.org>
59956
59957         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
59958         by a single package.
59959         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
59960         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
59961         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
59962         Reported by Sam Steingold <sds@gnu.org>.
59963
59964 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
59965
59966         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
59967         repositories.
59968
59969 2008-03-11  Bruno Haible  <bruno@clisp.org>
59970
59971         Avoid conflicts between local macro definitions.
59972         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
59973         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
59974
59975 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
59976             Bruno Haible  <bruno@clisp.org>
59977
59978         Make va_copy work with some version of xlc on AIX 5.1.
59979         * lib/stdarg.in.h: New file.
59980         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
59981         On AIX, use a <stdarg.h> file substitute.
59982         * modules/stdarg (Files): Add lib/stdarg.in.h.
59983         (Depends-on): Add include_next.
59984         (Makefile.am): Build a stdarg.h substitute if requested.
59985         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
59986
59987 2008-03-10  Bruno Haible  <bruno@clisp.org>
59988
59989         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
59990         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
59991         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
59992
59993 2008-03-10  Bruno Haible  <bruno@clisp.org>
59994
59995         * modules/stdlib (Depends-on): Add include_next, remove
59996         absolute-header.
59997
59998 2008-03-09  Bruno Haible  <bruno@clisp.org>
59999
60000         * lib/freadahead.h (freadahead): Document more precisely.
60001         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
60002         the sum of both buffer sizes.
60003         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
60004         * NEWS: Document the change.
60005
60006 2008-03-09  Bruno Haible  <bruno@clisp.org>
60007
60008         Extend freadptr to return also the buffer size.
60009         * lib/freadptr.h (freadptr): Add sizep argument.
60010         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
60011         (freadptr): Add sizep argument. Determine buffer size like freadahead
60012         does.
60013         * tests/test-freadptr.c: Don't include freadahead.h.
60014         (main): Adapt for new calling convention of freadptr.
60015         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
60016         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
60017         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
60018         tests/test-freadptr2.sh.
60019         (Depends): Remove freadahead.
60020         (TESTS): Add test-freadptr2.sh.
60021         (check_PROGRAMS): Add test-freadptr2.
60022
60023 2008-03-09  Bruno Haible  <bruno@clisp.org>
60024
60025         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
60026         Report and solution by Simon Josefsson.
60027
60028 2008-03-06  Bruno Haible  <bruno@clisp.org>
60029
60030         Make fflush after ungetc work on BSD platforms.
60031         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
60032         * tests/test-fflush2.c: New file.
60033         * tests/test-fflush2.sh: New file.
60034         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
60035         tests/test-fflush2.c.
60036         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
60037         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
60038
60039 2008-03-06  Eric Blake  <ebb9@byu.net>
60040
60041         Likewise for ftello.
60042         * modules/ftello (Dependencies): Add extensions.
60043         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
60044
60045 2008-03-06  Bruno Haible  <bruno@clisp.org>
60046
60047         * modules/fseeko (Dependencies): Add extensions.
60048         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
60049         Needed on glibc systems.
60050
60051 2008-03-06  Bruno Haible  <bruno@clisp.org>
60052
60053         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
60054         email address.
60055         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
60056
60057 2008-03-06  Bruno Haible  <bruno@clisp.org>
60058
60059         * users.txt: Add libgnupdf.
60060
60061 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
60062
60063         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
60064         (Header File Substitutes, Function Substitutes,
60065         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
60066         (Build robot for gnulib): Fix typo.
60067
60068 2008-03-06  Bruno Haible  <bruno@clisp.org>
60069
60070         * doc/gnulib-tool.texi (VCS Issues): Small updates.
60071         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
60072
60073 2008-03-06  Bruno Haible  <bruno@clisp.org>
60074
60075         * doc/func.texi: New file, extracted from doc/gnulib.texi.
60076         * doc/gnulib.texi: Include it.
60077
60078 2008-03-06  Simon Josefsson  <simon@josefsson.org>
60079
60080         * modules/func (License): Change license to unlimited; there was
60081         no LGPL parts in the module anyway.
60082
60083 2008-03-06  Simon Josefsson  <simon@josefsson.org>
60084
60085         * modules/__func__: Renamed to modules/func.
60086         * modules/__func__-tests: Renamed to modules/func-tests.
60087         * tests/test-__func__.c: Renamed to tests/test-func.c.
60088         * m4/__func__.m4: Renamed to m4/func.m4.
60089         * doc/gnulib.texi (__func__): Section renamed to func.
60090         Suggested by Eric Blake <ebb9@byu.net>.
60091
60092 2008-03-06  Simon Josefsson  <simon@josefsson.org>
60093
60094         * doc/gnulib.texi (__func__): Use C99 terminology when talking
60095         about __func__.  Make example self-contained.  Suggested by Eric
60096         Blake <ebb9@byu.net>.
60097
60098         * tests/test-__func__.c (main): Avoid extraneous () around __func.
60099         Suggested by Eric Blake <ebb9@byu.net>.
60100
60101 2008-03-06  Simon Josefsson  <simon@josefsson.org>
60102
60103         * modules/__func__: New file.
60104         * modules/__func__-tests: New file.
60105         * tests/test-__func__.c: New file.
60106         * m4/__func__.m4: New file.
60107         * doc/gnulib.texi (__func__): Document __func__ module.
60108
60109 2008-03-05  Simon Josefsson  <simon@josefsson.org>
60110
60111         * modules/byteswap (License): Re-license as LGPLv2+.
60112
60113 2008-03-05  Simon Josefsson  <simon@josefsson.org>
60114
60115         * doc/Makefile: Add pdf target.
60116
60117 2008-03-05  Simon Josefsson  <simon@josefsson.org>
60118
60119         * modules/inline (License): Use 'unlimited', since there are only
60120         *.m4 files in this module.
60121
60122 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
60123             Bruno Haible  <bruno@clisp.org>
60124
60125         Add support for HP C 7.1 on OpenVMS 8.3.
60126         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
60127
60128 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
60129
60130         Update VMS specifics.
60131         * lib/getopt.c [VMS]: Remove include of unixlib.h.
60132
60133 2008-03-02  Jim Meyering  <meyering@redhat.com>
60134
60135         Remove the last dependency on the "free" module.
60136         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
60137         Reported by Bob Proulx.
60138
60139         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
60140
60141         Remove useless "if" tests before free.  Deprecate "free" module.
60142         * doc/posix-functions/free.texi: Mention that this
60143         module is no longer useful.
60144         * modules/free (Notice): Say this module is obsolete.
60145         * modules/readutmp (Depends-on): Remove free.
60146         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
60147         * lib/putenv.c (putenv): Likewise.
60148         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
60149         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
60150         * tests/test-c-strcasestr.c (main): Likewise.
60151         * tests/test-c-strstr.c (main): Likewise.
60152         * tests/test-mbscasestr1.c (main): Likewise.
60153         * tests/test-mbscasestr2.c (main): Likewise.
60154         * tests/test-mbsstr1.c (main): Likewise.
60155         * tests/test-mbsstr2.c (main): Likewise.
60156         * tests/test-memmem.c (main): Likewise.
60157         * tests/test-strcasestr.c (main): Likewise.
60158         * tests/test-striconv.c (main): Likewise.
60159         * tests/test-striconveh.c (main): Likewise.
60160         * tests/test-striconveha.c (main): Likewise.
60161         * tests/test-strstr.c (main): Likewise.
60162
60163         * build-aux/git-version-gen: Adjust a comment and the Usage string.
60164
60165         bootstrap: sync from coreutils again
60166         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
60167
60168 2008-03-01  Jim Meyering  <meyering@redhat.com>
60169
60170         bootstrap: sync from coreutils
60171         * build-aux/bootstrap (update_po_files): Copy a .po file into place
60172         also when the target doesn't exist.
60173
60174 2008-03-01  Eric Blake  <ebb9@byu.net>
60175
60176         Fix bugs in last patch.
60177         * lib/memchr2.c (memchr2): Fix typo.
60178         * tests/test-memchr2.c: Test previous bug, and don't use GNU
60179         extension.
60180         Reported by Bruce Korb.
60181
60182         New module 'memchr2'.
60183         * modules/memchr2: New file.
60184         * modules/memchr2-tests: Likewise.
60185         * lib/memchr2.h: Likewise.
60186         * lib/memchr2.c: Likewise, based on memchr.c.
60187         * tests/test-memchr2.c: New test.
60188         * MODULES.html.sh (String handling): Add memchr2.
60189
60190 2008-02-29  Bruno Haible  <bruno@clisp.org>
60191
60192         * modules/freadseek-tests: New file.
60193         * tests/test-freadseek.sh: New file.
60194         * tests/test-freadseek.c: New file.
60195
60196         New module 'freadseek'.
60197         * modules/freadseek: New file.
60198         * lib/freadseek.h: New file.
60199         * lib/freadseek.c: New file.
60200         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
60201
60202 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
60203
60204         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
60205         wydawca.
60206
60207         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
60208         program_invocation_name and program_invocation_short_name are
60209         present.
60210
60211 2008-02-28  Bruno Haible  <bruno@clisp.org>
60212
60213         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
60214         * tests/test-freadptr.sh: Also test non-seekable stdin.
60215
60216 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
60217
60218         * build-aux/bootstrap (source_base, m4_base)
60219         (doc_base, tests_base): New variables.
60220         (gnulib_tool_options): Do not hardcode base directories, use
60221         the above variables instead.
60222
60223 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
60224
60225         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
60226
60227 2008-02-28  Bruno Haible  <bruno@clisp.org>
60228
60229         * modules/freadptr-tests: New file.
60230         * tests/test-freadptr.sh: New file.
60231         * tests/test-freadptr.c: New file.
60232
60233         New module 'freadptr'.
60234         * modules/freadptr: New file.
60235         * lib/freadptr.h: New file.
60236         * lib/freadptr.c: New file.
60237         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
60238
60239 2008-02-26  Karl Berry  <karl@freefriends.org>
60240
60241         Sync from Libtool:
60242         * libltdl/argz.c (argz_add, argz_count): New functions.
60243         * libltdl/argz.in.h: Declare them.
60244         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
60245
60246 2008-02-22  Bruno Haible  <bruno@clisp.org>
60247
60248         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
60249         is a pointer type.  Needed for HP-UX 10.
60250         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
60251         * doc/posix-functions/gmtime_r.texi: Likewise.
60252         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
60253
60254 2008-02-24  Bruno Haible  <bruno@clisp.org>
60255
60256         * modules/environ-tests: New file.
60257         * tests/test-environ.c: New file.
60258
60259         New module 'environ'.
60260         * modules/environ: New file.
60261         * lib/unistd.in.h (environ): New declaration.
60262         * m4/environ.m4: New file.
60263         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
60264         after use.
60265         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
60266         HAVE_DECL_ENVIRON.
60267         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
60268         HAVE_DECL_ENVIRON.
60269         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
60270         wrong claim that 'environ' is missing on some systems.
60271         * modules/execute (Depends-on): Add environ.
60272         * lib/execute.c (environ): Remove fallback declaration.
60273         * modules/pipe (Depends-on): Add environ.
60274         * lib/pipe.c (environ): Remove fallback declaration.
60275         * modules/setenv (Depends-on): Add environ.
60276         * lib/setenv.c (environ): Remove fallback declaration.
60277         * modules/unsetenv (Depends-on): Add environ.
60278         * lib/unsetenv.c (environ): Remove fallback declaration.
60279         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
60280         m4/environ.m4.
60281         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
60282         (gl_PREREQ_UNSETENV): Likewise.
60283
60284 2008-02-24  Bruno Haible  <bruno@clisp.org>
60285
60286         * doc/posix-functions/environ.texi: Document the MacOS X problem.
60287
60288 2008-02-20  Bob Proulx  <bob@proulx.com>
60289
60290         Enable use of older two part flavor 'git describe'.
60291         * build-aux/git-version-gen: If using the older two part flavor of
60292         git version then recreate the third part now present in the
60293         newer three part flavor of git describe.
60294
60295 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
60296
60297         * lib/fts.c (fts_build): Typo correction to comment.
60298
60299 2008-02-17  Bruno Haible  <bruno@clisp.org>
60300
60301         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
60302         generating no-op conflicts.
60303
60304 2008-02-17  Bruno Haible  <bruno@clisp.org>
60305
60306         Speed up by 10%.
60307         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
60308         result_entries, rather than an index-based loop.
60309
60310 2008-02-17  Bruno Haible  <bruno@clisp.org>
60311
60312         Speed up by 25%.
60313         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
60314         'hashcode_cached'.
60315         (entry_create): New function.
60316         (entry_hashcode): Use the cached hashcode if possible.
60317         (read_changelog_file, try_split_merged_entry): Use entry_create.
60318
60319 2008-02-17  Bruno Haible  <bruno@clisp.org>
60320
60321         Speed up from O(n^2) to O(n) for long ChangeLog files.
60322         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
60323         (read_changelog_file): Change implementation of entries_reversed list
60324         to rbtreehash.
60325         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
60326
60327 2008-02-17  Bruno Haible  <bruno@clisp.org>
60328
60329         New option --split-merged-entry.
60330         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
60331         (find_paragraph_end, try_split_merged_entry): New functions.
60332         (long_options): Add option --split-merged-entry.
60333         (usage): Document option --split-merged-entry.
60334         (main): Implement option --split-merged-entry.
60335         Reported by Eric Blake.
60336
60337 2008-02-17  Bruno Haible  <bruno@clisp.org>
60338
60339         * lib/git-merge-changelog.c: Include c-strstr.h.
60340         (main): Support the "git pull --rebase" situation.
60341         * modules/git-merge-changelog (Depends-on): Add c-strstr.
60342         Reported by Eric Blake.
60343
60344 2008-02-16  Eric Blake  <ebb9@byu.net>
60345
60346         Avoid doubling \ in common case of "c-maybe" quoting style.
60347         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
60348         eliding outer quotes.
60349         * lib/quotearg.h: Document this.
60350         * tests/test-quotearg.c (result_strings, inputs, results_g)
60351         (flag_results, locale_results): Test it by adding a new string to
60352         each test group.
60353         (compare_strings): Test new string.
60354
60355 2008-02-13  Eric Blake  <ebb9@byu.net>
60356
60357         Avoid trigraph quoting in default output.
60358         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
60359         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
60360         unless explicitly requested.
60361         * tests/test-quotearg.c (flag_results, main): Add additional tests.
60362
60363 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
60364
60365         Don't rely on signed integer overflowing to negative value.
60366         * lib/getugroups.c (getugroups): Include <limits.h>.
60367         Instead, compare against INT_MAX, and increment only if the test passes.
60368
60369 2008-02-13  Jim Meyering  <meyering@redhat.com>
60370         and Eric Blake  <ebb9@byu.net>
60371
60372         Avoid shadowing warning and compile errors on Linux.
60373         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
60374         forwarding macros on Linux.
60375         (dcgettext): Define a stub, for Linux.
60376         (results_g, main): Avoid warnings.
60377
60378 2008-02-12  Eric Blake  <ebb9@byu.net>
60379
60380         Silence warning in last patch.
60381         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
60382
60383         Quotearg part 4: add tests, fix c-maybe colon quoting.
60384         * lib/quotearg.h: Improve documentation.
60385         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
60386         escapes when adding outer quotes.  When quoting trigraphs, use
60387         valid C notation.  When quoting NUL, omit extra characters if next
60388         character is not digit.  Alter prototype.
60389         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
60390         callers.
60391         * modules/quotearg-tests: New module.
60392         * tests/test-quotearg.c: New test.
60393
60394 2008-02-07  Eric Blake  <ebb9@byu.net>
60395
60396         Quotearg part 3: add flag to control outer quote elision.
60397         * lib/quotearg.h (c_maybe_quoting_style): New style.
60398         (enum quoting_flags): Better documentation of flags.
60399         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
60400         c-maybe style.
60401         (quotearg_buffer_restyled): Handle new flag to elide outer
60402         quotes.
60403
60404         Quotearg part 2: add flag that can control NUL elision.
60405         * lib/quotearg.h (set_quoting_flags): New prototype.
60406         * lib/quotearg.c (struct quoting_options): Add flag field.
60407         (set_quoting_flags): New function.
60408         (quotearg_buffer_restyled): Add flags parameter.
60409         (quotearg_alloc_mem): Set the flag if length cannot be returned.
60410         (quotearg_n_options): Set the flag, since length cannot be
60411         returned.
60412         (quoting_options_from_style): Default flags correctly.
60413
60414         Quotearg part 1: more wrappers, restore quotearg_char state.
60415         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
60416         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
60417         (quotearg_colon_mem): New wrappers.
60418         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
60419         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
60420         functions.
60421         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
60422         (quotearg_colon_mem): New functions.
60423
60424 2008-02-11  Bruno Haible  <bruno@clisp.org>
60425
60426         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
60427         library in the current directory: it does not work with parallel make.
60428         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60429
60430 2008-02-11  Bruno Haible  <bruno@clisp.org>
60431
60432         * .gitattributes: New file.
60433
60434 2008-02-11  Jim Meyering  <meyering@redhat.com>
60435
60436         useless-if-before-free: Fix reversed exit values.
60437         * build-aux/useless-if-before-free: Use correct values
60438         for EXIT_MATCH and EXIT_NO_MATCH.
60439
60440         * build-aux/useless-if-before-free: Close stdout carefully.
60441
60442 2008-02-10  Bruno Haible  <bruno@clisp.org>
60443
60444         New module 'git-merge-changelog'.
60445         * modules/git-merge-changelog: New file.
60446         * lib/git-merge-changelog.c: New file.
60447
60448 2008-02-10  Jim Meyering  <meyering@redhat.com>
60449
60450         useless-if-before-free: New option: --list (-l).
60451
60452         useless-if-before-free: Don't exit immediately upon open failure.
60453         * build-aux/useless-if-before-free: Exit 2 for errors.
60454         Upon failure to open a file, don't exit immediately.
60455         Rather, just warn and continue with any remaining files.
60456
60457 2008-02-10  Bruno Haible  <bruno@clisp.org>
60458
60459         New abstract list operation 'node_set_value'.
60460         * lib/gl_list.h (gl_list_node_set_value): New function.
60461         (struct gl_list_implementation): New field node_set_value.
60462         * lib/gl_list.c (gl_list_node_set_value): New function.
60463         * lib/gl_array_list.c (gl_array_node_set_value): New function.
60464         (gl_array_list_implementation): Update.
60465         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
60466         (gl_carray_list_implementation): Update.
60467         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
60468         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
60469         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
60470         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
60471         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
60472         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
60473         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
60474         Update.
60475         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
60476         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
60477         (gl_sublist_list_implementation): Update.
60478
60479 2008-02-10  Bruno Haible  <bruno@clisp.org>
60480
60481         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
60482         Needed when ELEMENT is #defined to 'some_type *'.
60483
60484 2008-02-10  Jim Meyering  <meyering@redhat.com>
60485
60486         New script and module: useless-if-before-free
60487         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
60488         * build-aux/useless-if-before-free: New file.
60489         * modules/useless-if-before-free: New file.
60490
60491         * build-aux/gitlog-to-changelog: Use committer date, not author date.
60492
60493         xstrtol_error: Fix typo.
60494         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
60495         s/exit_failure/exit_status/.
60496
60497 2008-02-09  Jim Meyering  <meyering@redhat.com>
60498
60499         New script and module: gitlog-to-changelog
60500         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
60501         * modules/gitlog-to-changelog: New file.
60502         * build-aux/gitlog-to-changelog: New file.
60503
60504 2008-02-08  Jim Meyering  <meyering@redhat.com>
60505
60506         Avoid two "parameter unused" warnings.
60507         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
60508         Mark "st" as used.
60509
60510         Use "git COMMAND", not "git-COMMAND".
60511         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
60512         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
60513         * build-aux/git-version-gen: Use "git status", not "git-status".
60514
60515 2008-02-07  Bruno Haible  <bruno@clisp.org>
60516
60517         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
60518         Avoids a crash on Windows Vista.
60519         Reported by Adam Strzelecki <ono@java.pl> via
60520         Simon Josefsson <simon@josefsson.org>.
60521
60522 2008-02-06  Bruno Haible  <bruno@clisp.org>
60523
60524         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
60525         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
60526         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
60527         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
60528         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
60529         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60530         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
60531         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
60532         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60533         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60534         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60535         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60536         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60537         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60538         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60539         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
60540         left-adjust flag.
60541         * tests/test-snprintf-posix.h (test_function): Likewise.
60542         * tests/test-sprintf-posix.h (test_function): Likewise.
60543         * tests/test-vasprintf-posix.c (test_function): Likewise.
60544         * doc/posix-functions/fprintf.texi: Update.
60545         * doc/posix-functions/printf.texi: Update.
60546         * doc/posix-functions/snprintf.texi: Update.
60547         * doc/posix-functions/sprintf.texi: Update.
60548         * doc/posix-functions/vfprintf.texi: Update.
60549         * doc/posix-functions/vprintf.texi: Update.
60550         * doc/posix-functions/vsnprintf.texi: Update.
60551         * doc/posix-functions/vsprintf.texi: Update.
60552         Reported by Peter Fales <psfales@alcatel-lucent.com>.
60553
60554 2008-02-06  Bruno Haible  <bruno@clisp.org>
60555
60556         Fix bug introduced on 2008-01-26.
60557         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
60558
60559 2008-02-06  Bruno Haible  <bruno@clisp.org>
60560
60561         Fix bug introduced on 2007-06-10.
60562         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
60563         !NEED_PRINTF_FLAG_ZERO.
60564
60565 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
60566
60567         getloadavg: use libperfstat on AIX5
60568         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
60569
60570 2008-02-03  Bruno Haible  <bruno@clisp.org>
60571
60572         * lib/diffseq.h: Add comments about required #includes.
60573         Reported by Michael Biggs <gnulib@doubleplum.net>.
60574
60575 2008-02-01  Bruno Haible  <bruno@clisp.org>
60576
60577         * users.txt: Add gnuit.
60578
60579 2008-01-31  Bruno Haible  <bruno@clisp.org>
60580
60581         * lib/md4.c (set_uint32): Mark as inline.
60582         * lib/md5.c (set_uint32): Likewise.
60583         * lib/sha1.c (set_uint32): Likewise.
60584         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
60585         * m4/md5.m4 (gl_MD5): Likewise.
60586         * m4/sha1.m4 (gl_SHA1): Likewise.
60587
60588 2008-01-31  Jim Meyering  <meyering@redhat.com>
60589
60590         Use "sizeof VAR", rather than a literal "4".
60591         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
60592         * lib/md4.c (md4_read_ctx): Likewise.
60593         * lib/sha1.c (sha1_read_ctx): Likewise.
60594
60595 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60596
60597         * tests/test-sha1.c: New file, based on test-md5.c.
60598
60599         * modules/crypto/sha1-tests: New file.
60600
60601 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60602
60603         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
60604
60605 2008-01-31  Jim Meyering  <meyering@redhat.com>
60606
60607         Prefer "sizeof v" over the equivalent "4".
60608         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
60609         * lib/md5.c (set_uint32): Likewise.
60610         * lib/sha1.c (set_uint32): Likewise.
60611
60612 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60613
60614         * lib/sha1.c (set_uint32): Mark function as static.
60615
60616 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60617
60618         md2: clarify comments to say that alignment is not required.
60619         * lib/md2.h: Remove warning about alignment in comment.
60620         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
60621         never been required.
60622
60623 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60624
60625         md4: adapt alignment constraint fix from sha1.
60626         * lib/md4.c (set_uint32): New function, from sha1.c
60627         (md4_read_ctx): Use it.
60628         (md4_finish_ctx): Doc fix.
60629         * lib/md4.h: Doc fix.
60630
60631 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60632
60633         md5: adapt alignment constraint fix from sha1.
60634         * lib/md5.c (set_uint32): New function, from sha1.c
60635         (md5_read_ctx): Use it.
60636         (md5_finish_ctx): Doc fix.
60637         * lib/md5.h: Doc fix.
60638
60639 2008-01-30  Peter Palfrader  <weasel@debian.org>
60640
60641         sha1: remove the result buffer alignment constraint
60642         * lib/sha1.c (set_uint32): New function.
60643         (sha1_read_ctx): Rewrite to remove the result buffer alignment
60644         constraint.
60645         (sha1_finish_ctx): Remove comment warning about alignment constraint.
60646         * lib/sha1.h: Likewise.
60647
60648 2008-01-30  Andreas Schwab  <schwab@suse.de>
60649             Bruno Haible  <bruno@clisp.org>
60650
60651         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
60652         correct definition of LDBL_MIN_EXP.
60653
60654 2008-01-30  Karl Berry  <karl@gnu.org>
60655
60656         * config/srclist-update: try to preserve x bit on updates.
60657         * config/srclistvars.sh: update for karl.
60658
60659 2008-01-29  Jim Meyering  <meyering@redhat.com>
60660
60661         vasnprintf.c: Avoid warning about unused label
60662         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
60663         "overflow" label definition and associated code with the
60664         same cpp condition that guards the sole use of that label.
60665
60666 2008-01-26  Bruno Haible  <bruno@clisp.org>
60667
60668         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
60669         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
60670         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
60671         * lib/isnanl-nolibm.h (isnanl): Likewise.
60672         Reported by Paul Eggert <eggert@cs.ucla.edu>.
60673
60674 2008-01-26  Bruno Haible  <bruno@clisp.org>
60675
60676         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
60677         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
60678
60679 2008-01-26  Bruno Haible  <bruno@clisp.org>
60680
60681         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
60682         GCC >= 4.0 built-in.
60683         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
60684
60685 2008-01-26  Bruno Haible  <bruno@clisp.org>
60686
60687         Rename isnan, applicable to 'double' only, to isnand.
60688         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
60689         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
60690         (configure.ac): Update.
60691         (Include): Replace "isnan.h" with "isnand.h".
60692         * m4/isnand.m4: Renamed from m4/isnan.m4.
60693         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
60694         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
60695         instead of isnan.c.
60696         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
60697         instead of HAVE_ISNAN_IN_LIBC.
60698         (isnand): Renamed from isnan.
60699         * lib/isnand.c: New file.
60700         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
60701         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
60702         (Makefile.am): Update.
60703         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
60704         Include isnand.h instead of isnan.h.
60705         (main): Test isnand instead of isnan.
60706         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
60707         isnan-nolibm.
60708         * modules/frexp (Depends-on): Likewise.
60709         * modules/frexp-tests (Depends-on): Likewise.
60710         * modules/frexp-nolibm (Depends-on): Likewise.
60711         * modules/frexp-nolibm-tests (Depends-on): Likewise.
60712         * modules/isfinite (Depends-on): Likewise.
60713         * modules/round-tests (Depends-on): Likewise.
60714         * modules/signbit (Depends-on): Likewise.
60715         * modules/signbit-tests (Depends-on): Likewise.
60716         * modules/snprintf-posix (Depends-on): Likewise.
60717         * modules/sprintf-posix (Depends-on): Likewise.
60718         * modules/trunc-tests (Depends-on): Likewise.
60719         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
60720         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
60721         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
60722         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
60723         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
60724         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
60725         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
60726         * modules/vasnprintf-posix (Depends-on): Likewise.
60727         * modules/vasprintf-posix (Depends-on): Likewise.
60728         * modules/vfprintf-posix (Depends-on): Likewise.
60729         * modules/vsnprintf-posix (Depends-on): Likewise.
60730         * modules/vsprintf-posix (Depends-on): Likewise.
60731         * lib/frexp.c: Include isnand.h instead of isnan.h.
60732         (ISNAN): Set to isnand instead of isnan.
60733         * lib/isfinite.c: Include isnand.h instead of isnan.h.
60734         (gl_isfinited): Use isnand instead of isnan.
60735         * lib/signbitd.c: Include isnand.h instead of isnan.h.
60736         (gl_signbitd): Use isnand instead of isnan.
60737         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
60738         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
60739         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
60740         (main): Use isnand instead of isnan.
60741         * tests/test-round1.c: Include isnand.h.
60742         (main): Use isnand instead of isnan.
60743         * tests/test-round2.c: Include isnand.h instead of isnan.h.
60744         (ISNAN): Set to isnand instead of isnan.
60745         * tests/test-trunc1.c: Include isnand.h.
60746         (main): Use isnand instead of isnan.
60747         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
60748         (equal): Use isnand instead of isnan.
60749         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
60750         isnand-nolibm.
60751         * NEWS: Mention the change.
60752
60753 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
60754             Bruno Haible  <bruno@clisp.org>
60755
60756         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
60757         the GCC builtins for signbits are present and set
60758         REPLACE_SIGNBIT_USING_GCC if so.
60759         * lib/math.in.h (signbit): Define using GCC builtins if
60760         REPLACE_SIGNBIT_USING_GCC is set.
60761         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
60762         REPLACE_SIGNBIT_USING_GCC.
60763         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
60764
60765 2008-01-25  Jim Meyering  <meyering@redhat.com>
60766
60767         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
60768         * lib/poll.c: Include <config.h>, not "config.h".
60769         * tests/test-getaddrinfo.c: Likewise.
60770
60771 2008-01-25  Simon Josefsson  <simon@josefsson.org>
60772
60773         * modules/sockets-tests: New file.
60774
60775 2008-01-24  Simon Josefsson  <simon@josefsson.org>
60776
60777         * modules/sockets: New module, can be used to call WSA_Startup and
60778         WSA_Cleanup when needed.
60779
60780         * lib/sockets.h, lib/sockets.c: New files.
60781
60782         * m4/sockets.m4: New file.
60783
60784         * tests/test-sockets.c: New file.
60785
60786 2008-01-19  Bruno Haible  <bruno@clisp.org>
60787
60788         * doc/posix-headers: Renamed from doc/headers.
60789         * doc/posix-functions: Renamed from doc/functions.
60790         * doc/gnulib.texi: Update.
60791
60792 2008-01-19  Bruno Haible  <bruno@clisp.org>
60793
60794         * doc/glibc-functions/strcasestr.texi: Include contents of
60795         doc/functions/strcasestr.texi, fixing the list of platforms.
60796         * doc/functions/strcasestr.texi: Remove file.
60797
60798 2008-01-19  Bruno Haible  <bruno@clisp.org>
60799
60800         * doc/glibc-functions/memmem.texi: Include contents of
60801         doc/functions/memmem.texi.
60802         * doc/functions/memmem.texi: Remove file.
60803
60804 2008-01-18  Bruno Haible  <bruno@clisp.org>
60805
60806         * doc/glibc-functions/*.texi: New files.
60807         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
60808         to use the new files.
60809
60810 2008-01-17  Bruno Haible  <bruno@clisp.org>
60811
60812         * tests/test-gethostname.c (main): Fix printf statement.
60813
60814 2008-01-17  Simon Josefsson  <simon@josefsson.org>
60815
60816         * modules/gethostname-tests: New file.
60817
60818         * tests/test-gethostname.c: New file.
60819
60820 2008-01-17  Simon Josefsson  <simon@josefsson.org>
60821
60822         * lib/gethostname.c: Include string.h unconditionally, strncpy is
60823         used by the UNAME case.  Reported by Bruno Haible
60824         <bruno@clisp.org>.
60825
60826 2008-01-17  Eric Blake  <ebb9@byu.net>
60827
60828         Convert c-strcasestr to be more efficient.
60829         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
60830         (Depends-on): Add c-strcase, remove malloca, strnlen.
60831         * tests/test-c-strcasestr.c (main): Enhance test.
60832         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
60833
60834 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
60835
60836         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
60837         Use it in creating po/Makevars.
60838
60839 2008-01-15  Simon Josefsson  <simon@josefsson.org>
60840
60841         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
60842         Applications that requires it should initialize libgcrypt
60843         manually.
60844
60845 2008-01-16  Simon Josefsson  <simon@josefsson.org>
60846
60847         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
60848
60849 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
60850
60851         Fix problem with getdate on mingw32 reported by Simon Josefsson
60852         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
60853         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
60854         tzname", when deciding whether to declare tzname.
60855         * lib/strftime.c (tzname): Likewise.
60856
60857 2008-01-15  Bruno Haible  <bruno@clisp.org>
60858
60859         Work around a MacOS X 10.5 bug in frexpl().
60860         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
60861         * doc/functions/frexpl.texi: Document the bug.
60862         Reported by Elias Pipping <pipping@gentoo.org>.
60863
60864 2008-01-14  Eric Blake  <ebb9@byu.net>
60865
60866         Touch up previous patch.
60867         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
60868         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
60869
60870         Convert strcasestr module to use Two-Way algorithm.
60871         * modules/strcasestr-simple: New module, based on the old
60872         strcasestr, but with Two-Way rather than KMP.
60873         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
60874         * lib/string.in.h (rpl_strcasestr): Declare.
60875         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
60876         performance.
60877         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
60878         * modules/string (Makefile.am): Support strcasestr.
60879         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
60880         * modules/strcasestr-tests (Depends-on): Check for alarm.
60881         * tests/test-strcasestr.c: Augment test.
60882         * lib/str-two-way.h: Clean up stray macro.
60883         * NEWS: Document new module.
60884         * MODULES.html.sh (string handling): Likewise.
60885         * doc/functions/strcasestr.texi: New file.
60886         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
60887         here, since it is not a POSIX function.
60888
60889 2008-01-14  Colin Watson  <cjwatson@debian.org>
60890             Bruno Haible  <bruno@clisp.org>
60891
60892         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
60893         works fine; if not, set REPLACE_STRSIGNAL.
60894         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
60895         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
60896         REPLACE_STRSIGNAL.
60897         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
60898         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
60899         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
60900
60901 2008-01-14  Bruno Haible  <bruno@clisp.org>
60902
60903         * modules/strsignal (Include): Change to <string.h>.
60904
60905 2008-01-14  Colin Watson  <cjwatson@debian.org>
60906
60907         * modules/argp (Notice): Add a notice recommending to change
60908         XGETTEXT_OPTIONS.
60909         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
60910
60911 2008-01-13  Colin Watson  <cjwatson@debian.org>
60912
60913         * modules/strsignal-tests: New file.
60914         * tests/test-strsignal.c: New file.
60915
60916         * lib/strsignal.c: New file, from glibc with modifications.
60917         * lib/siglist.h: New file, from glibc with modifications.
60918         * lib/string.in.h (strsignal): New declaration.
60919         * m4/strsignal.m4: New file.
60920         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
60921         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
60922         * modules/strsignal: New file.
60923         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
60924         HAVE_DECL_STRSIGNAL.
60925
60926 2008-01-13  Bruno Haible  <bruno@clisp.org>
60927
60928         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
60929         locale encoding is not ASCII. Needed for OpenBSD 4.0.
60930         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
60931         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
60932
60933 2008-01-13  Bruno Haible  <bruno@clisp.org>
60934
60935         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
60936         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
60937         * lib/argp.h (__attribute__): Likewise.
60938         * lib/c-stack.c (__attribute__): Likewise.
60939         * lib/error.h (__attribute__): Likewise.
60940         * lib/fts.c (__attribute__): Likewise.
60941         * lib/openat.h (__attribute__): Likewise.
60942         * lib/stdio.in.h (__attribute__): Likewise.
60943         * lib/string.in.h (__attribute__): Likewise.
60944         * lib/utimens.c (__attribute__): Likewise.
60945         * lib/vasnprintf.h (__attribute__): Likewise.
60946         * lib/xalloc.h (__attribute__): Likewise.
60947         * lib/xprintf.h (__attribute__): Likewise.
60948         * lib/xstrtol.h (__attribute__): Likewise.
60949         * lib/xvasprintf.h (__attribute__): Likewise.
60950
60951 2008-01-12  Bruno Haible  <bruno@clisp.org>
60952
60953         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
60954         * doc/glibc-headers/a.out.texi: New file.
60955         * doc/glibc-headers/aliases.texi: New file.
60956         * doc/glibc-headers/alloca.texi: New file.
60957         * doc/glibc-headers/ar.texi: New file.
60958         * doc/glibc-headers/argp.texi: New file.
60959         * doc/glibc-headers/argz.texi: New file.
60960         * doc/glibc-headers/byteswap.texi: New file.
60961         * doc/glibc-headers/crypt.texi: New file.
60962         * doc/glibc-headers/endian.texi: New file.
60963         * doc/glibc-headers/envz.texi: New file.
60964         * doc/glibc-headers/err.texi: New file.
60965         * doc/glibc-headers/error.texi: New file.
60966         * doc/glibc-headers/execinfo.texi: New file.
60967         * doc/glibc-headers/fpu_control.texi: New file.
60968         * doc/glibc-headers/fstab.texi: New file.
60969         * doc/glibc-headers/fts.texi: New file.
60970         * doc/glibc-headers/getopt.texi: New file.
60971         * doc/glibc-headers/ieee754.texi: New file.
60972         * doc/glibc-headers/ifaddrs.texi: New file.
60973         * doc/glibc-headers/libintl.texi: New file.
60974         * doc/glibc-headers/mcheck.texi: New file.
60975         * doc/glibc-headers/mntent.texi: New file.
60976         * doc/glibc-headers/obstack.texi: New file.
60977         * doc/glibc-headers/paths.texi: New file.
60978         * doc/glibc-headers/printf.texi: New file.
60979         * doc/glibc-headers/pty.texi: New file.
60980         * doc/glibc-headers/resolv.texi: New file.
60981         * doc/glibc-headers/shadow.texi: New file.
60982         * doc/glibc-headers/sysexits.texi: New file.
60983         * doc/glibc-headers/ttyent.texi: New file.
60984
60985 2008-01-12  Jim Meyering  <meyering@redhat.com>
60986
60987         announce-gen: emit Gnulib's git-based version string.
60988         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
60989         New option --gnulib-version=V, where V is expected to be
60990         the output of running git describe in the gnulib directory.
60991         (get_tool_versions): Request feedback on xdelta.  I suspect it's
60992         not useful, and plan to stop publishing an xdelta file with each
60993         coreutils release.
60994
60995         * build-aux/announce-gen: Also check for lzma-compressed files.
60996
60997 2008-01-11  Bruno Haible  <bruno@clisp.org>
60998
60999         * tests/test-memmem.c (main): Increase maximum allowed time.
61000         * tests/test-strstr.c (main): Likewise.
61001
61002 2008-01-11  Bruno Haible  <bruno@clisp.org>
61003
61004         * doc/functions/memmem.texi: Add more precisions about platforms.
61005         * doc/functions/strstr.texi: Likewise.
61006
61007 2008-01-10  Eric Blake  <ebb9@byu.net>
61008
61009         * m4/strstr.m4: Delete cruft from copy-n-paste.
61010         Reported by Bruno Haible.
61011
61012 2008-01-10  Bruno Haible  <bruno@clisp.org>
61013
61014         Make c-strstr rely on strstr.
61015         * lib/c-strstr.c: Don't include str-kmp.h.
61016         (c_strstr): Define in terms of strstr.
61017         * modules/c-strstr (Files): Remove lib/str-kmp.h.
61018         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
61019
61020 2008-01-10  Bruno Haible  <bruno@clisp.org>
61021
61022         * doc/gnulib.texi (String Functions in C Locale): New section.
61023         * doc/c-ctype.texi: New file.
61024         * doc/c-strcase.texi: New file.
61025         * doc/c-strcaseeq.texi: New file.
61026         * doc/c-strcasestr.texi: New file.
61027         * doc/c-strstr.texi: New file.
61028         * doc/c-strtod.texi: New file.
61029         * doc/c-strtold.texi: New file.
61030
61031 2008-01-10  Eric Blake  <ebb9@byu.net>
61032
61033         * lib/relocatable.h: Fix a comment.
61034
61035 2008-01-10  Eric Blake  <ebb9@byu.net>
61036
61037         Share two-way algorithm.
61038         * lib/str-two-way.h: New file, merged from...
61039         * lib/memmem.c: ...here...
61040         * lib/strstr.c: ...and here.
61041         * modules/memmem (Files): Use it.
61042         * modules/strstr (Files): Likewise.
61043
61044         Avoid quadratic strstr implementations.
61045         * lib/strstr.c: New file.
61046         * m4/strstr.m4: Likewise.
61047         * modules/strstr: Likewise.
61048         * modules/strstr-tests: Likewise.
61049         * tests/test-strstr.c: Likewise.
61050         * lib/string.in.h (rpl_strstr): Declare.
61051         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
61052         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
61053         * modules/string (Makefile.am): Likewise.
61054         * MODULES.html.sh (string handling): Mention new module.
61055         * doc/functions/strstr.texi (strstr): Document the bug.
61056
61057 2008-01-10  Bruno Haible  <bruno@clisp.org>
61058
61059         * lib/relocatable.h (relocate): State whether result is freshly
61060         allocated or not.
61061         * lib/relocatable.c (relocate): Return a freshly allocated string
61062         instead of a pointer to a privately held string.
61063         Reported by Sylvain Beucler <beuc@gnu.org>.
61064
61065 2008-01-10  Colin Watson  <cjwatson@debian.org>
61066
61067         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
61068         s/S_ISNLK/S_ISLNK/.
61069
61070 2008-01-09  Bruno Haible  <bruno@clisp.org>
61071
61072         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
61073         and other files.
61074         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
61075         if it's only a guess.
61076         * modules/memmem: Simplify by depending on memmem-simple.
61077
61078 2008-01-09  Bruno Haible  <bruno@clisp.org>
61079
61080         Work around OpenBSD 4.0 tdelete() bug.
61081         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
61082         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
61083         macros and don't redefine the enum values.
61084         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
61085         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
61086         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
61087
61088 2008-01-09  Bruno Haible  <bruno@clisp.org>
61089
61090         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
61091         (main): Don't perform the tests if setlocale did not install a UTF-8
61092         locale. Needed on OpenBSD 4.0.
61093         * modules/wcwidth-tests (Depends-on): Add localcharset.
61094
61095 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
61096
61097         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
61098         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
61099         * NEWS: announce this.
61100         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
61101
61102 2008-01-09  Simon Josefsson  <simon@josefsson.org>
61103         and Eric Blake  <ebb9@byu.net>
61104
61105         Add memmem-simple module.
61106         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
61107         (gl_FUNC_MEMMEM): Separate performance from presence checks.
61108         * modules/memmem-simple: New file.
61109         * modules/memmem (Description): Tweak.
61110         * MODULES.html.sh (string handling): Mention new module.
61111         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
61112         addressed by memmem-simple.
61113         * NEWS: Document the difference.
61114
61115 2008-01-09  Eric Blake  <ebb9@byu.net>
61116
61117         Give gcc some memmem optimization hints.
61118         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
61119         (strcasestr): Declare as pure.
61120         * modules/memmem (Maintainer): Claim my implementation.
61121
61122 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61123
61124         Support AIX 6.1 and higher.
61125         * build-aux/config.libpath: Likewise.
61126         * build-aux/config.rpath: Likewise.
61127
61128 2008-01-08  Jim Meyering  <meyering@redhat.com>
61129             Bruno Haible  <bruno@clisp.org>
61130
61131         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
61132         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
61133         Reported by Peter Fales in
61134         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
61135
61136 2008-01-08  Bruno Haible  <bruno@clisp.org>
61137
61138         * modules/unictype/category-of (Depends-on): Add
61139         unictype/category-none.
61140         * modules/unictype/category-and-tests (Depends-on): Add
61141         unictype/category-{L,N,Lu,Nd}.
61142         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
61143         * modules/unictype/category-or-tests (Depends-on): Add
61144         unictype/category-{L,N}.
61145         * modules/unictype/category-name-tests (Depends-on): Add
61146         unictype/category-{Z,Nl}.
61147         Reported by Simon Josefsson.
61148
61149 2008-01-08  Bruno Haible  <bruno@clisp.org>
61150
61151         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
61152         convention better.
61153         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
61154         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
61155         Reported by Peter Miller <millerp@canb.auug.org.au>.
61156
61157 2008-01-08  Eric Blake  <ebb9@byu.net>
61158
61159         Rewrite memmem to guarantee linear complexity without malloc.
61160         * lib/memmem.c (memmem): Use Two-Way rather than
61161         Knuth-Morris-Pratt, to allow O(1) space usage.
61162         (critical_factorization, two_way_short_needle)
61163         (two_way_long_needle): New functions.
61164         (knuth_morris_pratt): Delete.
61165         * modules/memmem (Depends-on): No longer need malloca or stdbool.
61166         Add stdint.
61167         * tests/test-memmem.c (main): Add tests for periodic needle and
61168         sublinear performance.
61169         * doc/functions/memmem.texi (memmem): Document other deficiencies
61170         in cygwin and older glibc.
61171
61172 2008-01-08  Bruno Haible  <bruno@clisp.org>
61173
61174         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
61175         augmentation.
61176
61177 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
61178
61179         Add a configure time option: --disable-acl.
61180         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
61181         AC_ARG_ENABLE(acl).
61182
61183 2008-01-06  Simon Josefsson  <simon@josefsson.org>
61184
61185         * tests/test-localename.c: Don't include obsolete "setenv.h".
61186
61187         * modules/localename-tests (Depends-on): Need unsetenv.
61188
61189 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61190
61191         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
61192
61193 2008-01-06  Colin Watson  <cjwatson@debian.org>
61194
61195         * users.txt: Add man-db.
61196
61197 2008-01-07  Bruno Haible  <bruno@clisp.org>
61198
61199         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
61200         previous section name.
61201
61202 2008-01-07  Bruno Haible  <bruno@clisp.org>
61203
61204         * lib/progname.c (set_program_name): Don't strip off a leading
61205         "lt-" prefix outside a .libs directory.
61206         Suggested by Paul Eggert.
61207
61208 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
61209             Bruno Haible  <bruno@clisp.org>
61210
61211         Improve memory cleanup in 'relocatable' module.
61212         * lib/relocatable.h (compute_curr_prefix): Change return type to
61213         'char *'.
61214         * lib/relocatable.c (compute_curr_prefix): Change return type to
61215         'char *'. Free curr_installdir after use.
61216         (relocate): Free curr_prefix_better after use.
61217         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
61218
61219 2008-01-01  Bruno Haible  <bruno@clisp.org>
61220
61221         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
61222         failure on older glibc systems.
61223         Reported by Peter Fales <psfales@alcatel-lucent.com>.
61224
61225 2008-01-05  Eric Blake  <ebb9@byu.net>
61226
61227         Avoid quadratic system memmem.
61228         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
61229         Reported by Ralf Wildenhues.
61230
61231         Fix memmem test for mingw.
61232         * modules/memmem-tests (configure.ac): Check for alarm.
61233         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
61234         it.
61235         * doc/functions/memmem.texi: New file.
61236         * doc/gnulib.texi (Function Substitutes): Add memmem.
61237         Reported by Bruno Haible.
61238
61239 2008-01-04  Bruno Haible  <bruno@clisp.org>
61240
61241         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
61242         Require gl_HEADER_STRINGS_H_DEFAULTS, not
61243         gl_HEADER_STRING_H_DEFAULTS.
61244
61245 2008-01-04  Eric Blake  <ebb9@byu.net>
61246
61247         Shorten duration of memmem test.
61248         * tests/test-memmem.c (main): Use alarm to declare failure if test
61249         is taking too long.
61250         Reported by Ralf Wildenhues.
61251
61252 2007-12-21  Simon Josefsson  <simon@josefsson.org>
61253
61254         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
61255         string, needed by strerror.
61256
61257 2008-01-03  Colin Watson  <cjwatson@debian.org>
61258             Bruno Haible  <bruno@clisp.org>
61259
61260         * doc/gnulib-tool.texi (Localization): New section.
61261
61262 2008-01-02  Bruno Haible  <bruno@clisp.org>
61263
61264         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
61265         variables to 'unsigned char *' type.
61266         Reported by Paul Eggert.
61267
61268 2008-01-02  Jim Meyering  <jim@meyering.net>
61269
61270         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
61271
61272 2007-12-31  Jim Meyering  <jim@meyering.net>
61273
61274         Avoid use of private FTS type name.
61275         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
61276
61277 2007-12-30  Karl Berry  <karl@gnu.org>
61278
61279         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
61280         work around defect in Texinfo and/or the standalone Info browser.
61281
61282 2007-12-30  Bruno Haible  <bruno@clisp.org>
61283
61284         Unify 5 copies of the KMP code.
61285         * lib/str-kmp.h: New file.
61286         * lib/c-strcasestr.c: Include str-kmp.h.
61287         (knuth_morris_pratt): Remove function.
61288         (c_strcasestr): Update.
61289         * lib/c-strstr.c: Include str-kmp.h.
61290         (knuth_morris_pratt): Remove function.
61291         (c_strcasestr): Update.
61292         * lib/mbscasestr.c: Include str-kmp.h.
61293         (knuth_morris_pratt_unibyte): Remove function.
61294         * lib/mbsstr.c: Include str-kmp.h.
61295         (knuth_morris_pratt_unibyte): Remove function.
61296         * lib/strcasestr.c: Include str-kmp.h.
61297         (knuth_morris_pratt): Remove function.
61298         (strcasestr): Update.
61299         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
61300         * modules/c-strstr (Files): Likewise.
61301         * modules/mbscasestr (Files): Likewise.
61302         * modules/mbsstr (Files): Likewise.
61303         * modules/strcasestr (Files): Likewise.
61304         Suggested by Paul Eggert.
61305
61306 2007-12-30  Bruno Haible  <bruno@clisp.org>
61307
61308         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
61309         defined.
61310
61311 2007-12-30  Bruno Haible  <bruno@clisp.org>
61312
61313         * lib/xmalloca.h: Include xalloc.h.
61314         (xnmalloca): New macro.
61315
61316 2007-12-30  Bruno Haible  <bruno@clisp.org>
61317
61318         * lib/malloca.h (nmalloca): New macro.
61319         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
61320         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
61321         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
61322         knuth_morris_pratt_multibyte): Likewise.
61323         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
61324         knuth_morris_pratt_multibyte): Likewise.
61325         * lib/memmem.c (knuth_morris_pratt): Likewise.
61326         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
61327
61328 2007-12-25  Bruno Haible  <bruno@clisp.org>
61329
61330         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
61331         * lib/glob.c: Don't include openat.h.
61332         (link_exists2_p): Add back the code that deals with the
61333         !GLOB_ALTDIRFUNC case.
61334         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
61335         let it do the filename concatenation.
61336         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
61337         * modules/glob (Depends-on): Remove openat.
61338
61339 2007-12-31  Bruno Haible  <bruno@clisp.org>
61340
61341         * modules/dirfd (License): Change to LGPLv2+.
61342         Approved by Jim Meyering.
61343
61344 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
61345
61346         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
61347         when multiplying M by sizeof (size_t).
61348
61349 2007-12-10  Martin Lambers  <marlam@marlam.de>
61350
61351         Override getpagesize on mingw.
61352         * lib/getpagesize.c: New file.
61353         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
61354         * modules/getpagesize (Files): Add lib/getpagesize.c.
61355         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
61356         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
61357         REPLACE_GETPAGESIZE.
61358         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
61359
61360 2007-12-25  Bruno Haible  <bruno@clisp.org>
61361
61362         * modules/localcharset (Notice): New field.
61363         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
61364         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
61365
61366 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
61367             Bruno Haible  <bruno@clisp.org>
61368
61369         Avoid using the syntax symbol() in formatted documentation.
61370         * MODULES.html.sh (func_module): When replacing symbol() with a
61371         hyperlink, remove the parentheses. Show an error if some remain.
61372         Recognize and render the '...' syntax.
61373         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
61374         Rework. Add paragraph about GCC's inlining.
61375         * doc/alloca.texi: Likewise.
61376         * doc/error.texi: Remove parentheses from symbol reference.
61377         * doc/gnulib-intro.texi: Likewise.
61378         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
61379         * modules/fnmatch (Description): Reword to say "the ... function".
61380         * modules/full-read (Description): Likewise.
61381         * modules/full-write (Description): Likewise.
61382         * modules/safe-read (Description): Likewise.
61383         * modules/safe-write (Description): Likewise.
61384         * modules/strchrnul (Description): Likewise.
61385         * modules/trim (Description): Likewise.
61386         * modules/error (Description): Remove parentheses from symbol
61387         references.
61388         * modules/verror (Description): Likewise.
61389         Reported by Karl Berry.
61390
61391 2007-12-25  Bruno Haible  <bruno@clisp.org>
61392
61393         Fixup after 2007-10-16 commit.
61394         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
61395
61396 2007-12-24  Bruno Haible  <bruno@clisp.org>
61397
61398         Make --enable-relocatable work with DESTDIR.
61399         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
61400         to compute installdir from destprog.
61401         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
61402         also set the RELOC_DESTDIR variable.
61403         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
61404
61405 2007-12-24  Bruno Haible  <bruno@clisp.org>
61406
61407         Fix link error due to xalloc_die().
61408         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
61409         of xreadlink.
61410         * lib/relocwrapper.c: Update comments.
61411         * build-aux/install-reloc: Remove xreadlink.c from file list.
61412         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
61413         xreadlink.c.
61414         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
61415
61416 2007-12-24  Bruno Haible  <bruno@clisp.org>
61417
61418         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
61419         * lib/setenv.h: Remove file.
61420         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
61421         lib/setenv.h.
61422         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
61423         (Depends-on): Add stdlib.
61424         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
61425         gl_FUNC_UNSETENV.
61426         (Include): Replace setenv.h with <stdlib.h>.
61427         * modules/unsetenv: New file.
61428         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
61429         * lib/unsetenv.c: Include <stdlib.h> first.
61430         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
61431         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
61432         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
61433         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
61434         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
61435         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
61436         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
61437         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
61438         * doc/functions/unsetenv.texi: Update.
61439         * modules/xsetenv (Depends-on): Add unsetenv.
61440         * modules/getdate (Depends-on): Likewise.
61441         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
61442         * lib/xsetenv.c: Don't include setenv.h.
61443         * lib/getdate.y: Likewise.
61444         * lib/relocwrapper.c: Likewise.
61445         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
61446         (Depends-on): Add stdlib.
61447         * NEWS: Mention the changes.
61448         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
61449
61450 2007-12-23  Bruno Haible  <bruno@clisp.org>
61451
61452         * lib/memmem.c (memmem): Use lowercase variable names. Tab
61453         indentation.
61454
61455 2007-12-23  Bruno Haible  <bruno@clisp.org>
61456
61457         * lib/c-strcasestr.c: Add more comments.
61458         * lib/c-strstr.c: Likewise.
61459         * lib/mbscasestr.c: Likewise.
61460         * lib/mbsstr.c: Likewise.
61461         * lib/strcasestr.c: Likewise.
61462         * lib/memmem.c: Likewise.
61463
61464 2007-12-23  Bruno Haible  <bruno@clisp.org>
61465
61466         * tests/test-memmem.c: Include <string.h> first.
61467
61468 2007-12-22  Bruno Haible  <bruno@clisp.org>
61469
61470         * gnulib-tool (func_create_testdir): Change $auxdir while generating
61471         the contents of $testsbase.
61472         Reported by Ralf Wildenhues.
61473
61474 2007-12-22  Bruno Haible  <bruno@clisp.org>
61475
61476         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
61477         two variables local_ldadd_before, local_ldadd_last.
61478
61479 2007-12-20  Eric Blake  <ebb9@byu.net>
61480
61481         Work around circular library issue when cross-compiling.
61482         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
61483         that progname.o does not need to pull in rpl_memcmp.
61484
61485 2007-12-19  Eric Blake  <ebb9@byu.net>
61486
61487         Fix memmem to avoid O(n^2) worst-case complexity.
61488         * lib/memmem.c (knuth_morris_pratt): New function.
61489         (memmem): Use it if first few naive iterations fail.
61490         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
61491         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
61492         * modules/memchr (License): Likewise.
61493         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
61494         malloca.
61495         * tests/test-memmem.c: Rewrite, borrowing ideas from
61496         test-mbsstr1.c; the old version wouldn't even compile!
61497         * modules/memmem-tests: New file.
61498         * lib/string.in.h (rpl_memmem): Add declaration.
61499         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
61500         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
61501         REPLACE_MEMMEM.
61502
61503 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
61504
61505         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
61506         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
61507         before any system include files, and undef after them all.  This
61508         should fix a problem on VMS reported by John E. Malmberg in
61509         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
61510
61511 2007-12-17  Eric Blake  <ebb9@byu.net>
61512
61513         Revert addition of verify, for BSD/OS.
61514         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
61515         can't handle large files, for the sake of obsolete platforms.
61516         * modules/fseeko (Depends-on): Remove verify.
61517         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
61518         * doc/functions/ftello.texi (ftello): Likewise.
61519         * doc/functions/fgetpos.texi (fgetpos): Likewise.
61520         Reported by Larry Jones.
61521
61522 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
61523
61524         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
61525         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
61526
61527 2007-12-17  Jim Meyering  <meyering@redhat.com>
61528
61529         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
61530         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
61531         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
61532         * modules/getcwd (Depends-on): Add openat.
61533         Reported by Petr Salinger.
61534
61535 2007-12-17  Bruno Haible  <bruno@clisp.org>
61536
61537         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
61538         avoid a segmentation fault of the configure test on x86_64 systems.
61539
61540 2007-12-15  Jim Meyering  <meyering@redhat.com>
61541
61542         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
61543
61544 2007-12-13  Eric Blake  <ebb9@byu.net>
61545
61546         Another fseek test.
61547         * tests/test-fseek.c (main): Also test ungetc handling.
61548         * tests/test-fseeko.c (main): Likewise.
61549         * modules/fseeko (Depends-on): Add verify.
61550         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
61551         large.
61552         Reported by Larry Jones.
61553
61554         Fix fseeko on mingw.
61555         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
61556         seek.
61557
61558         Beef up fseek tests.
61559         * tests/test-fseek.c (main): Also test eof handling.
61560         * tests/test-fseeko.c (main): Likewise.
61561         Reported by Larry Jones.
61562
61563 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
61564
61565         Fix fseeko on BSD-based platforms.
61566         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
61567         successful seek.
61568
61569 2007-12-12  Eric Blake  <ebb9@byu.net>
61570
61571         Allow circular dependency of separate libtests.a
61572         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
61573         when use_libtests.
61574
61575 2007-12-11  Eric Blake  <ebb9@byu.net>
61576
61577         Fix bug with -0.0L in previous patch.
61578         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
61579         * tests/test-isnan.c (main): Also test on zeroes.
61580         * tests/test-isnanf.c (main): Likewise.
61581         * tests/test-isnanl.h (main): Likewise.
61582
61583         Detect pseudo-denormals on x86 even when cross-compiling.
61584         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
61585         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
61586         invalid bit patterns that happen to satisfy ==.
61587
61588         Avoid link failures with separate libtests.a.
61589         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
61590         last, to satisfy circular dependencies.
61591
61592 2007-12-11  Eric Blake  <ebb9@byu.net>
61593         and Bruno Haible  <bruno@clisp.org>
61594
61595         Fix OpenBSD 4.0 <float.h> handling of long double.
61596         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
61597         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
61598         * doc/headers/float.texi (float.h): Document OpenBSD bug.
61599
61600 2007-12-11  Jim Meyering  <meyering@redhat.com>
61601
61602         * users.txt: Add libvirt.
61603
61604         Support versions of autoconf prior to 2.59c.
61605         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
61606         if it is not already defined.
61607
61608 2007-12-09  Bruno Haible  <bruno@clisp.org>
61609
61610         Let 'gnulib-tool --import' collect sources needed for the tests in
61611         tests/ rather than in lib/.
61612         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
61613         argument. If true, add rules to generate libtests.a, and put libtests.a
61614         into $(LDADD). Consider source files in subdirectories and set
61615         uses_subdirs.
61616         (func_emit_initmacro_start, func_emit_initmacro_end,
61617         func_emit_initmacro_done): Pass all arguments explicitly.
61618         (func_import): Determine two module lists main_modules,
61619         testsrelated_modules. Determine use_libtests. Determine two variables
61620         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
61621         instead of just sed_transform_lib_file. Determine two variables
61622         main_files and testsrelated_files. Compute 'files' as the union of
61623         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
61624         func_add_or_update. In the generated gnulib-comp.m4, collect the
61625         object files for tests/ in different variables than those for lib/.
61626         Substitute LIBTESTS_LIBDEPS.
61627         (func_create_testdir): Combine the uses_subdirs results from
61628         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
61629
61630 2007-12-09  Bruno Haible  <bruno@clisp.org>
61631
61632         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
61633         the build-aux directory.
61634
61635 2007-12-09  Bruno Haible  <bruno@clisp.org>
61636
61637         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
61638         introduced on 2006-09-09.
61639
61640 2007-12-07  Jim Meyering  <meyering@redhat.com>
61641
61642         Let these macros work also with autoconf-2.59.
61643         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
61644         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
61645         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
61646
61647 2007-12-06  Jim Meyering  <meyering@redhat.com>
61648
61649         Avoid a configure-time syntax error in gl_FUNC_ACL.
61650         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
61651         function in each branch, before testing the cache variable.
61652
61653 2007-12-04  Eric Blake  <ebb9@byu.net>
61654
61655         Make scripts executable.
61656         * build-aux/config.guess: Add execute permissions.
61657         * build-aux/config.sub: Likewise.
61658         * build-aux/gendocs.sh: Likewise.
61659
61660         Fix frexp on mingw.
61661         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
61662         cross-compiling.
61663         * doc/functions/frexp.texi (frexp): Document the bug.
61664
61665         Make cygwin fseeko check more reliable.
61666         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
61667         version numbers, rather than unrelated feature check.
61668         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
61669         * doc/functions/ftello.texi (ftello): Likewise.
61670         Reported by Bruno Haible.
61671
61672         * m4/strerror.m4: Bump version number.
61673
61674 2007-12-03  Bruno Haible  <bruno@clisp.org>
61675
61676         * doc/functions/mprotect.texi: Mention the mingw problem.
61677
61678 2007-12-03  Eric Blake  <ebb9@byu.net>
61679
61680         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
61681         REPLACE_STRERROR is initialized before this macro.
61682
61683 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
61684
61685         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
61686         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
61687         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
61688         put -lsec in even for programs other than 'ls'.  This fixes a problem
61689         for gettext reported by Bruno Haible in
61690         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
61691         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
61692         Add support for Solaris 10.  This isn't efficient, but should get the
61693         job done for now.
61694
61695 2007-12-03  James Youngman  <jay@gnu.org>
61696
61697         * doc/regexprops-generic.texi: change "an close-group" to "a
61698         close-group" and "illegal" to "not allowed".
61699
61700 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61701
61702         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
61703         pr_byname.h. Needed for the rare case when the maintainer has done
61704         "make maintainer-clean" in the source directory and then attempts a
61705         build outside the source directory.
61706         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
61707         scripts_byname.h.
61708
61709 2007-12-02  Martin Lambers <marlam@marlam.de>
61710             Bruno Haible  <bruno@clisp.org>
61711
61712         * lib/getpagesize.h: Remove file.
61713         * lib/unistd.in.h: Include declaration of getpagesize here.
61714         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
61715         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
61716         HAVE_SYS_PARAM_H.
61717         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
61718         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
61719         * modules/getpagesize (Files): Remove lib/getpagesize.h.
61720         (Depends-on): Add unistd.
61721         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61722         (Include): Use <unistd.h> instead of getpagesize.h.
61723         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
61724         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
61725         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
61726         gl_GETPAGESIZE invocation, already handled by module dependency.
61727         * lib/pagealign_alloc.c: Don't include getpagesize.h.
61728
61729 2007-12-02  Bruno Haible  <bruno@clisp.org>
61730
61731         * modules/strings-tests: New file.
61732         * tests/test-strings.c: New file.
61733
61734         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
61735         * lib/strings.in.h: New file.
61736         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
61737         * m4/strings_h.m4: New file.
61738         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
61739         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
61740         * modules/strings: New file.
61741         * modules/string (Makefile.am): Update.
61742         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
61743         Reported by Karl Berry.
61744
61745 2007-12-01  Eric Blake  <ebb9@byu.net>
61746
61747         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
61748         accommodate fix in cygwin 1.5.25.
61749
61750 2007-12-01  Jim Meyering  <meyering@redhat.com>
61751
61752         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
61753         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
61754         that would inhibit utf8-optimization of a regexp containing line-
61755         or buffer-anchors, e.g., `^', `$'.
61756
61757 2007-11-30  Bruno Haible  <bruno@clisp.org>
61758
61759         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
61760         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
61761         glthread_recursive_lock_init.
61762         * lib/lock.c (glthread_recursive_lock_init)
61763         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
61764         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
61765
61766 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
61767
61768         New function qset_acl, like set_acl but with syscall semantics.
61769         * lib/acl.h (qset_acl): New decl.
61770         * lib/acl.c (qset_acl): New function.
61771         (set_acl): Use new function.  Use more-consistent diagnostics.
61772
61773 2007-11-28  Jim Meyering  <meyering@redhat.com>
61774
61775         * modules/physmem (License): Change from GPL to LGPLv2+.
61776
61777 2007-11-26  Bruno Haible  <bruno@clisp.org>
61778
61779         * lib/vasnprintf.c (decode_long_double): Don't abort if the
61780         'long double' type has excess precision.
61781         Reported by Jim Meyering in
61782         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
61783
61784 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61785
61786         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
61787         Sync from <http://gnu.org/licenses>.
61788         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
61789         with license text from same location.
61790         * doc/maintain.texi, doc/standards.texi:  Sync from
61791         <http://savannah.gnu.org/projects/gnustandards>.
61792
61793 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
61794         and Jim Meyering  <meyering@redhat.com>
61795
61796         Adjust getdate' grammar to accept a slightly more regular language.
61797         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
61798         Before, the former was rejected.
61799         * lib/getdate.y (digits_to_date_time): New function, factored
61800         out of ...
61801         (number): ...here.  Just call digits_to_date_time.
61802         (hybrid): New non-terminal to handle an <unsigned number,
61803         signed relative offset> sequence consistently.
61804
61805 2007-11-18  Jim Meyering  <meyering@redhat.com>
61806
61807         Pull my changes from coreutils:
61808         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
61809         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
61810         use of $gnulib_tool_option_extras, so that it's separated from the
61811         preceding argument.
61812
61813         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
61814         * build-aux/bootstrap (cp_mark_as_generated): Create any required
61815         parent destination directories before copying a file into place.
61816
61817 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
61818
61819         bootstrap: work also with 4-argument variant of AC_INIT
61820         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
61821
61822 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
61823
61824         Port test-getaddrinfo to Solaris.
61825         Problem reported by Bruno Haible in
61826         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
61827         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
61828         explanation of setting 'hints'.
61829         Don't reject an implementation merely because it returns EAI_SERVICE.
61830         (EAI_SERVICE): Define to 0 if not defined.
61831
61832 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
61833
61834         The license of gnu-make and posix-shell is now "GPLed build tool".
61835         * modules/gnu-make (License): Likewise.
61836         * modules/posix-shell (License): Likewise.
61837
61838         New module posix-shell, for determining a POSIX shell
61839         or perhaps something that is close enough to a POSIX shell.
61840         * m4/posix-shell.m4: New file.
61841         * modules/posix-shell: New file.
61842
61843         * MODULES.html.sh: Mention new module.
61844
61845         New module gnu-make, for determining whether we're using GNU Make.
61846         * m4/gnu-make.m4: New file.
61847         * modules/gnu-make: New file.
61848         * MODULES.html.sh: Mention new module.
61849
61850 2007-11-14  Jim Meyering  <meyering@redhat.com>
61851
61852         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
61853         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
61854         use this macro to create a function _definition_.
61855         Remove useless "#undef ARGMATCH_DIE".
61856
61857 2007-11-14  Bruno Haible  <bruno@clisp.org>
61858
61859         * lib/config.charset: Update for OpenBSD 4.1.
61860         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
61861
61862 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
61863
61864         Document 64-bit #if problems in stdint.texi.
61865         * doc/headers/stdint.texi (stdint.h): Mention problems with
61866         64-bit-#if, and how to work around them.
61867
61868         Don't insist on 'long long int' support in the preprocessor.  It
61869         breaks too many things.  For example, PRIdMAX still uses a 'long
61870         long int' format with the latest Sun compiler, even though
61871         HAVE_LONG_LONG_INT isn't defined due to that compiler's
61872         preprocessor problem.  This causes the latest coreutils to dump
61873         core on Solaris 10 sparc with the Sun C compiler.
61874         Instead, fix the 2007-10-16 problem in a different way, by evaluating
61875         the troublesome expressions at configure-time, not at #if-time.
61876         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
61877         preprocessor.
61878         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
61879         compile-time C checks, done at 'configure'-time.
61880         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
61881         * modules/inttypes (Makefile): Substitute the new symbols that
61882         gl_INTTYPES_H now generates.
61883         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
61884
61885 2007-11-12  Bruno Haible  <bruno@clisp.org>
61886
61887         Tests for Unicode character classification functions.
61888
61889         * modules/unictype/bidicategory-byname-tests: New file.
61890         * modules/unictype/bidicategory-name-tests: New file.
61891         * modules/unictype/bidicategory-of-tests: New file.
61892         * modules/unictype/bidicategory-test-tests: New file.
61893         * modules/unictype/block-list-tests: New file.
61894         * modules/unictype/block-of-tests: New file.
61895         * modules/unictype/block-test-tests: New file.
61896         * modules/unictype/category-C-tests: New file.
61897         * modules/unictype/category-Cc-tests: New file.
61898         * modules/unictype/category-Cf-tests: New file.
61899         * modules/unictype/category-Cn-tests: New file.
61900         * modules/unictype/category-Co-tests: New file.
61901         * modules/unictype/category-Cs-tests: New file.
61902         * modules/unictype/category-L-tests: New file.
61903         * modules/unictype/category-Ll-tests: New file.
61904         * modules/unictype/category-Lm-tests: New file.
61905         * modules/unictype/category-Lo-tests: New file.
61906         * modules/unictype/category-Lt-tests: New file.
61907         * modules/unictype/category-Lu-tests: New file.
61908         * modules/unictype/category-M-tests: New file.
61909         * modules/unictype/category-Mc-tests: New file.
61910         * modules/unictype/category-Me-tests: New file.
61911         * modules/unictype/category-Mn-tests: New file.
61912         * modules/unictype/category-N-tests: New file.
61913         * modules/unictype/category-Nd-tests: New file.
61914         * modules/unictype/category-Nl-tests: New file.
61915         * modules/unictype/category-No-tests: New file.
61916         * modules/unictype/category-P-tests: New file.
61917         * modules/unictype/category-Pc-tests: New file.
61918         * modules/unictype/category-Pd-tests: New file.
61919         * modules/unictype/category-Pe-tests: New file.
61920         * modules/unictype/category-Pf-tests: New file.
61921         * modules/unictype/category-Pi-tests: New file.
61922         * modules/unictype/category-Po-tests: New file.
61923         * modules/unictype/category-Ps-tests: New file.
61924         * modules/unictype/category-S-tests: New file.
61925         * modules/unictype/category-Sc-tests: New file.
61926         * modules/unictype/category-Sk-tests: New file.
61927         * modules/unictype/category-Sm-tests: New file.
61928         * modules/unictype/category-So-tests: New file.
61929         * modules/unictype/category-Z-tests: New file.
61930         * modules/unictype/category-Zl-tests: New file.
61931         * modules/unictype/category-Zp-tests: New file.
61932         * modules/unictype/category-Zs-tests: New file.
61933         * modules/unictype/category-and-not-tests: New file.
61934         * modules/unictype/category-and-tests: New file.
61935         * modules/unictype/category-byname-tests: New file.
61936         * modules/unictype/category-name-tests: New file.
61937         * modules/unictype/category-none-tests: New file.
61938         * modules/unictype/category-of-tests: New file.
61939         * modules/unictype/category-or-tests: New file.
61940         * modules/unictype/category-test-withtable-tests: New file.
61941         * modules/unictype/combining-class-tests: New file.
61942         * modules/unictype/ctype-alnum-tests: New file.
61943         * modules/unictype/ctype-alpha-tests: New file.
61944         * modules/unictype/ctype-blank-tests: New file.
61945         * modules/unictype/ctype-cntrl-tests: New file.
61946         * modules/unictype/ctype-digit-tests: New file.
61947         * modules/unictype/ctype-graph-tests: New file.
61948         * modules/unictype/ctype-lower-tests: New file.
61949         * modules/unictype/ctype-print-tests: New file.
61950         * modules/unictype/ctype-punct-tests: New file.
61951         * modules/unictype/ctype-space-tests: New file.
61952         * modules/unictype/ctype-upper-tests: New file.
61953         * modules/unictype/ctype-xdigit-tests: New file.
61954         * modules/unictype/decimal-digit-tests: New file.
61955         * modules/unictype/digit-tests: New file.
61956         * modules/unictype/mirror-tests: New file.
61957         * modules/unictype/numeric-tests: New file.
61958         * modules/unictype/property-alphabetic-tests: New file.
61959         * modules/unictype/property-ascii-hex-digit-tests: New file.
61960         * modules/unictype/property-bidi-arabic-digit-tests: New file.
61961         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
61962         * modules/unictype/property-bidi-block-separator-tests: New file.
61963         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
61964         * modules/unictype/property-bidi-common-separator-tests: New file.
61965         * modules/unictype/property-bidi-control-tests: New file.
61966         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
61967         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
61968         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
61969         * modules/unictype/property-bidi-european-digit-tests: New file.
61970         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
61971         * modules/unictype/property-bidi-left-to-right-tests: New file.
61972         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
61973         * modules/unictype/property-bidi-other-neutral-tests: New file.
61974         * modules/unictype/property-bidi-pdf-tests: New file.
61975         * modules/unictype/property-bidi-segment-separator-tests: New file.
61976         * modules/unictype/property-bidi-whitespace-tests: New file.
61977         * modules/unictype/property-byname-tests: New file.
61978         * modules/unictype/property-combining-tests: New file.
61979         * modules/unictype/property-composite-tests: New file.
61980         * modules/unictype/property-currency-symbol-tests: New file.
61981         * modules/unictype/property-dash-tests: New file.
61982         * modules/unictype/property-decimal-digit-tests: New file.
61983         * modules/unictype/property-default-ignorable-code-point-tests: New file.
61984         * modules/unictype/property-deprecated-tests: New file.
61985         * modules/unictype/property-diacritic-tests: New file.
61986         * modules/unictype/property-extender-tests: New file.
61987         * modules/unictype/property-format-control-tests: New file.
61988         * modules/unictype/property-grapheme-base-tests: New file.
61989         * modules/unictype/property-grapheme-extend-tests: New file.
61990         * modules/unictype/property-grapheme-link-tests: New file.
61991         * modules/unictype/property-hex-digit-tests: New file.
61992         * modules/unictype/property-hyphen-tests: New file.
61993         * modules/unictype/property-id-continue-tests: New file.
61994         * modules/unictype/property-id-start-tests: New file.
61995         * modules/unictype/property-ideographic-tests: New file.
61996         * modules/unictype/property-ids-binary-operator-tests: New file.
61997         * modules/unictype/property-ids-trinary-operator-tests: New file.
61998         * modules/unictype/property-ignorable-control-tests: New file.
61999         * modules/unictype/property-iso-control-tests: New file.
62000         * modules/unictype/property-join-control-tests: New file.
62001         * modules/unictype/property-left-of-pair-tests: New file.
62002         * modules/unictype/property-line-separator-tests: New file.
62003         * modules/unictype/property-logical-order-exception-tests: New file.
62004         * modules/unictype/property-lowercase-tests: New file.
62005         * modules/unictype/property-math-tests: New file.
62006         * modules/unictype/property-non-break-tests: New file.
62007         * modules/unictype/property-not-a-character-tests: New file.
62008         * modules/unictype/property-numeric-tests: New file.
62009         * modules/unictype/property-other-alphabetic-tests: New file.
62010         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
62011         * modules/unictype/property-other-grapheme-extend-tests: New file.
62012         * modules/unictype/property-other-id-continue-tests: New file.
62013         * modules/unictype/property-other-id-start-tests: New file.
62014         * modules/unictype/property-other-lowercase-tests: New file.
62015         * modules/unictype/property-other-math-tests: New file.
62016         * modules/unictype/property-other-uppercase-tests: New file.
62017         * modules/unictype/property-paired-punctuation-tests: New file.
62018         * modules/unictype/property-paragraph-separator-tests: New file.
62019         * modules/unictype/property-pattern-syntax-tests: New file.
62020         * modules/unictype/property-pattern-white-space-tests: New file.
62021         * modules/unictype/property-private-use-tests: New file.
62022         * modules/unictype/property-punctuation-tests: New file.
62023         * modules/unictype/property-quotation-mark-tests: New file.
62024         * modules/unictype/property-radical-tests: New file.
62025         * modules/unictype/property-sentence-terminal-tests: New file.
62026         * modules/unictype/property-soft-dotted-tests: New file.
62027         * modules/unictype/property-space-tests: New file.
62028         * modules/unictype/property-terminal-punctuation-tests: New file.
62029         * modules/unictype/property-test-tests: New file.
62030         * modules/unictype/property-titlecase-tests: New file.
62031         * modules/unictype/property-unassigned-code-value-tests: New file.
62032         * modules/unictype/property-unified-ideograph-tests: New file.
62033         * modules/unictype/property-uppercase-tests: New file.
62034         * modules/unictype/property-variation-selector-tests: New file.
62035         * modules/unictype/property-white-space-tests: New file.
62036         * modules/unictype/property-xid-continue-tests: New file.
62037         * modules/unictype/property-xid-start-tests: New file.
62038         * modules/unictype/property-zero-width-tests: New file.
62039         * modules/unictype/scripts-tests: New file.
62040         * modules/unictype/syntax-c-ident-tests: New file.
62041         * modules/unictype/syntax-c-whitespace-tests: New file.
62042         * modules/unictype/syntax-java-ident-tests: New file.
62043         * modules/unictype/syntax-java-whitespace-tests: New file.
62044         * tests/unictype/test-bidi_byname.c: New file.
62045         * tests/unictype/test-bidi_name.c: New file.
62046         * tests/unictype/test-bidi_of.c: New file.
62047         * tests/unictype/test-bidi_test.c: New file.
62048         * tests/unictype/test-block_list.c: New file.
62049         * tests/unictype/test-block_of.c: New file.
62050         * tests/unictype/test-block_test.c: New file.
62051         * tests/unictype/test-categ_and.c: New file.
62052         * tests/unictype/test-categ_and_not.c: New file.
62053         * tests/unictype/test-categ_byname.c: New file.
62054         * tests/unictype/test-categ_name.c: New file.
62055         * tests/unictype/test-categ_none.c: New file.
62056         * tests/unictype/test-categ_of.c: New file.
62057         * tests/unictype/test-categ_or.c: New file.
62058         * tests/unictype/test-categ_test_withtable.c: New file.
62059         * tests/unictype/test-combining.c: New file.
62060         * tests/unictype/test-decdigit.c: New file.
62061         * tests/unictype/test-digit.c: New file.
62062         * tests/unictype/test-mirror.c: New file.
62063         * tests/unictype/test-numeric.c: New file.
62064         * tests/unictype/test-pr_byname.c: New file.
62065         * tests/unictype/test-pr_test.c: New file.
62066         * tests/unictype/test-predicate-part1.h: New file.
62067         * tests/unictype/test-predicate-part2.h: New file.
62068         * tests/unictype/test-scripts.c: New file.
62069         * tests/unictype/test-sy_c_ident.c: New file.
62070         * tests/unictype/test-sy_java_ident.c: New file.
62071
62072         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
62073         for Unicode 5.0.0.
62074         * tests/unictype/test-categ_Cc.c: Likewise.
62075         * tests/unictype/test-categ_Cf.c: Likewise.
62076         * tests/unictype/test-categ_Cn.c: Likewise.
62077         * tests/unictype/test-categ_Co.c: Likewise.
62078         * tests/unictype/test-categ_Cs.c: Likewise.
62079         * tests/unictype/test-categ_L.c: Likewise.
62080         * tests/unictype/test-categ_Ll.c: Likewise.
62081         * tests/unictype/test-categ_Lm.c: Likewise.
62082         * tests/unictype/test-categ_Lo.c: Likewise.
62083         * tests/unictype/test-categ_Lt.c: Likewise.
62084         * tests/unictype/test-categ_Lu.c: Likewise.
62085         * tests/unictype/test-categ_M.c: Likewise.
62086         * tests/unictype/test-categ_Mc.c: Likewise.
62087         * tests/unictype/test-categ_Me.c: Likewise.
62088         * tests/unictype/test-categ_Mn.c: Likewise.
62089         * tests/unictype/test-categ_N.c: Likewise.
62090         * tests/unictype/test-categ_Nd.c: Likewise.
62091         * tests/unictype/test-categ_Nl.c: Likewise.
62092         * tests/unictype/test-categ_No.c: Likewise.
62093         * tests/unictype/test-categ_P.c: Likewise.
62094         * tests/unictype/test-categ_Pc.c: Likewise.
62095         * tests/unictype/test-categ_Pd.c: Likewise.
62096         * tests/unictype/test-categ_Pe.c: Likewise.
62097         * tests/unictype/test-categ_Pf.c: Likewise.
62098         * tests/unictype/test-categ_Pi.c: Likewise.
62099         * tests/unictype/test-categ_Po.c: Likewise.
62100         * tests/unictype/test-categ_Ps.c: Likewise.
62101         * tests/unictype/test-categ_S.c: Likewise.
62102         * tests/unictype/test-categ_Sc.c: Likewise.
62103         * tests/unictype/test-categ_Sk.c: Likewise.
62104         * tests/unictype/test-categ_Sm.c: Likewise.
62105         * tests/unictype/test-categ_So.c: Likewise.
62106         * tests/unictype/test-categ_Z.c: Likewise.
62107         * tests/unictype/test-categ_Zl.c: Likewise.
62108         * tests/unictype/test-categ_Zp.c: Likewise.
62109         * tests/unictype/test-categ_Zs.c: Likewise.
62110         * tests/unictype/test-ctype_alnum.c: Likewise.
62111         * tests/unictype/test-ctype_alpha.c: Likewise.
62112         * tests/unictype/test-ctype_blank.c: Likewise.
62113         * tests/unictype/test-ctype_cntrl.c: Likewise.
62114         * tests/unictype/test-ctype_digit.c: Likewise.
62115         * tests/unictype/test-ctype_graph.c: Likewise.
62116         * tests/unictype/test-ctype_lower.c: Likewise.
62117         * tests/unictype/test-ctype_print.c: Likewise.
62118         * tests/unictype/test-ctype_punct.c: Likewise.
62119         * tests/unictype/test-ctype_space.c: Likewise.
62120         * tests/unictype/test-ctype_upper.c: Likewise.
62121         * tests/unictype/test-ctype_xdigit.c: Likewise.
62122         * tests/unictype/test-decdigit.h: Likewise.
62123         * tests/unictype/test-digit.h: Likewise.
62124         * tests/unictype/test-numeric.h: Likewise.
62125         * tests/unictype/test-pr_alphabetic.c: Likewise.
62126         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
62127         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
62128         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
62129         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
62130         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
62131         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
62132         * tests/unictype/test-pr_bidi_control.c: Likewise.
62133         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
62134         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
62135         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
62136         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
62137         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
62138         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
62139         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
62140         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
62141         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
62142         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
62143         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
62144         * tests/unictype/test-pr_combining.c: Likewise.
62145         * tests/unictype/test-pr_composite.c: Likewise.
62146         * tests/unictype/test-pr_currency_symbol.c: Likewise.
62147         * tests/unictype/test-pr_dash.c: Likewise.
62148         * tests/unictype/test-pr_decimal_digit.c: Likewise.
62149         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
62150         * tests/unictype/test-pr_deprecated.c: Likewise.
62151         * tests/unictype/test-pr_diacritic.c: Likewise.
62152         * tests/unictype/test-pr_extender.c: Likewise.
62153         * tests/unictype/test-pr_format_control.c: Likewise.
62154         * tests/unictype/test-pr_grapheme_base.c: Likewise.
62155         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
62156         * tests/unictype/test-pr_grapheme_link.c: Likewise.
62157         * tests/unictype/test-pr_hex_digit.c: Likewise.
62158         * tests/unictype/test-pr_hyphen.c: Likewise.
62159         * tests/unictype/test-pr_id_continue.c: Likewise.
62160         * tests/unictype/test-pr_id_start.c: Likewise.
62161         * tests/unictype/test-pr_ideographic.c: Likewise.
62162         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
62163         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
62164         * tests/unictype/test-pr_ignorable_control.c: Likewise.
62165         * tests/unictype/test-pr_iso_control.c: Likewise.
62166         * tests/unictype/test-pr_join_control.c: Likewise.
62167         * tests/unictype/test-pr_left_of_pair.c: Likewise.
62168         * tests/unictype/test-pr_line_separator.c: Likewise.
62169         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
62170         * tests/unictype/test-pr_lowercase.c: Likewise.
62171         * tests/unictype/test-pr_math.c: Likewise.
62172         * tests/unictype/test-pr_non_break.c: Likewise.
62173         * tests/unictype/test-pr_not_a_character.c: Likewise.
62174         * tests/unictype/test-pr_numeric.c: Likewise.
62175         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
62176         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
62177         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
62178         * tests/unictype/test-pr_other_id_continue.c: Likewise.
62179         * tests/unictype/test-pr_other_id_start.c: Likewise.
62180         * tests/unictype/test-pr_other_lowercase.c: Likewise.
62181         * tests/unictype/test-pr_other_math.c: Likewise.
62182         * tests/unictype/test-pr_other_uppercase.c: Likewise.
62183         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
62184         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
62185         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
62186         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
62187         * tests/unictype/test-pr_private_use.c: Likewise.
62188         * tests/unictype/test-pr_punctuation.c: Likewise.
62189         * tests/unictype/test-pr_quotation_mark.c: Likewise.
62190         * tests/unictype/test-pr_radical.c: Likewise.
62191         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
62192         * tests/unictype/test-pr_soft_dotted.c: Likewise.
62193         * tests/unictype/test-pr_space.c: Likewise.
62194         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
62195         * tests/unictype/test-pr_titlecase.c: Likewise.
62196         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
62197         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
62198         * tests/unictype/test-pr_uppercase.c: Likewise.
62199         * tests/unictype/test-pr_variation_selector.c: Likewise.
62200         * tests/unictype/test-pr_white_space.c: Likewise.
62201         * tests/unictype/test-pr_xid_continue.c: Likewise.
62202         * tests/unictype/test-pr_xid_start.c: Likewise.
62203         * tests/unictype/test-pr_zero_width.c: Likewise.
62204         * tests/unictype/test-sy_c_whitespace.c: Likewise.
62205         * tests/unictype/test-sy_java_whitespace.c: Likewise.
62206
62207 2007-11-12  Bruno Haible  <bruno@clisp.org>
62208
62209         Unicode character classification functions.
62210         * lib/unictype.h: New file.
62211         * modules/unictype/base: New file.
62212         * modules/unictype/category-L: New file.
62213         * modules/unictype/category-Lu: New file.
62214         * modules/unictype/category-Ll: New file.
62215         * modules/unictype/category-Lt: New file.
62216         * modules/unictype/category-Lm: New file.
62217         * modules/unictype/category-Lo: New file.
62218         * modules/unictype/category-M: New file.
62219         * modules/unictype/category-Mn: New file.
62220         * modules/unictype/category-Mc: New file.
62221         * modules/unictype/category-Me: New file.
62222         * modules/unictype/category-N: New file.
62223         * modules/unictype/category-Nd: New file.
62224         * modules/unictype/category-Nl: New file.
62225         * modules/unictype/category-No: New file.
62226         * modules/unictype/category-P: New file.
62227         * modules/unictype/category-Pc: New file.
62228         * modules/unictype/category-Pd: New file.
62229         * modules/unictype/category-Ps: New file.
62230         * modules/unictype/category-Pe: New file.
62231         * modules/unictype/category-Pi: New file.
62232         * modules/unictype/category-Pf: New file.
62233         * modules/unictype/category-Po: New file.
62234         * modules/unictype/category-S: New file.
62235         * modules/unictype/category-Sm: New file.
62236         * modules/unictype/category-Sc: New file.
62237         * modules/unictype/category-Sk: New file.
62238         * modules/unictype/category-So: New file.
62239         * modules/unictype/category-Z: New file.
62240         * modules/unictype/category-Zs: New file.
62241         * modules/unictype/category-Zl: New file.
62242         * modules/unictype/category-Zp: New file.
62243         * modules/unictype/category-C: New file.
62244         * modules/unictype/category-Cc: New file.
62245         * modules/unictype/category-Cf: New file.
62246         * modules/unictype/category-Cs: New file.
62247         * modules/unictype/category-Co: New file.
62248         * modules/unictype/category-Cn: New file.
62249         * modules/unictype/category-or: New file.
62250         * modules/unictype/category-of: New file.
62251         * modules/unictype/category-test: New file.
62252         * modules/unictype/category-test-withtable: New file.
62253         * modules/unictype/category-byname: New file.
62254         * modules/unictype/category-none: New file.
62255         * modules/unictype/category-and: New file.
62256         * modules/unictype/category-and-not: New file.
62257         * modules/unictype/category-name: New file.
62258         * modules/unictype/combining-class: New file.
62259         * modules/unictype/category-all: New file.
62260         * modules/unictype/bidicategory-all: New file.
62261         * modules/unictype/bidicategory-byname: New file.
62262         * modules/unictype/bidicategory-name: New file.
62263         * modules/unictype/bidicategory-of: New file.
62264         * modules/unictype/bidicategory-test: New file.
62265         * modules/unictype/decimal-digit: New file.
62266         * modules/unictype/digit: New file.
62267         * modules/unictype/numeric: New file.
62268         * modules/unictype/mirror: New file.
62269         * modules/unictype/property-white-space: New file.
62270         * modules/unictype/property-alphabetic: New file.
62271         * modules/unictype/property-other-alphabetic: New file.
62272         * modules/unictype/property-not-a-character: New file.
62273         * modules/unictype/property-default-ignorable-code-point: New file.
62274         * modules/unictype/property-other-default-ignorable-code-point: New
62275         file.
62276         * modules/unictype/property-deprecated: New file.
62277         * modules/unictype/property-logical-order-exception: New file.
62278         * modules/unictype/property-variation-selector: New file.
62279         * modules/unictype/property-private-use: New file.
62280         * modules/unictype/property-unassigned-code-value: New file.
62281         * modules/unictype/property-uppercase: New file.
62282         * modules/unictype/property-other-uppercase: New file.
62283         * modules/unictype/property-lowercase: New file.
62284         * modules/unictype/property-other-lowercase: New file.
62285         * modules/unictype/property-titlecase: New file.
62286         * modules/unictype/property-soft-dotted: New file.
62287         * modules/unictype/property-id-start: New file.
62288         * modules/unictype/property-other-id-start: New file.
62289         * modules/unictype/property-id-continue: New file.
62290         * modules/unictype/property-other-id-continue: New file.
62291         * modules/unictype/property-xid-start: New file.
62292         * modules/unictype/property-xid-continue: New file.
62293         * modules/unictype/property-pattern-white-space: New file.
62294         * modules/unictype/property-pattern-syntax: New file.
62295         * modules/unictype/property-join-control: New file.
62296         * modules/unictype/property-grapheme-base: New file.
62297         * modules/unictype/property-grapheme-extend: New file.
62298         * modules/unictype/property-other-grapheme-extend: New file.
62299         * modules/unictype/property-grapheme-link: New file.
62300         * modules/unictype/property-bidi-control: New file.
62301         * modules/unictype/property-bidi-left-to-right: New file.
62302         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
62303         * modules/unictype/property-bidi-arabic-right-to-left: New file.
62304         * modules/unictype/property-bidi-european-digit: New file.
62305         * modules/unictype/property-bidi-eur-num-separator: New file.
62306         * modules/unictype/property-bidi-eur-num-terminator: New file.
62307         * modules/unictype/property-bidi-arabic-digit: New file.
62308         * modules/unictype/property-bidi-common-separator: New file.
62309         * modules/unictype/property-bidi-block-separator: New file.
62310         * modules/unictype/property-bidi-segment-separator: New file.
62311         * modules/unictype/property-bidi-whitespace: New file.
62312         * modules/unictype/property-bidi-non-spacing-mark: New file.
62313         * modules/unictype/property-bidi-boundary-neutral: New file.
62314         * modules/unictype/property-bidi-pdf: New file.
62315         * modules/unictype/property-bidi-embedding-or-override: New file.
62316         * modules/unictype/property-bidi-other-neutral: New file.
62317         * modules/unictype/property-hex-digit: New file.
62318         * modules/unictype/property-ascii-hex-digit: New file.
62319         * modules/unictype/property-ideographic: New file.
62320         * modules/unictype/property-unified-ideograph: New file.
62321         * modules/unictype/property-radical: New file.
62322         * modules/unictype/property-ids-binary-operator: New file.
62323         * modules/unictype/property-ids-trinary-operator: New file.
62324         * modules/unictype/property-zero-width: New file.
62325         * modules/unictype/property-space: New file.
62326         * modules/unictype/property-non-break: New file.
62327         * modules/unictype/property-iso-control: New file.
62328         * modules/unictype/property-format-control: New file.
62329         * modules/unictype/property-dash: New file.
62330         * modules/unictype/property-hyphen: New file.
62331         * modules/unictype/property-punctuation: New file.
62332         * modules/unictype/property-line-separator: New file.
62333         * modules/unictype/property-paragraph-separator: New file.
62334         * modules/unictype/property-quotation-mark: New file.
62335         * modules/unictype/property-sentence-terminal: New file.
62336         * modules/unictype/property-terminal-punctuation: New file.
62337         * modules/unictype/property-currency-symbol: New file.
62338         * modules/unictype/property-math: New file.
62339         * modules/unictype/property-other-math: New file.
62340         * modules/unictype/property-paired-punctuation: New file.
62341         * modules/unictype/property-left-of-pair: New file.
62342         * modules/unictype/property-combining: New file.
62343         * modules/unictype/property-composite: New file.
62344         * modules/unictype/property-decimal-digit: New file.
62345         * modules/unictype/property-numeric: New file.
62346         * modules/unictype/property-diacritic: New file.
62347         * modules/unictype/property-extender: New file.
62348         * modules/unictype/property-ignorable-control: New file.
62349         * modules/unictype/property-test: New file.
62350         * modules/unictype/property-byname: New file.
62351         * modules/unictype/property-all: New file.
62352         * modules/unictype/scripts: New file.
62353         * modules/unictype/scripts-all: New file.
62354         * modules/unictype/block-of: New file.
62355         * modules/unictype/block-test: New file.
62356         * modules/unictype/block-list: New file.
62357         * modules/unictype/block-all: New file.
62358         * modules/unictype/syntax-c-whitespace: New file.
62359         * modules/unictype/syntax-java-whitespace: New file.
62360         * modules/unictype/syntax-c-ident: New file.
62361         * modules/unictype/syntax-java-ident: New file.
62362         * modules/unictype/ctype-alnum: New file.
62363         * modules/unictype/ctype-alpha: New file.
62364         * modules/unictype/ctype-cntrl: New file.
62365         * modules/unictype/ctype-digit: New file.
62366         * modules/unictype/ctype-graph: New file.
62367         * modules/unictype/ctype-lower: New file.
62368         * modules/unictype/ctype-print: New file.
62369         * modules/unictype/ctype-punct: New file.
62370         * modules/unictype/ctype-space: New file.
62371         * modules/unictype/ctype-upper: New file.
62372         * modules/unictype/ctype-xdigit: New file.
62373         * modules/unictype/ctype-blank: New file.
62374         * lib/unictype/bidi_byname.c: New file.
62375         * lib/unictype/bidi_name.c: New file.
62376         * lib/unictype/bidi_of.c: New file.
62377         * lib/unictype/bidi_test.c: New file.
62378         * lib/unictype/bitmap.h: New file.
62379         * lib/unictype/block_test.c: New file.
62380         * lib/unictype/blocks.c: New file.
62381         * lib/unictype/categ_C.c: New file.
62382         * lib/unictype/categ_Cc.c: New file.
62383         * lib/unictype/categ_Cf.c: New file.
62384         * lib/unictype/categ_Cn.c: New file.
62385         * lib/unictype/categ_Co.c: New file.
62386         * lib/unictype/categ_Cs.c: New file.
62387         * lib/unictype/categ_L.c: New file.
62388         * lib/unictype/categ_Ll.c: New file.
62389         * lib/unictype/categ_Lm.c: New file.
62390         * lib/unictype/categ_Lo.c: New file.
62391         * lib/unictype/categ_Lt.c: New file.
62392         * lib/unictype/categ_Lu.c: New file.
62393         * lib/unictype/categ_M.c: New file.
62394         * lib/unictype/categ_Mc.c: New file.
62395         * lib/unictype/categ_Me.c: New file.
62396         * lib/unictype/categ_Mn.c: New file.
62397         * lib/unictype/categ_N.c: New file.
62398         * lib/unictype/categ_Nd.c: New file.
62399         * lib/unictype/categ_Nl.c: New file.
62400         * lib/unictype/categ_No.c: New file.
62401         * lib/unictype/categ_P.c: New file.
62402         * lib/unictype/categ_Pc.c: New file.
62403         * lib/unictype/categ_Pd.c: New file.
62404         * lib/unictype/categ_Pe.c: New file.
62405         * lib/unictype/categ_Pf.c: New file.
62406         * lib/unictype/categ_Pi.c: New file.
62407         * lib/unictype/categ_Po.c: New file.
62408         * lib/unictype/categ_Ps.c: New file.
62409         * lib/unictype/categ_S.c: New file.
62410         * lib/unictype/categ_Sc.c: New file.
62411         * lib/unictype/categ_Sk.c: New file.
62412         * lib/unictype/categ_Sm.c: New file.
62413         * lib/unictype/categ_So.c: New file.
62414         * lib/unictype/categ_Z.c: New file.
62415         * lib/unictype/categ_Zl.c: New file.
62416         * lib/unictype/categ_Zp.c: New file.
62417         * lib/unictype/categ_Zs.c: New file.
62418         * lib/unictype/categ_and.c: New file.
62419         * lib/unictype/categ_and_not.c: New file.
62420         * lib/unictype/categ_byname.c: New file.
62421         * lib/unictype/categ_name.c: New file.
62422         * lib/unictype/categ_none.c: New file.
62423         * lib/unictype/categ_of.c: New file.
62424         * lib/unictype/categ_or.c: New file.
62425         * lib/unictype/categ_test.c: New file.
62426         * lib/unictype/combining.c: New file.
62427         * lib/unictype/ctype_alnum.c: New file.
62428         * lib/unictype/ctype_alpha.c: New file.
62429         * lib/unictype/ctype_blank.c: New file.
62430         * lib/unictype/ctype_cntrl.c: New file.
62431         * lib/unictype/ctype_digit.c: New file.
62432         * lib/unictype/ctype_graph.c: New file.
62433         * lib/unictype/ctype_lower.c: New file.
62434         * lib/unictype/ctype_print.c: New file.
62435         * lib/unictype/ctype_punct.c: New file.
62436         * lib/unictype/ctype_space.c: New file.
62437         * lib/unictype/ctype_upper.c: New file.
62438         * lib/unictype/ctype_xdigit.c: New file.
62439         * lib/unictype/decdigit.c: New file.
62440         * lib/unictype/digit.c: New file.
62441         * lib/unictype/identsyntaxmap.h: New file.
62442         * lib/unictype/mirror.c: New file.
62443         * lib/unictype/numeric.c: New file.
62444         * lib/unictype/pr_alphabetic.c: New file.
62445         * lib/unictype/pr_ascii_hex_digit.c: New file.
62446         * lib/unictype/pr_bidi_arabic_digit.c: New file.
62447         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
62448         * lib/unictype/pr_bidi_block_separator.c: New file.
62449         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
62450         * lib/unictype/pr_bidi_common_separator.c: New file.
62451         * lib/unictype/pr_bidi_control.c: New file.
62452         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
62453         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
62454         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
62455         * lib/unictype/pr_bidi_european_digit.c: New file.
62456         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
62457         * lib/unictype/pr_bidi_left_to_right.c: New file.
62458         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
62459         * lib/unictype/pr_bidi_other_neutral.c: New file.
62460         * lib/unictype/pr_bidi_pdf.c: New file.
62461         * lib/unictype/pr_bidi_segment_separator.c: New file.
62462         * lib/unictype/pr_bidi_whitespace.c: New file.
62463         * lib/unictype/pr_byname.c: New file.
62464         * lib/unictype/pr_byname.gperf: New file.
62465         * lib/unictype/pr_combining.c: New file.
62466         * lib/unictype/pr_composite.c: New file.
62467         * lib/unictype/pr_currency_symbol.c: New file.
62468         * lib/unictype/pr_dash.c: New file.
62469         * lib/unictype/pr_decimal_digit.c: New file.
62470         * lib/unictype/pr_default_ignorable_code_point.c: New file.
62471         * lib/unictype/pr_deprecated.c: New file.
62472         * lib/unictype/pr_diacritic.c: New file.
62473         * lib/unictype/pr_extender.c: New file.
62474         * lib/unictype/pr_format_control.c: New file.
62475         * lib/unictype/pr_grapheme_base.c: New file.
62476         * lib/unictype/pr_grapheme_extend.c: New file.
62477         * lib/unictype/pr_grapheme_link.c: New file.
62478         * lib/unictype/pr_hex_digit.c: New file.
62479         * lib/unictype/pr_hyphen.c: New file.
62480         * lib/unictype/pr_id_continue.c: New file.
62481         * lib/unictype/pr_id_start.c: New file.
62482         * lib/unictype/pr_ideographic.c: New file.
62483         * lib/unictype/pr_ids_binary_operator.c: New file.
62484         * lib/unictype/pr_ids_trinary_operator.c: New file.
62485         * lib/unictype/pr_ignorable_control.c: New file.
62486         * lib/unictype/pr_iso_control.c: New file.
62487         * lib/unictype/pr_join_control.c: New file.
62488         * lib/unictype/pr_left_of_pair.c: New file.
62489         * lib/unictype/pr_line_separator.c: New file.
62490         * lib/unictype/pr_logical_order_exception.c: New file.
62491         * lib/unictype/pr_lowercase.c: New file.
62492         * lib/unictype/pr_math.c: New file.
62493         * lib/unictype/pr_non_break.c: New file.
62494         * lib/unictype/pr_not_a_character.c: New file.
62495         * lib/unictype/pr_numeric.c: New file.
62496         * lib/unictype/pr_other_alphabetic.c: New file.
62497         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
62498         * lib/unictype/pr_other_grapheme_extend.c: New file.
62499         * lib/unictype/pr_other_id_continue.c: New file.
62500         * lib/unictype/pr_other_id_start.c: New file.
62501         * lib/unictype/pr_other_lowercase.c: New file.
62502         * lib/unictype/pr_other_math.c: New file.
62503         * lib/unictype/pr_other_uppercase.c: New file.
62504         * lib/unictype/pr_paired_punctuation.c: New file.
62505         * lib/unictype/pr_paragraph_separator.c: New file.
62506         * lib/unictype/pr_pattern_syntax.c: New file.
62507         * lib/unictype/pr_pattern_white_space.c: New file.
62508         * lib/unictype/pr_private_use.c: New file.
62509         * lib/unictype/pr_punctuation.c: New file.
62510         * lib/unictype/pr_quotation_mark.c: New file.
62511         * lib/unictype/pr_radical.c: New file.
62512         * lib/unictype/pr_sentence_terminal.c: New file.
62513         * lib/unictype/pr_soft_dotted.c: New file.
62514         * lib/unictype/pr_space.c: New file.
62515         * lib/unictype/pr_terminal_punctuation.c: New file.
62516         * lib/unictype/pr_test.c: New file.
62517         * lib/unictype/pr_titlecase.c: New file.
62518         * lib/unictype/pr_unassigned_code_value.c: New file.
62519         * lib/unictype/pr_unified_ideograph.c: New file.
62520         * lib/unictype/pr_uppercase.c: New file.
62521         * lib/unictype/pr_variation_selector.c: New file.
62522         * lib/unictype/pr_white_space.c: New file.
62523         * lib/unictype/pr_xid_continue.c: New file.
62524         * lib/unictype/pr_xid_start.c: New file.
62525         * lib/unictype/pr_zero_width.c: New file.
62526         * lib/unictype/scripts.c: New file.
62527         * lib/unictype/sy_c_ident.c: New file.
62528         * lib/unictype/sy_c_whitespace.c: New file.
62529         * lib/unictype/sy_java_ident.c: New file.
62530         * lib/unictype/sy_java_whitespace.c: New file.
62531
62532         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
62533         Unicode 5.0.0.
62534         * lib/unictype/blocks.h: Likewise.
62535         * lib/unictype/categ_C.h: Likewise.
62536         * lib/unictype/categ_Cc.h: Likewise.
62537         * lib/unictype/categ_Cf.h: Likewise.
62538         * lib/unictype/categ_Cn.h: Likewise.
62539         * lib/unictype/categ_Co.h: Likewise.
62540         * lib/unictype/categ_Cs.h: Likewise.
62541         * lib/unictype/categ_L.h: Likewise.
62542         * lib/unictype/categ_Ll.h: Likewise.
62543         * lib/unictype/categ_Lm.h: Likewise.
62544         * lib/unictype/categ_Lo.h: Likewise.
62545         * lib/unictype/categ_Lt.h: Likewise.
62546         * lib/unictype/categ_Lu.h: Likewise.
62547         * lib/unictype/categ_M.h: Likewise.
62548         * lib/unictype/categ_Mc.h: Likewise.
62549         * lib/unictype/categ_Me.h: Likewise.
62550         * lib/unictype/categ_Mn.h: Likewise.
62551         * lib/unictype/categ_N.h: Likewise.
62552         * lib/unictype/categ_Nd.h: Likewise.
62553         * lib/unictype/categ_Nl.h: Likewise.
62554         * lib/unictype/categ_No.h: Likewise.
62555         * lib/unictype/categ_P.h: Likewise.
62556         * lib/unictype/categ_Pc.h: Likewise.
62557         * lib/unictype/categ_Pd.h: Likewise.
62558         * lib/unictype/categ_Pe.h: Likewise.
62559         * lib/unictype/categ_Pf.h: Likewise.
62560         * lib/unictype/categ_Pi.h: Likewise.
62561         * lib/unictype/categ_Po.h: Likewise.
62562         * lib/unictype/categ_Ps.h: Likewise.
62563         * lib/unictype/categ_S.h: Likewise.
62564         * lib/unictype/categ_Sc.h: Likewise.
62565         * lib/unictype/categ_Sk.h: Likewise.
62566         * lib/unictype/categ_Sm.h: Likewise.
62567         * lib/unictype/categ_So.h: Likewise.
62568         * lib/unictype/categ_Z.h: Likewise.
62569         * lib/unictype/categ_Zl.h: Likewise.
62570         * lib/unictype/categ_Zp.h: Likewise.
62571         * lib/unictype/categ_Zs.h: Likewise.
62572         * lib/unictype/categ_of.h: Likewise.
62573         * lib/unictype/combining.h: Likewise.
62574         * lib/unictype/ctype_alnum.h: Likewise.
62575         * lib/unictype/ctype_alpha.h: Likewise.
62576         * lib/unictype/ctype_blank.h: Likewise.
62577         * lib/unictype/ctype_cntrl.h: Likewise.
62578         * lib/unictype/ctype_digit.h: Likewise.
62579         * lib/unictype/ctype_graph.h: Likewise.
62580         * lib/unictype/ctype_lower.h: Likewise.
62581         * lib/unictype/ctype_print.h: Likewise.
62582         * lib/unictype/ctype_punct.h: Likewise.
62583         * lib/unictype/ctype_space.h: Likewise.
62584         * lib/unictype/ctype_upper.h: Likewise.
62585         * lib/unictype/ctype_xdigit.h: Likewise.
62586         * lib/unictype/decdigit.h: Likewise.
62587         * lib/unictype/digit.h: Likewise.
62588         * lib/unictype/mirror.h: Likewise.
62589         * lib/unictype/numeric.h: Likewise.
62590         * lib/unictype/pr_alphabetic.h: Likewise.
62591         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
62592         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
62593         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
62594         * lib/unictype/pr_bidi_block_separator.h: Likewise.
62595         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
62596         * lib/unictype/pr_bidi_common_separator.h: Likewise.
62597         * lib/unictype/pr_bidi_control.h: Likewise.
62598         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
62599         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
62600         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
62601         * lib/unictype/pr_bidi_european_digit.h: Likewise.
62602         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
62603         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
62604         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
62605         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
62606         * lib/unictype/pr_bidi_pdf.h: Likewise.
62607         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
62608         * lib/unictype/pr_bidi_whitespace.h: Likewise.
62609         * lib/unictype/pr_combining.h: Likewise.
62610         * lib/unictype/pr_composite.h: Likewise.
62611         * lib/unictype/pr_currency_symbol.h: Likewise.
62612         * lib/unictype/pr_dash.h: Likewise.
62613         * lib/unictype/pr_decimal_digit.h: Likewise.
62614         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
62615         * lib/unictype/pr_deprecated.h: Likewise.
62616         * lib/unictype/pr_diacritic.h: Likewise.
62617         * lib/unictype/pr_extender.h: Likewise.
62618         * lib/unictype/pr_format_control.h: Likewise.
62619         * lib/unictype/pr_grapheme_base.h: Likewise.
62620         * lib/unictype/pr_grapheme_extend.h: Likewise.
62621         * lib/unictype/pr_grapheme_link.h: Likewise.
62622         * lib/unictype/pr_hex_digit.h: Likewise.
62623         * lib/unictype/pr_hyphen.h: Likewise.
62624         * lib/unictype/pr_id_continue.h: Likewise.
62625         * lib/unictype/pr_id_start.h: Likewise.
62626         * lib/unictype/pr_ideographic.h: Likewise.
62627         * lib/unictype/pr_ids_binary_operator.h: Likewise.
62628         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
62629         * lib/unictype/pr_ignorable_control.h: Likewise.
62630         * lib/unictype/pr_iso_control.h: Likewise.
62631         * lib/unictype/pr_join_control.h: Likewise.
62632         * lib/unictype/pr_left_of_pair.h: Likewise.
62633         * lib/unictype/pr_line_separator.h: Likewise.
62634         * lib/unictype/pr_logical_order_exception.h: Likewise.
62635         * lib/unictype/pr_lowercase.h: Likewise.
62636         * lib/unictype/pr_math.h: Likewise.
62637         * lib/unictype/pr_non_break.h: Likewise.
62638         * lib/unictype/pr_not_a_character.h: Likewise.
62639         * lib/unictype/pr_numeric.h: Likewise.
62640         * lib/unictype/pr_other_alphabetic.h: Likewise.
62641         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
62642         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
62643         * lib/unictype/pr_other_id_continue.h: Likewise.
62644         * lib/unictype/pr_other_id_start.h: Likewise.
62645         * lib/unictype/pr_other_lowercase.h: Likewise.
62646         * lib/unictype/pr_other_math.h: Likewise.
62647         * lib/unictype/pr_other_uppercase.h: Likewise.
62648         * lib/unictype/pr_paired_punctuation.h: Likewise.
62649         * lib/unictype/pr_paragraph_separator.h: Likewise.
62650         * lib/unictype/pr_pattern_syntax.h: Likewise.
62651         * lib/unictype/pr_pattern_white_space.h: Likewise.
62652         * lib/unictype/pr_private_use.h: Likewise.
62653         * lib/unictype/pr_punctuation.h: Likewise.
62654         * lib/unictype/pr_quotation_mark.h: Likewise.
62655         * lib/unictype/pr_radical.h: Likewise.
62656         * lib/unictype/pr_sentence_terminal.h: Likewise.
62657         * lib/unictype/pr_soft_dotted.h: Likewise.
62658         * lib/unictype/pr_space.h: Likewise.
62659         * lib/unictype/pr_terminal_punctuation.h: Likewise.
62660         * lib/unictype/pr_titlecase.h: Likewise.
62661         * lib/unictype/pr_unassigned_code_value.h: Likewise.
62662         * lib/unictype/pr_unified_ideograph.h: Likewise.
62663         * lib/unictype/pr_uppercase.h: Likewise.
62664         * lib/unictype/pr_variation_selector.h: Likewise.
62665         * lib/unictype/pr_white_space.h: Likewise.
62666         * lib/unictype/pr_xid_continue.h: Likewise.
62667         * lib/unictype/pr_xid_start.h: Likewise.
62668         * lib/unictype/pr_zero_width.h: Likewise.
62669         * lib/unictype/scripts.h: Likewise.
62670         * lib/unictype/scripts_byname.gperf: Likewise.
62671         * lib/unictype/sy_c_ident.h: Likewise.
62672         * lib/unictype/sy_c_whitespace.h: Likewise.
62673         * lib/unictype/sy_java_ident.h: Likewise.
62674         * lib/unictype/sy_java_whitespace.h: Likewise.
62675
62676         * lib/unictype/Makefile: New file.
62677         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
62678         glibc.
62679         * lib/unictype/3level.h: New file, copied from glibc.
62680         * lib/unictype/3levelbit.h: New file.
62681
62682 2007-11-11  Bruno Haible  <bruno@clisp.org>
62683
62684         * modules/gperf: New file.
62685         * modules/iconv_open (Depends-on): Add it.
62686         (Makefile.am): Remove the GPERF definition.
62687
62688 2007-11-11  Bruno Haible  <bruno@clisp.org>
62689
62690         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
62691         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
62692
62693 2007-11-11  Bruno Haible  <bruno@clisp.org>
62694
62695         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
62696         (usage): Remove function.
62697
62698 2007-11-11  Bruno Haible  <bruno@clisp.org>
62699
62700         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
62701         gl_FUNC_CEILF_LIBS.
62702         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
62703         gl_FUNC_CEIL_LIBS.
62704         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
62705         gl_FUNC_CEILL_LIBS.
62706         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
62707         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
62708         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
62709
62710 2007-11-11  Bruno Haible  <bruno@clisp.org>
62711
62712         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
62713         roundf were declared but do not exist on functions.
62714         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
62715         roundl were declared but do not exist on functions.
62716         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
62717         HAVE_FLOORL_AND_CEILL, respectively.
62718         Needed for Sun C on Solaris 10.
62719
62720 2007-11-11  Bruno Haible  <bruno@clisp.org>
62721
62722         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
62723         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
62724         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
62725         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
62726         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
62727         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
62728         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
62729         HAVE_DECL_ROUNDF.
62730         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
62731         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
62732         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
62733         of HAVE_DECL_ROUND*.
62734         * modules/math (Makefile.am): Update.
62735
62736 2007-11-10  Bruno Haible  <bruno@clisp.org>
62737
62738         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
62739         ptrdiff_t as m4/intl.m4.
62740
62741 2007-11-10  Jim Meyering  <meyering@redhat.com>
62742
62743         Avoid link failure for the argmatch test.
62744         * tests/test-argmatch.c (usage): Define function to avoid a link
62745         failure: argmatch_die requires a usage function.
62746
62747 2007-11-09  Bruno Haible  <bruno@clisp.org>
62748
62749         * doc/functions/snprintf.texi: Mention BeOS deficiency.
62750         * doc/functions/vsnprintf.texi: Likewise.
62751         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
62752         with a size argument < 2.
62753
62754 2007-11-09  Bruno Haible  <bruno@clisp.org>
62755
62756         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
62757         buffer. Fixes an inefficiency introduced on 2007-11-03.
62758
62759 2007-11-09  Bruno Haible  <bruno@clisp.org>
62760
62761         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
62762         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
62763
62764 2007-11-08  Jim Meyering  <meyering@redhat.com>
62765
62766         Change cache variable name prefix "jm_" to "gl_" everywhere.
62767         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
62768         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
62769         * m4/uptime.m4: s/gl_/jm_/
62770
62771 2007-11-07  Bruno Haible  <bruno@clisp.org>
62772
62773         Update to GNU gettext 0.17.
62774         * m4/intl.m4: Update to GNU gettext 0.17.
62775         * m4/po.m4: Likewise.
62776         * modules/gettext (Files): Remove m4/ulonglong.m4.
62777         (configure.ac): Require gettext infrastructure from version 0.17.
62778
62779 2007-11-06  Bruno Haible  <bruno@clisp.org>
62780
62781         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
62782         symbolic values are not defined in a public header.
62783         * lib/freadable.c (freadable) [QNX]: Likewise.
62784         * lib/freadahead.c (freadahead) [QNX]: Likewise.
62785         * lib/freading.c (freading) [QNX]: Likewise.
62786         * lib/fseterr.c (fseterr) [QNX]: Likewise.
62787         * lib/fwritable.c (fwritable) [QNX]: Likewise.
62788         * lib/fwriting.c (fwriting) [QNX]: Likewise.
62789         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
62790         Reported by Alain Magloire.
62791
62792         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
62793
62794 2007-11-05  Bruno Haible  <bruno@clisp.org>
62795
62796         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
62797         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
62798         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
62799         Reported by Eric Blake.
62800
62801 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62802             Bruno Haible  <bruno@clisp.org>
62803
62804         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
62805         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
62806         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
62807         (malloc): Undefine also before including <stdlib.h>.
62808         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
62809         Needed on OSF/1 4.0.
62810
62811 2007-11-05  Jim Meyering  <meyering@redhat.com>
62812
62813         git-version-gen: sync from coreutils.
62814         * build-aux/git-version-gen: Add comments.
62815         Change the first '-' to '.' in the snapshot version string,
62816         e.g., 6.9-377-08144 -> 6.9.377-08144
62817         Remove first parameter.
62818         Don't declare a version "-dirty" merely because a time
62819         stamp has changed.
62820
62821 2007-11-04  Bruno Haible  <bruno@clisp.org>
62822
62823         * lib/lock.h: Protect all macro definitions containing an 'if'
62824         statement through a "do { ... } while (0)".
62825         * lib/tls.h: Likewise.
62826
62827 2007-11-04  Bruno Haible  <bruno@clisp.org>
62828
62829         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
62830
62831 2007-11-04  Bruno Haible  <bruno@clisp.org>
62832
62833         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
62834         * modules/fprintf-posix (Depends-on): Add nocrash.
62835         * modules/snprintf-posix (Depends-on): Likewise.
62836         * modules/sprintf-posix (Depends-on): Likewise.
62837         * modules/vasnprintf-posix (Depends-on): Likewise.
62838         * modules/vasprintf-posix (Depends-on): Likewise.
62839         * modules/vfprintf-posix (Depends-on): Likewise.
62840         * modules/vsnprintf-posix (Depends-on): Likewise.
62841         * modules/vsprintf-posix (Depends-on): Likewise.
62842         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
62843         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
62844         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
62845         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
62846         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
62847         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
62848         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
62849
62850 2007-11-04  Bruno Haible  <bruno@clisp.org>
62851
62852         * modules/nocrash: New file.
62853         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
62854         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
62855
62856 2007-11-04  Bruno Haible  <bruno@clisp.org>
62857
62858         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
62859         precision handling.
62860         * tests/test-vasprintf-posix.c (test_function): Likewise.
62861         * tests/test-snprintf-posix.h (test_function): Likewise.
62862         * tests/test-sprintf-posix.h (test_function): Likewise.
62863
62864         Fix *printf behaviour for large precisions on mingw and BeOS.
62865         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
62866         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
62867         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
62868         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
62869         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
62870         gl_PRINTF_PRECISION and test its result. Invoke
62871         gl_PREREQ_VASNPRINTF_PRECISION.
62872         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
62873         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62874         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62875         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62876         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62877         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62878         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62879         * doc/functions/fprintf.texi: Update.
62880         * doc/functions/printf.texi: Update.
62881         * doc/functions/snprintf.texi: Update.
62882         * doc/functions/sprintf.texi: Update.
62883         * doc/functions/vfprintf.texi: Update.
62884         * doc/functions/vprintf.texi: Update.
62885         * doc/functions/vsnprintf.texi: Update.
62886         * doc/functions/vsprintf.texi: Update.
62887
62888 2007-11-04  Bruno Haible  <bruno@clisp.org>
62889
62890         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
62891
62892 2007-11-04  Bruno Haible  <bruno@clisp.org>
62893
62894         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
62895         Reported by Sylvain Beucler <beuc@gnu.org>.
62896
62897 2007-11-03  Bruno Haible  <bruno@clisp.org>
62898
62899         * tests/test-fprintf-posix2.sh: New file.
62900         * tests/test-fprintf-posix2.c: New file.
62901         * modules/fprintf-posix-tests (Files): Add them.
62902         (TESTS): Add test-fprintf-posix2.sh.
62903         (configure.ac): Check for getrlimit and setrlimit.
62904         (check_PROGRAMS): Add test-fprintf-posix2.
62905
62906         * tests/test-printf-posix2.sh: New file.
62907         * tests/test-printf-posix2.c: New file.
62908         * modules/printf-posix-tests (Files): Add them.
62909         (TESTS): Add test-printf-posix2.sh.
62910         (configure.ac): Check for getrlimit and setrlimit.
62911         (check_PROGRAMS): Add test-printf-posix2.
62912
62913         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
62914         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
62915         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
62916         (decode_double): New function, copied from decode_long_double.
62917         (scale10_round_decimal_decoded): New function, extracted from
62918         scale10_round_decimal_long_double.
62919         (scale10_round_decimal_long_double): Use it.
62920         (scale10_round_decimal_double): New function.
62921         (floorlog10): New function.
62922         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
62923         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
62924         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
62925         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
62926         gl_PRINTF_ENOMEM and test its result. Invoke
62927         gl_PREREQ_VASNPRINTF_ENOMEM.
62928         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
62929         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62930         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62931         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62932         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62933         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62934         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62935         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
62936         * modules/snprintf-posix (Depends-on): Likewise.
62937         * modules/sprintf-posix (Depends-on): Likewise.
62938         * modules/vasnprintf-posix (Depends-on): Likewise.
62939         * modules/vasprintf-posix (Depends-on): Likewise.
62940         * modules/vfprintf-posix (Depends-on): Likewise.
62941         * modules/vsnprintf-posix (Depends-on): Likewise.
62942         * modules/vsprintf-posix (Depends-on): Likewise.
62943         * doc/functions/fprintf.texi: Update.
62944         * doc/functions/printf.texi: Update.
62945         * doc/functions/snprintf.texi: Update.
62946         * doc/functions/sprintf.texi: Update.
62947         * doc/functions/vfprintf.texi: Update.
62948         * doc/functions/vprintf.texi: Update.
62949         * doc/functions/vsnprintf.texi: Update.
62950         * doc/functions/vsprintf.texi: Update.
62951
62952 2007-11-03  Bruno Haible  <bruno@clisp.org>
62953
62954         * modules/frexp-nolibm-tests: New file.
62955
62956         * modules/frexp-nolibm: New file.
62957         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
62958
62959 2007-11-03  Bruno Haible  <bruno@clisp.org>
62960
62961         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
62962         value is C99 compliant.
62963         Needed for OSF/1 5.1.
62964
62965 2007-11-03  Bruno Haible  <bruno@clisp.org>
62966
62967         Fix out-of-memory handling of vasnprintf.
62968         * lib/printf-parse.c: Include <errno.h>.
62969         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
62970         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
62971         is already set.
62972
62973 2007-11-02  Eric Blake  <ebb9@byu.net>
62974
62975         Fix tests on cygwin.
62976         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
62977
62978 2007-11-01  Bruno Haible  <bruno@clisp.org>
62979
62980         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
62981         warning.
62982         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
62983         needed for POSIX compatibility.
62984
62985 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
62986
62987         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
62988         for compatibility with GNU.
62989
62990 2007-11-01  Bruno Haible  <bruno@clisp.org>
62991
62992         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
62993         (putenv): Renamed from rpl_putenv. Change argument type from
62994         'const char *' to 'char *'.
62995         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
62996         of defining putenv in config.h, just set REPLACE_PUTENV.
62997         * modules/putenv (Depends-on): Add stdlib.
62998         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
62999         (Include): Use <stdlib.h>.
63000         * lib/stdlib.in.h (putenv): New declaration.
63001         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
63002         REPLACE_PUTENV.
63003         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
63004         REPLACE_PUTENV.
63005         Needed for MacOS X 10.5.0.
63006         Reported by Peter O'Gorman <peter@pogma.com>.
63007
63008 2007-11-01  Jim Meyering  <meyering@redhat.com>
63009
63010         Treat an empty date string exactly like "0".
63011         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
63012         if the remaining date string (to be parsed) is empty, use "0".
63013         Reported by Mischa Molhoek and discussed in this thread:
63014         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
63015
63016 2007-10-31  Bruno Haible  <bruno@clisp.org>
63017
63018         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
63019         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
63020         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
63021         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
63022         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
63023         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
63024
63025 2007-10-31  Bruno Haible  <bruno@clisp.org>
63026
63027         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
63028         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
63029         (AC_TYPE_LONG_LONG_INT): Use it.
63030         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
63031         it as well.
63032         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
63033         to m4/longlong.m4.
63034         * modules/stdint (Files): Remove m4/ulonglong.m4.
63035         * modules/strtoull (Files): Use m4/longlong.m4 instead of
63036         m4/ulonglong.m4.
63037         * modules/strtoumax (Files): Likewise.
63038
63039 2007-10-30  Bruno Haible  <bruno@clisp.org>
63040
63041         * modules/xvasprintf-posix: New file.
63042         Suggested by Eric Blake.
63043
63044 2007-10-30  Bruno Haible  <bruno@clisp.org>
63045
63046         * modules/xprintf-posix-tests: New file.
63047         * tests/test-xprintf-posix.sh: New file.
63048         * tests/test-xprintf-posix.c: New file.
63049         * tests/test-xfprintf-posix.c: New file.
63050
63051         * modules/xprintf-posix: New file.
63052
63053 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63054
63055         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
63056         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
63057         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
63058
63059 2007-10-29  Bruno Haible  <bruno@clisp.org>
63060
63061         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
63062         contain the special marker '_cv_'.
63063         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
63064         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
63065         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
63066         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
63067         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
63068         Reported by Ralf Wildenhues.
63069
63070 2007-10-29  Bruno Haible  <bruno@clisp.org>
63071
63072         * gnulib-tool (func_import): When --lgpl is not specified, set
63073         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
63074         GPLv3.
63075         Reported by Simon Josefsson.
63076
63077 2007-10-28  Bruno Haible  <bruno@clisp.org>
63078
63079         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
63080         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
63081         HAVE_DECL_ISFINITE.
63082         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
63083         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
63084         HAVE_DECL_ISFINITE.
63085
63086 2007-10-28  Bruno Haible  <bruno@clisp.org>
63087
63088         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
63089         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
63090
63091 2007-10-28  Bruno Haible  <bruno@clisp.org>
63092
63093         Fix link errors with Sun C 5.0 on Solaris 10.
63094         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
63095         function is declared but not present in the compiler's libm.
63096         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
63097         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
63098         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
63099         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
63100         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
63101         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
63102         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
63103         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
63104         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
63105         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
63106         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
63107         HAVE_DECL_FLOORL.
63108
63109 2007-10-28  Bruno Haible  <bruno@clisp.org>
63110
63111         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
63112         gl_FUNC_FLOORL. Cache the result.
63113         (gl_FUNC_FLOORL): Use it.
63114         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
63115         gl_FUNC_CEILL. Cache the result.
63116         (gl_FUNC_CEILL): Use it.
63117
63118         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
63119         gl_FUNC_FLOOR. Cache the result.
63120         (gl_FUNC_FLOOR): Use it.
63121         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
63122         gl_FUNC_CEIL. Cache the result.
63123         (gl_FUNC_CEIL): Use it.
63124
63125         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
63126         gl_FUNC_FLOORF. Cache the result.
63127         (gl_FUNC_FLOORF): Use it.
63128         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
63129         gl_FUNC_CEILF. Cache the result.
63130         (gl_FUNC_CEILF): Use it.
63131
63132 2007-10-28  Bruno Haible  <bruno@clisp.org>
63133
63134         * gnulib-tool: Allow specifying the LGPL version number through
63135         --lgpl=2 or --lgpl=3.
63136         (func_usage): Document --lgpl with argument.
63137         Handle --lgpl=... arguments.
63138         (func_import): Recognize also gl_LGPL calls with an argument. When
63139         --lgpl=2 is used and the module's license is just LGPL, report an
63140         error. Set sed_transform_lib_file according to the lgpl variable. In
63141         the generated files, use --lgpl or gl_LGPL invocations with argument,
63142         if necessary.
63143         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
63144         an LGPv2+ license.
63145         * doc/gnulib-tool.texi (Modified imports): Update explanation of
63146         gl_LGPL macro.
63147
63148 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63149             Bruno Haible  <bruno@clisp.org>
63150
63151         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
63152         (u16_uctomb_aux): Likewise.
63153         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
63154         !HAVE_INLINE.
63155         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
63156
63157 2007-10-28  Bruno Haible  <bruno@clisp.org>
63158
63159         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
63160         Invoke AM_GETTEXT_OPTION if it exists.
63161         * modules/vasprintf: Likewise.
63162         * modules/verror: Likewise.
63163         * modules/xprintf: Likewise.
63164         * modules/xvasprintf: Likewise.
63165
63166 2007-10-27  Ben Pfaff  <blp@gnu.org>
63167
63168         * lib/math.in.h: Define isfinite macro and prototypes for
63169         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
63170         implementations.
63171         * m4/math_h.m4: New substitutions for isfinite module.
63172         * lib/isfinite.c: New file.
63173         * m4/isfinite.m4: New file.
63174         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
63175         * modules/isfinite: New file.
63176         * modules/isfinite-tests: New file.
63177         * tests/tests-isfinite.c: New file.
63178         * doc/functions/isfinite.texi: Mention isfinite module.
63179         * MODULES.html.sh: Mention new module.
63180
63181 2007-10-27  Ben Pfaff  <blp@gnu.org>
63182
63183         Ralf Wildenhues reported that Tru64 4.0D declares the round
63184         functions but does not have definitions.
63185         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
63186         cannot be found in any library, set the output variable to
63187         "missing" instead of "".
63188         * m4/round.m4: Also use our substitute if we cannot find round in
63189         any library, even if it is declared.
63190         * m4/roundf.m4: Likewise for roundf.
63191         * m4/roundl.m4: Likewise for roundl.
63192         * lib/math.in.h: Undefine roundf, round, roundl before defining
63193         their replacements, to allow for hypothetical systems where these
63194         may be defined as macros but not available in libraries.
63195
63196 2007-10-27  Bruno Haible  <bruno@clisp.org>
63197
63198         * doc/gnulib.texi: Invoke @firstparagraphindent.
63199         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
63200         changes in gnulib.
63201         (Source changes): New section.
63202
63203 2007-10-26  Bruno Haible  <bruno@clisp.org>
63204
63205         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
63206         borrowed from autoconf.
63207
63208 2007-10-26  Bruno Haible  <bruno@clisp.org>
63209
63210         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
63211         strerror returned the empty string. Needed on HP-UX 11.00.
63212
63213 2007-10-24  Micah Cowan  <micah@cowan.name>
63214
63215         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
63216         * build-aux/bootstrap: Remove support for now-unnecessary option,
63217         --cvs-user, and envvars CVS_USER, CVS_RSH.
63218
63219 2007-10-24  Jim Meyering  <meyering@redhat.com>
63220
63221         Avoid diagnostics from sha1sum when there is no cached checksum.
63222         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
63223         if the po.s1 file hasn't been created yet.
63224
63225         * build-aux/bootstrap: Sync from coreutils:
63226         2007-10-24  Jim Meyering  <meyering@redhat.com>
63227         Get gnulib from the git repository, not from an obsolete cvs one.
63228         * build-aux/bootstrap: Suggestion from Micah Cowan.
63229         2007-10-04  Jim Meyering  <jim@meyering.net>
63230         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
63231         (update_po_files): Work also when there are no .po files in po/.
63232
63233 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
63234
63235         * README: Append ".git" to git and cg examples.
63236         Problem reported by Benoit Sigoure.
63237
63238 2007-10-23  Micah Cowan  <micah@cowan.name>
63239
63240         * users.txt: Add wget.
63241
63242 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63243
63244         Fix linking of some unistdio tests on FreeBSD.
63245         * modules/unistdio/u16-vsnprintf-tests
63246         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
63247         * modules/unistdio/u16-vsprintf-tests
63248         (test_u16_vsnprintf1_LDADD): Likewise.
63249         * modules/unistdio/u32-vsnprintf-tests
63250         (test_u32_vsnprintf1_LDADD): Likewise.
63251         * modules/unistdio/u32-vsprintf-tests
63252         (test_u32_vsprintf1_LDADD): Likewise.
63253         * modules/unistdio/u8-vsnprintf-tests
63254         (test_u8_vsnprintf1_LDADD): Likewise.
63255         * modules/unistdio/u8-vsprintf-tests
63256         (test_u8_vsprintf1_LDADD): Likewise.
63257         * modules/unistdio/ulc-vsnprintf-tests
63258         (test_ulc_vsnprintf1_LDADD): Likewise.
63259         * modules/unistdio/ulc-vsprintf-tests
63260         (test_ulc_vsprintf1_LDADD): Likewise.
63261
63262         Fix linking of some uniconv tests on FreeBSD.
63263         * modules/uniconv/u16-conv-from-enc-tests
63264         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
63265         * modules/uniconv/u16-conv-to-enc-tests
63266         (test_u16_conv_to_enc_LDADD): Likewise.
63267         * modules/uniconv/u16-strconv-from-enc-tests
63268         (test_u16_strconv_from_enc_LDADD): Likewise.
63269         * modules/uniconv/u16-strconv-to-enc-tests
63270         (test_u16_strconv_to_enc_LDADD): Likewise.
63271         * modules/uniconv/u32-conv-from-enc-tests
63272         (test_u32_conv_from_enc_LDADD): Likewise.
63273         * modules/uniconv/u32-conv-to-enc-tests
63274         (test_u32_conv_to_enc_LDADD): Likewise.
63275         * modules/uniconv/u32-strconv-from-enc-tests
63276         (test_u32_strconv_from_enc_LDADD): Likewise.
63277         * modules/uniconv/u32-strconv-to-enc-tests
63278         (test_u32_strconv_to_enc_LDADD): Likewise.
63279         * modules/uniconv/u8-conv-from-enc-tests
63280         (test_u8_conv_from_enc_LDADD): Likewise.
63281         * modules/uniconv/u8-conv-to-enc-tests
63282         (test_u8_conv_to_enc_LDADD): Likewise.
63283         * modules/uniconv/u8-strconv-from-enc-tests
63284         (test_u8_strconv_from_enc_LDADD): Likewise.
63285         * modules/uniconv/u8-strconv-to-enc-tests
63286         (test_u8_strconv_to_enc_LDADD): Likewise.
63287
63288 2007-10-22  Bruno Haible  <bruno@clisp.org>
63289
63290         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
63291         size.
63292
63293 2007-10-22  Eric Blake  <ebb9@byu.net>
63294
63295         Tweak x*printf documentation.
63296         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
63297         variable name and comments.
63298         Suggested by Bruno Haible.
63299
63300 2007-10-22  Bruno Haible  <bruno@clisp.org>
63301
63302         * lib/acl.c (copy_acl): Fix file name in comment.
63303
63304 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
63305
63306         Fix Tru64 problem with stdbool.h.
63307         * lib/stdbool.in.h (false, true):
63308         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
63309         Don't declare as an enum in this situation; it runs afoul of Tru64.
63310         Problem reported by Steven M. Schweda in
63311         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
63312
63313 2007-10-22  Eric Blake  <ebb9@byu.net>
63314
63315         Also wrap vf?printf.
63316         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
63317         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
63318         (xvprintf, xvfprintf): New functions.
63319
63320 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63321
63322         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
63323         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
63324
63325         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
63326         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
63327
63328 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
63329
63330         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
63331         by Bruno Haible.
63332
63333 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63334
63335         * lib/getloadavg.c
63336         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
63337         Undef `sys' after including sys/table.h, for Tru64 4.0D.
63338
63339         * tests/test-i-ring.c: Work for C89.
63340
63341 2007-10-22  Bruno Haible  <bruno@clisp.org>
63342
63343         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
63344         -1u, in preprocessor expression, so that we don't test for the bug
63345         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
63346         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
63347
63348 2007-10-22  Eric Blake  <ebb9@byu.net>
63349
63350         * tests/test-yesno.sh: Silence stderr during test.
63351
63352 2007-10-22  Simon Josefsson  <simon@josefsson.org>
63353
63354         * modules/crypto/gc-camellia: New file.
63355
63356         * m4/gc-camellia.m4: New file.
63357
63358         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
63359
63360         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
63361
63362 2007-10-22  Simon Josefsson  <simon@josefsson.org>
63363
63364         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
63365         --help to stdout.  Reported by sms@antinode.org (Steven
63366         M. Schweda).
63367
63368 2007-10-22  Simon Josefsson  <simon@josefsson.org>
63369
63370         * users.txt: Fix link to libksba.
63371
63372 2007-10-21  Ben Pfaff  <blp@gnu.org>
63373
63374         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
63375         round.c roundf implementation that depends on floorf and ceilf to
63376         be tested unconditionally.
63377
63378 2007-10-21  Ben Pfaff  <blp@gnu.org>
63379
63380         * m4/check-libm-func.m4: Removed.
63381         * m4/check-math-lib.m4: New file.
63382         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
63383         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
63384         definition and lack of AC_LIBOBJ([roundf]).
63385         * m4/roundl.m4: Ditto, and similarly for roundl.
63386         * modules/round: Reference new m4 file.
63387         * modules/roundf: Ditto.
63388         * modules/roundl: Ditto.
63389         * tests/test-round2.c (main): Use ROUND instead of round.
63390         Bug report from Bruno Haible.
63391
63392 2007-10-21  Bruno Haible  <bruno@clisp.org>
63393
63394         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
63395         context.
63396
63397 2007-10-21  Bruno Haible  <bruno@clisp.org>
63398
63399         * tests/test-wcwidth.c (main): Allow negative result for some control
63400         characters.
63401
63402         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
63403         Needed on OSF/1 5.1.
63404
63405 2007-10-21  Bruno Haible  <bruno@clisp.org>
63406
63407         * tests/test-floorf1.c: Include isnanf.h.
63408         (main): Use isnanf() instead of isnan().
63409         * tests/test-ceilf1.c: Include isnanf.h.
63410         (main): Use isnanf() instead of isnan().
63411         * tests/test-truncf1.c: Include isnanf.h.
63412         (main): Use isnanf() instead of isnan().
63413         * tests/test-roundf1.c: Include isnanf.h.
63414         (main): Use isnanf() instead of isnan().
63415
63416 2007-10-21  Eric Blake  <ebb9@byu.net>
63417
63418         * users.txt: Update URL for m4.
63419
63420 2007-10-21  Bruno Haible  <bruno@clisp.org>
63421
63422         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
63423
63424 2007-10-21  Bruno Haible  <bruno@clisp.org>
63425
63426         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
63427         Git's management files if the CVS files are not present.
63428
63429 2007-10-20  Bruno Haible  <bruno@clisp.org>
63430
63431         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
63432         gcc-3.4.x.
63433
63434 2007-10-20  Ben Pfaff  <blp@gnu.org>
63435
63436         * lib/math.in.h: Declare round, roundf, roundl if we are providing
63437         implementations.
63438         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
63439         * lib/round.c: New file.
63440         * lib/roundf.c: New file.
63441         * lib/roundl.c: New file.
63442         * m4/round.m4: New file.
63443         * m4/roundf.m4: New file.
63444         * m4/roundl.m4: New file.
63445         * m4/check-libm-func-m4: New file.
63446         * modules/math: Replace round, roundf, roundl related @VARS@ in
63447         math.in.h.
63448         * modules/round: New file.
63449         * modules/round-tests: New file.
63450         * modules/roundf: New file.
63451         * modules/roundf-tests: New file.
63452         * modules/roundl: New file.
63453         * modules/roundl-tests: New file.
63454         * tests/test-round1.c: New file.
63455         * tests/test-round2.c: New file.
63456         * tests/test-roundf1.c: New file.
63457         * tests/test-roundf2.c: New file.
63458         * tests/test-roundl.c: New file.
63459         * doc/functions/round.texi: Mention round module.
63460         * doc/functions/roundf.texi: Mention roundf module.
63461         * doc/functions/roundl.texi: Mention roundl module.
63462         * MODULES.html.sh: Mention new modules.
63463         Thanks to Bruno Haible for suggestions.
63464
63465 2007-10-20  Jim Meyering  <meyering@redhat.com>
63466
63467         * lib/xprintf.c: Include <config.h> unconditionally.
63468
63469         Change xprintf's license to GPL.
63470         * modules/xprintf (License): s/LGPL/GPL/, since this module
63471         depends on modules (exit and exitfail) which are GPL.
63472         Suggestion from Bruno Haible.
63473
63474         xprintf fixes.
63475         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
63476         Use a clearer diagnostic.
63477         Patch from Bruno Haible.
63478
63479 2007-10-20  Bruno Haible  <bruno@clisp.org>
63480
63481         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
63482         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
63483         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63484
63485 2007-10-20  Bruno Haible  <bruno@clisp.org>
63486
63487         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
63488         precision in the comparison result > x - 1 or similar.
63489         * tests/test-ceilf2.c (correct_result_p): Likewise.
63490         * tests/test-truncf2.c (correct_result_p): Likewise.
63491         * tests/test-trunc2.c (correct_result_p): Likewise.
63492         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63493
63494 2007-10-20  Bruno Haible  <bruno@clisp.org>
63495
63496         * modules/ceil: New file.
63497         * m4/ceil.m4: New file.
63498         * doc/functions/ceil.texi: Mention the 'ceil' module.
63499
63500 2007-10-20  Bruno Haible  <bruno@clisp.org>
63501
63502         * modules/floor: New file.
63503         * m4/floor.m4: New file.
63504         * doc/functions/floor.texi: Mention the 'floor' module.
63505
63506 2007-10-20  Bruno Haible  <bruno@clisp.org>
63507
63508         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
63509         of %a.
63510         * modules/floorf-tests (Depends-on): Likewise.
63511         * modules/truncf-tests (Depends-on): Likewise.
63512         * modules/trunc-tests (Depends-on): Likewise.
63513         Reported by Ben Pfaff.
63514
63515 2007-10-19  Jim Meyering  <meyering@redhat.com>
63516
63517         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
63518         Don't bother testing specific errno values.  Just test ferror.
63519
63520         New module: xprintf
63521         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
63522
63523 2007-10-19  Bruno Haible  <bruno@clisp.org>
63524
63525         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
63526         syntax.
63527         * modules/javaexec (Makefile.am): Likewise.
63528         * modules/relocatable-prog (Makefile.am): Likewise.
63529         Suggested by Jim Meyering.
63530
63531 2007-10-18  Bruno Haible  <bruno@clisp.org>
63532
63533         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
63534         Reported by Jim Meyering.
63535
63536 2007-10-18  Eric Blake  <ebb9@byu.net>
63537
63538         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
63539
63540 2007-10-18  Bruno Haible  <bruno@clisp.org>
63541
63542         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
63543         the format string into writable memory. Needed in Fortify conditions.
63544
63545 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
63546             Bruno Haible  <bruno@clisp.org>
63547
63548         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
63549         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
63550         * modules/trim (Depends-on): Add mbchar.
63551         (configure.ac): Add gl_FUNC_MBRTOWC.
63552         (Makefile.am): Augment lib_SOURCES.
63553
63554 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
63555
63556         Modify glob.c to use fstatat and dirfd, to simplify it.
63557         Suggested by Eric Blake.
63558         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
63559         Don't include <stdbool.h>; not used.
63560         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
63561         (link_exists_p): Simplify implementation, since we can now assume
63562         dirfd and fstatat.
63563         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
63564
63565 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63566
63567         * gnulib-tool (func_get_dependencies): Fix sed script to
63568         match only tests.
63569
63570 2007-10-17  Bruno Haible  <bruno@clisp.org>
63571
63572         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
63573         allow locale names without encoding suffix.
63574         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
63575         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
63576
63577 2007-10-16  Bruno Haible  <bruno@clisp.org>
63578
63579         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
63580         * lib/getgroups.c (getgroups): Likewise.
63581         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
63582
63583 2007-10-16  Bruno Haible  <bruno@clisp.org>
63584
63585         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
63586         * modules/malloc-posix (License): Likewise.
63587         * modules/realloc-posix (License): Likewise.
63588         * modules/calloc-posix (License): Likewise.
63589         * modules/intprops (License): Change from GPL to LGPL, with
63590         Paul Eggert's approval.
63591
63592 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
63593
63594         Merge glibc changes into lib/glob.c.
63595
63596         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
63597         2007-10-15 04:59:03 UTC.  Here are the changes:
63598
63599         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
63600
63601         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
63602
63603         * lib/glob.c: Add some branch prediction throughout.
63604
63605         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
63606
63607         [BZ #5103]
63608         * lib/glob.c (glob): Recognize patterns starting \/.
63609
63610         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
63611
63612         [BZ #3996]
63613         * lib/glob.c (attribute_hidden): Define if not defined.
63614         (glob): Unescape dirname, filename or username when needed and not
63615         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
63616         is NULL.  Handle unescaped [ in pattern without closing ].
63617         Don't pass GLOB_CHECK down to recursive glob for directories.
63618         (__glob_pattern_type): New function.
63619         (__glob_pattern_p): Implement using __glob_pattern_type.
63620         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
63621         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
63622         Remove unreachable code.
63623
63624         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
63625
63626         * lib/glob.c (glob_in_dir): Add some comments and asserts to
63627         explain why there are no leaks.
63628
63629         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
63630
63631         [BZ #3253]
63632         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
63633         time, rather allocate increasingly bigger arrays of pointers, if
63634         possible with alloca, if too large with malloc.
63635
63636 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
63637
63638         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
63639         Problem reported by H.Merijn Brand in
63640         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
63641         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
63642         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
63643
63644 2007-10-15  Bruno Haible  <bruno@clisp.org>
63645
63646         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
63647         with explicit rpl_ prefix.
63648         * lib/fopen.c (fopen): Likewise.
63649         * lib/freopen.c (freopen): Likewise.
63650         * lib/iconv.c (iconv): Likewise.
63651         * lib/iconv_close.c (iconv_close): Likewise.
63652
63653 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63654
63655         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
63656
63657 2007-10-15  Bruno Haible  <bruno@clisp.org>
63658
63659         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
63660         <stddef.h> instead of <stdlib.h> since we only need NULL.
63661         Reported by Ben Pfaff <blp@cs.stanford.edu>.
63662
63663 2007-10-15  Bruno Haible  <bruno@clisp.org>
63664
63665         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
63666         Replace paragraph talking about LIBOBJS.
63667         Reported by Colin Watson <cjwatson@debian.org>.
63668
63669 2007-10-15  Bruno Haible  <bruno@clisp.org>
63670
63671         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
63672         <stdlib.h> before using NULL.
63673
63674 2007-10-15  Simon Josefsson  <simon@josefsson.org>
63675
63676         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
63677         Reported by Albert Chin <china@thewrittenword.com>.
63678
63679 2007-10-14  Bruno Haible  <bruno@clisp.org>
63680
63681         * modules/iconv_open-utf-tests: New file.
63682         * tests/test-iconv-utf.c: New file.
63683
63684         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
63685         * modules/iconv_open-utf: New file.
63686         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
63687         (iconv, iconv_close): New declarations.
63688         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
63689         be defined.
63690         (iconv_open): Add special handling of conversion between UTF-8 and
63691         UTF-{16,32}{BE,LE}.
63692         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
63693         * lib/iconv_close.c: New file.
63694         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
63695         gl_FUNC_ICONV_OPEN.
63696         (gl_FUNC_ICONV_OPEN): Use it.
63697         (gl_FUNC_ICONV_OPEN_UTF): New macro.
63698         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
63699         and REPLACE_ICONV_UTF.
63700         * modules/iconv_open (Depends-on): Add c-strcase.
63701         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
63702         ICONV_CONST.
63703         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
63704
63705 2007-10-13  Albert Chin  <china@thewrittenword.com>
63706             Bruno Haible  <bruno@clisp.org>
63707
63708         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
63709         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
63710
63711 2007-10-13  Bruno Haible  <bruno@clisp.org>
63712
63713         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
63714         defined, use the ISO C99 inline semantics.
63715         * lib/argp.h (ARGP_EI): Likewise.
63716
63717 2007-10-13  Bruno Haible  <bruno@clisp.org>
63718
63719         Handle 'inline' change in gcc 4.3.0.
63720         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
63721         argp_fmtstream_write, argp_fmtstream_set_lmargin,
63722         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
63723         argp_fmtstream_point): Disable 'extern' declaration if the function
63724         definition is going to be provided inline.
63725         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
63726         semantics, not the ISO C99 inline semantics.
63727         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
63728         'extern' declaration if the function definition is going to be provided
63729         inline.
63730         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
63731         the GNU C inline semantics, not the ISO C99 inline semantics. With
63732         GCC 4.2, avoid a warning.
63733
63734 2007-10-13  Bruno Haible  <bruno@clisp.org>
63735
63736         * lib/freading.h (freading): Enable the use of __freading for
63737         glibc >= 2.7.
63738         * lib/freading.c (freading): Likewise.
63739
63740 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
63741
63742         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
63743         "warning: C99 inline functions are not supported; using GNU89".
63744
63745 2007-10-12  Bruno Haible  <bruno@clisp.org>
63746
63747         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
63748         of 2.
63749         * tests/test-ceilf2.c: New file.
63750         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
63751
63752         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
63753         * modules/ceilf-tests: Update.
63754
63755 2007-10-12  Bruno Haible  <bruno@clisp.org>
63756
63757         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
63758         of 2.
63759         * tests/test-floorf2.c: New file.
63760         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
63761
63762         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
63763         * modules/floorf-tests: Update.
63764
63765 2007-10-12  Bruno Haible  <bruno@clisp.org>
63766
63767         * tests/test-trunc2.c: New file.
63768         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
63769
63770         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
63771         * modules/trunc-tests: Update.
63772
63773 2007-10-12  Bruno Haible  <bruno@clisp.org>
63774
63775         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
63776         of 2.
63777         * tests/test-truncf2.c: New file.
63778         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
63779
63780         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
63781         * modules/truncf-tests: Update.
63782
63783 2007-10-11  Eric Blake  <ebb9@byu.net>
63784
63785         Don't claim strerror is broken on Interix.
63786         * doc/functions/strerror.texi (strerror): Known broken systems are
63787         now Solaris 8, and not Interix.
63788         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
63789         Interix on cross-compile.
63790         Reported by Martin Koeppe in
63791         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
63792
63793 2007-10-11  Bruno Haible  <bruno@clisp.org>
63794
63795         * modules/i-ring-tests: New file.
63796         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
63797         instead of assert.
63798
63799 2007-10-11  Bruno Haible  <bruno@clisp.org>
63800
63801         * modules/filenamecat-tests: New file.
63802         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
63803         * lib/filenamecat.c: Remove test code.
63804
63805 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
63806
63807         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
63808
63809         * lib/strerror.c: Include <string.h> always, to test interface,
63810         and to remove the need for the dummy.
63811         Include intprops.h to compute width instead of doing it ourselves
63812         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
63813         (strerror): Define it to return NULL if there's no system strerror.
63814         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
63815         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
63816         ancient pre-strerror Unix systems well any more.  Saying "unknown
63817         system error" is enough.
63818         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
63819         simpler strerror.c implementation.
63820         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
63821         Simplify the tests to reflect the simpler strerror implementation.
63822         * modules/strerror (Depends-on): Add intprops.
63823
63824 2007-10-09  Eric Blake  <ebb9@byu.net>
63825
63826         Silence test-fpending.
63827         * modules/fpending-tests (Files): Add wrapper script.
63828         * tests/test-fpending.sh: New file.
63829
63830 2007-10-09  Bruno Haible  <bruno@clisp.org>
63831
63832         * MODULES.html.sh (func_module): Don't create a hyperlink for
63833         function names like 'printf_frexp'.
63834         (Misc): Add crc, memxor.
63835         (Characteristics of floating types): New section.
63836         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
63837         isnanf-nolibm, signbit, trunc, truncf, truncl.
63838         (Enhancements for ISO C 99 functions): New subsection Input/output.
63839         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
63840         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
63841         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
63842         (Compatibility checks for POSIX:2001 functions): Add clock-time.
63843         (Enhancements for POSIX:2001 functions): Add chdir-long.
63844         (File system functions): Add areadlink, chdir-safer, read-file.
63845         Remove cycle-check.
63846         (File system as inode set): New section.
63847         (Date and time): Add gethrxtime.
63848         (Multithreading): Add openmp.
63849         (Internationalization functions): Add localename.
63850         (Unicode string functions): Add unistr/u*-mbsnlen.
63851         (Support for maintaining and releasing projects): Add git-version-gen.
63852         (Lone files): Remove directories.
63853
63854 2007-10-08  Ben Pfaff  <blp@gnu.org>
63855
63856         * lib/xmalloca.h: Fix typo in comment.
63857
63858 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
63859
63860         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
63861         when avoiding problems with integer overflow.  Use a portable test
63862         instead.
63863
63864 2007-10-08  Simon Josefsson  <simon@josefsson.org>
63865
63866         * modules/dummy (License): Change to LGPLv2+.
63867         * modules/float (License): Likewise
63868         * modules/realloc (License): Likewise
63869         * modules/stdlib (License): Likewise
63870
63871 2007-10-07  Bruno Haible  <bruno@clisp.org>
63872
63873         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
63874         * floor.c (TWO_MANT_DIG): Likewise.
63875         * ceil.c (TWO_MANT_DIG): Likewise.
63876         Reported by Ben Pfaff.
63877
63878 2007-10-07  Bruno Haible  <bruno@clisp.org>
63879
63880         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
63881         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
63882         * lib/frexp.c (FUNC): Likewise.
63883         * lib/printf-frexp.h (printf_frexp): Likewise.
63884         * lib/printf-frexpl.h (printf_frexpl): Likewise.
63885         * lib/printf-frexp.c (FUNC): Likewise.
63886         Suggested by Jim Meyering.
63887
63888 2007-10-07  Jim Meyering  <meyering@redhat.com>
63889
63890         Make xnanosleep's integer overflow test more robust.
63891         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
63892         so that gcc-4.3.0 doesn't optimize away this test for overflow.
63893
63894 2007-10-07  Bruno Haible  <bruno@clisp.org>
63895
63896         * NEWS: Mention the license change.
63897
63898         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
63899         abbreviations in the modules files.
63900
63901         Change copyright notice from GPLv2+ to GPLv3+.
63902         * README: Change copyright notice.
63903         * MODULES.html.sh: Likewise.
63904         * build-aux/bootstrap.conf: Likewise.
63905         * build-aux/config.libpath: Likewise.
63906         * build-aux/csharpcomp.sh.in: Likewise.
63907         * build-aux/csharpexec.sh.in: Likewise.
63908         * build-aux/install-reloc: Likewise.
63909         * build-aux/javacomp.sh.in: Likewise.
63910         * build-aux/javaexec.sh.in: Likewise.
63911         * build-aux/ldd.sh.in: Likewise.
63912         * build-aux/reloc-ldflags: Likewise.
63913         * build-aux/relocatable.sh.in: Likewise.
63914         * build-aux/x-to-1.in: Likewise.
63915         * check-module: Likewise.
63916         * config/srclistvars.sh: Likewise.
63917         * gnulib-tool: Likewise.
63918         * lib/acl-internal.h: Likewise.
63919         * lib/acl.c: Likewise.
63920         * lib/acl.h: Likewise.
63921         * lib/acl_entries.c: Likewise.
63922         * lib/areadlink-with-size.c: Likewise.
63923         * lib/areadlink.c: Likewise.
63924         * lib/areadlink.h: Likewise.
63925         * lib/argmatch.c: Likewise.
63926         * lib/argmatch.h: Likewise.
63927         * lib/argp-ba.c: Likewise.
63928         * lib/argp-eexst.c: Likewise.
63929         * lib/argp-fmtstream.c: Likewise.
63930         * lib/argp-fmtstream.h: Likewise.
63931         * lib/argp-fs-xinl.c: Likewise.
63932         * lib/argp-help.c: Likewise.
63933         * lib/argp-namefrob.h: Likewise.
63934         * lib/argp-parse.c: Likewise.
63935         * lib/argp-pin.c: Likewise.
63936         * lib/argp-pv.c: Likewise.
63937         * lib/argp-pvh.c: Likewise.
63938         * lib/argp-xinl.c: Likewise.
63939         * lib/argp.h: Likewise.
63940         * lib/at-func.c: Likewise.
63941         * lib/atanl.c: Likewise.
63942         * lib/backupfile.c: Likewise.
63943         * lib/backupfile.h: Likewise.
63944         * lib/basename.c: Likewise.
63945         * lib/binary-io.h: Likewise.
63946         * lib/byteswap.in.h: Likewise.
63947         * lib/c-stack.c: Likewise.
63948         * lib/c-stack.h: Likewise.
63949         * lib/c-strcasestr.c: Likewise.
63950         * lib/c-strcasestr.h: Likewise.
63951         * lib/c-strstr.c: Likewise.
63952         * lib/c-strstr.h: Likewise.
63953         * lib/c-strtod.c: Likewise.
63954         * lib/calloc.c: Likewise.
63955         * lib/canon-host.c: Likewise.
63956         * lib/canon-host.h: Likewise.
63957         * lib/canonicalize-lgpl.c: Likewise.
63958         * lib/canonicalize.c: Likewise.
63959         * lib/canonicalize.h: Likewise.
63960         * lib/ceil.c: Likewise.
63961         * lib/ceilf.c: Likewise.
63962         * lib/ceill.c: Likewise.
63963         * lib/chdir-long.c: Likewise.
63964         * lib/chdir-long.h: Likewise.
63965         * lib/chdir-safer.c: Likewise.
63966         * lib/chdir-safer.h: Likewise.
63967         * lib/chown.c: Likewise.
63968         * lib/classpath.c: Likewise.
63969         * lib/classpath.h: Likewise.
63970         * lib/clean-temp.c: Likewise.
63971         * lib/clean-temp.h: Likewise.
63972         * lib/cloexec.c: Likewise.
63973         * lib/close-stream.c: Likewise.
63974         * lib/closein.c: Likewise.
63975         * lib/closein.h: Likewise.
63976         * lib/closeout.c: Likewise.
63977         * lib/closeout.h: Likewise.
63978         * lib/concat-filename.c: Likewise.
63979         * lib/copy-file.c: Likewise.
63980         * lib/copy-file.h: Likewise.
63981         * lib/count-one-bits.h: Likewise.
63982         * lib/crc.c: Likewise.
63983         * lib/crc.h: Likewise.
63984         * lib/creat-safer.c: Likewise.
63985         * lib/csharpcomp.c: Likewise.
63986         * lib/csharpcomp.h: Likewise.
63987         * lib/csharpexec.c: Likewise.
63988         * lib/csharpexec.h: Likewise.
63989         * lib/cycle-check.c: Likewise.
63990         * lib/cycle-check.h: Likewise.
63991         * lib/diacrit.c: Likewise.
63992         * lib/diacrit.h: Likewise.
63993         * lib/diffseq.h: Likewise.
63994         * lib/dirchownmod.c: Likewise.
63995         * lib/dirent.in.h: Likewise.
63996         * lib/dirfd.c: Likewise.
63997         * lib/dirfd.h: Likewise.
63998         * lib/dirname.c: Likewise.
63999         * lib/dirname.h: Likewise.
64000         * lib/dummy.c: Likewise.
64001         * lib/dup-safer.c: Likewise.
64002         * lib/dup2.c: Likewise.
64003         * lib/eealloc.h: Likewise.
64004         * lib/error.c: Likewise.
64005         * lib/error.h: Likewise.
64006         * lib/euidaccess.c: Likewise.
64007         * lib/exclude.c: Likewise.
64008         * lib/exclude.h: Likewise.
64009         * lib/execute.c: Likewise.
64010         * lib/execute.h: Likewise.
64011         * lib/exitfail.c: Likewise.
64012         * lib/exitfail.h: Likewise.
64013         * lib/expl.c: Likewise.
64014         * lib/fatal-signal.c: Likewise.
64015         * lib/fatal-signal.h: Likewise.
64016         * lib/fbufmode.c: Likewise.
64017         * lib/fbufmode.h: Likewise.
64018         * lib/fchdir.c: Likewise.
64019         * lib/fchmodat.c: Likewise.
64020         * lib/fchownat.c: Likewise.
64021         * lib/fcntl--.h: Likewise.
64022         * lib/fcntl-safer.h: Likewise.
64023         * lib/fcntl.in.h: Likewise.
64024         * lib/fd-safer.c: Likewise.
64025         * lib/fflush.c: Likewise.
64026         * lib/file-has-acl.c: Likewise.
64027         * lib/file-set.c: Likewise.
64028         * lib/file-type.c: Likewise.
64029         * lib/file-type.h: Likewise.
64030         * lib/fileblocks.c: Likewise.
64031         * lib/filemode.c: Likewise.
64032         * lib/filemode.h: Likewise.
64033         * lib/filename.h: Likewise.
64034         * lib/filenamecat.c: Likewise.
64035         * lib/filenamecat.h: Likewise.
64036         * lib/findprog.c: Likewise.
64037         * lib/findprog.h: Likewise.
64038         * lib/float.in.h: Likewise.
64039         * lib/floor.c: Likewise.
64040         * lib/floorf.c: Likewise.
64041         * lib/floorl.c: Likewise.
64042         * lib/fopen-safer.c: Likewise.
64043         * lib/fopen.c: Likewise.
64044         * lib/fpending.c: Likewise.
64045         * lib/fpending.h: Likewise.
64046         * lib/fprintf.c: Likewise.
64047         * lib/fprintftime.h: Likewise.
64048         * lib/fpucw.h: Likewise.
64049         * lib/fpurge.c: Likewise.
64050         * lib/fpurge.h: Likewise.
64051         * lib/freadable.c: Likewise.
64052         * lib/freadable.h: Likewise.
64053         * lib/freadahead.c: Likewise.
64054         * lib/freadahead.h: Likewise.
64055         * lib/freading.c: Likewise.
64056         * lib/freading.h: Likewise.
64057         * lib/free.c: Likewise.
64058         * lib/freopen.c: Likewise.
64059         * lib/frexp.c: Likewise.
64060         * lib/frexpl.c: Likewise.
64061         * lib/fseek.c: Likewise.
64062         * lib/fseterr.c: Likewise.
64063         * lib/fseterr.h: Likewise.
64064         * lib/fstatat.c: Likewise.
64065         * lib/fstrcmp.c: Likewise.
64066         * lib/fstrcmp.h: Likewise.
64067         * lib/fsusage.c: Likewise.
64068         * lib/fsusage.h: Likewise.
64069         * lib/ftell.c: Likewise.
64070         * lib/ftello.c: Likewise.
64071         * lib/fts-cycle.c: Likewise.
64072         * lib/fts.c: Likewise.
64073         * lib/fts_.h: Likewise.
64074         * lib/full-read.c: Likewise.
64075         * lib/full-read.h: Likewise.
64076         * lib/full-write.c: Likewise.
64077         * lib/full-write.h: Likewise.
64078         * lib/fwritable.c: Likewise.
64079         * lib/fwritable.h: Likewise.
64080         * lib/fwriteerror.c: Likewise.
64081         * lib/fwriteerror.h: Likewise.
64082         * lib/fwriting.c: Likewise.
64083         * lib/fwriting.h: Likewise.
64084         * lib/gcd.c: Likewise.
64085         * lib/gcd.h: Likewise.
64086         * lib/getcwd.c: Likewise.
64087         * lib/getdate.h: Likewise.
64088         * lib/getdate.y: Likewise.
64089         * lib/getdomainname.c: Likewise.
64090         * lib/getdomainname.h: Likewise.
64091         * lib/getgroups.c: Likewise.
64092         * lib/gethostname.c: Likewise.
64093         * lib/gethrxtime.c: Likewise.
64094         * lib/gethrxtime.h: Likewise.
64095         * lib/getloadavg.c: Likewise.
64096         * lib/getndelim2.c: Likewise.
64097         * lib/getndelim2.h: Likewise.
64098         * lib/getnline.c: Likewise.
64099         * lib/getnline.h: Likewise.
64100         * lib/getopt.c: Likewise.
64101         * lib/getopt.in.h: Likewise.
64102         * lib/getopt1.c: Likewise.
64103         * lib/getopt_int.h: Likewise.
64104         * lib/getpagesize.h: Likewise.
64105         * lib/getsubopt.c: Likewise.
64106         * lib/gettime.c: Likewise.
64107         * lib/getugroups.c: Likewise.
64108         * lib/getugroups.h: Likewise.
64109         * lib/getusershell.c: Likewise.
64110         * lib/gl_anyavltree_list1.h: Likewise.
64111         * lib/gl_anyavltree_list2.h: Likewise.
64112         * lib/gl_anyhash_list1.h: Likewise.
64113         * lib/gl_anyhash_list2.h: Likewise.
64114         * lib/gl_anylinked_list1.h: Likewise.
64115         * lib/gl_anylinked_list2.h: Likewise.
64116         * lib/gl_anyrbtree_list1.h: Likewise.
64117         * lib/gl_anyrbtree_list2.h: Likewise.
64118         * lib/gl_anytree_list1.h: Likewise.
64119         * lib/gl_anytree_list2.h: Likewise.
64120         * lib/gl_anytree_oset.h: Likewise.
64121         * lib/gl_anytreehash_list1.h: Likewise.
64122         * lib/gl_anytreehash_list2.h: Likewise.
64123         * lib/gl_array_list.c: Likewise.
64124         * lib/gl_array_list.h: Likewise.
64125         * lib/gl_array_oset.c: Likewise.
64126         * lib/gl_array_oset.h: Likewise.
64127         * lib/gl_avltree_list.c: Likewise.
64128         * lib/gl_avltree_list.h: Likewise.
64129         * lib/gl_avltree_oset.c: Likewise.
64130         * lib/gl_avltree_oset.h: Likewise.
64131         * lib/gl_avltreehash_list.c: Likewise.
64132         * lib/gl_avltreehash_list.h: Likewise.
64133         * lib/gl_carray_list.c: Likewise.
64134         * lib/gl_carray_list.h: Likewise.
64135         * lib/gl_linked_list.c: Likewise.
64136         * lib/gl_linked_list.h: Likewise.
64137         * lib/gl_linkedhash_list.c: Likewise.
64138         * lib/gl_linkedhash_list.h: Likewise.
64139         * lib/gl_list.c: Likewise.
64140         * lib/gl_list.h: Likewise.
64141         * lib/gl_oset.c: Likewise.
64142         * lib/gl_oset.h: Likewise.
64143         * lib/gl_rbtree_list.c: Likewise.
64144         * lib/gl_rbtree_list.h: Likewise.
64145         * lib/gl_rbtree_oset.c: Likewise.
64146         * lib/gl_rbtree_oset.h: Likewise.
64147         * lib/gl_rbtreehash_list.c: Likewise.
64148         * lib/gl_rbtreehash_list.h: Likewise.
64149         * lib/gl_sublist.c: Likewise.
64150         * lib/gl_sublist.h: Likewise.
64151         * lib/group-member.c: Likewise.
64152         * lib/group-member.h: Likewise.
64153         * lib/hard-locale.c: Likewise.
64154         * lib/hard-locale.h: Likewise.
64155         * lib/hash-pjw.c: Likewise.
64156         * lib/hash-pjw.h: Likewise.
64157         * lib/hash-triple.c: Likewise.
64158         * lib/hash.c: Likewise.
64159         * lib/hash.h: Likewise.
64160         * lib/human.c: Likewise.
64161         * lib/human.h: Likewise.
64162         * lib/i-ring.c: Likewise.
64163         * lib/i-ring.h: Likewise.
64164         * lib/idcache.c: Likewise.
64165         * lib/imaxabs.c: Likewise.
64166         * lib/imaxdiv.c: Likewise.
64167         * lib/inet_pton.c: Likewise.
64168         * lib/inet_pton.h: Likewise.
64169         * lib/intprops.h: Likewise.
64170         * lib/inttostr.c: Likewise.
64171         * lib/inttostr.h: Likewise.
64172         * lib/inttypes.in.h: Likewise.
64173         * lib/isapipe.c: Likewise.
64174         * lib/isdir.c: Likewise.
64175         * lib/isnan.c: Likewise.
64176         * lib/isnan.h: Likewise.
64177         * lib/isnanf.c: Likewise.
64178         * lib/isnanf.h: Likewise.
64179         * lib/isnanl-nolibm.h: Likewise.
64180         * lib/isnanl.c: Likewise.
64181         * lib/isnanl.h: Likewise.
64182         * lib/javacomp.c: Likewise.
64183         * lib/javacomp.h: Likewise.
64184         * lib/javaexec.c: Likewise.
64185         * lib/javaexec.h: Likewise.
64186         * lib/javaversion.c: Likewise.
64187         * lib/javaversion.h: Likewise.
64188         * lib/javaversion.java: Likewise.
64189         * lib/lbrkprop.h: Likewise.
64190         * lib/lchmod.h: Likewise.
64191         * lib/lchown.c: Likewise.
64192         * lib/ldexpl.c: Likewise.
64193         * lib/linebreak.c: Likewise.
64194         * lib/linebreak.h: Likewise.
64195         * lib/linebuffer.c: Likewise.
64196         * lib/linebuffer.h: Likewise.
64197         * lib/locale.in.h: Likewise.
64198         * lib/logl.c: Likewise.
64199         * lib/long-options.c: Likewise.
64200         * lib/long-options.h: Likewise.
64201         * lib/lstat.c: Likewise.
64202         * lib/lstat.h: Likewise.
64203         * lib/math.in.h: Likewise.
64204         * lib/mbchar.c: Likewise.
64205         * lib/mbchar.h: Likewise.
64206         * lib/mbfile.h: Likewise.
64207         * lib/mbiter.h: Likewise.
64208         * lib/mbscasecmp.c: Likewise.
64209         * lib/mbscasestr.c: Likewise.
64210         * lib/mbschr.c: Likewise.
64211         * lib/mbscspn.c: Likewise.
64212         * lib/mbslen.c: Likewise.
64213         * lib/mbsncasecmp.c: Likewise.
64214         * lib/mbsnlen.c: Likewise.
64215         * lib/mbspbrk.c: Likewise.
64216         * lib/mbspcasecmp.c: Likewise.
64217         * lib/mbsrchr.c: Likewise.
64218         * lib/mbssep.c: Likewise.
64219         * lib/mbsspn.c: Likewise.
64220         * lib/mbsstr.c: Likewise.
64221         * lib/mbstok_r.c: Likewise.
64222         * lib/mbswidth.c: Likewise.
64223         * lib/mbswidth.h: Likewise.
64224         * lib/mbuiter.h: Likewise.
64225         * lib/memcasecmp.c: Likewise.
64226         * lib/memcasecmp.h: Likewise.
64227         * lib/memchr.c: Likewise.
64228         * lib/memcmp.c: Likewise.
64229         * lib/memcoll.c: Likewise.
64230         * lib/memcoll.h: Likewise.
64231         * lib/memcpy.c: Likewise.
64232         * lib/memrchr.c: Likewise.
64233         * lib/mkancesdirs.c: Likewise.
64234         * lib/mkdir-p.c: Likewise.
64235         * lib/mkdir-p.h: Likewise.
64236         * lib/mkdir.c: Likewise.
64237         * lib/mkdirat.c: Likewise.
64238         * lib/mkdtemp.c: Likewise.
64239         * lib/mkstemp-safer.c: Likewise.
64240         * lib/mkstemp.c: Likewise.
64241         * lib/modechange.c: Likewise.
64242         * lib/modechange.h: Likewise.
64243         * lib/mountlist.c: Likewise.
64244         * lib/mountlist.h: Likewise.
64245         * lib/mpsort.c: Likewise.
64246         * lib/nanosleep.c: Likewise.
64247         * lib/obstack.c: Likewise.
64248         * lib/obstack.h: Likewise.
64249         * lib/open-safer.c: Likewise.
64250         * lib/open.c: Likewise.
64251         * lib/openat-die.c: Likewise.
64252         * lib/openat-priv.h: Likewise.
64253         * lib/openat-proc.c: Likewise.
64254         * lib/openat.c: Likewise.
64255         * lib/openat.h: Likewise.
64256         * lib/pagealign_alloc.c: Likewise.
64257         * lib/pagealign_alloc.h: Likewise.
64258         * lib/physmem.c: Likewise.
64259         * lib/physmem.h: Likewise.
64260         * lib/pipe-safer.c: Likewise.
64261         * lib/pipe.c: Likewise.
64262         * lib/pipe.h: Likewise.
64263         * lib/posixtm.c: Likewise.
64264         * lib/posixtm.h: Likewise.
64265         * lib/posixver.c: Likewise.
64266         * lib/printf-frexp.c: Likewise.
64267         * lib/printf-frexp.h: Likewise.
64268         * lib/printf-frexpl.c: Likewise.
64269         * lib/printf-frexpl.h: Likewise.
64270         * lib/printf.c: Likewise.
64271         * lib/progname.c: Likewise.
64272         * lib/progname.h: Likewise.
64273         * lib/progreloc.c: Likewise.
64274         * lib/putenv.c: Likewise.
64275         * lib/quote.c: Likewise.
64276         * lib/quote.h: Likewise.
64277         * lib/quotearg.c: Likewise.
64278         * lib/quotearg.h: Likewise.
64279         * lib/raise.c: Likewise.
64280         * lib/readline.c: Likewise.
64281         * lib/readline.h: Likewise.
64282         * lib/readlink.c: Likewise.
64283         * lib/readtokens.c: Likewise.
64284         * lib/readtokens.h: Likewise.
64285         * lib/readtokens0.c: Likewise.
64286         * lib/readtokens0.h: Likewise.
64287         * lib/readutmp.c: Likewise.
64288         * lib/readutmp.h: Likewise.
64289         * lib/realloc.c: Likewise.
64290         * lib/relocwrapper.c: Likewise.
64291         * lib/rename-dest-slash.c: Likewise.
64292         * lib/rename.c: Likewise.
64293         * lib/rmdir.c: Likewise.
64294         * lib/rpmatch.c: Likewise.
64295         * lib/safe-read.c: Likewise.
64296         * lib/safe-read.h: Likewise.
64297         * lib/safe-write.c: Likewise.
64298         * lib/safe-write.h: Likewise.
64299         * lib/same-inode.h: Likewise.
64300         * lib/same.c: Likewise.
64301         * lib/same.h: Likewise.
64302         * lib/save-cwd.c: Likewise.
64303         * lib/save-cwd.h: Likewise.
64304         * lib/savedir.c: Likewise.
64305         * lib/savedir.h: Likewise.
64306         * lib/savewd.c: Likewise.
64307         * lib/savewd.h: Likewise.
64308         * lib/search.in.h: Likewise.
64309         * lib/setenv.c: Likewise.
64310         * lib/setenv.h: Likewise.
64311         * lib/settime.c: Likewise.
64312         * lib/sh-quote.c: Likewise.
64313         * lib/sh-quote.h: Likewise.
64314         * lib/sig2str.c: Likewise.
64315         * lib/sig2str.h: Likewise.
64316         * lib/signal.in.h: Likewise.
64317         * lib/signbitd.c: Likewise.
64318         * lib/signbitf.c: Likewise.
64319         * lib/signbitl.c: Likewise.
64320         * lib/sigprocmask.c: Likewise.
64321         * lib/sincosl.c: Likewise.
64322         * lib/sleep.c: Likewise.
64323         * lib/sprintf.c: Likewise.
64324         * lib/sqrtl.c: Likewise.
64325         * lib/stat-time.h: Likewise.
64326         * lib/stdio--.h: Likewise.
64327         * lib/stdio-safer.h: Likewise.
64328         * lib/stdlib--.h: Likewise.
64329         * lib/stdlib-safer.h: Likewise.
64330         * lib/stdlib.in.h: Likewise.
64331         * lib/stpcpy.c: Likewise.
64332         * lib/stpncpy.c: Likewise.
64333         * lib/strchrnul.c: Likewise.
64334         * lib/strcspn.c: Likewise.
64335         * lib/strerror.c: Likewise.
64336         * lib/strftime.c: Likewise.
64337         * lib/strftime.h: Likewise.
64338         * lib/striconveh.c: Likewise.
64339         * lib/striconveh.h: Likewise.
64340         * lib/striconveha.c: Likewise.
64341         * lib/striconveha.h: Likewise.
64342         * lib/stripslash.c: Likewise.
64343         * lib/strnlen1.c: Likewise.
64344         * lib/strnlen1.h: Likewise.
64345         * lib/strtod.c: Likewise.
64346         * lib/strtoimax.c: Likewise.
64347         * lib/strtok_r.c: Likewise.
64348         * lib/strtol.c: Likewise.
64349         * lib/strtoll.c: Likewise.
64350         * lib/strtoul.c: Likewise.
64351         * lib/strtoull.c: Likewise.
64352         * lib/sysexits.in.h: Likewise.
64353         * lib/tempname.c: Likewise.
64354         * lib/tempname.h: Likewise.
64355         * lib/timespec.h: Likewise.
64356         * lib/tls.c: Likewise.
64357         * lib/tls.h: Likewise.
64358         * lib/tmpdir.c: Likewise.
64359         * lib/tmpdir.h: Likewise.
64360         * lib/tmpfile-safer.c: Likewise.
64361         * lib/tmpfile.c: Likewise.
64362         * lib/trigl.c: Likewise.
64363         * lib/trigl.h: Likewise.
64364         * lib/trim.c: Likewise.
64365         * lib/trim.h: Likewise.
64366         * lib/trunc.c: Likewise.
64367         * lib/truncf.c: Likewise.
64368         * lib/truncl.c: Likewise.
64369         * lib/tsearch.c: Likewise.
64370         * lib/unicodeio.c: Likewise.
64371         * lib/unicodeio.h: Likewise.
64372         * lib/unistd--.h: Likewise.
64373         * lib/unistd-safer.h: Likewise.
64374         * lib/unistdio/ulc-fprintf.c: Likewise.
64375         * lib/unistdio/ulc-vfprintf.c: Likewise.
64376         * lib/unlinkdir.c: Likewise.
64377         * lib/unlinkdir.h: Likewise.
64378         * lib/unlocked-io.h: Likewise.
64379         * lib/unsetenv.c: Likewise.
64380         * lib/userspec.c: Likewise.
64381         * lib/utime.c: Likewise.
64382         * lib/utimecmp.c: Likewise.
64383         * lib/utimecmp.h: Likewise.
64384         * lib/utimens.c: Likewise.
64385         * lib/verify.h: Likewise.
64386         * lib/verror.c: Likewise.
64387         * lib/verror.h: Likewise.
64388         * lib/version-etc-fsf.c: Likewise.
64389         * lib/version-etc.c: Likewise.
64390         * lib/version-etc.h: Likewise.
64391         * lib/vfprintf.c: Likewise.
64392         * lib/vprintf.c: Likewise.
64393         * lib/vsprintf.c: Likewise.
64394         * lib/w32spawn.h: Likewise.
64395         * lib/wait-process.c: Likewise.
64396         * lib/wait-process.h: Likewise.
64397         * lib/wcwidth.c: Likewise.
64398         * lib/write-any-file.c: Likewise.
64399         * lib/xalloc-die.c: Likewise.
64400         * lib/xalloc.h: Likewise.
64401         * lib/xasprintf.c: Likewise.
64402         * lib/xgetcwd.c: Likewise.
64403         * lib/xgetcwd.h: Likewise.
64404         * lib/xgetdomainname.c: Likewise.
64405         * lib/xgetdomainname.h: Likewise.
64406         * lib/xgethostname.c: Likewise.
64407         * lib/xmalloc.c: Likewise.
64408         * lib/xmalloca.c: Likewise.
64409         * lib/xmalloca.h: Likewise.
64410         * lib/xmemcoll.c: Likewise.
64411         * lib/xnanosleep.c: Likewise.
64412         * lib/xreadlink.c: Likewise.
64413         * lib/xreadlink.h: Likewise.
64414         * lib/xsetenv.c: Likewise.
64415         * lib/xsetenv.h: Likewise.
64416         * lib/xstriconv.c: Likewise.
64417         * lib/xstriconv.h: Likewise.
64418         * lib/xstrndup.c: Likewise.
64419         * lib/xstrndup.h: Likewise.
64420         * lib/xstrtod.c: Likewise.
64421         * lib/xstrtod.h: Likewise.
64422         * lib/xstrtol-error.c: Likewise.
64423         * lib/xstrtol.c: Likewise.
64424         * lib/xstrtol.h: Likewise.
64425         * lib/xtime.h: Likewise.
64426         * lib/xvasprintf.c: Likewise.
64427         * lib/xvasprintf.h: Likewise.
64428         * lib/yesno.c: Likewise.
64429         * lib/yesno.h: Likewise.
64430         * posix-modules: Likewise.
64431         * tests/test-alloca-opt.c: Likewise.
64432         * tests/test-arcfour.c: Likewise.
64433         * tests/test-arctwo.c: Likewise.
64434         * tests/test-argmatch.c: Likewise.
64435         * tests/test-argp-2.sh: Likewise.
64436         * tests/test-argp.c: Likewise.
64437         * tests/test-arpa_inet.c: Likewise.
64438         * tests/test-array_list.c: Likewise.
64439         * tests/test-array_oset.c: Likewise.
64440         * tests/test-atexit.c: Likewise.
64441         * tests/test-avltree_list.c: Likewise.
64442         * tests/test-avltree_oset.c: Likewise.
64443         * tests/test-avltreehash_list.c: Likewise.
64444         * tests/test-base64.c: Likewise.
64445         * tests/test-binary-io.c: Likewise.
64446         * tests/test-byteswap.c: Likewise.
64447         * tests/test-c-ctype.c: Likewise.
64448         * tests/test-c-strcasecmp.c: Likewise.
64449         * tests/test-c-strcasestr.c: Likewise.
64450         * tests/test-c-strncasecmp.c: Likewise.
64451         * tests/test-c-strstr.c: Likewise.
64452         * tests/test-canonicalize-lgpl.c: Likewise.
64453         * tests/test-canonicalize.c: Likewise.
64454         * tests/test-carray_list.c: Likewise.
64455         * tests/test-ceilf.c: Likewise.
64456         * tests/test-ceill.c: Likewise.
64457         * tests/test-count-one-bits.c: Likewise.
64458         * tests/test-crc.c: Likewise.
64459         * tests/test-dirname.c: Likewise.
64460         * tests/test-fbufmode.c: Likewise.
64461         * tests/test-fcntl.c: Likewise.
64462         * tests/test-fflush.c: Likewise.
64463         * tests/test-floorf.c: Likewise.
64464         * tests/test-floorl.c: Likewise.
64465         * tests/test-fopen.c: Likewise.
64466         * tests/test-fprintf-posix.c: Likewise.
64467         * tests/test-fprintf-posix.h: Likewise.
64468         * tests/test-fpurge.c: Likewise.
64469         * tests/test-freadable.c: Likewise.
64470         * tests/test-freadahead.c: Likewise.
64471         * tests/test-freading.c: Likewise.
64472         * tests/test-freopen.c: Likewise.
64473         * tests/test-frexp.c: Likewise.
64474         * tests/test-frexpl.c: Likewise.
64475         * tests/test-fseek.c: Likewise.
64476         * tests/test-fseeko.c: Likewise.
64477         * tests/test-fseterr.c: Likewise.
64478         * tests/test-fstrcmp.c: Likewise.
64479         * tests/test-ftell.c: Likewise.
64480         * tests/test-ftello.c: Likewise.
64481         * tests/test-fwritable.c: Likewise.
64482         * tests/test-fwriting.c: Likewise.
64483         * tests/test-getaddrinfo.c: Likewise.
64484         * tests/test-getpass.c: Likewise.
64485         * tests/test-gettimeofday.c: Likewise.
64486         * tests/test-hmac-md5.c: Likewise.
64487         * tests/test-hmac-sha1.c: Likewise.
64488         * tests/test-iconv.c: Likewise.
64489         * tests/test-iconvme.c: Likewise.
64490         * tests/test-inttypes.c: Likewise.
64491         * tests/test-isnan.c: Likewise.
64492         * tests/test-isnanf.c: Likewise.
64493         * tests/test-isnanl-nolibm.c: Likewise.
64494         * tests/test-isnanl.c: Likewise.
64495         * tests/test-isnanl.h: Likewise.
64496         * tests/test-ldexpl.c: Likewise.
64497         * tests/test-linked_list.c: Likewise.
64498         * tests/test-linkedhash_list.c: Likewise.
64499         * tests/test-locale.c: Likewise.
64500         * tests/test-localename.c: Likewise.
64501         * tests/test-lock.c: Likewise.
64502         * tests/test-lseek.c: Likewise.
64503         * tests/test-malloca.c: Likewise.
64504         * tests/test-math.c: Likewise.
64505         * tests/test-mbscasecmp.c: Likewise.
64506         * tests/test-mbscasestr1.c: Likewise.
64507         * tests/test-mbscasestr2.c: Likewise.
64508         * tests/test-mbscasestr3.c: Likewise.
64509         * tests/test-mbscasestr4.c: Likewise.
64510         * tests/test-mbschr.c: Likewise.
64511         * tests/test-mbscspn.c: Likewise.
64512         * tests/test-mbsncasecmp.c: Likewise.
64513         * tests/test-mbspbrk.c: Likewise.
64514         * tests/test-mbspcasecmp.c: Likewise.
64515         * tests/test-mbsrchr.c: Likewise.
64516         * tests/test-mbsspn.c: Likewise.
64517         * tests/test-mbsstr1.c: Likewise.
64518         * tests/test-mbsstr2.c: Likewise.
64519         * tests/test-mbsstr3.c: Likewise.
64520         * tests/test-md5.c: Likewise.
64521         * tests/test-memmem.c: Likewise.
64522         * tests/test-netinet_in.c: Likewise.
64523         * tests/test-open.c: Likewise.
64524         * tests/test-printf-frexp.c: Likewise.
64525         * tests/test-printf-frexpl.c: Likewise.
64526         * tests/test-printf-posix.c: Likewise.
64527         * tests/test-printf-posix.h: Likewise.
64528         * tests/test-rbtree_list.c: Likewise.
64529         * tests/test-rbtree_oset.c: Likewise.
64530         * tests/test-rbtreehash_list.c: Likewise.
64531         * tests/test-read-file.c: Likewise.
64532         * tests/test-rijndael.c: Likewise.
64533         * tests/test-search.c: Likewise.
64534         * tests/test-signbit.c: Likewise.
64535         * tests/test-sleep.c: Likewise.
64536         * tests/test-snprintf-posix.c: Likewise.
64537         * tests/test-snprintf-posix.h: Likewise.
64538         * tests/test-snprintf.c: Likewise.
64539         * tests/test-sprintf-posix.c: Likewise.
64540         * tests/test-sprintf-posix.h: Likewise.
64541         * tests/test-stat-time.c: Likewise.
64542         * tests/test-stdbool.c: Likewise.
64543         * tests/test-stdint.c: Likewise.
64544         * tests/test-stdio.c: Likewise.
64545         * tests/test-stdlib.c: Likewise.
64546         * tests/test-stpncpy.c: Likewise.
64547         * tests/test-strcasestr.c: Likewise.
64548         * tests/test-striconv.c: Likewise.
64549         * tests/test-striconveh.c: Likewise.
64550         * tests/test-striconveha.c: Likewise.
64551         * tests/test-string.c: Likewise.
64552         * tests/test-sys_select.c: Likewise.
64553         * tests/test-sys_socket.c: Likewise.
64554         * tests/test-sys_stat.c: Likewise.
64555         * tests/test-sys_time.c: Likewise.
64556         * tests/test-sysexits.c: Likewise.
64557         * tests/test-time.c: Likewise.
64558         * tests/test-tls.c: Likewise.
64559         * tests/test-trunc.c: Likewise.
64560         * tests/test-truncf.c: Likewise.
64561         * tests/test-truncl.c: Likewise.
64562         * tests/test-unistd.c: Likewise.
64563         * tests/test-vasnprintf-posix.c: Likewise.
64564         * tests/test-vasnprintf-posix2.c: Likewise.
64565         * tests/test-vasnprintf.c: Likewise.
64566         * tests/test-vasprintf-posix.c: Likewise.
64567         * tests/test-vasprintf.c: Likewise.
64568         * tests/test-verify.c: Likewise.
64569         * tests/test-vfprintf-posix.c: Likewise.
64570         * tests/test-vprintf-posix.c: Likewise.
64571         * tests/test-vsnprintf-posix.c: Likewise.
64572         * tests/test-vsnprintf.c: Likewise.
64573         * tests/test-vsprintf-posix.c: Likewise.
64574         * tests/test-wchar.c: Likewise.
64575         * tests/test-wctype.c: Likewise.
64576         * tests/test-wcwidth.c: Likewise.
64577         * tests/test-xstrtol.c: Likewise.
64578         * tests/test-xvasprintf.c: Likewise.
64579         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
64580         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
64581         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
64582         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
64583         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
64584         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
64585         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
64586         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
64587         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
64588         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
64589         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
64590         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
64591         * tests/uniname/test-uninames.c: Likewise.
64592         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
64593         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
64594         * tests/unistdio/test-u16-printf1.h: Likewise.
64595         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
64596         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
64597         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
64598         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
64599         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
64600         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
64601         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
64602         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
64603         * tests/unistdio/test-u32-printf1.h: Likewise.
64604         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
64605         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
64606         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
64607         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
64608         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
64609         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
64610         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
64611         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
64612         * tests/unistdio/test-u8-printf1.h: Likewise.
64613         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
64614         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
64615         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
64616         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
64617         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
64618         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
64619         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
64620         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
64621         * tests/unistdio/test-ulc-printf1.h: Likewise.
64622         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
64623         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
64624         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
64625         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
64626         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
64627         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
64628         * tests/uniwidth/test-u16-strwidth.c: Likewise.
64629         * tests/uniwidth/test-u16-width.c: Likewise.
64630         * tests/uniwidth/test-u32-strwidth.c: Likewise.
64631         * tests/uniwidth/test-u32-width.c: Likewise.
64632         * tests/uniwidth/test-u8-strwidth.c: Likewise.
64633         * tests/uniwidth/test-u8-width.c: Likewise.
64634         * tests/uniwidth/test-uc_width.c: Likewise.
64635         * config/srclist-update: Likewise.
64636         (fixlicense): Update to GPLv3+.
64637
64638         Change copyright notice from LGPLv2.1+ to LGPLv3+.
64639         * tests/test-tsearch.c: Change copyright notice.
64640
64641         Change copyright notice from LGPLv2.0+ to LGPLv3+.
64642         * lib/c-strcaseeq.h: Change copyright notice.
64643         * lib/streq.h: Likewise.
64644         * lib/uniconv.h: Likewise.
64645         * lib/uniconv/u-conv-from-enc.h: Likewise.
64646         * lib/uniconv/u-conv-to-enc.h: Likewise.
64647         * lib/uniconv/u-strconv-from-enc.h: Likewise.
64648         * lib/uniconv/u-strconv-to-enc.h: Likewise.
64649         * lib/uniconv/u16-conv-from-enc.c: Likewise.
64650         * lib/uniconv/u16-conv-to-enc.c: Likewise.
64651         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
64652         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
64653         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
64654         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
64655         * lib/uniconv/u32-conv-from-enc.c: Likewise.
64656         * lib/uniconv/u32-conv-to-enc.c: Likewise.
64657         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
64658         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
64659         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
64660         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
64661         * lib/uniconv/u8-conv-from-enc.c: Likewise.
64662         * lib/uniconv/u8-conv-to-enc.c: Likewise.
64663         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
64664         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
64665         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
64666         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
64667         * lib/uniname.h: Likewise.
64668         * lib/uniname/uniname.c: Likewise.
64669         * lib/unistdio.h: Likewise.
64670         * lib/unistdio/u-asnprintf.h: Likewise.
64671         * lib/unistdio/u-asprintf.h: Likewise.
64672         * lib/unistdio/u-printf-args.c: Likewise.
64673         * lib/unistdio/u-printf-args.h: Likewise.
64674         * lib/unistdio/u-printf-parse.h: Likewise.
64675         * lib/unistdio/u-snprintf.h: Likewise.
64676         * lib/unistdio/u-sprintf.h: Likewise.
64677         * lib/unistdio/u-vasprintf.h: Likewise.
64678         * lib/unistdio/u-vsnprintf.h: Likewise.
64679         * lib/unistdio/u-vsprintf.h: Likewise.
64680         * lib/unistdio/u16-asnprintf.c: Likewise.
64681         * lib/unistdio/u16-asprintf.c: Likewise.
64682         * lib/unistdio/u16-printf-parse.c: Likewise.
64683         * lib/unistdio/u16-snprintf.c: Likewise.
64684         * lib/unistdio/u16-sprintf.c: Likewise.
64685         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
64686         * lib/unistdio/u16-u16-asprintf.c: Likewise.
64687         * lib/unistdio/u16-u16-snprintf.c: Likewise.
64688         * lib/unistdio/u16-u16-sprintf.c: Likewise.
64689         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
64690         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
64691         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
64692         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
64693         * lib/unistdio/u16-vasnprintf.c: Likewise.
64694         * lib/unistdio/u16-vasprintf.c: Likewise.
64695         * lib/unistdio/u16-vsnprintf.c: Likewise.
64696         * lib/unistdio/u16-vsprintf.c: Likewise.
64697         * lib/unistdio/u32-asnprintf.c: Likewise.
64698         * lib/unistdio/u32-asprintf.c: Likewise.
64699         * lib/unistdio/u32-printf-parse.c: Likewise.
64700         * lib/unistdio/u32-snprintf.c: Likewise.
64701         * lib/unistdio/u32-sprintf.c: Likewise.
64702         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
64703         * lib/unistdio/u32-u32-asprintf.c: Likewise.
64704         * lib/unistdio/u32-u32-snprintf.c: Likewise.
64705         * lib/unistdio/u32-u32-sprintf.c: Likewise.
64706         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
64707         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
64708         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
64709         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
64710         * lib/unistdio/u32-vasnprintf.c: Likewise.
64711         * lib/unistdio/u32-vasprintf.c: Likewise.
64712         * lib/unistdio/u32-vsnprintf.c: Likewise.
64713         * lib/unistdio/u32-vsprintf.c: Likewise.
64714         * lib/unistdio/u8-asnprintf.c: Likewise.
64715         * lib/unistdio/u8-asprintf.c: Likewise.
64716         * lib/unistdio/u8-printf-parse.c: Likewise.
64717         * lib/unistdio/u8-snprintf.c: Likewise.
64718         * lib/unistdio/u8-sprintf.c: Likewise.
64719         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
64720         * lib/unistdio/u8-u8-asprintf.c: Likewise.
64721         * lib/unistdio/u8-u8-snprintf.c: Likewise.
64722         * lib/unistdio/u8-u8-sprintf.c: Likewise.
64723         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
64724         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
64725         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
64726         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
64727         * lib/unistdio/u8-vasnprintf.c: Likewise.
64728         * lib/unistdio/u8-vasprintf.c: Likewise.
64729         * lib/unistdio/u8-vsnprintf.c: Likewise.
64730         * lib/unistdio/u8-vsprintf.c: Likewise.
64731         * lib/unistdio/ulc-asnprintf.c: Likewise.
64732         * lib/unistdio/ulc-asprintf.c: Likewise.
64733         * lib/unistdio/ulc-printf-parse.c: Likewise.
64734         * lib/unistdio/ulc-snprintf.c: Likewise.
64735         * lib/unistdio/ulc-sprintf.c: Likewise.
64736         * lib/unistdio/ulc-vasnprintf.c: Likewise.
64737         * lib/unistdio/ulc-vasprintf.c: Likewise.
64738         * lib/unistdio/ulc-vsnprintf.c: Likewise.
64739         * lib/unistdio/ulc-vsprintf.c: Likewise.
64740         * lib/unistr.h: Likewise.
64741         * lib/unistr/u-cpy-alloc.h: Likewise.
64742         * lib/unistr/u-cpy.h: Likewise.
64743         * lib/unistr/u-endswith.h: Likewise.
64744         * lib/unistr/u-move.h: Likewise.
64745         * lib/unistr/u-set.h: Likewise.
64746         * lib/unistr/u-startswith.h: Likewise.
64747         * lib/unistr/u-stpcpy.h: Likewise.
64748         * lib/unistr/u-stpncpy.h: Likewise.
64749         * lib/unistr/u-strcat.h: Likewise.
64750         * lib/unistr/u-strcpy.h: Likewise.
64751         * lib/unistr/u-strcspn.h: Likewise.
64752         * lib/unistr/u-strdup.h: Likewise.
64753         * lib/unistr/u-strlen.h: Likewise.
64754         * lib/unistr/u-strncat.h: Likewise.
64755         * lib/unistr/u-strncpy.h: Likewise.
64756         * lib/unistr/u-strnlen.h: Likewise.
64757         * lib/unistr/u-strpbrk.h: Likewise.
64758         * lib/unistr/u-strspn.h: Likewise.
64759         * lib/unistr/u-strstr.h: Likewise.
64760         * lib/unistr/u-strtok.h: Likewise.
64761         * lib/unistr/u16-check.c: Likewise.
64762         * lib/unistr/u16-chr.c: Likewise.
64763         * lib/unistr/u16-cmp.c: Likewise.
64764         * lib/unistr/u16-cpy-alloc.c: Likewise.
64765         * lib/unistr/u16-cpy.c: Likewise.
64766         * lib/unistr/u16-endswith.c: Likewise.
64767         * lib/unistr/u16-mblen.c: Likewise.
64768         * lib/unistr/u16-mbsnlen.c: Likewise.
64769         * lib/unistr/u16-mbtouc-aux.c: Likewise.
64770         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
64771         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
64772         * lib/unistr/u16-mbtouc.c: Likewise.
64773         * lib/unistr/u16-mbtoucr.c: Likewise.
64774         * lib/unistr/u16-move.c: Likewise.
64775         * lib/unistr/u16-next.c: Likewise.
64776         * lib/unistr/u16-prev.c: Likewise.
64777         * lib/unistr/u16-set.c: Likewise.
64778         * lib/unistr/u16-startswith.c: Likewise.
64779         * lib/unistr/u16-stpcpy.c: Likewise.
64780         * lib/unistr/u16-stpncpy.c: Likewise.
64781         * lib/unistr/u16-strcat.c: Likewise.
64782         * lib/unistr/u16-strchr.c: Likewise.
64783         * lib/unistr/u16-strcmp.c: Likewise.
64784         * lib/unistr/u16-strcpy.c: Likewise.
64785         * lib/unistr/u16-strcspn.c: Likewise.
64786         * lib/unistr/u16-strdup.c: Likewise.
64787         * lib/unistr/u16-strlen.c: Likewise.
64788         * lib/unistr/u16-strmblen.c: Likewise.
64789         * lib/unistr/u16-strmbtouc.c: Likewise.
64790         * lib/unistr/u16-strncat.c: Likewise.
64791         * lib/unistr/u16-strncmp.c: Likewise.
64792         * lib/unistr/u16-strncpy.c: Likewise.
64793         * lib/unistr/u16-strnlen.c: Likewise.
64794         * lib/unistr/u16-strpbrk.c: Likewise.
64795         * lib/unistr/u16-strrchr.c: Likewise.
64796         * lib/unistr/u16-strspn.c: Likewise.
64797         * lib/unistr/u16-strstr.c: Likewise.
64798         * lib/unistr/u16-strtok.c: Likewise.
64799         * lib/unistr/u16-to-u32.c: Likewise.
64800         * lib/unistr/u16-to-u8.c: Likewise.
64801         * lib/unistr/u16-uctomb-aux.c: Likewise.
64802         * lib/unistr/u16-uctomb.c: Likewise.
64803         * lib/unistr/u32-check.c: Likewise.
64804         * lib/unistr/u32-chr.c: Likewise.
64805         * lib/unistr/u32-cmp.c: Likewise.
64806         * lib/unistr/u32-cpy-alloc.c: Likewise.
64807         * lib/unistr/u32-cpy.c: Likewise.
64808         * lib/unistr/u32-endswith.c: Likewise.
64809         * lib/unistr/u32-mblen.c: Likewise.
64810         * lib/unistr/u32-mbsnlen.c: Likewise.
64811         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
64812         * lib/unistr/u32-mbtouc.c: Likewise.
64813         * lib/unistr/u32-mbtoucr.c: Likewise.
64814         * lib/unistr/u32-move.c: Likewise.
64815         * lib/unistr/u32-next.c: Likewise.
64816         * lib/unistr/u32-prev.c: Likewise.
64817         * lib/unistr/u32-set.c: Likewise.
64818         * lib/unistr/u32-startswith.c: Likewise.
64819         * lib/unistr/u32-stpcpy.c: Likewise.
64820         * lib/unistr/u32-stpncpy.c: Likewise.
64821         * lib/unistr/u32-strcat.c: Likewise.
64822         * lib/unistr/u32-strchr.c: Likewise.
64823         * lib/unistr/u32-strcmp.c: Likewise.
64824         * lib/unistr/u32-strcpy.c: Likewise.
64825         * lib/unistr/u32-strcspn.c: Likewise.
64826         * lib/unistr/u32-strdup.c: Likewise.
64827         * lib/unistr/u32-strlen.c: Likewise.
64828         * lib/unistr/u32-strmblen.c: Likewise.
64829         * lib/unistr/u32-strmbtouc.c: Likewise.
64830         * lib/unistr/u32-strncat.c: Likewise.
64831         * lib/unistr/u32-strncmp.c: Likewise.
64832         * lib/unistr/u32-strncpy.c: Likewise.
64833         * lib/unistr/u32-strnlen.c: Likewise.
64834         * lib/unistr/u32-strpbrk.c: Likewise.
64835         * lib/unistr/u32-strrchr.c: Likewise.
64836         * lib/unistr/u32-strspn.c: Likewise.
64837         * lib/unistr/u32-strstr.c: Likewise.
64838         * lib/unistr/u32-strtok.c: Likewise.
64839         * lib/unistr/u32-to-u16.c: Likewise.
64840         * lib/unistr/u32-to-u8.c: Likewise.
64841         * lib/unistr/u32-uctomb.c: Likewise.
64842         * lib/unistr/u8-check.c: Likewise.
64843         * lib/unistr/u8-chr.c: Likewise.
64844         * lib/unistr/u8-cmp.c: Likewise.
64845         * lib/unistr/u8-cpy-alloc.c: Likewise.
64846         * lib/unistr/u8-cpy.c: Likewise.
64847         * lib/unistr/u8-endswith.c: Likewise.
64848         * lib/unistr/u8-mblen.c: Likewise.
64849         * lib/unistr/u8-mbsnlen.c: Likewise.
64850         * lib/unistr/u8-mbtouc-aux.c: Likewise.
64851         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
64852         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
64853         * lib/unistr/u8-mbtouc.c: Likewise.
64854         * lib/unistr/u8-mbtoucr.c: Likewise.
64855         * lib/unistr/u8-move.c: Likewise.
64856         * lib/unistr/u8-next.c: Likewise.
64857         * lib/unistr/u8-prev.c: Likewise.
64858         * lib/unistr/u8-set.c: Likewise.
64859         * lib/unistr/u8-startswith.c: Likewise.
64860         * lib/unistr/u8-stpcpy.c: Likewise.
64861         * lib/unistr/u8-stpncpy.c: Likewise.
64862         * lib/unistr/u8-strcat.c: Likewise.
64863         * lib/unistr/u8-strchr.c: Likewise.
64864         * lib/unistr/u8-strcmp.c: Likewise.
64865         * lib/unistr/u8-strcpy.c: Likewise.
64866         * lib/unistr/u8-strcspn.c: Likewise.
64867         * lib/unistr/u8-strdup.c: Likewise.
64868         * lib/unistr/u8-strlen.c: Likewise.
64869         * lib/unistr/u8-strmblen.c: Likewise.
64870         * lib/unistr/u8-strmbtouc.c: Likewise.
64871         * lib/unistr/u8-strncat.c: Likewise.
64872         * lib/unistr/u8-strncmp.c: Likewise.
64873         * lib/unistr/u8-strncpy.c: Likewise.
64874         * lib/unistr/u8-strnlen.c: Likewise.
64875         * lib/unistr/u8-strpbrk.c: Likewise.
64876         * lib/unistr/u8-strrchr.c: Likewise.
64877         * lib/unistr/u8-strspn.c: Likewise.
64878         * lib/unistr/u8-strstr.c: Likewise.
64879         * lib/unistr/u8-strtok.c: Likewise.
64880         * lib/unistr/u8-to-u16.c: Likewise.
64881         * lib/unistr/u8-to-u32.c: Likewise.
64882         * lib/unistr/u8-uctomb-aux.c: Likewise.
64883         * lib/unistr/u8-uctomb.c: Likewise.
64884         * lib/unitypes.h: Likewise.
64885         * lib/uniwidth.h: Likewise.
64886         * lib/uniwidth/cjk.h: Likewise.
64887         * lib/uniwidth/u16-strwidth.c: Likewise.
64888         * lib/uniwidth/u16-width.c: Likewise.
64889         * lib/uniwidth/u32-strwidth.c: Likewise.
64890         * lib/uniwidth/u32-width.c: Likewise.
64891         * lib/uniwidth/u8-strwidth.c: Likewise.
64892         * lib/uniwidth/u8-width.c: Likewise.
64893         * lib/uniwidth/width.c: Likewise.
64894
64895 2007-10-07  Bruno Haible  <bruno@clisp.org>
64896
64897         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
64898         The file is still under LGPL (see modules/inttypes).
64899
64900 2007-10-06  Bruno Haible  <bruno@clisp.org>
64901
64902         * modules/trunc (Dependencies): Add 'extensions'.
64903         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
64904         Reported by Ben Pfaff <blp@gnu.org>.
64905
64906 2007-10-06  Bruno Haible  <bruno@clisp.org>
64907
64908         * modules/freopen-tests: New file.
64909         * tests/test-freopen.c: New file.
64910
64911         * modules/fopen-tests: New file.
64912         * tests/test-fopen.c: New file.
64913
64914         * modules/fopen: New file.
64915         * lib/fopen.c: New file.
64916         * m4/fopen.m4: New file.
64917         * modules/freopen: New file.
64918         * lib/freopen.c: New file.
64919         * m4/freopen.m4: New file.
64920         * lib/stdio.in.h (fopen, freopen): New declarations.
64921         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
64922         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
64923         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
64924         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
64925         * doc/functions/fopen.texi: Mention the 'fopen' module.
64926         * doc/functions/freopen.texi: Mention the 'freopen' module.
64927
64928 2007-10-06  Bruno Haible  <bruno@clisp.org>
64929
64930         * modules/open-tests: New file.
64931         * tests/test-open.c: New file.
64932
64933         * modules/open: New file.
64934         * lib/open.c: New file.
64935         * m4/open.m4: New file.
64936         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
64937         lib/open.c does.
64938         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
64939         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
64940         macros.
64941         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
64942         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
64943         REPLACE_OPEN.
64944         * doc/functions/open.texi: Mention the 'open' module.
64945
64946 2007-10-04  Bruno Haible  <bruno@clisp.org>
64947
64948         * modules/ceill-tests: New file.
64949         * tests/test-ceill.c: New file.
64950
64951         * modules/ceill: New file.
64952         * lib/ceill.c: Replace entire file.
64953         * m4/ceill.m4: New file.
64954         * lib/math.in.h (ceill): Replace declaration.
64955         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
64956         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
64957         * doc/functions/ceill.texi: Mention the 'ceill' module.
64958         * modules/mathl (Files): Remove lib/ceill.c.
64959         (Depends-on): Add ceill.
64960
64961 2007-10-04  Bruno Haible  <bruno@clisp.org>
64962
64963         * modules/ceilf-tests: New file.
64964         * tests/test-ceilf.c: New file.
64965
64966         * modules/ceilf: New file.
64967         * lib/ceil.c: New file.
64968         * lib/ceilf.c: New file.
64969         * m4/ceilf.m4: New file.
64970         * lib/math.in.h (ceilf): New declaration.
64971         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
64972         HAVE_DECL_CEILF.
64973         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
64974         HAVE_DECL_CEILF.
64975         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
64976
64977 2007-10-04  Bruno Haible  <bruno@clisp.org>
64978
64979         * modules/floorl-tests: New file.
64980         * tests/test-floorl.c: New file.
64981
64982         * modules/floorl: New file.
64983         * lib/floorl.c: Replace entire file.
64984         * m4/floorl.m4: New file.
64985         * lib/math.in.h (floorl): Replace declaration.
64986         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
64987         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
64988         * doc/functions/floorl.texi: Mention the 'floorl' module.
64989         * modules/mathl (Files): Remove lib/floorl.c.
64990         (Depends-on): Add floorl.
64991
64992 2007-10-04  Bruno Haible  <bruno@clisp.org>
64993
64994         * modules/floorf-tests: New file.
64995         * tests/test-floorf.c: New file.
64996
64997         * modules/floorf: New file.
64998         * lib/floor.c: New file.
64999         * lib/floorf.c: New file.
65000         * m4/floorf.m4: New file.
65001         * lib/math.in.h (floorf): New declaration.
65002         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
65003         HAVE_DECL_FLOORF.
65004         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
65005         HAVE_DECL_FLOORF.
65006         * doc/functions/floorf.texi: Mention the 'floorf' module.
65007
65008 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
65009             Bruno Haible  <bruno@clisp.org>
65010
65011         Advertise for the Git server instead of the CVS server.
65012         * doc/gnulib-intro.texi (Steady Development): Mention the Git
65013         repository instead of the CVS one.
65014         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
65015         about all VCS systems generically.
65016         * doc/gnulib.texi (Introduction): Capitalize `Git'.
65017
65018 2007-10-04  Bruno Haible  <bruno@clisp.org>
65019
65020         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
65021         means.
65022         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
65023
65024 2007-10-04  Bruno Haible  <bruno@clisp.org>
65025
65026         * modules/truncl-tests: New file.
65027         * tests/test-truncl.c: New file.
65028
65029         * modules/truncl: New file.
65030         * lib/truncl.c: New file.
65031         * m4/truncl.m4: New file.
65032         * lib/math.in.h (truncl): New declaration.
65033         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
65034         HAVE_DECL_TRUNCL.
65035         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
65036         HAVE_DECL_TRUNCL.
65037         * doc/functions/truncl.texi: Mention the 'truncl' module.
65038
65039 2007-10-04  Bruno Haible  <bruno@clisp.org>
65040
65041         * modules/truncf-tests: New file.
65042         * tests/test-truncf.c: New file.
65043
65044         * modules/truncf: New file.
65045         * lib/trunc.c: Make paramerizable through USE_* macros.
65046         * lib/truncf.c: New file.
65047         * m4/truncf.m4: New file.
65048         * lib/math.in.h (truncf): New declaration.
65049         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
65050         HAVE_DECL_TRUNCF.
65051         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
65052         HAVE_DECL_TRUNCF.
65053         * doc/functions/truncf.texi: Mention the 'truncf' module.
65054
65055 2007-10-03  Bruno Haible  <bruno@clisp.org>
65056
65057         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
65058         augmentation also for tests modules.
65059         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
65060         * modules/atexit-tests (Makefile.am): Likewise.
65061         * modules/binary-io-tests (Makefile.am): Likewise.
65062         * modules/c-strcase-tests (Makefile.am): Likewise.
65063         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
65064         * modules/canonicalize-tests (Makefile.am): Likewise.
65065         * modules/closein-tests (Makefile.am): Likewise.
65066         * modules/fprintf-posix-tests (Makefile.am): Likewise.
65067         * modules/freadahead-tests (Makefile.am): Likewise.
65068         * modules/fseek-tests (Makefile.am): Likewise.
65069         * modules/fseeko-tests (Makefile.am): Likewise.
65070         * modules/ftell-tests (Makefile.am): Likewise.
65071         * modules/ftello-tests (Makefile.am): Likewise.
65072         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
65073         * modules/isnanl-tests (Makefile.am): Likewise.
65074         * modules/lseek-tests (Makefile.am): Likewise.
65075         * modules/mbscasecmp-tests (Makefile.am): Likewise.
65076         * modules/mbscasestr-tests (Makefile.am): Likewise.
65077         * modules/mbschr-tests (Makefile.am): Likewise.
65078         * modules/mbscspn-tests (Makefile.am): Likewise.
65079         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
65080         * modules/mbspbrk-tests (Makefile.am): Likewise.
65081         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
65082         * modules/mbsrchr-tests (Makefile.am): Likewise.
65083         * modules/mbsspn-tests (Makefile.am): Likewise.
65084         * modules/mbsstr-tests (Makefile.am): Likewise.
65085         * modules/printf-posix-tests (Makefile.am): Likewise.
65086         * modules/snprintf-posix-tests (Makefile.am): Likewise.
65087         * modules/sprintf-posix-tests (Makefile.am): Likewise.
65088         * modules/tsearch-tests (Makefile.am): Likewise.
65089         * modules/uniname/uniname-tests (Makefile.am): Likewise.
65090         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
65091         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
65092         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
65093         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
65094         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
65095         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
65096         * modules/vprintf-posix-tests (Makefile.am): Likewise.
65097         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
65098         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
65099         * modules/xstrtoimax-tests (Makefile.am): Likewise.
65100         * modules/xstrtol-tests (Makefile.am): Likewise.
65101         * modules/xstrtoumax-tests (Makefile.am): Likewise.
65102         * modules/yesno-tests (Makefile.am): Likewise.
65103
65104 2007-10-03  Bruno Haible  <bruno@clisp.org>
65105
65106         * modules/trunc-tests: New file.
65107         * tests/test-trunc.c: New file.
65108
65109         * modules/trunc: New file.
65110         * lib/trunc.c: New file.
65111         * m4/trunc.m4: New file.
65112         * lib/math.in.h (trunc): New declaration.
65113         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
65114         HAVE_DECL_TRUNC.
65115         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
65116         HAVE_DECL_TRUNC.
65117         * doc/functions/trunc.texi: Mention the 'trunc' module.
65118
65119 2007-10-03  Bruno Haible  <bruno@clisp.org>
65120
65121         * tests/test-fpending.c: New file, mostly copied
65122         from coreutils/lib/t-fpending.c.
65123         * modules/fpending-tests: New file.
65124
65125 2007-10-03  Bruno Haible  <bruno@clisp.org>
65126
65127         Port the stdio extensions to QNX (untested).
65128         * lib/fseterr.c (fseterr): Add support for QNX.
65129         * lib/fbufmode.c (fbufmode): Likewise.
65130         * lib/freadable.c (freadable): Likewise.
65131         * lib/fwritable.c (fwritable): Likewise.
65132         * lib/freading.c (freading): Likewise.
65133         * lib/fwriting.c (fwriting): Likewise.
65134         * lib/freadahead.c (freadahed): Likewise.
65135         * lib/fpurge.c (fpurge): Likewise.
65136         * lib/fseeko.c (rpl_fseeko): Likewise.
65137
65138 2007-10-03  Bruno Haible  <bruno@clisp.org>
65139             Jim Meyering  <jim@meyering.net>
65140             Eric Blake  <ebb9@byu.net>
65141
65142         * doc/relocatable.texi: Use @command instead of @program.
65143
65144 2007-10-02  Jim Meyering  <jim@meyering.net>
65145
65146         Perform one more "_.h" -> ".in.h" substitution.
65147         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
65148         instead of unistd_.h here, too.
65149
65150 2007-10-01  Bruno Haible  <bruno@clisp.org>
65151
65152         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
65153         Needed for the alloca-opt module.
65154
65155 2007-09-30  Bruno Haible  <bruno@clisp.org>
65156
65157         * lib/alloca.in.h: Renamed from lib/alloca_.h.
65158         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
65159         alloca_.h.
65160         * lib/argz.in.h: Renamed from lib/argz_.h.
65161         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
65162         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
65163         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
65164         byteswap_.h.
65165         * lib/dirent.in.h: Renamed from lib/dirent_.h.
65166         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
65167         dirent_.h.
65168         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
65169         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
65170         fcntl_.h.
65171         * lib/float.in.h: Renamed from lib/float_.h.
65172         * modules/float (Files, Makefile.am): Use float.in.h instead of
65173         float_.h.
65174         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
65175         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
65176         fnmatch_.h.
65177         * lib/getopt.in.h: Renamed from lib/getopt_.h.
65178         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
65179         getopt_.h.
65180         * lib/glob.in.h: Renamed from lib/glob_.h.
65181         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
65182         * lib/iconv.in.h: Renamed from lib/iconv_.h.
65183         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
65184         iconv_.h.
65185         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
65186         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
65187         inttypes_.h.
65188         * lib/locale.in.h: Renamed from lib/locale_.h.
65189         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
65190         locale_.h.
65191         * lib/math.in.h: Renamed from lib/math_.h.
65192         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
65193         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
65194         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
65195         of netinet_in_.h. Add dependency.
65196         * lib/poll.in.h: Renamed from lib/poll_.h.
65197         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
65198         * lib/search.in.h: Renamed from lib/search_.h.
65199         * modules/search (Files, Makefile.am): Use search.in.h instead of
65200         search_.h.
65201         * lib/signal.in.h: Renamed from lib/signal_.h.
65202         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
65203         _signal.h.
65204         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
65205         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
65206         stdbool_.h.
65207         * lib/stdint.in.h: Renamed from lib/stdint_.h.
65208         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
65209         stdint_.h.
65210         * lib/stdio.in.h: Renamed from lib/stdio_.h.
65211         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
65212         stdio_.h.
65213         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
65214         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
65215         stdlib_.h.
65216         * lib/string.in.h: Renamed from lib/string_.h.
65217         * modules/string (Files, Makefile.am): Use string.in.h instead of
65218         string_.h.
65219         * doc/gnulib-tool.texi (Initial import): Update.
65220         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
65221         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
65222         of sys_select_.h. Add dependency.
65223         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
65224         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
65225         of sys_socket_.h.
65226         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
65227         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
65228         sys_stat_.h.
65229         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
65230         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
65231         sys_time_.h.
65232         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
65233         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
65234         sysexits_.h.
65235         * lib/time.in.h: Renamed from lib/time_.h.
65236         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
65237         * lib/unistd.in.h: Renamed from lib/unistd_.h.
65238         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
65239         unistd_.h.
65240         * lib/wchar.in.h: Renamed from lib/wchar_.h.
65241         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
65242         wchar_.h.
65243         * lib/wctype.in.h: Renamed from lib/wctype_.h.
65244         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
65245         wctype_.h.
65246         * build-aux/bootstrap (slurp): Update.
65247         * lib/.cppi-disable: Update.
65248
65249 2007-09-30  Bruno Haible  <bruno@clisp.org>
65250
65251         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
65252         Needed on BeOS.
65253
65254 2007-09-30  Bruno Haible  <bruno@clisp.org>
65255
65256         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
65257
65258 2007-09-29  Bruno Haible  <bruno@clisp.org>
65259
65260         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
65261
65262 2007-09-29  Bruno Haible  <bruno@clisp.org>
65263
65264         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
65265         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
65266         * build-aux/install-reloc: Compile also areadlink.c.
65267         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
65268
65269 2007-09-29  Bruno Haible  <bruno@clisp.org>
65270
65271         * gnulib-tool (func_emit_initmacro_done): Indentation.
65272
65273 2007-09-29  Bruno Haible  <bruno@clisp.org>
65274
65275         * README: Add CVS checkout update instructions.
65276         Info from Bob Proulx <bob@proulx.com>.
65277
65278 2007-09-28  Eric Blake  <ebb9@byu.net>
65279
65280         Provide move-if-change.
65281         * build-aux/move-if-change: New file, based on best practice
65282         rather than any canonical upstream location.
65283
65284 2007-09-28  Jim Meyering  <jim@meyering.net>
65285
65286         Fix canonicalize loop-detection corner case.
65287         Do not attempt to stat the symlink values stored via seen_triple.
65288         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
65289         on linux-2.6.18, (but not 2.6.22).
65290         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
65291         triple_compare.  The former compares dev,ino,filename, while the latter
65292         would actually stat dirname(filename) when dev and ino were equal.
65293         * lib/hash-triple.c: Install <string.h>.
65294         (STREQ): Define.
65295         (triple_compare_ino_str): New function.
65296         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
65297
65298 2007-09-28  Eric Blake  <ebb9@byu.net>
65299
65300         Enforce that AC_REPLACE_FUNCS files exist.
65301         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
65302         override check for typos.
65303
65304         Fix test-closein on Solaris 10.
65305         * tests/test-closein.c (main): Don't assume stdin can be inherited
65306         closed on all systems.
65307         * tests/test-closein.sh: Likewise.
65308         Reported by Piotr Tarnowski.
65309
65310 2007-09-28  Jim Meyering  <jim@meyering.net>
65311
65312         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
65313
65314 2007-09-27  Jim Meyering  <jim@meyering.net>
65315
65316         canonicalize: Avoid a false-positive cycle failure.
65317         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
65318         Sort.  Remove cycle-check.
65319         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
65320         not cycle-check.h.
65321         (seen_triple): New function.
65322         (canonicalize_filename_mode): Use it instead of cycle-check.
65323         * tests/test-canonicalize.c: Add a test for this bug.
65324         * tests/test-canonicalize.sh: Set up and run the test.
65325
65326         New module, file-set, from coreutils.
65327         * modules/file-set: Define it.
65328         * lib/file-set.c, lib/file-set.h: Implement.
65329
65330         New module, hash-triple, from coreutils.
65331         * modules/hash-triple: Define it.
65332         * lib/hash-triple.c, lib/hash-triple.h: Implement.
65333
65334 2007-09-25  Eric Blake  <ebb9@byu.net>
65335
65336         Fix strerror on Interix.
65337         * lib/string_.h (strerror): Declare replacement.
65338         * doc/functions/strerror.texi (strerror): Document the Interix
65339         shortcoming.
65340         * modules/string (Makefile.am): Support new hooks.
65341         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
65342         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
65343         gl_FUNC_STRERROR_SEPARATE.
65344         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
65345         * lib/strerror.c (rpl_strerror): Provide replacement.
65346         * modules/strerror (Depends-on): Add string.
65347         (configure.ac): Detect use of module.
65348         * tests/test-strerror.c: New file.
65349         * modules/strerror-tests: New test module.
65350         * modules/argp (Depends-on): Add strerror.
65351         * modules/error (Depends-on): Likewise.
65352         Reported by Martin Koeppe.
65353
65354 2007-09-24  Bruno Haible  <bruno@clisp.org>
65355
65356         * README: Update git instructions.
65357
65358 2007-09-24  Eric Blake  <ebb9@byu.net>
65359
65360         Revert fpending breakage from 2007-09-08.
65361         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
65362         __fpending.c.
65363
65364 2007-09-24  Jim Meyering  <jim@meyering.net>
65365
65366         filenamecat.c: Add a test.
65367         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
65368         showing how the function works when DIR is the empty string.
65369
65370 2007-09-21  Simon Josefsson  <simon@josefsson.org>
65371
65372         * tests/test-canonicalize.sh: Turn on executable bit.
65373
65374 2007-09-19  Eric Blake  <ebb9@byu.net>
65375
65376         * README: Update CVS instructions.
65377
65378 2007-09-18  Bruno Haible  <bruno@clisp.org>
65379
65380         * modules/areadlink: New file.
65381         * lib/areadlink.h (areadlink): New declaration.
65382         * lib/areadlink.c: New file, based on lib/xreadlink.c.
65383
65384 2007-09-17  Jim Meyering  <jim@meyering.net>
65385
65386         * lib/savewd.c (ESTALE) [!defined]: Define.
65387         Reported to be required on Interix by Martin Koeppe.
65388
65389 2007-09-17  Bruno Haible  <bruno@clisp.org>
65390
65391         * gnulib-tool (func_version): Use $version.
65392
65393 2007-09-16  Bruno Haible  <bruno@clisp.org>
65394
65395         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
65396         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
65397         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
65398         Reported by Greg Schafer <gschafer@zip.com.au>.
65399
65400 2007-09-15  Bruno Haible  <bruno@clisp.org>
65401
65402         * gnulib-tool (sed): Try a little harder to make bash understand the
65403         alias.
65404         Reported by Bruce Korb <bruce.korb@gmail.com>.
65405
65406 2007-09-13  Eric Blake  <ebb9@byu.net>
65407
65408         * ChangeLog: Remove conflict markers.
65409
65410 2007-09-13  Simon Josefsson  <simon@josefsson.org>
65411
65412         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
65413         Reported by Bruno Haible <bruno@clisp.org>.
65414
65415 2007-09-12  Bruno Haible  <bruno@clisp.org>
65416
65417         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
65418         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
65419         is not defined.
65420
65421 2007-09-12  Eric Blake  <ebb9@byu.net>
65422
65423         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
65424         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
65425         Autoconf definition.
65426         * modules/euidaccess (Depends-on): Add extensions, for
65427         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
65428         * modules/fnmatch (Depends-on): Likewise.
65429         * modules/getaddrinfo (Depends-on): Likewise.
65430         * modules/getdelim (Depends-on): Likewise.
65431         * modules/getline (Depends-on): Likewise.
65432         * modules/getsubopt (Depends-on): Likewise.
65433         * modules/gettext (Depends-on): Likewise.
65434         * modules/group-member (Depends-on): Likewise.
65435         * modules/mbchar (Depends-on): Likewise.
65436         * modules/memmem (Depends-on): Likewise.
65437         * modules/mempcpy (Depends-on): Likewise.
65438         * modules/memrchr (Depends-on): Likewise.
65439         * modules/pagealign_alloc (Depends-on): Likewise.
65440         * modules/readutmp (Depends-on): Likewise.
65441         * modules/stpcpy (Depends-on): Likewise.
65442         * modules/stpncpy (Depends-on): Likewise.
65443         * modules/strchrnul (Depends-on): Likewise.
65444         * modules/strndup (Depends-on): Likewise.
65445         * modules/strsep (Depends-on): Likewise.
65446         * modules/strverscmp (Depends-on): Likewise.
65447         * modules/vasprintf (Depends-on): Likewise.
65448         * modules/wcwidth (Depends-on): Likewise.
65449         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
65450         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
65451         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
65452         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
65453         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
65454         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
65455         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
65456         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
65457         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
65458         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
65459         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
65460         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
65461         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
65462         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
65463         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
65464         * m4/readutmp.m4 (gl_READUTMP): Likewise.
65465         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
65466         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
65467         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
65468         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
65469         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
65470         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
65471         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
65472         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
65473         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
65474         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
65475         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
65476         so that lock.m4 can be used in gettext without extensions module.
65477
65478 2007-09-11  Bruno Haible  <bruno@clisp.org>
65479
65480         * m4/isc-posix.m4: Remove file.
65481         Suggested by Eric Blake.
65482
65483 2007-09-11  Eric Blake  <ebb9@byu.net>
65484
65485         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
65486
65487 2007-09-10  Bruno Haible  <bruno@clisp.org>
65488
65489         * posix-modules: Fix typo in error message.
65490         Reported by Matt <mkraai@beckman.com>.
65491
65492 2007-09-09  Bruno Haible  <bruno@clisp.org>
65493
65494         * doc/functions/getdelim.texi: Update list of platforms lacking the
65495         function.
65496         * doc/functions/getline.texi: Likewise.
65497
65498 2007-09-09  Jim Meyering  <jim@meyering.net>
65499
65500         * lib/hash.c (hash_initialize): Detect calloc failure.
65501         Reported by Bruno Haible.
65502
65503 2007-09-09  Bruno Haible  <bruno@clisp.org>
65504
65505         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
65506         malloc or realloc fails.
65507
65508 2007-09-09  Bruno Haible  <bruno@clisp.org>
65509
65510         * modules/getcwd (Depends-on): Add malloc-posix.
65511         * modules/glob (Depends-on): Likewise.
65512         * modules/putenv (Depends-on): Likewise.
65513         * modules/strdup (Depends-on): Likewise.
65514         * modules/getdelim (Depends-on): Add realloc-posix.
65515         * modules/read-file (Depends-on): Likewise.
65516
65517 2007-09-09  Bruno Haible  <bruno@clisp.org>
65518
65519         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
65520         (gl_FUNC_MALLOC_POSIX): Require it.
65521         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
65522         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
65523         * modules/realloc (Files): Add m4/malloc.m4.
65524         * modules/calloc (Files): Likewise.
65525
65526 2007-09-09  Bruno Haible  <bruno@clisp.org>
65527
65528         * modules/malloc-posix: New file.
65529         * modules/malloc (Depends-on): Add malloc-posix.
65530         * lib/malloc.c: Include errno.h.
65531         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
65532         and a POSIX-compatible malloc into a single function. Set ENOMEM
65533         when returning NULL.
65534         * m4/malloc.m4: New file.
65535         * doc/functions/malloc.texi: Mention the malloc-posix module.
65536         * lib/stdlib_.h (malloc): New declaration.
65537         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
65538         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
65539         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
65540         and HAVE_MALLOC_POSIX.
65541
65542 2007-09-09  Bruno Haible  <bruno@clisp.org>
65543
65544         * modules/realloc-posix: New file.
65545         * modules/realloc (Depends-on): Add realloc-posix.
65546         * lib/realloc.c: Include errno.h.
65547         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
65548         and a POSIX-compatible realloc into a single function. Set ENOMEM
65549         when returning NULL.
65550         * m4/realloc.m4: New file.
65551         * doc/functions/realloc.texi: Mention the realloc-posix module.
65552         * lib/stdlib_.h (realloc): New declaration.
65553         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
65554         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
65555         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
65556         and HAVE_REALLOC_POSIX.
65557
65558 2007-09-09  Bruno Haible  <bruno@clisp.org>
65559
65560         * modules/calloc-posix: New file.
65561         * modules/calloc (Depends-on): Add calloc-posix.
65562         * lib/calloc.c: Include errno.h.
65563         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
65564         and a POSIX-compatible calloc into a single function. Set ENOMEM
65565         when returning NULL.
65566         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
65567         * doc/functions/calloc.texi: Mention the calloc-posix module.
65568         * lib/stdlib_.h (calloc): New declaration.
65569         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
65570         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
65571         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
65572         and HAVE_CALLOC_POSIX.
65573
65574 2007-09-09  Bruno Haible  <bruno@clisp.org>
65575
65576         Allow for modules to show an arbitrary notice.
65577         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
65578         * gnulib-tool: New option --extract-notice.
65579         (func_usage): Document it.
65580         (sed_extract_prog): Update.
65581         (func_get_notice): New function.
65582         (func_modules_notice): New function.
65583         (func_import, func_create_testdir): Invoke it.
65584         Suggested by Jim Meyering.
65585
65586 2007-09-09  Bruno Haible  <bruno@clisp.org>
65587
65588         * gnulib-tool: New options --verbose, --quiet.
65589         (func_usage): Document them.
65590         (verbose): New variable.
65591         (func_execute_command): New function.
65592         (func_import): Don't show the module list and the file list if
65593         $verbose < 0.
65594         (func_create_testdir): Likewise. Use func_execute_command.
65595         (func_create_megatestdir): Use func_execute_command.
65596
65597 2007-09-08  Bruno Haible  <bruno@clisp.org>
65598
65599         * gnulib-tool (func_import): Prefer rsync over wget when available,
65600         for fetching the PO files.
65601
65602 2007-09-08  Bruno Haible  <bruno@clisp.org>
65603
65604         * posix-modules: New file. Portions copied from gnulib-tool.
65605         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
65606
65607 2007-09-08  Jim Meyering  <jim@meyering.net>
65608
65609         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
65610         * lib/fpending.h: Rename from __fpending.h.
65611         * lib/fpending.c: Rename from __fpending.c.
65612         Include "fpending.h", not "__fpending.h".
65613         * lib/__fpending.h, lib/__fpending.c: Remove files.
65614         * modules/fpending (Files): Reflect new file names.
65615         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
65616
65617 2007-09-08  Bruno Haible  <bruno@clisp.org>
65618
65619         * m4/inttypes-h.m4: Remove stub file.
65620
65621 2007-09-07  Simon Josefsson  <simon@josefsson.org>
65622
65623         * doc/headers/stdint.texi: Discuss #include_next issue.
65624
65625 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
65626
65627         * build-aux/bootstrap: Remove obsolete comment about wget --help.
65628
65629 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65630
65631         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
65632         in variable name.
65633
65634 2007-09-03  Jim Meyering  <jim@meyering.net>
65635
65636         New module: git-version-gen.
65637         * modules/git-version-gen: New file.
65638
65639         Import changes from coreutils for bootstrap script.
65640
65641         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
65642
65643         bootstrap: uses rsync to download the .po files
65644         * build-aux/bootstrap (po_download_command_format): New global.
65645         (download_po_files): Use rsync.
65646         (update_po_files): Don't remove .po files after download,
65647         so future rsync runs can take advantage of the copies.
65648
65649         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
65650
65651         Solve the unnecessary-.po-file-regeneration problem once and for all.
65652         * build-aux/bootstrap (download_po_files): New function, renamed from
65653         get_translations.  Now, downloads, but doesn't update LINGUAS.
65654         (update_po_files): New function.
65655
65656         bootstrap: Ignore more.
65657         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
65658         uniwidth to e.g., lib/.gitignore.
65659         (slurp): Handle the sys_stat_.h -> sys mapping, too.
65660
65661         * build-aux/bootstrap: New setting: vc_ignore.
65662         (insert_sorted_if_absent): Create $file if absent.
65663         Adapt to new, possibly empty, list: $vc_ignore.
65664
65665         bootstrap: generate more ignorable names
65666         * build-aux/bootstrap (slurp): When generating ignorable names,
65667         also map .sin to .sed, .gperf to .c, and .y to .c.
65668
65669 2007-09-03  Jim Meyering  <jim@meyering.net>
65670
65671         * build-aux/git-version-gen: New file, from coreutils.  For details, see
65672         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
65673
65674 2007-09-02  Bruno Haible  <bruno@clisp.org>
65675
65676         Fix mis-recognition of 'mcs' on QNX 6.
65677         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
65678         output contains the string "Mono".
65679         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
65680         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
65681
65682 2007-09-01  Bruno Haible  <bruno@clisp.org>
65683
65684         Fix collision between uniwidth/* and linebreak modules.
65685         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
65686         u32_width): Remove declarations.
65687         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
65688         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
65689         streq3, streq2, streq1, streq0): Remove functions.
65690         (STREQ): Remove macro.
65691         (is_cjk_encoding): Remove function.
65692         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
65693         (uc_width, u8_width, u16_width, u32_width): Remove functions.
65694         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
65695         * NEWS: Document the change.
65696
65697 2007-09-01  Bruno Haible  <bruno@clisp.org>
65698
65699         * lib/streq.h: Add double-inclusion guard.
65700
65701 2007-09-01  Karl Berry  <karl@gnu.org>
65702
65703         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
65704
65705 2007-08-28  Jim Meyering  <jim@meyering.net>
65706
65707         Rename mreadlink_with_size to areadlink_with_size.
65708         * NEWS: Document the change.
65709         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
65710         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
65711         * lib/mreadlink.h: Rename this to...
65712         * lib/areadlink.h: ...this.
65713         * modules/mreadlink-with-size: Rename this to...
65714         * modules/areadlink-with-size: ...this.
65715         * lib/canonicalize.c: Reflect the renaming.
65716         * modules/canonicalize: Likewise.
65717
65718 2007-08-26  Bruno Haible  <bruno@clisp.org>
65719
65720         * gnulib-tool (func_import): When deciding which files to remove,
65721         consider also dangling symbolic links.
65722         Reported by Eric Blake.
65723
65724 2007-08-26  Bruno Haible  <bruno@clisp.org>
65725
65726         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
65727
65728 2007-08-23  Simon Josefsson  <simon@josefsson.org>
65729
65730         * lib/readline.c: Don't include getline.h, the prototype is now
65731         found in stdio.h.
65732
65733 2007-08-23  Jim Meyering  <jim@meyering.net>
65734
65735         Getdelim touchup.
65736         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
65737         around the funlockfile call, since funlockfile never sets errno.
65738         Don't set errno upon failed realloc.
65739
65740 2007-08-22  Eric Blake  <ebb9@byu.net>
65741
65742         Getline touchups.
65743         * lib/getdelim.c (getdelim): Revert regression that required *n to
65744         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
65745         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
65746         getdelim, rather than whether implementation is missing.
65747         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
65748         * lib/stdio_.h (getline): Also declare if replacement is
65749         required.
65750         * doc/functions/getdelim.texi: New file.
65751         * doc/functions/getline.texi: Likewise.
65752         * doc/gnulib.texi (Function Substitutes): Add new files.
65753         Reported by Bruno Haible.
65754
65755 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
65756
65757         * users.txt: Add Guile.
65758
65759 2007-08-22  Eric Blake  <ebb9@byu.net>
65760
65761         * tests/test-getdelim.c (main): Use remove, not unlink.
65762         * tests/test-getline.c (main): Likewise.
65763
65764         Move getline and getdelim into stdio.h, per POSIX 200x.
65765         * modules/getline (Files): Remove getline.h.
65766         (Depends-on): Add stdio.
65767         (configure.ac): Add module indicator.
65768         * modules/getdelim (Files): Remove getdelim.h.
65769         (Depends-on): Add stdio.
65770         (configure.ac): Add module indicator.
65771         * modules/stdio (Makefile.am): Work with new indicators.
65772         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
65773         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
65774         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
65775         * lib/getdelim.h: Delete.
65776         * lib/getline.h: Delete.
65777         * lib/stdio_.h (getdelim, getline): Declare.
65778         * modules/getdelim-tests: New module.
65779         * modules/getline-tests: Likewise.
65780         * tests/test-getdelim.c: New file.
65781         * tests/test-getline.c: Likewise.
65782         * NEWS: Document the change.
65783         * lib/getline.c: Update choice of header.
65784         * lib/csharpcomp.c: Likewise.
65785         * lib/getpass.c: Likewise.
65786         * lib/javacomp.c: Likewise.
65787         * lib/javaversion.c: Likewise.
65788         * lib/yesno.c: Likewise.
65789         * lib/getdelim.c: Likewise.
65790         (getdelim): Set errno on failure, and avoid memory leak.
65791
65792 2007-08-19  Bruno Haible  <bruno@clisp.org>
65793
65794         * modules/closein (Depends-on): Add freadahead.
65795         * lib/closein.c: Include freadahead.h.
65796         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
65797         is zero.
65798
65799 2007-08-19  Bruno Haible  <bruno@clisp.org>
65800
65801         * modules/freadahead-tests: New file.
65802         * tests/test-freadahead.sh: New file.
65803         * tests/test-freadahead.c: New file.
65804
65805         * modules/freadahead: New file.
65806         * lib/freadahead.h: New file.
65807         * lib/freadahead.c: New file.
65808         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
65809         fbufmode, fpurge, freadable, fwritable.
65810
65811 2007-08-19  Eric Blake  <ebb9@byu.net>
65812
65813         Test yesno in combination with closein.
65814         * lib/yesno.c (yesno): Document use of stdin.
65815         * modules/yesno-tests (Files): New module.
65816         * tests/test-yesno.c (main): New file.
65817         * tests/test-yesno.sh: Likewise.
65818
65819 2007-08-19  Bruno Haible  <bruno@clisp.org>
65820
65821         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
65822         * lib/fseeko.c (rpl_fseeko): Likewise.
65823         * lib/fseterr.c (fseterr): Likewise.
65824
65825 2007-08-19  Bruno Haible  <bruno@clisp.org>
65826
65827         * tests/test-lseek.c (main): Disable a test for BeOS.
65828         * doc/functions/lseek.texi: Document the BeOS bug.
65829
65830 2007-08-19  Bruno Haible  <bruno@clisp.org>
65831             Eric Blake  <ebb9@byu.net>
65832
65833         * lib/lseek.c: Include <sys/stat.h>.
65834         (rpl_lseek): Add workaround code also for Unix platforms.
65835         Needed for BeOS.
65836         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
65837         * doc/functions/lseek.texi: Document BeOS definiency.
65838
65839 2007-08-18  Bruno Haible  <bruno@clisp.org>
65840
65841         * modules/fstrcmp-tests: New file.
65842         * tests/test-fstrcmp.c: New file.
65843
65844 2007-08-18  Bruno Haible  <bruno@clisp.org>
65845
65846         * modules/fstrcmp: New file, from GNU gettext with modifications.
65847         * lib/fstrcmp.h: New file, from GNU gettext.
65848         * lib/fstrcmp.c: New file, from GNU gettext.
65849         * MODULES.html.sh (String handling): Add fstrcmp.
65850
65851 2007-08-18  Bruno Haible  <bruno@clisp.org>
65852
65853         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
65854         'bool'.
65855         (diag, compareseq): Remove const from the ctxt argument.
65856         (USE_HEURISTIC): Undefine at the end.
65857
65858 2007-08-18  Jim Meyering  <jim@meyering.net>
65859
65860         New file: lib/idcache.h
65861         * NEWS: Mention the addition.
65862         * modules/idcache (Files): Add lib/idcache.h
65863         * lib/idcache.c: Include "idcache.h".
65864         Don't include <sys/types.h>.
65865         Add a FIXME comment.
65866         Move file-scoped "static" declarations to the top.
65867         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
65868
65869 2007-08-17  Bruno Haible  <bruno@clisp.org>
65870         and Paul Eggert  <eggert@cs.ucla.edu>
65871
65872         * MODULES.html.sh: Add diffseq.
65873         * modules/diffseq: New file.
65874         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
65875         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
65876
65877 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
65878
65879         Import changes from coreutils for bootstrap script.
65880
65881         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
65882
65883         * build-aux/bootstrap (slurp): Work even in environments where
65884         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
65885         current code does not slurp files whose names start with ".", and
65886         this looks like it might be a troublesome area.
65887
65888         2007-07-11  Jim Meyering  <jim@meyering.net>
65889
65890         If there's a GPL vN copyright comment, require that N == 3.
65891
65892         2007-07-08  Jim Meyering  <jim@meyering.net>
65893
65894         Run the coreutils-specific code only if tests/Makefile.am.in exists.
65895         * build-aux/bootstrap (mam_template): Move definition out of loop.
65896
65897         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
65898
65899         * build-aux/bootstrap (symlink_to_dir): Rename function from
65900         symlink_to_gnulib.  Add a directory parameter.  Update all
65901         callers.
65902         (cp_mark_as_generated): Also check for -- and link to -- files in
65903         gl/.
65904
65905         2007-07-08  Jim Meyering  <jim@meyering.net>
65906
65907         Adapt to deeper hierarchy in gnulib.
65908         * build-aux/bootstrap (symlink_to_dir): If the destination
65909         directory doesn't exist, create it. This is required at least for
65910         "lib/uniwidth/cjk.h".
65911
65912         2007-05-15  Jim Meyering  <jim@meyering.net>
65913
65914         * build-aux/bootstrap: Now that generated Makefile.am files
65915         are no longer under version control, they must be created at
65916         bootstrap time.
65917
65918 2007-08-14  Ben Pfaff  <blp@gnu.org>
65919
65920         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
65921
65922 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
65923
65924         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
65925         given the changes below.
65926         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
65927         even on hosts that have padding bits beyond the supported 64.
65928
65929 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
65930
65931         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
65932         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
65933         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
65934         depends on it.
65935         (xstrtol_error): Remove.
65936         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
65937         but with a different signature.
65938         (ATTRIBUTE_NORETURN, __attribute__): New macros.
65939         * lib/xstrtol-error.c: Include exitfail.h.
65940         (xstrtol_fatal): New function, with a different signature from the
65941         old xstrtol_error, so that the caller need not worry about passing
65942         in an exit status, or about storage management of the option argument.
65943         (xstrtol_error): Now a static function.  Redo signature to
65944         implement xstrtol_fatal.  Output the correct number of hyphens in
65945         front of the option so that the caller need not worry about
65946         storage management.
65947         (N_): New macro.
65948         (_): Remove; not used now.
65949         * modules/xstrtol: Depend on getopt.
65950         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
65951         of old STRTOL_FATAL_ERROR macro.
65952         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
65953         of test program.
65954         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
65955         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
65956
65957 2007-08-08  Eric Blake  <ebb9@byu.net>
65958
65959         * lib/xstrtol-error.c: Add missing include.
65960
65961         Move xstrtol messages into gnulib domain, when --pobase is used.
65962         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
65963         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
65964         * modules/xstrtol (Files): Distribute new file.
65965         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
65966         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
65967         * tests/test-xstrtol.c: ...into new file.
65968         * tests/test-xstrtoul.c: Also test xstrtoul.
65969         * tests/test-xstrtoimax.c: Also test xstrtoimax.
65970         * tests/test-xstrtoumax.c: Also test xstrtoumax.
65971         * tests/test-xstrtol.sh: Drive the tests.
65972         * tests/test-xstrtoimax.sh: Likewise.
65973         * tests/test-xstrtoumax.sh: Likewise.
65974         * modules/xstrtol-tests: New module.
65975         * modules/xstrtoimax-tests: Likewise.
65976         * modules/xstrtoumax-tests: Likewise.
65977
65978 2007-08-08  Jim Meyering  <jim@meyering.net>
65979
65980         New function: mfile_name_concat.
65981         * lib/filenamecat.c (mfile_name_concat): New function, just like
65982         file_name_concat, but return NULL upon failure rather than exiting
65983         with a diagnostic.
65984         * lib/filenamecat.h: Declare it.
65985
65986 2007-08-07  Bruno Haible  <bruno@clisp.org>
65987
65988         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
65989         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
65990         warning from gcc.
65991         Reported by Eric Blake.
65992
65993 2007-08-07  Simon Josefsson  <simon@josefsson.org>
65994
65995         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
65996         * modules/crypto/arcfour (License): Likewise.
65997         * modules/crypto/des-tests (License): Likewise.
65998         * modules/crypto/gc-arctwo-tests (License): Likewise.
65999         * modules/crypto/gc-des-tests (License): Likewise.
66000         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
66001         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
66002         * modules/crypto/gc-md2-tests (License): Likewise.
66003         * modules/crypto/gc-md4-tests (License): Likewise.
66004         * modules/crypto/gc-md5-tests (License): Likewise.
66005         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
66006         * modules/crypto/gc-rijndael-tests (License): Likewise.
66007         * modules/crypto/gc-sha1-tests (License): Likewise.
66008         * modules/crypto/gc-tests (License): Likewise.
66009         * modules/crypto/hmac-md5 (License): Likewise.
66010         * modules/crypto/hmac-sha1 (License): Likewise.
66011         * modules/crypto/md2-tests (License): Likewise.
66012         * modules/crypto/md4-tests (License): Likewise.
66013         * modules/crypto/md5 (License): Likewise.
66014         * modules/crypto/rijndael (License): Likewise.
66015         * modules/crypto/sha1 (License): Likewise.
66016         * modules/memxor (License): Likewise.
66017
66018 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
66019         and Bruno Haible  <bruno@clisp.org>
66020
66021         * NEWS: Describe interface changes to human, xstrtol.
66022         * lib/human.h: Include <xstrtol.h>.
66023         (human_options): Return enum strtol_error, not int.  Remove
66024         bool arg; take int * instead.
66025         * lib/human.c: Don't include "gettext.h".
66026         (_): Remove; no longer used.
66027         Don't include <xstrtol.h>, since human.h does it.
66028         (human_options): Adjust to abovementioned interface changes.
66029         Do not report error to stderr; that's now the caller's
66030         responsibility.
66031         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
66032         interface change.
66033         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
66034         Str, Argument_type_string.  All uses changed.  Put " argument"
66035         in diagnostics to make them clearer.  Change wording of suffix
66036         message for clarity.
66037         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
66038         Argument_type_string.
66039         (STRTOL_FATAL_WARN): Remove; no longer used.
66040         * modules/human (Depends-on): Remove gettext-h.
66041
66042 2007-08-06  Simon Josefsson  <simon@josefsson.org>
66043
66044         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
66045
66046 2007-07-31  Bruno Haible  <bruno@clisp.org>
66047
66048         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
66049         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
66050         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
66051
66052 2007-07-31  Bruno Haible  <bruno@clisp.org>
66053
66054         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
66055         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
66056
66057 2007-07-30  Bruno Haible  <bruno@clisp.org>
66058
66059         * modules/base64 (License): Use the synonymous term "LGPLv2+".
66060         * modules/c-ctype (License): Likewise.
66061         * modules/c-strcase (License): Likewise.
66062         * modules/check-version (License): Likewise.
66063         * modules/iconv (License): Likewise.
66064         * modules/iconv_open (License): Likewise.
66065         * modules/read-file (License): Likewise.
66066         * modules/striconv (License): Likewise.
66067         * modules/strverscmp (License): Likewise.
66068         * modules/vasprintf (License): Likewise.
66069         * modules/crypto/des (License): Likewise.
66070         * modules/crypto/gc (License): Likewise.
66071         * modules/crypto/gc-arcfour (License): Likewise.
66072         * modules/crypto/gc-arctwo (License): Likewise.
66073         * modules/crypto/gc-des (License): Likewise.
66074         * modules/crypto/gc-hmac-md5 (License): Likewise.
66075         * modules/crypto/gc-hmac-sha1 (License): Likewise.
66076         * modules/crypto/gc-md2 (License): Likewise.
66077         * modules/crypto/gc-md4 (License): Likewise.
66078         * modules/crypto/gc-md5 (License): Likewise.
66079         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
66080         * modules/crypto/gc-random (License): Likewise.
66081         * modules/crypto/gc-rijndael (License): Likewise.
66082         * modules/crypto/gc-sha1 (License): Likewise.
66083         * modules/crypto/md2 (License): Likewise.
66084         * modules/crypto/md4 (License): Likewise.
66085
66086 2007-07-30  Jim Meyering  <jim@meyering.net>
66087
66088         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
66089         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
66090         it has valid stat data.  This bug would cause du not to count the
66091         sizes of inaccessible directories.
66092         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
66093         in <http://bugzilla.redhat.com/250077>.
66094
66095 2007-07-25  Peter O'Gorman  <peter@pogma.com>
66096             Bruno Haible  <bruno@clisp.org>
66097
66098         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
66099         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
66100         #include_next, gives a diagnostic about it, but reports no error in
66101         the exit code.
66102         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
66103
66104 2007-07-24  Ben Pfaff  <blp@gnu.org>
66105
66106         Improve name: "count-one-bits" is better than "popcount".
66107         * MODULES.html.sh: Update name.
66108         * lib/popcount.h: Renamed lib/count-one-bits.h.
66109         (popcount): Renamed count_one_bits.
66110         (popcountl): Renamed count_one_bits_l.
66111         (popcountll): Renamed count_one_bits_ll.
66112         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
66113         * modules/popcount: Renamed module/count-one-bits.
66114         * modules/popcount-tests: Renamed module/count-one-bits-tests.
66115         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
66116
66117 2007-07-23  Ben Pfaff  <blp@gnu.org>
66118
66119         * lib/popcount.h (popcount32): Reduce size of constants, to allow
66120         better code generation, and add U to large constants to avoid
66121         warnings, in non-GCC case.
66122         Suggested by Bruno Haible.
66123
66124 2007-07-23  Ben Pfaff  <blp@gnu.org>
66125
66126         * lib/popcount.h: Use verify_true instead of if...abort.
66127         * modules/popcount: Depend on verify module.
66128         Suggested by Jim Meyering.
66129
66130 2007-07-23  Bruno Haible  <bruno@clisp.org>
66131
66132         * gnulib-tool (func_import): Create a .cvsignore file also when the
66133         directory is not yet in CVS but the toplevel directory is. When
66134         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
66135         Reported by Karl Berry.
66136
66137 2007-07-22  Ben Pfaff  <blp@gnu.org>
66138
66139         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
66140         case.
66141         Suggested by Eric Blake.
66142
66143 2007-07-22  Ben Pfaff  <blp@gnu.org>
66144
66145         New module: popcount.
66146         * MODULES.html.sh: Add popcount.
66147         * modules/popcount: New file.
66148         * modules/popcount-tests: New file.
66149         * tests/test-popcount.c: New file.
66150         * lib/popcount.h: New file.
66151         * m4/popcount.m4: New file.
66152
66153 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
66154
66155         * build-aux/announce-gen: Update to GPLv3.
66156
66157         * build-aux/config.guess: Update from config.
66158
66159 2007-07-21  Bruno Haible  <bruno@clisp.org>
66160
66161         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
66162         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
66163
66164 2007-07-20  Jim Meyering  <jim@meyering.net>
66165
66166         * check-module: Diagnose a self-dependency.
66167
66168 2007-07-19  Bruno Haible  <bruno@clisp.org>
66169
66170         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
66171         empty.
66172         Reported by Eric Blake.
66173
66174 2007-07-18  Bruno Haible  <bruno@clisp.org>
66175
66176         * gnulib-tool: New options --po-base, --po-domain.
66177         (func_usage): Document them.
66178         (pobase, po_domain): New variables.
66179         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
66180         DEFAULT_TEXT_DOMAIN.
66181         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
66182         (func_import): Consider pobase and po_domain. Create a po/ directory.
66183         (func_create_testdir): Set pobase and po_domain to empty.
66184         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
66185         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
66186
66187 2007-07-18  Bruno Haible  <bruno@clisp.org>
66188
66189         * gnulib-tool (func_get_automake_snippet): Synthesize also an
66190         EXTRA_DIST augmentation for files in build-aux/.
66191
66192 2007-07-16  Bruno Haible  <bruno@clisp.org>
66193
66194         * modules/lseek (License): Use the synonymous term "LGPLv2+".
66195         * modules/getdelim (License): Likewise.
66196
66197 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66198
66199         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
66200         * modules/d-type (License): Likewise.
66201         * modules/extensions (License): Likewise.
66202         * modules/fnmatch (License): Likewise.
66203         * modules/fseeko (License): Likewise.
66204         * modules/getaddrinfo (License): Likewise.
66205         * modules/getline (License): Likewise.
66206         * modules/getlogin_r (License): Likewise.
66207         * modules/getpass (License): Likewise.
66208         * modules/gettimeofday (License): Likewise.
66209         * modules/glob (License): Likewise.
66210         * modules/inet_ntop (License): Likewise.
66211         * modules/malloc (License): Likewise.
66212         * modules/malloca (License): Likewise.
66213         * modules/memmem (License): Likewise.
66214         * modules/mempcpy (License): Likewise.
66215         * modules/memset (License): Likewise.
66216         * modules/minmax (License): Likewise.
66217         * modules/mktime (License): Likewise.
66218         * modules/netinet_in (License): Likewise.
66219         * modules/pathmax (License): Likewise.
66220         * modules/poll (License): Likewise.
66221         * modules/regex (License): Likewise.
66222         * modules/snprintf (License): Likewise.
66223         * modules/stdbool (License): Likewise.
66224         * modules/stdint (License): Likewise.
66225         * modules/stdio (License): Likewise.
66226         * modules/strcase (License): Likewise.
66227         * modules/strcasestr (License): Likewise.
66228         * modules/strdup (License): Likewise.
66229         * modules/string (License): Likewise.
66230         * modules/strndup (License): Likewise.
66231         * modules/strnlen (License): Likewise.
66232         * modules/strpbrk (License): Likewise.
66233         * modules/strptime (License): Likewise.
66234         * modules/strsep (License): Likewise.
66235         * modules/sys_select (License): Likewise.
66236         * modules/sys_socket (License): Likewise.
66237         * modules/sys_stat (License): Likewise.
66238         * modules/sys_time (License): Likewise.
66239         * modules/time (License): Likewise.
66240         * modules/time_r (License): Likewise.
66241         * modules/timegm (License): Likewise.
66242         * modules/unistd (License): Likewise.
66243         * modules/vsnprintf (License): Likewise.
66244         * modules/wctype (License): Likewise.
66245
66246 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66247
66248         * modules/argz (License): LGPLv2+.
66249
66250 2007-07-15  Karl Berry  <karl@gnu.org>
66251
66252         * doc/gnulib.texi: revise node structure per new fdl.texi.
66253
66254 2007-07-14  Bruno Haible  <bruno@clisp.org>
66255
66256         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
66257         the output file.
66258         * lib/uniname/uninames.h: Regenerated.
66259
66260 2007-07-14  Karl Berry  <karl@gnu.org>
66261
66262         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
66263         omitting sectioning and index commands.
66264
66265 2007-07-13  Bruno Haible  <bruno@clisp.org>
66266
66267         New gnulib-tool option --more-symlinks.
66268         * gnulib-tool (func_usage): Document --more-symlinks.
66269         (do_copyrights): New variable.
66270         Recognize option --more-symlinks.
66271         (func_import): Don't add a copyright notice transform to
66272         sed_transform_lib_file if do_copyrights is empty.
66273
66274 2007-07-13  Bruno Haible  <bruno@clisp.org>
66275
66276         * lib/vasnprintf.c (decimal_point_char): Define also if
66277         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
66278         && !NEED_PRINTF_DIRECTIVE_A.
66279         Reported by Clemens Koller <clemens.koller@anagramm.de> via
66280         Gary V. Vaughan <gary@gnu.org>.
66281
66282 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
66283
66284         * lib/inttypes_.h: Undo previous change, since it was fixed
66285         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
66286
66287 2007-07-13  Bruno Haible  <bruno@clisp.org>
66288
66289         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
66290         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
66291
66292 2007-07-13  Jim Meyering  <jim@meyering.net>
66293
66294         df: Don't fail for Tru64's "file-on-file mount".
66295         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
66296         so we fall through and use statfs instead.  Details here:
66297         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
66298         Reported by Albert Chin.
66299
66300 2007-07-13  Bruno Haible  <bruno@clisp.org>
66301
66302         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
66303         * modules/configmake (License): Likewise.
66304         * modules/gettext (License): Likewise.
66305         * modules/gettext-h (License): Likewise.
66306         * modules/include_next (License): Likewise.
66307         * modules/link-warning (License): Likewise.
66308         * modules/localcharset (License): Likewise.
66309         * modules/localename (License): Likewise.
66310         * modules/lock (License): Likewise.
66311         * modules/relocatable-lib-lgpl (License): Likewise.
66312         * modules/size_max (License): Likewise.
66313         * modules/vasnprintf (License): Likewise.
66314         * modules/wchar (License): Likewise.
66315         * modules/xsize (License): Likewise.
66316
66317 2007-07-13  Bruno Haible  <bruno@clisp.org>
66318
66319         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
66320         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
66321
66322 2007-07-12  Bruno Haible  <bruno@clisp.org>
66323
66324         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
66325         in the modules files.
66326
66327 2007-07-11  Karl Berry  <karl@gnu.org>
66328
66329         * MODULES.html.sh (func_module): use
66330          sed -e '\|^'"${includefile}"'$|d'
66331          instead of /.../d, to avoid errors on $includefile's containing /.
66332
66333 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
66334
66335         * gnulib-tool (func_import): Avoid duplication of --avoid
66336         statements
66337         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
66338         names to `_' in variable names.
66339
66340 2007-07-10  Eric Blake  <ebb9@byu.net>
66341
66342         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
66343         * NEWS: Document this change.
66344
66345 2007-07-08  Bruno Haible  <bruno@clisp.org>
66346
66347         Update to Unicode 5.0.
66348         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
66349         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
66350         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
66351         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
66352         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
66353         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
66354         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
66355         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
66356         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
66357         U+10A3F, U+1D242..U+1D244.
66358         (nonspacing_table_ind): Update.
66359         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
66360         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
66361
66362 2007-07-08  Bruno Haible  <bruno@clisp.org>
66363
66364         Update to Unicode 5.0.
66365         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
66366         code transform. Extend the name index field of unicode_name_to_code and
66367         unicode_code_to_name from 16 to 24 bits.
66368         * lib/uniname/uniname.c (unicode_character_name,
66369         unicode_name_character): Add the range 0x12xxx to the code transform.
66370         * lib/uniname/uninames.h: Regenerated.
66371         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
66372
66373 2007-07-07  Bruno Haible  <bruno@clisp.org>
66374
66375         * modules/wcwidth-tests: New file.
66376         * tests/test-wcwidth.c: New file.
66377
66378         Work around MacOS X wcwidth() bug.
66379         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
66380         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
66381         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
66382         original wcwidth in non-UTF-8 locales.
66383         * modules/wcwidth (Depends-on): Add localcharset, streq,
66384         uniwidth/width.
66385         * doc/functions/wcwidth.texi: Update.
66386
66387 2007-07-07  Bruno Haible  <bruno@clisp.org>
66388
66389         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
66390         (wcwidth): New declaration.
66391         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
66392         macros.
66393         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
66394         here. Prepare for creating <wchar.h> unconditionally.
66395         * modules/wchar (Depends-on): Add link-warning.
66396         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
66397         REPLACE_WCWIDTH, and GL_LINK_WARNING.
66398         * lib/wcwidth.h: Remove file.
66399         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
66400         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
66401         * modules/wcwidth (Files): Remove lib/wcwidth.h.
66402         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
66403         (Include): Replace wcwidth.h with <wchar.h>.
66404         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
66405         * lib/mbchar.h: Don't include wcwidth.h.
66406         * lib/mbswidth.c: Likewise.
66407         * NEWS: Mention the change.
66408
66409 2007-07-07  Bruno Haible  <bruno@clisp.org>
66410
66411         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
66412         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
66413         definition with an external declaration.
66414         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
66415         defined as a function. Remove AC_C_INLINE requirement.
66416         * modules/wcwidth (Files): Add lib/wcwidth.c.
66417         (Makefile.am): Remove redundant statement.
66418
66419 2007-07-07  Bruno Haible  <bruno@clisp.org>
66420
66421         * MODULES.html.sh (Unicode string functions): Add the new modules.
66422
66423         * tests/uniwidth/test-u32-strwidth.c: New file.
66424         * modules/uniwidth/u32-strwidth-tests: New file.
66425
66426         * lib/uniwidth/u32-strwidth.c: New file.
66427         * modules/uniwidth/u32-strwidth: New file.
66428
66429         * tests/uniwidth/test-u16-strwidth.c: New file.
66430         * modules/uniwidth/u16-strwidth-tests: New file.
66431
66432         * lib/uniwidth/u16-strwidth.c: New file.
66433         * modules/uniwidth/u16-strwidth: New file.
66434
66435         * tests/uniwidth/test-u8-strwidth.c: New file.
66436         * modules/uniwidth/u8-strwidth-tests: New file.
66437
66438         * lib/uniwidth/u8-strwidth.c: New file.
66439         * modules/uniwidth/u8-strwidth: New file.
66440
66441         * tests/uniwidth/test-u32-width.c: New file.
66442         * modules/uniwidth/u32-width-tests: New file.
66443
66444         * lib/uniwidth/u32-width.c: New file.
66445         * modules/uniwidth/u32-width: New file.
66446
66447         * tests/uniwidth/test-u16-width.c: New file.
66448         * modules/uniwidth/u16-width-tests: New file.
66449
66450         * lib/uniwidth/u16-width.c: New file.
66451         * modules/uniwidth/u16-width: New file.
66452
66453         * tests/uniwidth/test-u8-width.c: New file.
66454         * modules/uniwidth/u8-width-tests: New file.
66455
66456         * lib/uniwidth/u8-width.c: New file.
66457         * modules/uniwidth/u8-width: New file.
66458
66459         * tests/uniwidth/test-uc_width.c: New file.
66460         * modules/uniwidth/width-tests: New file.
66461
66462         * lib/uniwidth/width.c: New file, from GNU libiconv.
66463         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
66464         * modules/uniwidth/width: New file.
66465
66466         * lib/uniwidth.h: New file, from GNU libiconv.
66467         * modules/uniwidth/base: New file.
66468
66469 2007-07-07  Bruno Haible  <bruno@clisp.org>
66470
66471         * lib/uniname.h: New file, from GNU gettext.
66472         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
66473         * lib/uniname/uninames.h: New file, from GNU gettext.
66474         * lib/uniname/uniname.c: New file, from GNU gettext.
66475         * tests/uniname/test-uninames.sh: New file.
66476         * tests/uniname/test-uninames.c: New file, from GNU gettext.
66477         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
66478         * modules/uniname/base: New file.
66479         * modules/uniname/uniname: New file.
66480         * modules/uniname/uniname-tests: New file.
66481         * MODULES.html.sh (Unicode string functions): Add the new modules.
66482
66483 2007-07-06  Bruno Haible  <bruno@clisp.org>
66484
66485         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
66486
66487 2007-07-06  Bruno Haible  <bruno@clisp.org>
66488
66489         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
66490         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
66491         includes <cygwin/sys_time.h> which includes <sys/select.h> which
66492         include <sys/time.h>.
66493         Reported by Eric Blake.
66494
66495 2007-07-06  Eric Blake  <ebb9@byu.net>
66496
66497         Fix testing canonicalize on cygwin.
66498         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
66499         Revert patch from 2007-06-19.
66500         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
66501         canonicalize module is also in use.
66502         * tests/test-canonicalize.c: New file.
66503         * tests/test-canonicalize.sh: Likewise.
66504         * modules/canonicalize-tests: Likewise.
66505
66506 2007-07-06  Jim Meyering  <jim@meyering.net>
66507
66508         * lib/getugroups.c (getugroups): Detect getgrent failure.
66509         Adjust comment to reflect reality: this function may return -1.
66510
66511 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
66512
66513         * build-aux/bootstrap (TP_URL,get_translations): Update to use
66514         the new TP address.
66515         (usage): Fix typo
66516         (gnulib_mk): New variable.
66517
66518 2007-07-05  Jim Meyering  <jim@meyering.net>
66519
66520         Don't let endgrent clobber errno, no matter how improbable.
66521         * lib/getugroups.c (getugroups): Save and restore errno around
66522         endgrent call.
66523
66524         Close the group DB even when failing with 2^31 or more members.
66525         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
66526
66527 2007-07-04  Jim Meyering  <jim@meyering.net>
66528
66529         * lib/getugroups.h: New file.
66530         * lib/getugroups.c: Include "getugroups.h".
66531         Remove uses of "register" keyword.
66532         Move local variable, "cp", down into scope where used.
66533         Give "username" parameter the "const" attribute.
66534         * modules/getugroups (Files): Add lib/getugroups.h
66535
66536 2007-07-04  Karl Berry  <karl@gnu.org>
66537
66538         * MODULES.html.sh (func_all_modules): Complete rename of
66539         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
66540
66541 2007-07-02  Bruno Haible  <bruno@clisp.org>
66542
66543         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
66544         mode, when inttypes.h comes from gnulib.
66545         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
66546
66547 2007-07-02  Simon Josefsson  <simon@josefsson.org>
66548
66549         * NEWS: Mention lgpl module name change.
66550
66551         * modules/lgpl-2.1: Renamed from lgpl.
66552
66553         * NEWS: Mention gpl module name change.
66554
66555         * modules/gpl-3.0: New file, based on gpl-2.0.
66556
66557         * modules/gpl-2.0: Renamed from gpl.
66558
66559         * modules/gpl: Fix filename, doc/gpl.texi is now found at
66560         doc/gpl-2.0.texi.
66561
66562 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
66563
66564         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
66565         #define __STDC_LIMIT_MACROS temporarily while including
66566         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
66567         Problem reported by Joel E. Denny in
66568         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
66569
66570 2007-07-01  Bruno Haible  <bruno@clisp.org>
66571
66572         * lib/unistdio.h: New file.
66573         * lib/unistdio/u-asnprintf.h: New file.
66574         * lib/unistdio/u-asprintf.h: New file.
66575         * lib/unistdio/u-printf-args.c: New file.
66576         * lib/unistdio/u-printf-args.h: New file.
66577         * lib/unistdio/u-printf-parse.h: New file.
66578         * lib/unistdio/u-snprintf.h: New file.
66579         * lib/unistdio/u-sprintf.h: New file.
66580         * lib/unistdio/u-vasprintf.h: New file.
66581         * lib/unistdio/u-vsnprintf.h: New file.
66582         * lib/unistdio/u-vsprintf.h: New file.
66583         * lib/unistdio/ulc-asnprintf.c: New file.
66584         * lib/unistdio/ulc-asprintf.c: New file.
66585         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
66586         * lib/unistdio/ulc-printf-parse.c: New file.
66587         * lib/unistdio/ulc-snprintf.c: New file.
66588         * lib/unistdio/ulc-sprintf.c: New file.
66589         * lib/unistdio/ulc-vasnprintf.c: New file.
66590         * lib/unistdio/ulc-vasprintf.c: New file.
66591         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
66592         * lib/unistdio/ulc-vsnprintf.c: New file.
66593         * lib/unistdio/ulc-vsprintf.c: New file.
66594         * lib/unistdio/u8-asnprintf.c: New file.
66595         * lib/unistdio/u8-asprintf.c: New file.
66596         * lib/unistdio/u8-printf-parse.c: New file.
66597         * lib/unistdio/u8-snprintf.c: New file.
66598         * lib/unistdio/u8-sprintf.c: New file.
66599         * lib/unistdio/u8-vasnprintf.c: New file.
66600         * lib/unistdio/u8-vasprintf.c: New file.
66601         * lib/unistdio/u8-vsnprintf.c: New file.
66602         * lib/unistdio/u8-vsprintf.c: New file.
66603         * lib/unistdio/u8-u8-asnprintf.c: New file.
66604         * lib/unistdio/u8-u8-asprintf.c: New file.
66605         * lib/unistdio/u8-u8-snprintf.c: New file.
66606         * lib/unistdio/u8-u8-sprintf.c: New file.
66607         * lib/unistdio/u8-u8-vasnprintf.c: New file.
66608         * lib/unistdio/u8-u8-vasprintf.c: New file.
66609         * lib/unistdio/u8-u8-vsnprintf.c: New file.
66610         * lib/unistdio/u8-u8-vsprintf.c: New file.
66611         * lib/unistdio/u16-asnprintf.c: New file.
66612         * lib/unistdio/u16-asprintf.c: New file.
66613         * lib/unistdio/u16-printf-parse.c: New file.
66614         * lib/unistdio/u16-snprintf.c: New file.
66615         * lib/unistdio/u16-sprintf.c: New file.
66616         * lib/unistdio/u16-vasnprintf.c: New file.
66617         * lib/unistdio/u16-vasprintf.c: New file.
66618         * lib/unistdio/u16-vsnprintf.c: New file.
66619         * lib/unistdio/u16-vsprintf.c: New file.
66620         * lib/unistdio/u16-u16-asnprintf.c: New file.
66621         * lib/unistdio/u16-u16-asprintf.c: New file.
66622         * lib/unistdio/u16-u16-snprintf.c: New file.
66623         * lib/unistdio/u16-u16-sprintf.c: New file.
66624         * lib/unistdio/u16-u16-vasnprintf.c: New file.
66625         * lib/unistdio/u16-u16-vasprintf.c: New file.
66626         * lib/unistdio/u16-u16-vsnprintf.c: New file.
66627         * lib/unistdio/u16-u16-vsprintf.c: New file.
66628         * lib/unistdio/u32-asnprintf.c: New file.
66629         * lib/unistdio/u32-asprintf.c: New file.
66630         * lib/unistdio/u32-printf-parse.c: New file.
66631         * lib/unistdio/u32-snprintf.c: New file.
66632         * lib/unistdio/u32-sprintf.c: New file.
66633         * lib/unistdio/u32-vasnprintf.c: New file.
66634         * lib/unistdio/u32-vasprintf.c: New file.
66635         * lib/unistdio/u32-vsnprintf.c: New file.
66636         * lib/unistdio/u32-vsprintf.c: New file.
66637         * lib/unistdio/u32-u32-asnprintf.c: New file.
66638         * lib/unistdio/u32-u32-asprintf.c: New file.
66639         * lib/unistdio/u32-u32-snprintf.c: New file.
66640         * lib/unistdio/u32-u32-sprintf.c: New file.
66641         * lib/unistdio/u32-u32-vasnprintf.c: New file.
66642         * lib/unistdio/u32-u32-vasprintf.c: New file.
66643         * lib/unistdio/u32-u32-vsnprintf.c: New file.
66644         * lib/unistdio/u32-u32-vsprintf.c: New file.
66645         * tests/unistdio/test-ulc-asnprintf1.c: New file.
66646         * tests/unistdio/test-ulc-asnprintf1.h: New file.
66647         * tests/unistdio/test-ulc-printf1.h: New file.
66648         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
66649         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
66650         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
66651         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
66652         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
66653         * tests/unistdio/test-ulc-vasprintf1.c: New file.
66654         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
66655         * tests/unistdio/test-ulc-vsprintf1.c: New file.
66656         * tests/unistdio/test-u8-asnprintf1.c: New file.
66657         * tests/unistdio/test-u8-asnprintf1.h: New file.
66658         * tests/unistdio/test-u8-printf1.h: New file.
66659         * tests/unistdio/test-u8-vasnprintf1.c: New file.
66660         * tests/unistdio/test-u8-vasnprintf2.c: New file.
66661         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
66662         * tests/unistdio/test-u8-vasnprintf3.c: New file.
66663         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
66664         * tests/unistdio/test-u8-vasprintf1.c: New file.
66665         * tests/unistdio/test-u8-vsnprintf1.c: New file.
66666         * tests/unistdio/test-u8-vsprintf1.c: New file.
66667         * tests/unistdio/test-u16-asnprintf1.c: New file.
66668         * tests/unistdio/test-u16-asnprintf1.h: New file.
66669         * tests/unistdio/test-u16-printf1.h: New file.
66670         * tests/unistdio/test-u16-vasnprintf1.c: New file.
66671         * tests/unistdio/test-u16-vasnprintf2.c: New file.
66672         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
66673         * tests/unistdio/test-u16-vasnprintf3.c: New file.
66674         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
66675         * tests/unistdio/test-u16-vasprintf1.c: New file.
66676         * tests/unistdio/test-u16-vsnprintf1.c: New file.
66677         * tests/unistdio/test-u16-vsprintf1.c: New file.
66678         * tests/unistdio/test-u32-asnprintf1.c: New file.
66679         * tests/unistdio/test-u32-asnprintf1.h: New file.
66680         * tests/unistdio/test-u32-printf1.h: New file.
66681         * tests/unistdio/test-u32-vasnprintf1.c: New file.
66682         * tests/unistdio/test-u32-vasnprintf2.c: New file.
66683         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
66684         * tests/unistdio/test-u32-vasnprintf3.c: New file.
66685         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
66686         * tests/unistdio/test-u32-vasprintf1.c: New file.
66687         * tests/unistdio/test-u32-vsnprintf1.c: New file.
66688         * tests/unistdio/test-u32-vsprintf1.c: New file.
66689         * modules/unistdio/base: New file.
66690         * modules/unistdio/u-printf-args: New file.
66691         * modules/unistdio/ulc-asnprintf: New file.
66692         * modules/unistdio/ulc-asprintf: New file.
66693         * modules/unistdio/ulc-fprintf: New file.
66694         * modules/unistdio/ulc-printf-parse: New file.
66695         * modules/unistdio/ulc-snprintf: New file.
66696         * modules/unistdio/ulc-sprintf: New file.
66697         * modules/unistdio/ulc-vasnprintf: New file.
66698         * modules/unistdio/ulc-vasprintf: New file.
66699         * modules/unistdio/ulc-vfprintf: New file.
66700         * modules/unistdio/ulc-vsnprintf: New file.
66701         * modules/unistdio/ulc-vsprintf: New file.
66702         * modules/unistdio/u8-asnprintf: New file.
66703         * modules/unistdio/u8-asprintf: New file.
66704         * modules/unistdio/u8-printf-parse: New file.
66705         * modules/unistdio/u8-snprintf: New file.
66706         * modules/unistdio/u8-sprintf: New file.
66707         * modules/unistdio/u8-vasnprintf: New file.
66708         * modules/unistdio/u8-vasprintf: New file.
66709         * modules/unistdio/u8-vsnprintf: New file.
66710         * modules/unistdio/u8-vsprintf: New file.
66711         * modules/unistdio/u8-u8-asnprintf: New file.
66712         * modules/unistdio/u8-u8-asprintf: New file.
66713         * modules/unistdio/u8-u8-snprintf: New file.
66714         * modules/unistdio/u8-u8-sprintf: New file.
66715         * modules/unistdio/u8-u8-vasnprintf: New file.
66716         * modules/unistdio/u8-u8-vasprintf: New file.
66717         * modules/unistdio/u8-u8-vsnprintf: New file.
66718         * modules/unistdio/u8-u8-vsprintf: New file.
66719         * modules/unistdio/u16-asnprintf: New file.
66720         * modules/unistdio/u16-asprintf: New file.
66721         * modules/unistdio/u16-printf-parse: New file.
66722         * modules/unistdio/u16-snprintf: New file.
66723         * modules/unistdio/u16-sprintf: New file.
66724         * modules/unistdio/u16-vasnprintf: New file.
66725         * modules/unistdio/u16-vasprintf: New file.
66726         * modules/unistdio/u16-vsnprintf: New file.
66727         * modules/unistdio/u16-vsprintf: New file.
66728         * modules/unistdio/u16-u16-asnprintf: New file.
66729         * modules/unistdio/u16-u16-asprintf: New file.
66730         * modules/unistdio/u16-u16-snprintf: New file.
66731         * modules/unistdio/u16-u16-sprintf: New file.
66732         * modules/unistdio/u16-u16-vasnprintf: New file.
66733         * modules/unistdio/u16-u16-vasprintf: New file.
66734         * modules/unistdio/u16-u16-vsnprintf: New file.
66735         * modules/unistdio/u16-u16-vsprintf: New file.
66736         * modules/unistdio/u32-asnprintf: New file.
66737         * modules/unistdio/u32-asprintf: New file.
66738         * modules/unistdio/u32-printf-parse: New file.
66739         * modules/unistdio/u32-snprintf: New file.
66740         * modules/unistdio/u32-sprintf: New file.
66741         * modules/unistdio/u32-vasnprintf: New file.
66742         * modules/unistdio/u32-vasprintf: New file.
66743         * modules/unistdio/u32-vsnprintf: New file.
66744         * modules/unistdio/u32-vsprintf: New file.
66745         * modules/unistdio/u32-u32-asnprintf: New file.
66746         * modules/unistdio/u32-u32-asprintf: New file.
66747         * modules/unistdio/u32-u32-snprintf: New file.
66748         * modules/unistdio/u32-u32-sprintf: New file.
66749         * modules/unistdio/u32-u32-vasnprintf: New file.
66750         * modules/unistdio/u32-u32-vasprintf: New file.
66751         * modules/unistdio/u32-u32-vsnprintf: New file.
66752         * modules/unistdio/u32-u32-vsprintf: New file.
66753         * modules/unistdio/ulc-asnprintf-tests: New file.
66754         * modules/unistdio/ulc-vasnprintf-tests: New file.
66755         * modules/unistdio/ulc-vasprintf-tests: New file.
66756         * modules/unistdio/ulc-vsnprintf-tests: New file.
66757         * modules/unistdio/ulc-vsprintf-tests: New file.
66758         * modules/unistdio/u8-asnprintf-tests: New file.
66759         * modules/unistdio/u8-vasnprintf-tests: New file.
66760         * modules/unistdio/u8-vasprintf-tests: New file.
66761         * modules/unistdio/u8-vsnprintf-tests: New file.
66762         * modules/unistdio/u8-vsprintf-tests: New file.
66763         * modules/unistdio/u16-asnprintf-tests: New file.
66764         * modules/unistdio/u16-vasnprintf-tests: New file.
66765         * modules/unistdio/u16-vasprintf-tests: New file.
66766         * modules/unistdio/u16-vsnprintf-tests: New file.
66767         * modules/unistdio/u16-vsprintf-tests: New file.
66768         * modules/unistdio/u32-asnprintf-tests: New file.
66769         * modules/unistdio/u32-vasnprintf-tests: New file.
66770         * modules/unistdio/u32-vasprintf-tests: New file.
66771         * modules/unistdio/u32-vsnprintf-tests: New file.
66772         * modules/unistdio/u32-vsprintf-tests: New file.
66773         * MODULES.html.sh (Unicode string functions): Add the new modules.
66774
66775 2007-07-01  Bruno Haible  <bruno@clisp.org>
66776
66777         * lib/sprintf.c (sprintf): Limit the available length estimation,
66778         to avoid address wraparound.
66779         * lib/vsprintf.c (vsprintf): Likewise.
66780         * modules/sprintf-posix (Dependencies): Add stdint.
66781         * modules/vsprintf-posix (Dependencies): Likewise.
66782
66783 2007-07-01  Bruno Haible  <bruno@clisp.org>
66784
66785         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
66786         Windows PATH as well. Conservative double-quoting. Comments.
66787
66788 2007-07-01  Bruno Haible  <bruno@clisp.org>
66789             Eric Blake  <ebb9@byu.net>
66790             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66791
66792         * gnulib-tool (self_abspathname): Fix algorithm to cope with
66793         empty components in $PATH, denoting '.'.
66794
66795 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66796
66797         * gnulib-tool: Fix indentation.
66798         (func_create_megatestdir): Likewise.
66799         Report by Bruno Haible.
66800
66801 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66802
66803         Sync from Automake.
66804         * build-aux/gnupload: Fix shell portability issues with for loops.
66805         Report by Karl Berry.
66806
66807 2007-06-29  Simon Josefsson  <simon@josefsson.org>
66808
66809         * build-aux/maint.mk (POURL): Use translationproject.org.
66810
66811 2007-06-27  Simon Josefsson  <simon@josefsson.org>
66812             Bruno Haible  <bruno@clisp.org>
66813
66814         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
66815         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
66816         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
66817         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
66818         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
66819
66820 2007-06-27  Bruno Haible  <bruno@clisp.org>
66821
66822         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
66823         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
66824
66825 2007-06-26  Karl Berry  <karl@gnu.org>
66826
66827         * MODULES.html.sh: remove xreadlink-with-size.
66828
66829 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
66830
66831         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
66832         method that I hope also handles the double-include problem noted
66833         by Bruno Haible in
66834         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
66835
66836 2007-06-23  Bruno Haible  <bruno@clisp.org>
66837
66838         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66839         Don't let the 'mostlyclean' target fail if the last subdirectory could
66840         not be removed.
66841         Reported by Karl Berry.
66842
66843 2007-06-23  Bruno Haible  <bruno@clisp.org>
66844
66845         * gnulib-tool (echo): Add a speedier workaround for ksh.
66846         * tests/test-echo.sh: Likewise.
66847
66848 2007-06-23  Bruno Haible  <bruno@clisp.org>
66849
66850         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
66851         * tests/test-echo.sh: Likewise.
66852
66853 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66854
66855         * gnulib-tool (IFS): Initialize early, so we don't set it to
66856         empty later.
66857         (self_abspathname): Rewrite algorithm to set it, reindent.
66858         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
66859         (func_create_megatestdir): Merge some sed scripts.
66860
66861 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
66862
66863         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
66864         exposed by Sun Studio 11 cc on Solaris 8.
66865
66866 2007-06-22  Bruno Haible  <bruno@clisp.org>
66867
66868         * gnulib-tool (echo): Ensure the echo primitive does not interpret
66869         backslashes.
66870         * tests/test-echo.sh: New file.
66871
66872 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66873
66874         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
66875         simplify `sed_replace_build_aux' scripts, they are portable but
66876         echoing them with `echo' is not.
66877         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
66878
66879 2007-06-21  Karl Berry  <karl@gnu.org>
66880
66881         * config/srclist.txt: guess we can't handle the licenses via
66882         srclist at the moment.
66883
66884 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
66885
66886         * MODULES.html.sh: Add include_next.
66887         * modules/include_next: New file.
66888
66889 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
66890
66891         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
66892         INCLUDE_NEXT.
66893         (gl_CHECK_NEXT_HEADERS): New macro.
66894         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
66895         the obsolescent gl_ABSOLUTE_HEADER.
66896         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
66897         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
66898         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
66899         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
66900         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
66901         * m4/math_h.m4 (gl_MATH_H): Likewise.
66902         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
66903         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
66904         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
66905         * m4/stdint.m4 (gl_STDINT_H): Likewise.
66906         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
66907         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
66908         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
66909         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
66910         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
66911         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
66912         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
66913         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
66914         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
66915         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
66916         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
66917         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
66918         * m4/inttypes.m4 (gl_INTTYPES_H): Define
66919         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
66920         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
66921         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
66922         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
66923         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
66924         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
66925         * lib/float_.h: Likewise.
66926         * lib/inttypes_.h: Likewise.
66927         * lib/math_.h: Likewise.
66928         * lib/search_.h: Likewise.
66929         * lib/signal_.h: Likewise.
66930         * lib/stdint_.h: Likewise.
66931         * lib/stdio_.h: Likewise.
66932         * lib/stdlib_.h: Likewise.
66933         * lib/string_.h: Likewise.
66934         * lib/sys_stat_.h: Likewise.
66935         * lib/sys_time_.h: Likewise.
66936         * lib/time_.h: Likewise.
66937         * lib/unistd_.h: Likewise.
66938         * lib/wchar_.h: Likewise.
66939         * lib/wctype_.h: Likewise.
66940         * lib/dirent_.h: Likewise.
66941         * lib/iconv_.h: Likewise.
66942         * lib/locale_.h: Likewise.
66943         * lib/netinet_in_.h: Likewise.
66944         * lib/sys_select_.h: Likewise.
66945         * lib/sys_socket_.h: Likewise.
66946         * lib/sysexits_.h: Likewise.
66947         * modules/fcntl (Depends-on): Depend on include_next, not
66948         absolute_header.
66949         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
66950         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
66951         * modules/fchdir: Likewise.
66952         * modules/float: Likewise.
66953         * modules/iconv_open: Likewise.
66954         * modules/inttypes: Likewise.
66955         * modules/locale: Likewise.
66956         * modules/math: Likewise.
66957         * modules/netinet_in: Likewise.
66958         * modules/search: Likewise.
66959         * modules/signal: Likewise.
66960         * modules/stdint: Likewise.
66961         * modules/stdio: Likewise.
66962         * modules/stdlib: Likewise.
66963         * modules/string: Likewise.
66964         * modules/sys_select: Likewise.
66965         * modules/sys_socket: Likewise.
66966         * modules/sys_stat: Likewise.
66967         * modules/sys_time: Likewise.
66968         * modules/sysexits: Likewise.
66969         * modules/time: Likewise.
66970         * modules/unistd: Likewise.
66971         * modules/wchar: Likewise.
66972         * modules/wctype: Likewise.
66973         * modules/sys_stat: Change maintainer to "all".
66974         * modules/unistd: Likewise.
66975
66976 2007-06-20  Karl Berry  <karl@gnu.org>
66977
66978         * config/srclist.txt: track www changes in license files.
66979
66980 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
66981
66982         * build-aux/bootstrap: Remove stray dot.
66983         Make sure build_aux settings are honored when linking
66984         gnulib_extra_files.
66985
66986 2007-06-19  Eric Blake  <ebb9@byu.net>
66987
66988         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
66989         Allow compilation on cygwin.
66990
66991 2007-06-19  Jim Meyering  <jim@meyering.net>
66992
66993         xreadlink-with-size: Remove module.  No longer used.
66994         Ex-callers now use xreadlink or mreadlink-with-size.
66995         * modules/xreadlink-with-size: Remove module.
66996         * lib/xreadlink-with-size.c: Remove file.
66997         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
66998         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
66999         just before the function definition *is* accurate.
67000
67001         Eliminate one way canonicalize_filename_mode could exit.
67002         * lib/canonicalize.c (canonicalize_filename_mode):
67003         Use mreadlink_with_size, not xreadlink_with_size.
67004
67005 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
67006
67007         Detect porting problems to FreeBSD/arm, which has time_t wider than
67008         long int.  Original problem reported for GNU diff by Xin Li in
67009         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
67010         * modules/getdate (Depends-on): Add intprops, verify.
67011         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
67012         is an integer type no wider than long int.
67013
67014 2007-06-18  Jim Meyering  <jim@meyering.net>
67015
67016         New module: mreadlink-with-size.
67017         * MODULES.html.sh: Add mreadlink-with-size.
67018         * modules/mreadlink-with-size: New module
67019         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
67020         not xreadlink-with-size.
67021         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
67022
67023 2007-06-16  Bruno Haible  <bruno@clisp.org>
67024
67025         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
67026         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
67027         Reported by Gary V. Vaughan <gary@gnu.org>.
67028
67029 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
67030
67031         Revamp lchown so that it lives in unistd.h where it belongs.
67032         * lib/lchown.h: Remove.
67033         * lib/dirchownmod.c: Don't include lib/lchown.h.
67034         * lib/fchownat.c: Likewise.
67035         * lib/openat.c: Likewise.
67036         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
67037         does not follow symlinks.
67038         (EOPNOTSUPP): Define if not defined.
67039         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
67040         is defined to 0.
67041         (lchown): New decl.
67042         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
67043         Do not check for lchown decl.
67044         Set REPLACE_LCHOWN.
67045         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
67046         REPLACE_LCHOWN.
67047         * modules/chown: Make it clear it follows symlinks.
67048         * modules/lchown: Make it clear it doesn't follow symlinks.
67049         (Files): Remove lib/lchown.h
67050         (Depends-on): Add unistd.
67051         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
67052         (Include): Include <unistd.h>, not "lchown.h".
67053         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
67054         REPLACE_LCHOWN.
67055
67056 2007-06-15  Jim Meyering  <jim@meyering.net>
67057
67058         Change license (GPL to LGPL) of fsusage and dependents.
67059         * modules/fsusage (License): Change to LGPL.
67060         * modules/full-read (License): Likewise.
67061         * modules/full-write (License): Likewise.
67062         * modules/safe-read (License): Likewise.
67063         * modules/safe-write (License): Likewise.
67064
67065 2007-06-14  Ben Pfaff  <blp@gnu.org>
67066
67067         Missing part of allocsa -> malloca transition.
67068         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
67069         gl_MALLOCA.
67070
67071 2007-06-12  Bruno Haible  <bruno@clisp.org>
67072
67073         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
67074         to ia64, x86_64, i386.
67075         Reported by Eric Blake.
67076
67077 2007-06-12  Bruno Haible  <bruno@clisp.org>
67078
67079         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
67080         cross-compiling to x86_64.
67081
67082 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
67083
67084         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
67085         glitch reported by Ralf Wildenhues in
67086         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
67087
67088         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
67089         Vin Shelton.
67090
67091 2007-06-11  Bruno Haible  <bruno@clisp.org>
67092
67093         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
67094         replacement string.
67095         Reported by Eric Blake.
67096
67097 2007-06-10  Bruno Haible  <bruno@clisp.org>
67098
67099         Prepare vasnprintf code for use with Unicode strings.
67100         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
67101         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
67102         TYPE_U32_STRING.
67103         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
67104         a_u32_string variants.
67105         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
67106         * lib/printf-args.c: Don't include config.h and the specification
67107         header if PRINTF_FETCHARGS is already defined.
67108         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
67109         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
67110         TYPE_U16_STRING, TYPE_U32_STRING.
67111         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
67112         u16_directive, u16_directives, u32_directive, u32_directives): New
67113         types.
67114         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
67115         New declarations.
67116         * lib/printf-parse.c: Don't include config.h and the specification
67117         header if PRINTF_PARSE is already defined. Eliminate the set of
67118         parameters for WIDE_CHAR_VERSION; the user of this file must provide
67119         them now. Include c-ctype.h.
67120         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
67121         directive and CHAR_T_ONLY_ASCII.
67122         * lib/vasnprintf.c: Don't include config.h and the specification header
67123         if VASNPRINTF is already defined.
67124         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
67125         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
67126         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
67127         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
67128         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
67129         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
67130         code accordingly.
67131         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
67132         pad_ourselves also in this case, with the 'c' and 's' directives, and
67133         with a different notion of "width".
67134         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
67135
67136 2007-06-10  Bruno Haible  <bruno@clisp.org>
67137
67138         * modules/unistr/u32-mbsnlen: New file.
67139         * lib/unistr/u32-mbsnlen.c: New file.
67140
67141         * modules/unistr/u16-mbsnlen: New file.
67142         * lib/unistr/u16-mbsnlen.c: New file.
67143
67144         * modules/unistr/u8-mbsnlen: New file.
67145         * lib/unistr/u8-mbsnlen.c: New file.
67146
67147         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
67148         declarations.
67149
67150 2007-06-10  Bruno Haible  <bruno@clisp.org>
67151
67152         * lib/string_.h (mbsnlen): New declaration.
67153         * lib/mbsnlen.c: New file.
67154         * m4/mbsnlen.m4: New file.
67155         * modules/mbsnlen: New file.
67156         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
67157         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
67158         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
67159
67160 2007-06-10  Bruno Haible  <bruno@clisp.org>
67161
67162         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
67163
67164 2007-06-10  Bruno Haible  <bruno@clisp.org>
67165
67166         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
67167         * lib/mbuiter.h: Likewise.
67168
67169 2007-06-10  Bruno Haible  <bruno@clisp.org>
67170
67171         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
67172         declaration.
67173
67174 2007-06-10  Karl Berry  <karl@gnu.org>
67175
67176         * config/srclist.txt: remove gettext entries, Bruno prefers
67177         to update individually.
67178
67179 2007-06-10  Bruno Haible  <bruno@clisp.org>
67180
67181         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
67182         'maxlen'. Ensure only length + width bytes are allocated, not
67183         length + 1 + width.
67184
67185 2007-06-09  Bruno Haible  <bruno@clisp.org>
67186
67187         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
67188         (CHAR_T): Remove macro.
67189         (VASNPRINTF): Update.
67190
67191 2007-06-09  Bruno Haible  <bruno@clisp.org>
67192
67193         * MODULES.html.sh (Unicode string functions): Add the new modules.
67194
67195         * modules/uniconv/u32-conv-to-enc: New file.
67196         * lib/uniconv/u32-conv-to-enc.c: New file.
67197         * modules/uniconv/u32-conv-to-enc-tests: New file.
67198         * tests/uniconv/test-u32-conv-to-enc.c: New file.
67199
67200         * modules/uniconv/u16-conv-to-enc: New file.
67201         * lib/uniconv/u16-conv-to-enc.c: New file.
67202         * lib/uniconv/u-conv-to-enc.h: New file.
67203         * modules/uniconv/u16-conv-to-enc-tests: New file.
67204         * tests/uniconv/test-u16-conv-to-enc.c: New file.
67205
67206         * modules/uniconv/u8-conv-to-enc: New file.
67207         * lib/uniconv/u8-conv-to-enc.c: New file.
67208         * modules/uniconv/u8-conv-to-enc-tests: New file.
67209         * tests/uniconv/test-u8-conv-to-enc.c: New file.
67210
67211         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
67212         u32_conv_to_encoding): New declarations.
67213
67214 2007-06-09  Bruno Haible  <bruno@clisp.org>
67215
67216         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
67217
67218 2007-06-09  Bruno Haible  <bruno@clisp.org>
67219
67220         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
67221         * modules/malloca: Renamed from modules/allocsa, updated.
67222         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
67223         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
67224         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
67225         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
67226         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
67227         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
67228         * modules/xmalloca: Renamed from modules/xallocsa, updated.
67229         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
67230         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
67231         * modules/c-strcasestr (Depends-on): Update.
67232         * lib/c-strcasestr.c: Update.
67233         * modules/c-strstr (Depends-on): Update.
67234         * lib/c-strstr.c: Update.
67235         * modules/canonicalize-lgpl (Depends-on): Update.
67236         * lib/canonicalize-lgpl.c: Update.
67237         * modules/clean-temp (Depends-on): Update.
67238         * lib/clean-temp.c: Update.
67239         * modules/csharpcomp (Depends-on): Update.
67240         * lib/csharpcomp.c: Update.
67241         * modules/csharpexec (Depends-on): Update.
67242         * lib/csharpexec.c: Update.
67243         * modules/javacomp (Depends-on): Update.
67244         * lib/javacomp.c: Update.
67245         * modules/javaexec (Depends-on): Update.
67246         * lib/javaexec.c: Update.
67247         * modules/mbscasestr (Depends-on): Update.
67248         * lib/mbscasestr.c: Update.
67249         * modules/mbsstr (Depends-on): Update.
67250         * lib/mbsstr.c: Update.
67251         * modules/setenv (Depends-on): Update.
67252         * lib/setenv.c: Update.
67253         * modules/strcasestr (Depends-on): Update.
67254         * lib/strcasestr.c: Update.
67255         * modules/striconveha (Depends-on): Update.
67256         * lib/striconveha.c: Update.
67257         * modules/relocatable-prog-wrapper (Files): Update.
67258         * lib/relocwrapper.c: Update.
67259         * build-aux/install-reloc: Update.
67260         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
67261
67262 2007-06-08  Bruno Haible  <bruno@clisp.org>
67263
67264         Port to uClibc.
67265         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
67266         * lib/fpurge.c (fpurge): Likewise.
67267         * lib/freading.c (freading): Likewise.
67268         * lib/fseeko.c (rpl_fseeko): Likewise.
67269         * lib/fseterr.c (fseterr): Likewise.
67270         * lib/fwriting.c (fwriting): Likewise.
67271         * tests/test-fflush.c (main): Avoid a failure on uClibc.
67272
67273 2007-06-08  Bruno Haible  <bruno@clisp.org>
67274
67275         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
67276         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
67277         * modules/gettext (Files): Add m4/intlmacosx.m4.
67278
67279 2007-06-07  Bruno Haible  <bruno@clisp.org>
67280
67281         * modules/localename-tests: New file.
67282         * tests/test-localename.c: New file.
67283
67284         New module 'localename'.
67285         * lib/localename.h: New file.
67286         * lib/localename.c: New file, from GNU gettext.
67287         * m4/localename.m4: New file.
67288         * modules/localename: New file.
67289
67290 2007-06-07  Bruno Haible  <bruno@clisp.org>
67291
67292         Work around the lack of <wchar.h> on some builds of uClibc.
67293         * doc/headers/wchar.texi: Update.
67294         * lib/wchar_.h: Include <wchar.h> only if it exists.
67295         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
67296         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
67297         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
67298         doesn't exist.
67299         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
67300         * modules/mbfile (Depends-on): Add wchar.
67301         * modules/mbiter (Depends-on): Likewise.
67302         * modules/mbuiter (Depends-on): Likewise.
67303         Reported by Simon Josefsson.
67304
67305 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
67306
67307         Work around problem reported by Steven M. Schweda in
67308         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
67309         Tru64 5.1B with the Compaq compiler environment installed declares
67310         an 'isblank' function but does not define it in the C library.
67311         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
67312         * lib/regex_internal.h (isblank): Likewise.
67313         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
67314         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
67315
67316 2007-06-05  Bruno Haible  <bruno@clisp.org>
67317
67318         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
67319         ia64.
67320         * modules/printf-safe: New file.
67321         * modules/fprintf-posix (Depends-on): Add printf-safe.
67322         * modules/printf-posix (Depends-on): Likewise.
67323         * modules/snprintf-posix (Depends-on): Likewise.
67324         * modules/sprintf-posix (Depends-on): Likewise.
67325         * modules/vasnprintf-posix (Depends-on): Likewise.
67326         * modules/vasprintf-posix (Depends-on): Likewise.
67327         * modules/vfprintf-posix (Depends-on): Likewise.
67328         * modules/vprintf-posix (Depends-on): Likewise.
67329         * modules/vsnprintf-posix (Depends-on): Likewise.
67330         * modules/vsprintf-posix (Depends-on): Likewise.
67331         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
67332         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
67333         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
67334         "no" on i386, x86_64, ia64.
67335         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
67336         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
67337         on i386, x86_64, ia64.
67338         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
67339         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
67340         on i386, x86_64, ia64.
67341         * tests/test-vasnprintf-posix.c: Include float.h.
67342         (LDBL80_WORDS): New macro.
67343         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
67344         on i386, x86_64, ia64.
67345         * tests/test-vasprintf-posix.c: Include float.h.
67346         (LDBL80_WORDS): New macro.
67347         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
67348         on i386, x86_64, ia64.
67349         * tests/test-snprintf-posix.c: Include float.h.
67350         * tests/test-sprintf-posix.c: Likewise.
67351         * tests/test-vsnprintf-posix.c: Likewise.
67352         * tests/test-vsprintf-posix.c: Likewise.
67353
67354 2007-06-05  Bruno Haible  <bruno@clisp.org>
67355
67356         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
67357         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
67358         non-IEEE numbers on i386, x86_64, ia64.
67359         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
67360         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
67361         * tests/test-isnanl.h: Include float.h.
67362         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
67363
67364 2007-06-05  Bruno Haible  <bruno@clisp.org>
67365
67366         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
67367         also the %a / %A. Handle the %a / %A code before this extra handling.
67368
67369 2007-06-05  Bruno Haible  <bruno@clisp.org>
67370
67371         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
67372         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
67373
67374 2007-06-05  Bruno Haible  <bruno@clisp.org>
67375
67376         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
67377         typo in variable name.
67378
67379 2007-06-05  Eric Blake  <ebb9@byu.net>
67380
67381         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
67382         Reported by Simon Josefsson.
67383
67384 2007-06-04  Bruno Haible  <bruno@clisp.org>
67385
67386         Avoid test failures on some PowerPC platforms.
67387         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
67388         Define differently for PowerPC.
67389         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
67390         Reported by Gary V. Vaughan <gary@gnu.org>.
67391
67392 2007-06-02  Bruno Haible  <bruno@clisp.org>
67393
67394         Fix test-stdint failure on FreeBSD/ia64.
67395         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
67396         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
67397         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
67398         * doc/headers/stdint.texi: Update.
67399
67400 2007-06-01  Bruno Haible  <bruno@clisp.org>
67401
67402         * tests/test-binary-io.c (main): Pass a third argument to open().
67403         Reported by Gary V. Vaughan <gary@gnu.org>.
67404
67405 2007-06-01  Bruno Haible  <bruno@clisp.org>
67406
67407         * doc/functions/frexpl.texi: Update for mingw.
67408
67409 2007-06-01  Bruno Haible  <bruno@clisp.org>
67410
67411         * tests/test-lseek.c (main): Disable test of errno for invalid third
67412         argument.
67413         * doc/functions/lseek.texi: Update.
67414         Reported by Gary V. Vaughan <gary@gnu.org>.
67415
67416 2007-05-28  Bruno Haible  <bruno@clisp.org>
67417
67418         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
67419
67420 2007-05-31  Eric Blake  <ebb9@byu.net>
67421
67422         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
67423         cross compiling.
67424
67425 2007-05-30  Eric Blake  <ebb9@byu.net>
67426         and Bruno Haible  <bruno@clisp.org>
67427
67428         Work around mingw test failures exposed by m4-1.4.9b.
67429         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
67430         * tests/test-unistd.c: Disable uid_t and git_t tests for the
67431         moment.
67432
67433 2007-05-30  Bruno Haible  <bruno@clisp.org>
67434
67435         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
67436         assuming that they are closed. Needed on HP-UX 11.
67437
67438 2007-05-29  Bruno Haible  <bruno@clisp.org>
67439
67440         Fix a problem with #include_next.
67441         * lib/dirent_.h: Split the double-inclusion guard.
67442         * lib/fcntl_.h: Likewise.
67443         * lib/float_.h: Likewise.
67444         * lib/iconv_.h: Likewise.
67445         * lib/inttypes_.h: Likewise.
67446         * lib/locale_.h: Likewise.
67447         * lib/math_.h: Likewise.
67448         * lib/netinet_in_.h: Likewise.
67449         * lib/search_.h: Likewise.
67450         * lib/signal_.h: Likewise.
67451         * lib/stdint_.h: Likewise.
67452         * lib/stdio_.h: Likewise.
67453         * lib/stdlib_.h: Likewise.
67454         * lib/string_.h: Likewise.
67455         * lib/sys_select_.h: Likewise.
67456         * lib/sys_socket_.h: Likewise.
67457         * lib/sys_stat_.h: Likewise.
67458         * lib/sys_time_.h: Likewise.
67459         * lib/sysexits_.h: Likewise.
67460         * lib/time_.h: Likewise.
67461         * lib/unistd_.h: Likewise.
67462         * lib/wchar_.h: Likewise.
67463         * lib/wctype_.h: Likewise.
67464
67465 2007-05-29  Bruno Haible  <bruno@clisp.org>
67466
67467         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
67468         for the moment.
67469
67470 2007-05-29  Bruno Haible  <bruno@clisp.org>
67471
67472         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
67473         invocation.
67474         Reported by Eric Blake.
67475
67476 2007-05-29  Bruno Haible  <bruno@clisp.org>
67477
67478         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
67479         compiling case.
67480
67481 2007-05-29  Eric Blake  <ebb9@byu.net>
67482             Bruno Haible  <bruno@clisp.org>
67483
67484         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
67485         cross compiles.
67486
67487 2007-05-28  Eric Blake  <ebb9@byu.net>
67488
67489         * modules/closein-tests (test_closein_LDADD): Support test on
67490         cygwin with libtool.
67491
67492 2007-05-28  Bruno Haible  <bruno@clisp.org>
67493
67494         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
67495         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
67496         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
67497         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
67498         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
67499         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
67500         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
67501         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
67502         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
67503
67504 2007-05-28  Eric Blake  <ebb9@byu.net>
67505
67506         Unconditionally include <config.h> in unit tests.
67507         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
67508         * tests/test-allocsa.c, tests/test-arcfour.c,
67509         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
67510         tests/test-array_list.c, tests/test-array_oset.c,
67511         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
67512         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
67513         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
67514         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
67515         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
67516         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
67517         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
67518         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
67519         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
67520         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
67521         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
67522         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
67523         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
67524         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
67525         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
67526         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
67527         test-md5.c, test-memmem.c, test-printf-posix.c,
67528         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
67529         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
67530         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
67531         test-strcasestr.c, test-striconv.c, test-striconveh.c,
67532         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
67533         test-vasnprintf-posix2.c, test-vasnprintf.c,
67534         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
67535         test-vfprintf-posix.c, test-vprintf-posix.c,
67536         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
67537         test-xvasprintf.c: Likewise.
67538
67539 2007-05-28  Bruno Haible  <bruno@clisp.org>
67540
67541         * gnulib-tool (func_import): Remember the --with-tests command-line
67542         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
67543         Reported by Eric Blake.
67544
67545 2007-05-28  Bruno Haible  <bruno@clisp.org>
67546
67547         * modules/ftell-tests: New file.
67548         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
67549         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
67550
67551         * lib/ftell.c: New file.
67552         * modules/ftell: New file.
67553         * m4/ftell.m4: New file.
67554         * doc/functions/ftell.texi: Update.
67555         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
67556         REPLACE_FTELL.
67557         * lib/stdio_.h (rpl_ftell): New declaration.
67558         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
67559         REPLACE_FTELL.
67560
67561 2007-05-28  Eric Blake  <ebb9@byu.net>
67562
67563         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
67564
67565 2007-05-28  Bruno Haible  <bruno@clisp.org>
67566
67567         * modules/fseek-tests: New file.
67568         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
67569         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
67570
67571         * lib/fseek.c: New file.
67572         * modules/fseek: New file.
67573         * m4/fseek.m4: New file.
67574         * doc/functions/fseek.texi: Update.
67575         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
67576         REPLACE_FSEEK.
67577         * lib/stdio_.h (rpl_fseek): New declaration.
67578         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
67579         REPLACE_FSEEK.
67580
67581 2007-05-28  Bruno Haible  <bruno@clisp.org>
67582
67583         * lib/stdio_.h (fflush): More comments.
67584
67585 2007-05-28  Bruno Haible  <bruno@clisp.org>
67586
67587         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
67588         runtime test.
67589
67590 2007-05-28  Eric Blake  <ebb9@byu.net>
67591
67592         Improve lseek module.
67593         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
67594         * lib/unistd_.h (lseek): Scale back link warning message.
67595         * tests/test-lseek.c: Beef up test.
67596         * tests/test-lseek.sh: Exercise more facets of lseek.
67597         Reported by Bruno Haible.
67598
67599 2007-05-28  Bruno Haible  <bruno@clisp.org>
67600
67601         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
67602         to define.
67603
67604 2007-05-27  Bruno Haible  <bruno@clisp.org>
67605
67606         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
67607
67608 2007-05-27  Bruno Haible  <bruno@clisp.org>
67609
67610         * modules/openmp: New file.
67611         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
67612         Noah Misch.
67613
67614 2007-05-26  Bruno Haible  <bruno@clisp.org>
67615
67616         * modules/chdir-long (Depends-on): Add fchdir.
67617         * modules/chdir-safer (Depends-on): Likewise.
67618         * modules/fts (Depends-on): Likewise.
67619         * modules/fts-lgpl (Depends-on): Likewise.
67620         * modules/openat (Depends-on): Likewise.
67621         * modules/savewd (Depends-on): Likewise.
67622
67623 2007-05-24  Eric Blake  <ebb9@byu.net>
67624
67625         Fix lseek on mingw.
67626         * modules/lseek: New module.
67627         * m4/lseek.m4: New file.
67628         * lib/lseek.c: New file.
67629         * modules/lseek-tests: New file.
67630         * tests/test-lseek.c: New file.
67631         * tests/test-lseek.sh: New file.
67632         * MODULES.html.sh: Document lseek module.
67633         * modules/fflush (Depends-on): Add lseek, fseeko.
67634         * modules/fseeko (Depends-on): Likewise.
67635         * modules/ftello (Depends-on): Likewise.
67636         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
67637         broken.
67638         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
67639         broken.
67640         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
67641         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
67642         * lib/ftello.c (rpl_ftello): Likewise.
67643         * tests/test-fseeko.c (main): Test this.
67644         * tests/test-fseeko.sh: Likewise.
67645         * tests/test-ftello.c (main): Likewise.
67646         * tests/test-ftello.sh: Likewise.
67647         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
67648         implies replacing fseek.
67649         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
67650         HAVE_FTELLO.
67651         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
67652         * modules/unistd (Makefile.am): Likewise.
67653         * lib/unistd_.h (lseek): Declare a replacement.
67654         * doc/functions/lseek.texi (lseek): Document this fix.
67655         * doc/functions/fseek.texi (fseek): Likewise.
67656         * doc/functions/ftell.texi (ftell): Likewise.
67657
67658 2007-05-24  Bruno Haible  <bruno@clisp.org>
67659
67660         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
67661         in the printed representation of a NaN.
67662         * tests/test-vasprintf-posix.c (test_function): Likewise.
67663         * tests/test-snprintf-posix.h (test_function): Likewise.
67664         * tests/test-sprintf-posix.h (test_function): Likewise.
67665         Reported by Eric Blake.
67666
67667 2007-05-23  Eric Blake  <ebb9@byu.net>
67668
67669         Fix fseeko/ftello on cygwin 1.5.24.
67670         * doc/functions/fseeko.texi (fseeko): Document the fix.
67671         * doc/functions/ftello.texi (ftello): Document the fix.
67672         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
67673         * doc/functions/stdout.text (stdout): New file.
67674         * doc/functions/stderr.text (stderr): New file.
67675         * doc/gnulib.texi (Function Substitutes): Use new files.
67676         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
67677         prior to 1.7.0.
67678         * tests/test-ftello.c (main): Likewise for ftello.
67679         * tests/test-fseeko.sh: New file.
67680         * tests/test-ftello.sh: New file.
67681         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
67682         with seekable stdin.
67683         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
67684         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
67685         (gl_REPLACE_FSEEKO): New macro.
67686         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
67687         * modules/fseeko (Files): Distribute fseeko.c.
67688         * modules/ftello (Files): Distribute ftello.c.
67689         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
67690         mode.
67691         * lib/ftello.c (rpl_ftello): New file.
67692         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
67693         fseeko, ftello.
67694         (gl_STDIN_LARGE_OFFSET): New macro.
67695         * modules/stdio (Makefile.am): Perform the replacement.
67696         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
67697
67698 2007-05-23  Bruno Haible  <bruno@clisp.org>
67699
67700         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
67701         GNULIB_POSIXCHECK is defined.
67702
67703 2007-05-21  Bruno Haible  <bruno@clisp.org>
67704
67705         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
67706         Check also the output for NaN arguments. When cross-compiling, guess
67707         no on IRIX.
67708         * lib/vasnprintf.c: Update comments.
67709         * tests/test-vasnprintf-posix.c (strisnan): New function.
67710         (test_function): Use it.
67711         * tests/test-vasprintf-posix.c (strisnan): New function.
67712         (test_function): Use it.
67713         * tests/test-snprintf-posix.h (strisnan): New function.
67714         (test_function): Use it.
67715         * tests/test-sprintf-posix.h (strisnan): New function.
67716         (test_function): Use it.
67717         Reported by Eric Blake.
67718
67719 2007-05-20  Bruno Haible  <bruno@clisp.org>
67720
67721         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
67722         numbers that fails on BeOS.
67723         * doc/functions/frexpl.texi: Update.
67724
67725 2007-05-20  Jim Meyering  <jim@meyering.net>
67726
67727         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
67728         forced upon us by glibc-2.6.
67729
67730 2007-05-20  Bruno Haible  <bruno@clisp.org>
67731
67732         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
67733         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
67734         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
67735         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
67736         NEED_PRINTF_INFINITE.
67737         (is_infinitel): New function.
67738         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
67739         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
67740         gl_PREREQ_VASNPRINTF_INFINITE.
67741         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
67742         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
67743         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
67744         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
67745         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
67746         gl_PREREQ_VASNPRINTF_INFINITE.
67747         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
67748         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67749         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67750         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67751         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
67752         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67753         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67754         * doc/functions/fprintf.texi: Update.
67755         * doc/functions/printf.texi: Update.
67756         * doc/functions/snprintf.texi: Update.
67757         * doc/functions/sprintf.texi: Update.
67758         * doc/functions/vfprintf.texi: Update.
67759         * doc/functions/vprintf.texi: Update.
67760         * doc/functions/vsnprintf.texi: Update.
67761         * doc/functions/vsprintf.texi: Update.
67762
67763 2007-05-20  Bruno Haible  <bruno@clisp.org>
67764
67765         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
67766         was not found in libc.
67767         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
67768
67769 2007-05-20  Bruno Haible  <bruno@clisp.org>
67770
67771         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
67772         printed as "-nan" instead of "nan".
67773         * tests/test-vasprintf-posix.c (test_function): Likewise.
67774         * tests/test-snprintf-posix.h (test_function): Likewise.
67775         * tests/test-sprintf-posix.h (test_function): Likewise.
67776         Needed for HP-UX 11.
67777
67778 2007-05-20  Jim Meyering  <jim@meyering.net>
67779
67780         Fix buggy test for the fchownat-deref bug.
67781         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
67782         symlink required for the run-test.  Without it, this test would
67783         always declare that fchownat doesn't work, and client code would
67784         unnecessarily use the replacement function with fixed libc.
67785         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
67786         Reported by Greg Schafer.
67787
67788 2007-05-19  Bruno Haible  <bruno@clisp.org>
67789
67790         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
67791         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
67792         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
67793         Needed for IRIX 6.5 and Solaris 2.5.1.
67794
67795 2007-05-19  Bruno Haible  <bruno@clisp.org>
67796
67797         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
67798         (test_function): Skip tests involving -0.0 on platforms where
67799         -0.0 = 0.0.
67800         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
67801         (test_function): Skip tests involving -0.0 on platforms where
67802         -0.0 = 0.0.
67803         * tests/test-snprintf-posix.h (have_minus_zero): New function.
67804         (test_function): Skip tests involving -0.0 on platforms where
67805         -0.0 = 0.0.
67806         * tests/test-sprintf-posix.h (have_minus_zero): New function.
67807         (test_function): Skip tests involving -0.0 on platforms where
67808         -0.0 = 0.0.
67809         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
67810         tests.
67811         * tests/test-printf-posix.h (test_function): Likewise.
67812         * tests/test-printf-posix.output: Remove all -0.0 related results.
67813         Needed for IRIX 6.5.
67814
67815 2007-05-19  Bruno Haible  <bruno@clisp.org>
67816
67817         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
67818         printed as "nan0x7fffffff" instead of "nan".
67819         * tests/test-vasprintf-posix.c (test_function): Likewise.
67820         * tests/test-snprintf-posix.h (test_function): Likewise.
67821         * tests/test-sprintf-posix.h (test_function): Likewise.
67822         * tests/test-fprintf-posix.h (NaN): Remove macro.
67823         (test_function): Remove all NaN related tests.
67824         * tests/test-printf-posix.h (NaN): Remove macro.
67825         (test_function): Remove all NaN related tests.
67826         * tests/test-printf-posix.output: Remove all NaN related results.
67827         Needed for IRIX 6.5.
67828
67829 2007-05-19  Bruno Haible  <bruno@clisp.org>
67830
67831         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
67832         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
67833
67834 2007-05-19  Bruno Haible  <bruno@clisp.org>
67835
67836         * lib/float_.h: New file.
67837         * m4/float_h.m4: New file.
67838         * modules/float: New file.
67839         * modules/isnanl (Dependencies): Add float.
67840         * modules/isnanl-nolibm (Dependencies): Likewise.
67841         * modules/mathl (Dependencies): Likewise.
67842         * modules/printf-frexpl (Dependencies): Likewise.
67843         * modules/signbit (Dependencies): Likewise.
67844         * modules/vasnprintf (Dependencies): Likewise.
67845         * doc/headers/float.texi: Update.
67846
67847 2007-05-19  Jim Meyering  <jim@meyering.net>
67848
67849         * lib/utimens.c (gl_futimens): Rename from futimens,
67850         now that glibc-2.6 declares futimens.
67851         * lib/utimens.h: Likewise.
67852
67853 2007-05-19  Bruno Haible  <bruno@clisp.org>
67854
67855         Avoid test failures on mingw.
67856         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
67857         * tests/test-printf-posix.sh: Likewise.
67858         * tests/test-vfprintf-posix.sh: Likewise.
67859         * tests/test-vprintf-posix.sh: Likewise.
67860
67861 2007-05-19  Bruno Haible  <bruno@clisp.org>
67862
67863         Fix *printf result for NaN, Inf, -0.0 on mingw.
67864         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
67865         * lib/vasnprintf.c: Include math.h and isnan.h.
67866         (is_infinite_or_zero): New function.
67867         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
67868         values in the %f, %F, %e, %E, %g, %G directives.
67869         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
67870         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
67871         gl_PRINTF_INFINITE and test its result. Invoke
67872         gl_PREREQ_VASNPRINTF_INFINITE.
67873         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
67874         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67875         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67876         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67877         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
67878         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67879         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67880         * doc/functions/fprintf.texi: Update.
67881         * doc/functions/printf.texi: Update.
67882         * doc/functions/snprintf.texi: Update.
67883         * doc/functions/sprintf.texi: Update.
67884         * doc/functions/vfprintf.texi: Update.
67885         * doc/functions/vprintf.texi: Update.
67886         * doc/functions/vsnprintf.texi: Update.
67887         * doc/functions/vsprintf.texi: Update.
67888
67889 2007-05-19  Bruno Haible  <bruno@clisp.org>
67890
67891         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
67892         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
67893         Instead of multiplying with 10^k, set extra_zeroes to k.
67894         (scale10_round_long_double): Remove function.
67895
67896 2007-05-18  Bruno Haible  <bruno@clisp.org>
67897
67898         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
67899         introduced on 2007-05-06.
67900
67901 2007-05-18  Bruno Haible  <bruno@clisp.org>
67902
67903         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
67904         %g directives.
67905         * tests/test-vasprintf-posix.c (test_function): Likewise.
67906         * tests/test-snprintf-posix.h (test_function): Likewise.
67907         * tests/test-sprintf-posix.h (test_function): Likewise.
67908
67909 2007-05-18  Bruno Haible  <bruno@clisp.org>
67910
67911         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
67912         (strmatch): New function.
67913         (test_function): Test the %f directive on numbers of various exponents.
67914         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
67915         (strmatch): New function.
67916         (test_function): Test the %f directive on numbers of various exponents.
67917         * tests/test-snprintf-posix.h (strmatch): New function.
67918         (test_function): Test the %f directive on numbers of various exponents.
67919         * tests/test-sprintf-posix.h (strmatch): New function.
67920         (test_function): Test the %f directive on numbers of various exponents.
67921         * tests/test-snprintf-posix.c (SIZEOF): New macro.
67922         * tests/test-sprintf-posix.c (SIZEOF): New macro.
67923         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
67924         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
67925
67926 2007-05-18  Bruno Haible  <bruno@clisp.org>
67927
67928         Add support for 'long double' number output.
67929         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
67930         * lib/vasnprintf.c: Include math.h and float+.h.
67931         (mp_limb_t): New type.
67932         (GMP_LIMB_BITS): New macro.
67933         (mp_twolimb_t): New type.
67934         (GMP_TWOLIMB_BITS): New macro.
67935         (mpn_t): New type.
67936         (multiply, divide, convert_to_decimal, decode_long_double,
67937         scale10_round_long_double, scale10_round_decimal_long_double,
67938         floorlog10l): New functions.
67939         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
67940         for the %f, %F, %e, %E, %g, %G directives.
67941         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
67942         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
67943         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
67944         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
67945         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
67946         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67947         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67948         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67949         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
67950         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67951         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67952         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
67953         * modules/snprintf-posix (Depends-on): Likewise.
67954         * modules/sprintf-posix (Depends-on): Likewise.
67955         * modules/vasnprintf-posix (Depends-on): Likewise.
67956         * modules/vasprintf-posix (Depends-on): Likewise.
67957         * modules/vfprintf-posix (Depends-on): Likewise.
67958         * modules/vsnprintf-posix (Depends-on): Likewise.
67959         * modules/vsprintf-posix (Depends-on): Likewise.
67960         * modules/vasnprintf (Files): Add lib/float+.h.
67961         * doc/functions/fprintf.texi: Update.
67962         * doc/functions/printf.texi: Update.
67963         * doc/functions/snprintf.texi: Update.
67964         * doc/functions/sprintf.texi: Update.
67965         * doc/functions/vfprintf.texi: Update.
67966         * doc/functions/vprintf.texi: Update.
67967         * doc/functions/vsnprintf.texi: Update.
67968         * doc/functions/vsprintf.texi: Update.
67969
67970 2007-05-18  Bruno Haible  <bruno@clisp.org>
67971
67972         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
67973
67974 2007-05-18  Bruno Haible  <bruno@clisp.org>
67975
67976         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
67977         for printing 64-bit integers. Needed for mingw.
67978
67979 2007-05-18  Bruno Haible  <bruno@clisp.org>
67980
67981         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
67982         gl_FUNC_FREXPL_WORKS.
67983         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
67984
67985 2007-05-18  Bruno Haible  <bruno@clisp.org>
67986
67987         * modules/frexpl-nolibm-tests: New file.
67988
67989         * modules/frexpl-nolibm: New file.
67990         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
67991
67992 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
67993
67994         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
67995         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
67996         GCC 4.2, which otherwise issues a lot of warnings.
67997         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
67998         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
67999         Likewise.
68000         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
68001         * modules/iconv_open (iconv.h): Likewise.
68002         * modules/locale (locale.h): Likewise.
68003         * modules/netinet_in (netinet/in.h): Likewise.
68004         * modules/sys_select (sys_select.h): Likewise.
68005         * modules/sys_socket (sys/socket.h): Likewise.
68006         * modules/sys_stat (sys/stat.h): Likewise.
68007         * modules/sysexits (sysexits.h): Likewise.
68008         * modules/unistd (unistd.h): Likewise.
68009
68010 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68011
68012         * modules/closein-tests (Makefile.am): Distribute
68013         `test-closein.sh'.
68014
68015 2007-05-17  Bruno Haible  <bruno@clisp.org>
68016
68017         * tests/test-printf-posix.output: Renamed from
68018         tests/test-fprintf-posix.out.
68019         * modules/fprintf-posix-tests: Update.
68020         * modules/printf-posix-tests: Update.
68021         * modules/vfprintf-posix-tests: Update.
68022         * modules/vprintf-posix-tests: Update.
68023         * tests/test-fprintf-posix.sh: Update.
68024         * tests/test-printf-posix.sh: Update.
68025         * tests/test-vfprintf-posix.sh: Update.
68026         * tests/test-vprintf-posix.sh: Update.
68027         Reported by Ralf Wildenhues.
68028
68029 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
68030
68031         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
68032         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
68033         GCC 4.2, which otherwise issues a lot of warnings.
68034         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
68035         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
68036         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
68037         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
68038         it should no longer be needed.
68039         * lib/string_.h: Likewise.
68040         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
68041         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
68042         * modules/inttypes (inttypes.h): Likewise.
68043         * modules/math (math.h): Likewise.
68044         * modules/search (search.h): Likewise.
68045         * modules/signal (signal.h): Likewise.
68046         * modules/stdint (stdint.h): Likewise.
68047         * modules/stdio (stdio.h): Likewise.
68048         * modules/stdlib (stdlib.h): Likewise.
68049         * modules/string (string.h): Likewise.
68050         * modules/sys_time (sys/time.h): Likewise.
68051         * modules/time (time.h): Likewise.
68052         * modules/wchar (wchar.h): Likewise.
68053         * modules/wctype (wtype.h): Likewise.
68054
68055 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
68056
68057         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
68058
68059 2007-05-13  Bruno Haible  <bruno@clisp.org>
68060
68061         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
68062         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
68063         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
68064         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
68065         (gl_PREREQ_STRTOK_R): Don't require it here.
68066
68067 2007-05-13  Bruno Haible  <bruno@clisp.org>
68068
68069         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
68070         when used in C++ mode.
68071
68072 2007-05-12  Bruno Haible  <bruno@clisp.org>
68073
68074         * lib/linebuffer.h: Tweak doc.
68075         * lib/linebuffer.c: Likewise.
68076
68077 2007-05-12  James Youngman  <jay@gnu.org>
68078
68079         * lib/linebuffer.c (readlinebuffer_delim): New function,
68080         like readlinebuffer, but use a caller-specified delimiter.
68081         (readlinebuffer): Just call readlinebuffer_delim with '\n'
68082         as the delimiter.
68083         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
68084
68085 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
68086
68087         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
68088         * modules/openat (Files): Remove openat-die.c.
68089         (Depends-on): Add openat-die.
68090         * modules/openat-die: New module.
68091
68092 2007-05-06  Bruno Haible  <bruno@clisp.org>
68093
68094         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
68095         Update with info about Cygwin.
68096         * doc/functions/fprintf.texi: Update.
68097         * doc/functions/printf.texi: Update.
68098         * doc/functions/snprintf.texi: Update.
68099         * doc/functions/sprintf.texi: Update.
68100         * doc/functions/vfprintf.texi: Update.
68101         * doc/functions/vprintf.texi: Update.
68102         * doc/functions/vsnprintf.texi: Update.
68103         * doc/functions/vsprintf.texi: Update.
68104         Reported by Eric Blake.
68105
68106 2007-05-06  Bruno Haible  <bruno@clisp.org>
68107
68108         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
68109         padding ourselves for the floating-point directives.
68110         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
68111         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
68112         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
68113         gl_PRINTF_FLAG_ZERO and test its result. Invoke
68114         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
68115         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68116         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
68117         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68118         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68119         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68120         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68121         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68122         * tests/test-snprintf-posix.h (test_function): Also check the width
68123         and some flags in the %f directive.
68124         * tests/test-sprintf-posix.h (test_function): Likewise.
68125         * tests/test-vasnprintf-posix.c (test_function): Likewise.
68126         * tests/test-vasprintf-posix.c (test_function): Likewise.
68127         * doc/functions/fprintf.texi: Update.
68128         * doc/functions/printf.texi: Update.
68129         * doc/functions/snprintf.texi: Update.
68130         * doc/functions/sprintf.texi: Update.
68131         * doc/functions/vfprintf.texi: Update.
68132         * doc/functions/vprintf.texi: Update.
68133         * doc/functions/vsnprintf.texi: Update.
68134         * doc/functions/vsprintf.texi: Update.
68135
68136 2007-05-06  Bruno Haible  <bruno@clisp.org>
68137
68138         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
68139         pass the ' flag character to sprintf or snprintf.
68140         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
68141         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
68142         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
68143         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
68144         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
68145         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68146         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
68147         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68148         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68149         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68150         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68151         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68152         * tests/test-snprintf-posix.h (test_function): Also check the grouping
68153         flag.
68154         * tests/test-sprintf-posix.h (test_function): Likewise.
68155         * tests/test-vasnprintf-posix.c (test_function): Likewise.
68156         * tests/test-vasprintf-posix.c (test_function): Likewise.
68157         * doc/functions/fprintf.texi: Update.
68158         * doc/functions/printf.texi: Update.
68159         * doc/functions/snprintf.texi: Update.
68160         * doc/functions/sprintf.texi: Update.
68161         * doc/functions/vfprintf.texi: Update.
68162         * doc/functions/vprintf.texi: Update.
68163         * doc/functions/vsnprintf.texi: Update.
68164         * doc/functions/vsprintf.texi: Update.
68165
68166 2007-05-01  Bruno Haible  <bruno@clisp.org>
68167
68168         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
68169
68170 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
68171
68172         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
68173         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
68174
68175 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
68176
68177         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
68178         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
68179         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
68180
68181 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
68182
68183         * lib/argp-help.c (struct hol_entry): New member `ord'.
68184         (HOL_ENTRY_PTRCMP): Use ord for comparison
68185         (hol_sort): Initialize ord.
68186
68187 2007-05-01  Bruno Haible  <bruno@clisp.org>
68188
68189         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
68190         Reported by Eric Blake.
68191         * doc/gnulib.texi (Function Substitutes): Update.
68192
68193 2007-05-01  Bruno Haible  <bruno@clisp.org>
68194
68195         * doc/functions.texi: Remove file, now redundant through
68196         doc/functions/*.texi.
68197
68198 2007-05-01  Bruno Haible  <bruno@clisp.org>
68199
68200         * modules/argp (Depends-on): Add sleep.
68201
68202 2007-05-01  Bruno Haible  <bruno@clisp.org>
68203
68204         * modules/sleep-tests: New file.
68205         * tests/test-sleep.c: New file.
68206
68207         * modules/sleep: New file.
68208         * lib/sleep.c: New file.
68209         * m4/sleep.m4: New file.
68210         * lib/unistd_.h (sleep): New declaration.
68211         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
68212         HAVE_SLEEP.
68213         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
68214         * doc/functions/sleep.texi: Document the sleep module.
68215
68216 2007-05-01  Bruno Haible  <bruno@clisp.org>
68217
68218         * lib/sigprocmask.h: Remove file.
68219         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
68220         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
68221         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
68222         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
68223         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
68224         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
68225         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
68226         HAVE_SIGSET_T as a shell variable.
68227         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
68228         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
68229         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
68230         (Depends-on): Add signal. Remove verify.
68231         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
68232         (Include): Mention <signal.h> instead of sigprocmask.h.
68233         * NEWS: Mention the change.
68234         * lib/fatal-signal.c: Don't include sigprocmask.h.
68235
68236 2007-05-01  Bruno Haible  <bruno@clisp.org>
68237
68238         * modules/signal: New file.
68239         * lib/signal_.h: New file.
68240         * m4/signal_h.m4: New file.
68241
68242 2007-05-01  Bruno Haible  <bruno@clisp.org>
68243
68244         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
68245         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
68246         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
68247         HAVE_WCTYPE_CTMP_BUG into wctype.h.
68248
68249 2007-05-01  Bruno Haible  <bruno@clisp.org>
68250
68251         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
68252         configure time.
68253         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
68254         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
68255         * modules/sys_stat (Makefile.am): Substitute their values into
68256         sys/stat.h.
68257
68258 2007-05-01  Bruno Haible  <bruno@clisp.org>
68259
68260         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
68261         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
68262         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
68263
68264 2007-05-01  Bruno Haible  <bruno@clisp.org>
68265
68266         * doc/header/assert.texi: Undo last change: don't mention the gnulib
68267         'assert' module here.
68268
68269 2007-05-01  Bruno Haible  <bruno@clisp.org>
68270
68271         * doc/functions/*.texi: New files.
68272         * doc/functions/google-ranking.txt: New file.
68273         * doc/gnulib.texi (Function Substitutes): New chapter.
68274         (ctime, inet_ntoa): Remove sections.
68275         * doc/ctime.texi: Remove file.
68276         * doc/inet_ntoa.texi: Remove file.
68277         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
68278         dependencies.
68279         (%.info): New rule, specifying a --reference-limit.
68280
68281 2007-05-01  Bruno Haible  <bruno@clisp.org>
68282
68283         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
68284
68285 2007-05-01  Bruno Haible  <bruno@clisp.org>
68286
68287         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
68288         the portability of 'mkdir' to mingw systems.
68289
68290 2007-05-01  Bruno Haible  <bruno@clisp.org>
68291
68292         * doc/headers/google-ranking.txt: New file.
68293
68294 2007-04-30  Eric Blake  <ebb9@byu.net>
68295
68296         Prefer fseeko to fseek.
68297         * modules/getpass (Depends-on): Add fseeko.
68298         * lib/getpass.c (getpass): Use fseeko, not fseek.
68299
68300 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
68301
68302         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
68303         assumes the sorting is stable, while most qsort implementations
68304         are not.  Use argument addresses to ensure they never compare as
68305         equal.
68306
68307         * tests/test-argp-2.sh (usage-indent test): Fix output
68308         (func_compare): Restore diff options
68309         * tests/test-argp.c: Restore #include "progname.h"
68310
68311 2007-04-29  Bruno Haible  <bruno@clisp.org>
68312
68313         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
68314         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
68315         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
68316         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68317         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
68318         (configure.ac): Define CHECK_SNPRINTF_POSIX.
68319         (TESTS, check_PROGRAMS): Add test-snprintf.
68320         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
68321         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
68322         (TESTS, check_PROGRAMS): Add test-vsnprintf.
68323         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
68324         assertions that fail on HP-UX, OSF/1, or IRIX.
68325         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
68326
68327 2007-04-29  Bruno Haible  <bruno@clisp.org>
68328
68329         * MODULES.html.sh (posix_functions): Remove 'contents'.
68330
68331 2007-04-29  Karl Berry  <karl@gnu.org>
68332
68333         * config/srclist.txt (gendocs_template_min): new entry.
68334
68335 2007-04-29  Bruno Haible  <bruno@clisp.org>
68336
68337         Work around fpurge bug on BSD systems.
68338         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
68339         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
68340         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
68341         fpurge to rpl_fpurge if the system already has this function.
68342         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
68343         the case where the system already has this function. Correct invariants
68344         on BSD systems.
68345         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
68346         BSD systems.
68347
68348 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
68349
68350         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
68351         proposed by Sven Verdoolaege.
68352
68353         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
68354         options.
68355         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
68356         (usage and help tests): Update
68357
68358 2007-04-29  Bruno Haible  <bruno@clisp.org>
68359
68360         * tests/test-fflush.c (main): Use a file of size 17, not 10.
68361         Print more information in case of failure. Disable a test on BeOS.
68362
68363 2007-04-29  Bruno Haible  <bruno@clisp.org>
68364
68365         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
68366         This helps debugging on systems on which no gdb is available.
68367
68368 2007-04-29  Bruno Haible  <bruno@clisp.org>
68369
68370         * lib/freading.h: Improve comments.
68371         * lib/fwriting.h: Likewise.
68372         * tests/test-freading.c (main): Don't check freading immediately after
68373         repositioning. Needed for glibc.
68374
68375 2007-04-29  Bruno Haible  <bruno@clisp.org>
68376
68377         * lib/freading.c (freading): Trivial simplification.
68378
68379 2007-04-28  Bruno Haible  <bruno@clisp.org>
68380
68381         * tests/test-fwriting.c (main): Also test the interaction between
68382         fflush and fwriting.
68383         * modules/fwriting-tests (Depends-on): Add fflush.
68384
68385         * tests/test-freading.c (main): Also test the interaction between
68386         fflush and freading.
68387         * modules/freading-tests (Depends-on): Add fflush.
68388
68389 2007-04-28  Bruno Haible  <bruno@clisp.org>
68390
68391         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
68392         fseeko and ftello.
68393         Suggested by Eric Blake.
68394
68395 2007-04-28  Jim Meyering  <jim@meyering.net>
68396
68397         Avoid false-negative in gl_STDINT_H's C99 conformance test.
68398         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
68399         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
68400
68401 2007-04-27  Eric Blake  <ebb9@byu.net>
68402
68403         * doc/headers/assert.texi (assert.h): Document assert module use.
68404
68405 2007-04-27  Bruno Haible  <bruno@clisp.org>
68406
68407         * doc/headers/*.texi: New files.
68408         * doc/gnulib.texi (Header File Substitutes): New chapter.
68409         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
68410         dependencies.
68411         (standards.info ,standards.html, standards.dvi): Update dependencies.
68412         (mostlyclean, clean): New targets.
68413
68414 2007-04-27  Bruno Haible  <bruno@clisp.org>
68415
68416         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
68417         * modules/sysexits (Files, Makefile.am): Update.
68418
68419         * lib/sys_socket_.h: Renamed from lib/socket_.h.
68420         * modules/sys_socket (Files, Makefile.am): Update.
68421
68422         * lib/sys_stat_.h: Renamed from lib/stat_.h.
68423         * modules/sys_stat (Files, Makefile.am): Update.
68424
68425 2007-04-27  Eric Blake  <ebb9@byu.net>
68426
68427         * lib/freading.h: Improve comments.
68428         * lib/fwriting.h: Likewise.
68429         * lib/fflush.c: Likewise.
68430
68431         Fix closein for mingw.
68432         * modules/closein-tests: Add tests for closein.
68433         * tests/test-closein.c: New file.
68434         * tests/test-closein.sh: Likewise.
68435         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
68436         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
68437
68438 2007-04-27  Bruno Haible  <bruno@clisp.org>
68439
68440         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
68441         version is < 6.
68442         * lib/math_.h [__DECC]: Likewise.
68443         * lib/stdio_.h [__DECC]: Likewise.
68444         * lib/stdlib_.h [__DECC]: Likewise.
68445         * lib/string_.h [__DECC]: Likewise.
68446         * lib/time_.h [__DECC]: Likewise.
68447         * lib/wchar_.h [__DECC]: Likewise.
68448         * lib/wctype_.h [__DECC]: Likewise.
68449
68450 2007-04-27  Bruno Haible  <bruno@clisp.org>
68451
68452         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
68453
68454 2007-04-27  Bruno Haible  <bruno@clisp.org>
68455
68456         * lib/fflush.c: Add comments.
68457         * modules/fpurge-tests (Depends-on): Add fflush.
68458         * modules/freadable-tests (Depends-on): Likewise.
68459         * modules/fwritable-tests (Depends-on): Likewise.
68460
68461 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
68462
68463         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
68464         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
68465         Report by Bruno Haible <bruno@clisp.org>.
68466
68467 2007-04-26  Eric Blake  <ebb9@byu.net>
68468
68469         Fix fflush on mingw.
68470         * modules/fflush (Depends-on): Add freading.
68471         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
68472         but unread data.
68473
68474 2007-04-26  Eric Blake  <ebb9@byu.net>
68475         and Bruno Haible  <bruno@clisp.org>
68476
68477         Implement freading and fwriting.
68478         * lib/freading.c: New file.
68479         * lib/freading.h: Likewise.
68480         * m4/freading.m4: Likewise.
68481         * modules/freading: Likewise.
68482         * modules/freading-tests: Likewise.
68483         * tests/test-freading.c: Likewise.
68484         * lib/fwriting.c: New file.
68485         * lib/fwriting.h: Likewise.
68486         * m4/fwriting.m4: Likewise.
68487         * modules/fwriting: Likewise.
68488         * modules/fwriting-tests: Likewise.
68489         * tests/test-fwriting.c: Likewise.
68490         * MODULES.html.sh (File stream based Input/Output): Mention them.
68491
68492 2007-04-26  Bruno Haible  <bruno@clisp.org>
68493
68494         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
68495         'long' when we assume it.
68496         Suggested by Eric Blake.
68497
68498 2007-04-26  Bruno Haible  <bruno@clisp.org>
68499
68500         Ensure fseeko, ftello are declared on glibc systems.
68501         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
68502         * modules/fseeko (configure.ac-early): Likewise.
68503         * modules/ftello (configure.ac-early): Likewise.
68504         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
68505         AC_FUNC_FSEEKO for this.
68506         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
68507         (gl_CHECK_FSEEKO): Remove macro.
68508
68509 2007-04-26  Bruno Haible  <bruno@clisp.org>
68510
68511         * tests/test-fflush.c (main): Also check the ftell result after
68512         fflush and fseek/fseeko.
68513         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
68514         file descriptor position cache in the stream.
68515         * lib/fseeko.c (rpl_fseeko): Likewise.
68516
68517 2007-04-26  Bruno Haible  <bruno@clisp.org>
68518
68519         * modules/fflush-tests (Depends-on): Add fseeko.
68520
68521 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
68522             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68523
68524         * lib/argz_.h: ensure error_t definition is obtained in same
68525         mechanism system argz.h would have.
68526         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
68527         argz facilities are known bad.  Err on the side of caution if
68528         cross-compiling.
68529
68530 2007-04-25  Eric Blake  <ebb9@byu.net>
68531
68532         * lib/fpurge.c (includes): Use stdlib.h for free.
68533         * tests/test-fflush.c (main): Also test fflush-fseeko.
68534
68535 2007-04-25  Bruno Haible  <bruno@clisp.org>
68536
68537         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
68538         * lib/fseeko.c: New file.
68539         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
68540         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
68541         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
68542         gl_FUNC_FSEEKO.
68543         (gl_FUNC_FSEEKO): Invoke it.
68544         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
68545         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
68546         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
68547
68548 2007-04-25  Bruno Haible  <bruno@clisp.org>
68549
68550         * modules/fflush (Depends-on): Add ftello.
68551
68552 2007-04-25  Bruno Haible  <bruno@clisp.org>
68553
68554         * modules/ftello-tests: New file.
68555         * tests/test-ftello.c: New file.
68556
68557         * modules/ftello: New file.
68558         * m4/ftello.m4: New file.
68559         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
68560         HAVE_FTELLO.
68561         * lib/stdio_.h (ftello): New declaration.
68562         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
68563         HAVE_FTELLO.
68564
68565 2007-04-25  Bruno Haible  <bruno@clisp.org>
68566
68567         * modules/fseeko-tests: New file.
68568         * tests/test-fseeko.c: New file.
68569
68570         * modules/fseeko: New file.
68571         * m4/fseeko.m4: New file.
68572         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
68573         HAVE_FSEEKO.
68574         * lib/stdio_.h (fseeko): New declaration.
68575         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
68576         HAVE_FSEEKO.
68577
68578 2007-04-25  Bruno Haible  <bruno@clisp.org>
68579
68580         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
68581
68582 2007-04-25  Bruno Haible  <bruno@clisp.org>
68583
68584         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
68585         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
68586         * tests/test-unistd.c: Likewise.
68587         * tests/test-fcntl.c: Likewise.
68588
68589 2007-04-23  Eric Blake  <ebb9@byu.net>
68590
68591         * lib/fflush.c: Fix missing include.
68592         Reported by Bruno Haible.
68593
68594 2007-04-23  Bruno Haible  <bruno@clisp.org>
68595
68596         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
68597         Reported by Eric Blake.
68598
68599 2007-04-23  Bruno Haible  <bruno@clisp.org>
68600
68601         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
68602
68603 2007-04-23  Bruno Haible  <bruno@clisp.org>
68604
68605         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
68606
68607 2007-04-23  Bruno Haible  <bruno@clisp.org>
68608
68609         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
68610         Needed on HP-UX 11.
68611
68612 2007-04-16  Eric Blake  <ebb9@byu.net>
68613
68614         Make fflush rely on fpurge.
68615         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
68616         open coding all variants.
68617         * modules/fflush (Depends-on): Add fpurge and unistd.
68618         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
68619         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
68620
68621         Fix --with-tests compilation on cygwin.
68622         * modules/argmatch-tests (Makefile.am): List gnulib library first
68623         in LDADD.
68624         * modules/argp-tests (Makefile.am): Likewise.
68625         * modules/array-list-tests (Makefile.am): Likewise.
68626         * modules/array-oset-tests (Makefile.am): Likewise.
68627         * modules/avltree-list-tests (Makefile.am): Likewise.
68628         * modules/avltree-oset-tests (Makefile.am): Likewise.
68629         * modules/avltreehash-list-tests (Makefile.am): Likewise.
68630         * modules/carray-list-tests (Makefile.am): Likewise.
68631         * modules/dirname-tests (Makefile.am): Likewise.
68632         * modules/frexp-tests (Makefile.am): Likewise.
68633         * modules/isnanl-tests (Makefile.am): Likewise.
68634         * modules/linked-list-tests (Makefile.am): Likewise.
68635         * modules/linkedhash-list-tests (Makefile.am): Likewise.
68636         * modules/lock-tests (Makefile.am): Likewise.
68637         * modules/rbtree-list-tests (Makefile.am): Likewise.
68638         * modules/rbtree-oset-tests (Makefile.am): Likewise.
68639         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
68640         * modules/tls-tests (Makefile.am): Likewise.
68641         * modules/tsearch-tests (Makefile.am): Likewise.
68642         * modules/xvasprintf-tests (Makefile.am): Likewise.
68643
68644         Fix fpurge for cygwin.
68645         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
68646         value.
68647         * modules/fpurge-tests (Depends-on): Clean up trash.
68648
68649 2007-04-16  Simon Josefsson  <simon@josefsson.org>
68650
68651         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
68652
68653         * m4/autobuild.m4: Re-indent.
68654
68655 2007-04-13  Bruno Haible  <bruno@clisp.org>
68656
68657         * modules/fpurge-tests: New file.
68658         * tests/test-fpurge.c: New file.
68659
68660         * modules/fpurge: New file.
68661         * lib/fpurge.h: New file.
68662         * lib/fpurge.c: New file.
68663         * m4/fpurge.m4: New file.
68664
68665 2007-04-13  Bruno Haible  <bruno@clisp.org>
68666
68667         * modules/fbufmode-tests: New file.
68668         * tests/test-fbufmode.c: New file.
68669
68670         * modules/fbufmode: New file.
68671         * lib/fbufmode.h: New file.
68672         * lib/fbufmode.c: New file.
68673         * m4/fbufmode.m4: New file.
68674
68675 2007-04-13  Bruno Haible  <bruno@clisp.org>
68676
68677         * modules/fwritable-tests: New file.
68678         * tests/test-fwritable.c: New file.
68679
68680         * modules/fwritable: New file.
68681         * lib/fwritable.h: New file.
68682         * lib/fwritable.c: New file.
68683         * m4/fwritable.m4: New file.
68684
68685 2007-04-13  Bruno Haible  <bruno@clisp.org>
68686
68687         * modules/freadable-tests: New file.
68688         * tests/test-freadable.c: New file.
68689
68690         * modules/freadable: New file.
68691         * lib/freadable.h: New file.
68692         * lib/freadable.c: New file.
68693         * m4/freadable.m4: New file.
68694
68695 2007-04-13  Bruno Haible  <bruno@clisp.org>
68696
68697         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
68698         MOSTLYCLEANFILES.
68699
68700 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
68701
68702         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
68703         gzip bootstrap.conf to avoid dragging in i18n machinery.
68704         (gnulib_tool_option): Use it.
68705
68706 2007-04-13  Bruno Haible  <bruno@clisp.org>
68707
68708         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
68709         %F directives.
68710         * tests/test-vasprintf-posix.c (test_function): Likewise.
68711         * tests/test-snprintf-posix.h (test_function): Likewise.
68712         * tests/test-sprintf-posix.h (test_function): Likewise.
68713         * tests/test-fprintf-posix.h (test_function): Likewise.
68714         * tests/test-printf-posix.h (test_function): Likewise.
68715         * tests/test-fprintf-posix.out: Likewise.
68716
68717 2007-04-13  Bruno Haible  <bruno@clisp.org>
68718
68719         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
68720         * modules/tls-tests (configure.ac): Likewise.
68721         Reported by Arto C. Nirkko <anirkko@insel.ch>.
68722
68723 2007-04-13  Bruno Haible  <bruno@clisp.org>
68724
68725         * lib/tls.c (glthread_tls_get): Fix return type.
68726         Patch by Arto C. Nirkko <anirkko@insel.ch>.
68727
68728 2007-04-12  Eric Blake  <ebb9@byu.net>
68729
68730         * modules/gettime (Depends-on): Remove gettime.
68731         Reported by Dmitry V. Levin.
68732
68733 2007-04-12  Bruno Haible  <bruno@clisp.org>
68734
68735         * modules/fflush (Include): Mention <stdio.h>.
68736         * modules/strtoimax (Include): Mention <inttypes.h>.
68737         * modules/strtoumax (Include): Likewise.
68738
68739 2007-04-12  Eric Blake  <ebb9@byu.net>
68740
68741         * .cvsignore: New file.
68742         * .gitignore: Likewise.
68743
68744 2007-04-12  Bruno Haible  <bruno@clisp.org>
68745
68746         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
68747         not before, since $(LDADD) often contains libgnu.a.
68748         * modules/striconv-tests (test_striconv_LDADD): Likewise.
68749         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
68750         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
68751         Needed on Cygwin.
68752
68753 2007-04-12  Eric Blake  <ebb9@byu.net>
68754
68755         Work around glibc's failure to flush stdin on fclose.
68756         * lib/closein.c (close_stdin): Flush stdin before closing.
68757
68758         Work around glibc's failure to reset seekable stdin on exit.
68759         * modules/closein: New module.
68760         * lib/closein.c: New file.
68761         * lib/closein.h: Likewise.
68762         * m4/closein.m4: Likewise.
68763         * MODULES.html.sh (File stream based Input/Output): Document it.
68764
68765 2007-04-12  Simon Josefsson  <simon@josefsson.org>
68766
68767         * gnulib-tool: Rename generated 'autobuild' script to
68768         'do-autobuild' in --create-megatestdir output.
68769
68770         * doc/gnulib.texi (Build robot for gnulib): Fix.
68771
68772 2007-04-12  Simon Josefsson  <simon@josefsson.org>
68773
68774         * modules/sysexits (Depends-on): Add absolute-header.
68775
68776 2007-04-12  Eric Blake  <ebb9@byu.net>
68777
68778         No need to preserve errno on success.
68779         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
68780         Reported by Bruno Haible.
68781
68782 2007-04-12  Simon Josefsson  <simon@josefsson.org>
68783
68784         * MODULES.html.sh (Support for maintaining and releasing
68785         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
68786
68787 2007-04-12  Simon Josefsson  <simon@josefsson.org>
68788
68789         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
68790
68791 2007-04-12  Simon Josefsson  <simon@josefsson.org>
68792
68793         * modules/autobuild: New module.
68794
68795         * m4/autobuild.m4: New file.
68796
68797 2007-04-11  Bruno Haible  <bruno@clisp.org>
68798
68799         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
68800         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
68801         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
68802         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
68803         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
68804         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
68805         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
68806         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
68807         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
68808         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
68809         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
68810         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
68811         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
68812         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
68813         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
68814         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
68815         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
68816         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
68817         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
68818         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
68819         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
68820         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
68821         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
68822         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
68823         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
68824         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
68825         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
68826         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
68827         Reported by Eric Blake.
68828
68829 2007-04-11  Bruno Haible  <bruno@clisp.org>
68830
68831         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
68832
68833 2007-04-10  Bruno Haible  <bruno@clisp.org>
68834
68835         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
68836         for NaN and Infinity. Needed on FreeBSD 6.1.
68837         * tests/test-vasnprintf-posix.c (test_function): Undo last change
68838         regarding results for "%010a" of Infinity and NaN.
68839         * tests/test-vasprintf-posix.c (test_function): Likewise.
68840         * tests/test-snprintf-posix.h (test_function): Likewise.
68841         * tests/test-sprintf-posix.h (test_function): Likewise.
68842         * tests/test-fprintf-posix.h (test_function): Likewise.
68843         * tests/test-printf-posix.h (test_function): Likewise.
68844         * tests/test-fprintf-posix.out: Likewise.
68845
68846 2007-04-10  Bruno Haible  <bruno@clisp.org>
68847
68848         * modules/locale-tests: New file.
68849         * tests/test-locale.c: New file.
68850
68851         * modules/locale: New file.
68852         * lib/locale_.h: New file.
68853         * m4/locale_h.m4: New file.
68854
68855 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
68856             Bruno Haible  <bruno@clisp.org>
68857
68858         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
68859         be determined, test for availability of the copysignf, copysign,
68860         copysignl functions.
68861         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
68862         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
68863         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
68864
68865 2007-04-09  Eric Blake  <ebb9@byu.net>
68866
68867         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
68868         * modules/stdio (Makefile.am): Support fflush.
68869         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
68870         * modules/fflush: New file.
68871         * lib/fflush.c: Likewise.
68872         * m4/fflush.m4: Likewise.
68873         * modules/fflush-tests: New test.
68874         * tests/test-fflush.c: Likewise.
68875         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
68876
68877 2007-04-06  Bruno Haible  <bruno@clisp.org>
68878
68879         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
68880         (VASNPRINTF): Use signbit for faster determination whether to print a
68881         minus sign.
68882         * modules/vasnprintf (Files): Remove lib/float+.h.
68883         * modules/fprintf-posix (Depends-on): Add signbit.
68884         * modules/snprintf-posix (Depends-on): Likewise.
68885         * modules/sprintf-posix (Depends-on): Likewise.
68886         * modules/vasnprintf-posix (Depends-on): Likewise.
68887         * modules/vasprintf-posix (Depends-on): Likewise.
68888         * modules/vfprintf-posix (Depends-on): Likewise.
68889         * modules/vsnprintf-posix (Depends-on): Likewise.
68890         * modules/vsprintf-posix (Depends-on): Likewise.
68891
68892 2007-04-06  Bruno Haible  <bruno@clisp.org>
68893
68894         * tests/test-frexp.c (main): Test also the sign bit of zero results.
68895         * tests/test-frexpl.c (main): Likewise.
68896         * tests/test-ldexpl.c (main): Likewise.
68897         * modules/frexp-tests (Depends-on): Add signbit.
68898         * modules/frexpl-tests (Depdends-on): Likewise.
68899         * modules/ldexpl-tests (Depdends-on): Likewise.
68900
68901 2007-04-06  Bruno Haible  <bruno@clisp.org>
68902
68903         * modules/signbit-tests: New file.
68904         * tests/test-signbit.c: New file.
68905
68906         * modules/signbit: New file.
68907         * lib/signbitf.c: New file.
68908         * lib/signbitd.c: New file.
68909         * lib/signbitl.c: New file.
68910         * m4/signbit.m4: New file.
68911         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
68912         (signbit): New macro.
68913         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
68914         REPLACE_SIGNBIT.
68915         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
68916         REPLACE_FREXPL into math.h.
68917
68918 2007-04-06  Bruno Haible  <bruno@clisp.org>
68919
68920         * modules/isnanf-nolibm-tests: New file.
68921         * tests/test-isnanf.c: New file.
68922
68923         * modules/isnanf-nolibm: New file.
68924         * lib/isnanf.h: New file.
68925         * lib/isnanf.c: New file.
68926         * lib/isnan.c: Consider the USE_FLOAT macro.
68927         * m4/isnanf.m4: New file.
68928
68929 2007-04-06  Bruno Haible  <bruno@clisp.org>
68930
68931         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
68932         (Link): New section.
68933
68934         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
68935
68936 2007-04-06  Bruno Haible  <bruno@clisp.org>
68937
68938         Assume the 'long double' type.
68939         * m4/longdouble.m4: Remove file.
68940         * config/srclist.txt: Don't mention longdouble.m4.
68941         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
68942         * lib/float+.h: Likewise.
68943         * lib/frexp.c: Likewise.
68944         * lib/printf-args.h: Likewise.
68945         * lib/printf-args.c: Likewise.
68946         * lib/printf-frexp.c: Likewise.
68947         * lib/printf-parse.c: Likewise.
68948         * lib/vasnprintf.c: Likewise.
68949         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
68950         * m4/intl.m4: Likewise.
68951         * m4/isnanl.m4: Likewise.
68952         * m4/printf.m4: Likewise.
68953         * m4/printf-frexpl.m4: Likewise.
68954         * m4/vasnprintf.m4: Likewise.
68955         * modules/allocsa (Files): Remove m4/longdouble.m4.
68956         * modules/gettext (Files): Likewise.
68957         * modules/relocatable-prog-wrapper (Files): Likewise.
68958         * modules/vasnprintf (Files): Likewise.
68959         * modules/isnanl (Files): Likewise.
68960         (Include): Simplify.
68961         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
68962         (Include): Simplify.
68963         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
68964         (Include): Simplify.
68965         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
68966         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
68967         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
68968         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
68969         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
68970         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
68971         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
68972         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
68973         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
68974         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
68975         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
68976         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
68977         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
68978         * tests/test-isnanl.c: Likewise.
68979         * tests/test-snprintf-posix.h: Likewise.
68980         * tests/test-sprintf-posix.h: Likewise.
68981         * tests/test-vasnprintf-posix.c: Likewise.
68982         * tests/test-vasnprintf-posix2.c: Likewise.
68983         * tests/test-vasprintf-posix.c: Likewise.
68984
68985 2007-04-06  Bruno Haible  <bruno@clisp.org>
68986
68987         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
68988         * lib/math_.h [__DECC]: Include the overridden include file through
68989         #include_next, outside the double-inclusion guard.
68990         * lib/stdio_.h [__DECC]: Likewise.
68991         * lib/stdlib_.h [__DECC]: Likewise.
68992         * lib/string_.h [__DECC]: Likewise.
68993         * lib/time_.h [__DECC]: Likewise.
68994         * lib/wchar_.h [__DECC]: Likewise.
68995         * lib/wctype_.h [__DECC]: Likewise.
68996         * lib/inttypes_.h [__DECC]: Likewise.
68997         Reported by Albert Chin <china@thewrittenword.com> in
68998         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
68999
69000 2007-04-04  Eric Blake  <ebb9@byu.net>
69001
69002         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
69003         1.5.x.
69004
69005 2007-04-04  Bruno Haible  <bruno@clisp.org>
69006
69007         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
69008         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
69009
69010 2007-04-04  Bruno Haible  <bruno@clisp.org>
69011
69012         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
69013         results for "%010a" of Infinity and NaN.
69014         * tests/test-vasprintf-posix.c (test_function): Likewise.
69015         * tests/test-snprintf-posix.h (test_function): Likewise.
69016         * tests/test-sprintf-posix.h (test_function): Likewise.
69017         * tests/test-fprintf-posix.h (test_function): Remove these tests.
69018         * tests/test-printf-posix.h (test_function): Likewise.
69019         * tests/test-fprintf-posix.out: Update.
69020         Needed for FreeBSD 6.1.
69021
69022 2007-04-04  Bruno Haible  <bruno@clisp.org>
69023
69024         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
69025         directly used by the gnulib modules nor by gnulib-tool.
69026
69027 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
69028
69029         * DEPENDENCIES: Give overall description of version dependency
69030         desirability.  Use more-typical names for apps.
69031         Add shell, coreutils, diffutils, grep, tar, gzip.
69032
69033 2007-04-04  Simon Josefsson  <simon@josefsson.org>
69034
69035         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
69036
69037 2007-04-04  Karl Berry  <karl@gnu.org>
69038
69039         * MODULES.html.sh (func_module): missing '.
69040
69041 2007-04-03  Bruno Haible  <bruno@clisp.org>
69042
69043         * modules/argmatch-tests (Makefile.am): New variable
69044         test_argmatch_LDADD.
69045         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
69046         * modules/array-list-tests (Makefile.am): New variable
69047         test_array_list_LDADD.
69048         * modules/array-oset-tests (Makefile.am): New variable
69049         test_array_oset_LDADD.
69050         * modules/avltree-list-tests (Makefile.am): New variable
69051         test_avltree_list_LDADD.
69052         * modules/avltree-oset-tests (Makefile.am): New variable
69053         test_avltree_oset_LDADD.
69054         * modules/avltreehash-list-tests (Makefile.am): New variable
69055         test_avltreehash_list_LDADD.
69056         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
69057         test_canonicalize_lgpl_LDADD.
69058         * modules/carray-list-tests (Makefile.am): New variable
69059         test_carray_list_LDADD.
69060         * modules/dirname-tests (Makefile.am): New variable
69061         test_dirname_LDADD.
69062         * modules/linked-list-tests (Makefile.am): New variable
69063         test_linked_list_LDADD.
69064         * modules/linkedhash-list-tests (Makefile.am): New variable
69065         test_linkedhash_list_LDADD.
69066         * modules/rbtree-list-tests (Makefile.am): New variable
69067         test_rbtree_list_LDADD.
69068         * modules/rbtree-oset-tests (Makefile.am): New variable
69069         test_rbtree_oset_LDADD.
69070         * modules/rbtreehash-list-tests (Makefile.am): New variable
69071         test_rbtreehash_list_LDADD.
69072         * modules/xvasprintf-tests (Makefile.am): New variable
69073         test_xvasprintf_LDADD.
69074         Reported by Eric Blake.
69075
69076 2007-04-03  Eric Blake  <ebb9@byu.net>
69077
69078         * DEPENDENCIES: Weaken m4 requirements.
69079
69080 2007-04-03  Bruno Haible  <bruno@clisp.org>
69081
69082         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
69083         * modules/isnanl-tests (configure.ac): Likewise.
69084
69085 2007-04-03  Ben Pfaff  <blp@gnu.org>
69086
69087         * modules/iconv_open: Add $(srcdir)/ to source directory
69088         references in Makefile fragments that call gperf, to fix VPATH
69089         builds.
69090
69091 2007-04-03  Bruno Haible  <bruno@clisp.org>
69092
69093         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
69094         * lib/ldexpl.c: Undo last change.
69095
69096 2007-04-03  Bruno Haible  <bruno@clisp.org>
69097
69098         * modules/printf-frexpl (Depends-on): Undo last change.
69099         (Files): Add m4/ldexpl.m4.
69100
69101 2007-04-03  Bruno Haible  <bruno@clisp.org>
69102
69103         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
69104         * modules/isnanl (Link): New section.
69105
69106         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
69107         * modules/frexp (Link): New section.
69108
69109         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
69110         * modules/frexpl (Link): New section.
69111
69112         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
69113         * modules/ldexpl (Link): New section.
69114
69115 2007-04-03  Bruno Haible  <bruno@clisp.org>
69116
69117         * modules/TEMPLATE-EXTENDED: New file.
69118         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
69119
69120 2007-04-03  Bruno Haible  <bruno@clisp.org>
69121
69122         * DEPENDENCIES: New file.
69123         Suggested by Simon Josefsson.
69124
69125 2007-04-03  Bruno Haible  <bruno@clisp.org>
69126
69127         * doc/gnulib.texi: Escape @.
69128
69129 2007-04-03  James Youngman  <jay@gnu.org>
69130         and Paul Eggert  <eggert@cs.ucla.edu>
69131
69132         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
69133         birthtime on all systems that have birthtime, not just those which
69134         use st_birthtimensec rather than st_birthtim.  Putting zero in
69135         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
69136         that the birth time is not available for files on an NFS mount.
69137
69138 2007-04-03  Simon Josefsson  <simon@josefsson.org>
69139
69140         * modules/memxor: Move back from crypto/, suggested by Bruno.
69141         * modules/crypto/hmac-sha1: Fix memxor dependency.
69142
69143         * modules/crypto/gc: Moved from ../.
69144
69145 2007-04-02  Eric Blake  <ebb9@byu.net>
69146
69147         * lib/ldexpl.c (includes): Avoid libm.
69148
69149         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
69150
69151 2007-04-02  Bruno Haible  <bruno@clisp.org>
69152
69153         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
69154         on IRIX.
69155
69156 2007-04-02  Bruno Haible  <bruno@clisp.org>
69157
69158         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
69159         x86 or x86_64 platforms running MacOS X.
69160         Reported by Ryan Schmidt <@ryandesign.com>.
69161
69162 2007-04-02  Bruno Haible  <bruno@clisp.org>
69163
69164         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
69165         i386.
69166
69167 2007-04-01  Simon Josefsson  <simon@josefsson.org>
69168
69169         * modules/crypto/arcfour: Moved from ../.
69170         * modules/crypto/arcfour-tests: Moved from ../.
69171         * modules/crypto/arctwo: Moved from ../.
69172         * modules/crypto/arctwo-tests: Moved from ../.
69173         * modules/crypto/des: Moved from ../.
69174         * modules/crypto/des-tests: Moved from ../.
69175         * modules/crypto/gc-arcfour: Moved from ../.
69176         * modules/crypto/gc-arcfour-tests: Moved from ../.
69177         * modules/crypto/gc-arctwo: Moved from ../.
69178         * modules/crypto/gc-arctwo-tests: Moved from ../.
69179         * modules/crypto/gc-des: Moved from ../.
69180         * modules/crypto/gc-des-tests: Moved from ../.
69181         * modules/crypto/gc-hmac-md5: Moved from ../.
69182         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
69183         * modules/crypto/gc-hmac-sha1: Moved from ../.
69184         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
69185         * modules/crypto/gc-md2: Moved from ../.
69186         * modules/crypto/gc-md2-tests: Moved from ../.
69187         * modules/crypto/gc-md4: Moved from ../.
69188         * modules/crypto/gc-md4-tests: Moved from ../.
69189         * modules/crypto/gc-md5: Moved from ../.
69190         * modules/crypto/gc-md5-tests: Moved from ../.
69191         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
69192         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
69193         * modules/crypto/gc-random: Moved from ../.
69194         * modules/crypto/gc-rijndael: Moved from ../.
69195         * modules/crypto/gc-rijndael-tests: Moved from ../.
69196         * modules/crypto/gc-sha1: Moved from ../.
69197         * modules/crypto/gc-sha1-tests: Moved from ../.
69198         * modules/crypto/gc-tests: Moved from ../.
69199         * modules/crypto/hmac-md5: Moved from ../.
69200         * modules/crypto/hmac-md5-tests: Moved from ../.
69201         * modules/crypto/hmac-sha1: Moved from ../.
69202         * modules/crypto/hmac-sha1-tests: Moved from ../.
69203         * modules/crypto/md2: Moved from ../.
69204         * modules/crypto/md2-tests: Moved from ../.
69205         * modules/crypto/md4: Moved from ../.
69206         * modules/crypto/md4-tests: Moved from ../.
69207         * modules/crypto/md5: Moved from ../.
69208         * modules/crypto/md5-tests: Moved from ../.
69209         * modules/crypto/memxor: Moved from ../.
69210         * modules/crypto/rijndael: Moved from ../.
69211         * modules/crypto/rijndael-tests: Moved from ../.
69212         * modules/crypto/sha1: Moved from ../.
69213
69214 2007-03-30  James Youngman  <jay@gnu.org>
69215
69216         * tests/test-stat-time.c (prepare_test): use chmod() rather than
69217         rename() to change the ctime of a file (because ctime is unaffected
69218         by rename on jfs2 on AIX 5.1).
69219         (main): Start by doing cleanup, in case a previous run failed leaving
69220         test files behind.
69221
69222 2007-03-31  Bruno Haible  <bruno@clisp.org>
69223
69224         Support old proprietary implementations of iconv.
69225         * modules/iconv_open: New file.
69226         * lib/iconv_.h: New file.
69227         * m4/iconv_h.m4: New file.
69228         * lib/iconv_open.c: New file.
69229         * lib/iconv_open-aix.gperf: New file.
69230         * lib/iconv_open-hpux.gperf: New file.
69231         * lib/iconv_open-irix.gperf: New file.
69232         * lib/iconv_open-osf.gperf: New file.
69233         * m4/iconv_open.m4: New file.
69234         * modules/linebreak (Depends-on): Add iconv_open.
69235         * modules/striconv (Depends-on): Likewise.
69236         * modules/striconveh (Depends-on): Likewise.
69237         * modules/unicodeio (Depends-on): Likewise.
69238         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
69239         (iconv_t)(-1).
69240         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
69241         conversion if cd is (iconv_t)(-1).
69242         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
69243         is not possible.
69244
69245 2007-03-31  Bruno Haible  <bruno@clisp.org>
69246
69247         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
69248         work on Solaris either. Protect also second use of "autodetect_jp".
69249
69250 2007-03-31  Bruno Haible  <bruno@clisp.org>
69251
69252         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
69253         the function is not present.
69254
69255 2007-03-31  Bruno Haible  <bruno@clisp.org>
69256
69257         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
69258         the function is not present.
69259
69260 2007-03-31  Bruno Haible  <bruno@clisp.org>
69261
69262         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
69263         a bug in HP-UX iconv_open().
69264
69265 2007-03-31  Bruno Haible  <bruno@clisp.org>
69266
69267         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
69268         (Mathematics <math.h>): New section, add fpieee.
69269         (Input/output <stdio.h>): Add fseterr.
69270         (Mathematics <math.h>): New section, add printf-frexp.
69271         (Container data structures): Add sublist.
69272         (Core language properties): Add fpucw, inline.
69273         (Functions for greatest-width integer types <inttypes.h>): Add
69274         imaxabs, imaxdiv, inttypes.
69275         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
69276         isnanl-nolibm, ldexp.
69277         (Mathematics <math.h>): New section, add printf-frexpl.
69278         (Support for systems lacking POSIX:2001): Add fprintf-posix,
69279         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
69280         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
69281         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
69282         (Unicode string functions): Add unistr/u*-mbtoucr.
69283         (Java): Add javacomp-script, javaexec-script.
69284         (C#): Add csharpcomp-script, csharpexec-script.
69285         (Support for building libraries and executables): Add havelib,
69286         relocatable-*.
69287         (Support for maintaining and releasing projects): Renamed from
69288         'Support for maintaining and release projects'. Add announce-gen.
69289
69290 2007-03-31  Bruno Haible  <bruno@clisp.org>
69291
69292         * README: Talk primarily about git.
69293         (git and CVS): Renamed from CVS.
69294         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
69295         gnulib is available through git.
69296         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
69297
69298 2007-03-30  Bruno Haible  <bruno@clisp.org>
69299
69300         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
69301         * lib/poll_.h: Likewise.
69302         * lib/stat_.h: Likewise.
69303         * lib/sys_time_.h: Likewise.
69304         * lib/sysexit_.h: Likewise.
69305         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
69306         * lib/stdbool_.h: Likewise.
69307         * lib/byteswap_.h: Add double-inclusion guard.
69308
69309 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
69310
69311         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
69312
69313 2007-03-30  Karl Berry  <karl@gnu.org>
69314
69315         * config/srclist-update: double space after USA in the license
69316         substitution, since that's how it's usually (?) written.
69317
69318 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
69319
69320         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
69321         reported by Bruno Haible.
69322
69323 2007-03-29  Bruno Haible  <bruno@clisp.org>
69324
69325         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
69326         a bug in AIX iconv().
69327
69328 2007-03-29  Bruno Haible  <bruno@clisp.org>
69329
69330         * modules/ldexpl-tests: New file.
69331         * tests/test-ldexpl.c: New file.
69332
69333 2007-03-29  Bruno Haible  <bruno@clisp.org>
69334
69335         * lib/ldexpl.c: Include fpucw.h.
69336         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
69337         multiplication.
69338         * modules/ldexpl (Depends-on): Add fpucw.
69339
69340 2007-03-29  Bruno Haible  <bruno@clisp.org>
69341
69342         * modules/ldexpl: New file.
69343         * m4/ldexpl.m4: New file.
69344         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
69345         set.
69346         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
69347         REPLACE_LDEXPL.
69348         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
69349         REPLACE_LDEXPL.
69350         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
69351         gl_FUNC_LDEXPL_WORKS.
69352         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
69353         * modules/mathl (Files): Remove lib/ldexpl.c.
69354         (Depends-on): Add ldexpl.
69355
69356 2007-03-29  Bruno Haible  <bruno@clisp.org>
69357
69358         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
69359
69360 2007-03-29  Bruno Haible  <bruno@clisp.org>
69361
69362         * tests/test-striconveh.c (main): Don't assume that a direct conversion
69363         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
69364         and possibly also HP-UX.
69365         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
69366         work on AIX, IRIX, HP-UX, OSF/1.
69367         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
69368         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
69369         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
69370         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
69371         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
69372         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
69373
69374 2007-03-29  Bruno Haible  <bruno@clisp.org>
69375
69376         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
69377
69378 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
69379
69380         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
69381         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
69382
69383 2007-03-29  Eric Blake  <ebb9@byu.net>
69384
69385         * lib/acl-internal.h: Remove redundant include.
69386         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
69387         Cygwin when a file is locked.
69388
69389 2007-03-29  Bruno Haible  <bruno@clisp.org>
69390
69391         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
69392         file.
69393         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
69394
69395 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
69396
69397         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
69398         try to remove a parent directory if the child couldn't be removed
69399         (except for the first rmdir, which could fail because the child
69400         doesn't exist).  Problem reported by Jeff Blaine in
69401         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
69402
69403 2007-03-28  Bruno Haible  <bruno@clisp.org>
69404
69405         * lib/striconveh.c (utf8conv_carefully): New function.
69406         (mem_cd_iconveh_internal): Invoke it.
69407
69408 2007-03-28  Bruno Haible  <bruno@clisp.org>
69409
69410         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
69411         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
69412         input.
69413         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
69414         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
69415         unistr/u8-uctomb.
69416
69417 2007-03-28  Bruno Haible  <bruno@clisp.org>
69418
69419         * modules/unistr/u8-mbtoucr: New file.
69420         * lib/unistr/u8-mbtoucr.c: New file.
69421         * modules/unistr/u16-mbtoucr: New file.
69422         * lib/unistr/u16-mbtoucr.c: New file.
69423         * modules/unistr/u16-mbtoucr: New file.
69424         * lib/unistr/u16-mbtoucr.c: New file.
69425         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
69426
69427 2007-03-27  Simon Josefsson  <simon@josefsson.org>
69428             Bruno Haible  <bruno@clisp.org>
69429
69430         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
69431         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
69432         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
69433
69434         * m4/stdio_h.m4: Add stubs for vasprintf too.
69435
69436         * modules/stdio: Support vasprintf in sed command.
69437
69438         * modules/vasprintf: Depend on stdio for prototypes.  Remove
69439         vasprintf.h.  Add stdio module indicator.
69440
69441         * lib/stdio_.h: Declare asprintf and vasprintf, based on
69442         vasprintf.h.
69443
69444         * lib/vasprintf.h: File removed.
69445
69446         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
69447         * lib/vasprintf.c: Ditto.
69448         * lib/xvasprintf.c: Ditto.
69449         * tests/test-vasprintf-posix.c: Ditto.
69450         * tests/test-vasprintf.c: Ditto.
69451
69452 2007-03-27  Bruno Haible  <bruno@clisp.org>
69453
69454         Make vasnprintf multithread-safe.
69455         * lib/vasnprintf.c (decimal_point_char): New function.
69456         (VASNPRINTF): Use it.
69457         Suggested by Simon Josefsson.
69458
69459 2007-03-27  Eric Blake  <ebb9@byu.net>
69460
69461         Support sub-second birthtime on cygwin.
69462         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
69463         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
69464         (get_stat_birthtime): Also work with st_birthtim.
69465
69466 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
69467
69468         * lib/stat-time.h (USE_BIRTHTIME): Remove.
69469         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
69470         (get_stat_birthtime_ns): Do not try to use "spare" fields.
69471         (get_stat_birthtime_ns): Simplify compile-time tests.
69472         (get_stat_birthtime): Change the API to look like
69473         get_stat_mtime etc., except return a negative tv_nsec on error.
69474         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
69475         Don't check for "spare" fields.
69476         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
69477         or for struct stat.st_birthtime, as these tests aren't used.
69478         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
69479
69480 2007-03-27  Bruno Haible  <bruno@clisp.org>
69481
69482         * lib/stat-time.h: Include <sys/stat.h>.
69483
69484 2007-03-27  James Youngman  <jay@gnu.org>
69485
69486         * lib/stat-time.h (get_stat_birthtime): New function for
69487           retrieving st_birthtime as provided by UFS2 (hence *BSD).
69488         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
69489           and its variants.
69490         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
69491         * modules/stat-time-test: New file.
69492         * tests/test-stat-time.c: New test, devised by Bruno Haible.
69493
69494 2007-03-26  Bruno Haible  <bruno@clisp.org>
69495
69496         Better support of signalling NaNs.
69497         * lib/atanl.c: Include isnanl.h.
69498         (atanl): Perform test for NaN at the beginning of the function and
69499         through a call to isnanl.
69500         * lib/cosl.c: Include isnanl.h.
69501         (cosl): Perform test for NaN at the beginning of the function and
69502         through a call to isnanl.
69503         * lib/ldexpl.c: Include isnanl.h.
69504         (ldexpl): Perform test for NaN through a call to isnanl.
69505         * lib/logl.c: Include isnanl.h.
69506         (logl): Perform test for NaN at the beginning of the function and
69507         through a call to isnanl.
69508         * lib/sinl.c: Include isnanl.h.
69509         (sinl): Perform test for NaN at the beginning of the function and
69510         through a call to isnanl.
69511         * lib/sqrtl.c: Include isnanl.h.
69512         (sqrtl): Perform test for NaN at the beginning of the function and
69513         through a call to isnanl.
69514         * lib/tanl.c: Include isnanl.h.
69515         (tanl): Perform test for NaN at the beginning of the function and
69516         through a call to isnanl.
69517         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
69518         * modules/mathl (Depends-on): Add isnanl.
69519
69520 2007-03-26  Eric Blake  <ebb9@byu.net>
69521
69522         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
69523         regression in logic sense of previous patch.
69524
69525 2007-03-26  Bruno Haible  <bruno@clisp.org>
69526
69527         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
69528         unportable shell command "if ! ...".
69529         Reported by Ralf Wildenhues.
69530
69531 2007-03-25  Bruno Haible  <bruno@clisp.org>
69532
69533         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
69534         <sysexits.h> file, and only add EX_CONFIG.
69535         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
69536         absolute file name and whether it is sufficient. Substitute also
69537         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
69538         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
69539         ABSOLUTE_SYSEXITS_H into sysexits.h.
69540
69541 2007-03-25  Bruno Haible  <bruno@clisp.org>
69542
69543         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
69544         hints is NULL.
69545
69546 2007-03-25  Bruno Haible  <bruno@clisp.org>
69547
69548         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
69549         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
69550
69551 2007-03-25  Bruno Haible  <bruno@clisp.org>
69552
69553         * lib/vasnprintf.c: Include langinfo.h.
69554         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
69555         multithread-safe.
69556         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
69557         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
69558         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
69559         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69560         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69561         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69562         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69563         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
69564         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69565         Reported by Simon Josefsson.
69566
69567 2007-03-25  Bruno Haible  <bruno@clisp.org>
69568
69569         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
69570         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
69571         * modules/vasnprintf (Depends-on): Add stdint.
69572
69573 2007-03-25  Bruno Haible  <bruno@clisp.org>
69574
69575         * modules/fpieee: New file.
69576         * m4/fpieee.m4: New file.
69577         * modules/isnan-nolibm (Depends-on): Add fpieee.
69578         * modules/isnanl-nolibm (Depends-on): Add fpieee.
69579         * modules/isnanl (Depends-on): Add fpieee.
69580
69581 2007-03-25  Bruno Haible  <bruno@clisp.org>
69582
69583         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
69584
69585 2007-03-25  Bruno Haible  <bruno@clisp.org>
69586
69587         Avoid test failures on IRIX 6.5.
69588         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
69589         (main): Use it.
69590         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
69591         macros.
69592         (main): Use them.
69593
69594 2007-03-25  Bruno Haible  <bruno@clisp.org>
69595
69596         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
69597         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
69598         exists but doesn't work.
69599         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
69600         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
69601         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
69602         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
69603         math.h.
69604
69605 2007-03-25  Bruno Haible  <bruno@clisp.org>
69606
69607         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
69608         returns inf. Needed on IRIX 6.5.
69609
69610 2007-03-25  Bruno Haible  <bruno@clisp.org>
69611
69612         * tests/test-frexpl.c: Include isnanl-nolibm.h.
69613         (main): Use isnanl instead of x != x idiom.
69614         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
69615
69616         * tests/test-frexp.c: Include isnan.h.
69617         (main): Use isnan instead of x != x idiom.
69618         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
69619
69620 2007-03-25  Bruno Haible  <bruno@clisp.org>
69621
69622         * tests/test-frexp.c (NaN): New function/macro.
69623         (main): Use it instead of 0.0 / 0.0.
69624         * tests/test-isnan.c (NaN): New function/macro.
69625         (main): Use it instead of 0.0 / 0.0.
69626         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
69627         (test_function): Use it instead of 0.0 / 0.0.
69628         * tests/test-vasprintf-posix.c (NaN): New function/macro.
69629         (test_function): Use it instead of 0.0 / 0.0.
69630         * tests/test-snprintf-posix.h (NaN): New function/macro.
69631         (test_function): Use it instead of 0.0 / 0.0.
69632         * tests/test-sprintf-posix.h (NaN): New function/macro.
69633         (test_function): Use it instead of 0.0 / 0.0.
69634         * tests/test-fprintf-posix.h (NaN): New function/macro.
69635         (test_function): Use it instead of 0.0 / 0.0.
69636         * tests/test-printf-posix.h (NaN): New function/macro.
69637         (test_function): Use it instead of 0.0 / 0.0.
69638
69639         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
69640
69641 2007-03-25  Bruno Haible  <bruno@clisp.org>
69642
69643         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
69644
69645 2007-03-25  Bruno Haible  <bruno@clisp.org>
69646
69647         * lib/regexec.c (merge_state_with_log): Make static.
69648
69649 2007-03-25  Bruno Haible  <bruno@clisp.org>
69650
69651         * lib/trigl.c (kernel_rem_pio2): Make static.
69652
69653 2007-03-25  Bruno Haible  <bruno@clisp.org>
69654
69655         * lib/sincosl.c (sincosl_table): Make static.
69656
69657 2007-03-25  Bruno Haible  <bruno@clisp.org>
69658
69659         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
69660         if the compiler does not support C99.
69661
69662 2007-03-25  Bruno Haible  <bruno@clisp.org>
69663
69664         * modules/time (Makefile.am): Ensure all rule action lines start with a
69665         tab.
69666
69667 2007-03-24  Bruno Haible  <bruno@clisp.org>
69668
69669         * modules/tsearch-tests: New file.
69670         * tests/test-tsearch.sh: New file.
69671         * tests/test-tsearch.c: New file, mostly copied from glibc.
69672
69673         * modules/search-tests: New file.
69674         * tests/test-search.c: New file.
69675
69676         * modules/search: New file.
69677         * lib/search_.h: New file, incorporating lib/tsearch.h.
69678         * m4/search_h.m4: New file.
69679         * lib/tsearch.h: Remove file.
69680         * lib/tsearch.c: Include search.h instead of tsearch.h.
69681         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
69682         HAVE_TSEARCH.
69683         * modules/tsearch (Files): Remove lib/tsearch.h.
69684         (Depends-on): Add search.
69685         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
69686         (Include): Change tsearch.h into search.h.
69687
69688 2007-03-24  Bruno Haible  <bruno@clisp.org>
69689
69690         * modules/fpucw: New file.
69691         * lib/fpucw.h: New file.
69692         * lib/frexp.c: Include fpucw.h.
69693         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
69694         (FUNC): Use them.
69695         * lib/printf-frexp.c: Include fpucw.h.
69696         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
69697         (FUNC): Use them.
69698         * lib/vasnprintf.c: Include fpucw.h.
69699         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
69700         'long double' calculations.
69701         * tests/test-frexpl.c: Include fpucw.h.
69702         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
69703         * tests/test-printf-frexpl.c: Include fpucw.h.
69704         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
69705         * modules/frexpl (Depends-on): Add fpucw.
69706         * modules/printf-frexpl (Depends-on): Likewise.
69707         * modules/fprintf-posix (Depends-on): Likewise.
69708         * modules/snprintf-posix (Depends-on): Likewise.
69709         * modules/sprintf-posix (Depends-on): Likewise.
69710         * modules/vasnprintf-posix (Depends-on): Likewise.
69711         * modules/vasprintf-posix (Depends-on): Likewise.
69712         * modules/vfprintf-posix (Depends-on): Likewise.
69713         * modules/vsnprintf-posix (Depends-on): Likewise.
69714         * modules/vsprintf-posix (Depends-on): Likewise.
69715         * modules/frexpl-tests (Depends-on): Likewise.
69716         * modules/printf-frexpl-tests (Depends-on): Likewise.
69717
69718 2007-03-24  Bruno Haible  <bruno@clisp.org>
69719
69720         * lib/float+.h: New file.
69721         * lib/isnan.c: Include float+.h.
69722         (SIZE): New macro.
69723         (FUNC): Compare only SIZE bytes of the value.
69724         * lib/vasnprintf.c: Include float+.h.
69725         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
69726         SIZEOF_LDBL or SIZEOF_DBL bytes.
69727         * modules/isnan-nolibm (Files): Add lib/float+.h.
69728         * modules/isnanl-nolibm (Files): Add lib/float+.h.
69729         * modules/isnanl (Files): Add lib/float+.h.
69730         * modules/vasnprintf (Files): Add lib/float+.h.
69731
69732 2007-03-24  Bruno Haible  <bruno@clisp.org>
69733
69734         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
69735         include isnanl-nolibm.h.
69736
69737 2007-03-24  Bruno Haible  <bruno@clisp.org>
69738
69739         * tests/test-read-file.c (main): Don't produce spurious output for
69740         expected situations. Make the test fail if it encountered unexpected
69741         results.
69742
69743 2007-03-24  Bruno Haible  <bruno@clisp.org>
69744
69745         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
69746         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
69747
69748 2007-03-24  Bruno Haible  <bruno@clisp.org>
69749
69750         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
69751
69752 2007-03-24  Bruno Haible  <bruno@clisp.org>
69753
69754         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
69755         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
69756
69757         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
69758         * modules/utf8-ucs4: Turn into a symbolic link to module
69759         unistr/u8-mbtouc.
69760
69761         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
69762         utf8-ucs4-unsafe.
69763         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
69764         unistr/u8-mbtouc-unsafe.
69765
69766         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
69767         * modules/utf16-ucs4: Turn into a symbolic link to module
69768         unistr/u16-mbtouc.
69769
69770         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
69771         utf16-ucs4-unsafe.
69772         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
69773         unistr/u16-mbtouc-unsafe.
69774
69775         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
69776         * modules/ucs4-utf8: Turn into a symbolic link to module
69777         unistr/u8-ubtomb.
69778
69779         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
69780         * modules/ucs4-utf16: Turn into a symbolic link to module
69781         unistr/u16-ubtomb.
69782
69783 2007-03-24  Bruno Haible  <bruno@clisp.org>
69784
69785         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
69786         Enable the function only if HAVE_INLINE.
69787         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
69788         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
69789         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
69790         Enable the function only if HAVE_INLINE.
69791         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
69792         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
69793         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
69794         Enable the function only if HAVE_INLINE.
69795         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
69796         Enable the function only if HAVE_INLINE.
69797         * modules/utf8-ucs4: Update.
69798         * modules/utf8-ucs4-unsafe: Update.
69799         * modules/utf16-ucs4: Update.
69800         * modules/utf16-ucs4-unsafe: Update.
69801         * modules/ucs4-utf8: Update.
69802         * modules/ucs4-utf16: Update.
69803
69804 2007-03-24  Bruno Haible  <bruno@clisp.org>
69805
69806         * lib/utf8-ucs4.h: Remove file.
69807         * lib/utf8-ucs4-unsafe.h: Remove file.
69808         * lib/utf16-ucs4.h: Remove file.
69809         * lib/utf16-ucs4-unsafe.h: Remove file.
69810         * lib/ucs4-utf8.h: Remove file.
69811         * lib/ucs4-utf16.h: Remove file.
69812         * lib/unistr.h: Include their previous contents.
69813         * m4/utf-ucs4.m4: Remove file.
69814         * m4/ucs4-utf.m4: Remove file.
69815         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
69816         (Depends-on): Add unistr/base.
69817         (configure.ac): Remove gl_UTF_UCS4.
69818         (Makefile.am): Update.
69819         (Include): Change to unistr.h.
69820         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
69821         (Depends-on): Add unistr/base.
69822         (configure.ac): Remove gl_UTF_UCS4.
69823         (Makefile.am): Update.
69824         (Include): Change to unistr.h.
69825         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
69826         (Depends-on): Add unistr/base.
69827         (configure.ac): Remove gl_UTF_UCS4.
69828         (Makefile.am): Update.
69829         (Include): Change to unistr.h.
69830         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
69831         (Depends-on): Add unistr/base.
69832         (configure.ac): Remove gl_UTF_UCS4.
69833         (Makefile.am): Update.
69834         (Include): Change to unistr.h.
69835         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
69836         (Depends-on): Add unistr/base.
69837         (configure.ac): Remove gl_UCS4_UTF.
69838         (Makefile.am): Update.
69839         (Include): Change to unistr.h.
69840         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
69841         (Depends-on): Add unistr/base.
69842         (configure.ac): Remove gl_UCS4_UTF.
69843         (Makefile.am): Update.
69844         (Include): Change to unistr.h.
69845         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
69846         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
69847         utf8-ucs4-unsafe.h.
69848         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
69849         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
69850         utf16-ucs4-unsafe.h.
69851         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
69852         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
69853         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
69854         * lib/unistr/u8-strchr.c: Likewise.
69855         * lib/unistr/u8-strrchr.c: Likewise.
69856         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
69857         * lib/unistr/u16-strchr.c: Likewise.
69858         * lib/unistr/u16-strrchr.c: Likewise.
69859         * lib/striconveh.c: Update.
69860         * lib/linebreak.c: Update.
69861
69862 2007-03-24  Bruno Haible  <bruno@clisp.org>
69863
69864         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
69865         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
69866
69867 2007-03-22  Bruno Haible  <bruno@clisp.org>
69868
69869         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
69870
69871 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
69872
69873         * MODULES.html.sh (File system functions): New module write-any-file.
69874         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
69875         * m4/write-any-file.m4: New files.
69876
69877 2007-03-23  Eric Blake  <ebb9@byu.net>
69878
69879         * gnulib-tool: Rearrange space-tab sequences, since some editors
69880         like to eat them.
69881
69882 2007-03-23  Eric Blake  <ebb9@byu.net>
69883
69884         * lib/version-etc.c (version_etc_va): Update license wording to
69885         be more concise.  Recommended by Richard Stallman.
69886
69887 2007-03-22  Bruno Haible  <bruno@clisp.org>
69888
69889         * lib/poll.c (MSG_PEEK): New fallback definition.
69890
69891 2007-03-22  Bruno Haible  <bruno@clisp.org>
69892
69893         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
69894         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
69895         (main): Update.
69896         Fixes a compilation error on BeOS.
69897
69898 2007-03-22  Bruno Haible  <bruno@clisp.org>
69899
69900         * modules/frexpl-tests: New file.
69901         * tests/test-frexpl.c: New file.
69902
69903         * modules/frexpl: New file.
69904         * m4/frexpl.m4: New file.
69905         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
69906         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
69907         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
69908         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
69909         (Depends-on): Add frexpl. Remove isnanl-nolibm.
69910         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
69911
69912 2007-03-22  Bruno Haible  <bruno@clisp.org>
69913
69914         * lib/frexpl.c: Share code with lib/frexp.c.
69915         * modules/mathl (Files): Add lib/frexp.c.
69916         (Depends-on): Add isnanl-nolibm.
69917
69918 2007-03-22  Bruno Haible  <bruno@clisp.org>
69919
69920         * modules/printf-frexp (Files): Add m4/frexp.m4.
69921         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
69922         only if the found frexp function actually works.
69923
69924 2007-03-22  Bruno Haible  <bruno@clisp.org>
69925
69926         * lib/frexp.c: Remove older implementation that uses divisions.
69927
69928 2007-03-21  Bruno Haible  <bruno@clisp.org>
69929
69930         * modules/frexp-tests: New file.
69931         * tests/test-frexp.c: New file.
69932
69933         * modules/frexp: New file.
69934         * lib/frexp.c: New file.
69935         * m4/frexp.m4: New file.
69936         * lib/math_.h (frexp): New declaration.
69937         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
69938         REPLACE_FREXP.
69939         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
69940
69941 2007-03-21  Bruno Haible  <bruno@clisp.org>
69942
69943         * modules/isnanl-tests: New file.
69944         * tests/test-isnanl.c: New file.
69945
69946         * modules/isnanl: New file.
69947         * lib/isnanl.h: New file.
69948         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
69949         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
69950         gl_FUNC_ISNANL_WORKS.
69951         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
69952         New macros.
69953
69954 2007-03-21  Bruno Haible  <bruno@clisp.org>
69955
69956         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
69957         lib/isnanl.h.
69958         (Include): Update.
69959         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
69960         * lib/vasnprintf.c: Update.
69961         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
69962         tests/test-isnanl.h, remove tests/test-isnanl.c.
69963         (Makefile.am): Update.
69964         * tests/test-isnanl-nolibm.c: New file.
69965         * tests/test-isnanl.h: New file.
69966         * tests/test-isnanl.c: Remove file.
69967
69968 2007-03-21  Jim Meyering  <jim@meyering.net>
69969
69970         When trying to open ".", treat ESTALE like EACCES.
69971         * lib/savewd.c (savewd_save): Resort to forking not just upon
69972         failure with EACCES, but also when errno is ESTALE.
69973
69974 2007-03-20  Bruno Haible  <bruno@clisp.org>
69975
69976         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
69977         Needed on AIX 5.1. Reported by Matthew Woehlke.
69978
69979 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
69980
69981         Suggestions by Bruno Haible:
69982         * lib/acl-internal.h: Include "gettext.h" rather than rolling
69983         our own.
69984         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
69985         * modules/acl (Depends-on): Add gettext.
69986
69987 2007-03-19  Bruno Haible  <bruno@clisp.org>
69988
69989         * modules/iconvme: Remove file.
69990         * lib/iconvme.h: Remove file.
69991         * lib/iconvme.c: Remove file.
69992         * m4/iconvme.m4: Remove file.
69993
69994 2007-03-19  Bruno Haible  <bruno@clisp.org>
69995
69996         * doc/relocatable-maint.texi: Break long shell script line.
69997         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
69998
69999 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
70000
70001         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
70002         handle file_has_acl.
70003         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
70004         * lib/acl.c: Move header inclusions and related macro defns into
70005         lib/acl-internal.h.
70006         (S_ISLNK): Remove defn, since that's now done for us.
70007         (file_has_acl): Move to lib/file-has-acl.c.
70008         Call acl_trivial if available.  This is the crucial part of the fix.
70009         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
70010         shared within the library.  Rewrite a bit, partly to make it compatible
70011         with the GNU coding style.
70012         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
70013         Remove unnecessary double-quotes.
70014         Don't test for acl_to_text; the build will catch that.
70015         Replace acl_entries if it doesn't exist and it is needed.
70016         Check for -lsec and acl_trivial (as used on Solaris 10).
70017         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
70018         lib/file-has-acl.c.
70019         (Depends-on): Add sys_stat, for S_ISLNK.
70020
70021 2007-03-19  Ben Pfaff  <blp@gnu.org>
70022
70023         * doc/gnulib.texi: Fix typos.
70024         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
70025
70026 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
70027
70028         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
70029         If size is zero here, buf must be zero.
70030
70031 2007-03-19  Simon Josefsson  <simon@josefsson.org>
70032
70033         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
70034         <bruno@clisp.org>.
70035
70036 2007-03-18  Bruno Haible  <bruno@clisp.org>
70037
70038         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
70039         Suggested by Eric Blake.
70040
70041 2007-03-18  Ben Pfaff  <blp@gnu.org>
70042
70043         * doc/relocatable.texi: Recommend using as prefix a directory
70044         that does not exist and will never be created.  Based on
70045         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
70046         and others.
70047
70048 2007-03-17  Bruno Haible  <bruno@clisp.org>
70049
70050         * lib/fchownat.c: Include lchown.h.
70051
70052 2007-03-17  Bruno Haible  <bruno@clisp.org>
70053
70054         Fix endless loop when the given allocated size was > INT_MAX.
70055         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
70056         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
70057         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
70058         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
70059         * lib/sprintf.c (sprintf): Likewise.
70060
70061 2007-03-17  Bruno Haible  <bruno@clisp.org>
70062
70063         * tests/test-argp-2.sh (func_compare): Output a context diff.
70064
70065 2007-03-17  Bruno Haible  <bruno@clisp.org>
70066
70067         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
70068         locale's decimal-point character.
70069
70070 2007-03-17  Bruno Haible  <bruno@clisp.org>
70071
70072         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
70073         before comparing it. Needed because on some platforms (e.g. x86) a
70074         'long double' occupies less bytes than sizeof (long double).
70075
70076 2007-03-17  Bruno Haible  <bruno@clisp.org>
70077
70078         * tests/test-crc.c (main): Make printf statements 64-bit clean.
70079         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
70080         * tests/test-getaddrinfo.c (simple): Likewise.
70081         * tests/test-read-file.c (main): Likewise.
70082
70083 2007-03-17  Bruno Haible  <bruno@clisp.org>
70084
70085         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
70086
70087 2007-03-17  Bruno Haible  <bruno@clisp.org>
70088
70089         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
70090         unused variable.
70091
70092 2007-03-17  Bruno Haible  <bruno@clisp.org>
70093
70094         * tests/test-c-strcasecmp.c: Include c-strcase.h.
70095         * tests/test-c-strncasecmp.c: Likewise.
70096
70097 2007-03-17  Bruno Haible  <bruno@clisp.org>
70098
70099         * modules/stdlib (Depends-on): Add unistd.
70100         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
70101         Needed for MacOS X 10.3.
70102
70103 2007-03-17  Bruno Haible  <bruno@clisp.org>
70104
70105         * lib/unistr/u-strdup.h: Include <stdlib.h>.
70106
70107 2007-03-17  Bruno Haible  <bruno@clisp.org>
70108
70109         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
70110
70111 2007-03-17  Bruno Haible  <bruno@clisp.org>
70112
70113         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
70114         to reflect files copied from gnulib (with or without modifications).
70115         Suggested by Jim Meyering.
70116
70117 2007-03-17  Eric Blake  <ebb9@byu.net>
70118
70119         * NEWS: Document stdlib change from 2007-02-18.
70120
70121 2007-03-17  Jim Meyering  <jim@meyering.net>
70122
70123         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
70124         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
70125         someone uses a name containing shell meta-characters.
70126         Reported by Alfred M. Szmidt.
70127
70128         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
70129
70130 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
70131
70132         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
70133         and copy gettext configuration files only if configure.ac contains
70134         a use of AM_GNU_GETTEXT_VERSION.
70135
70136 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
70137
70138         * build-aux/bootstrap (gnulib_name): New variable.
70139         (gnulib_tool_options): Use it.
70140
70141 2007-03-13  Simon Josefsson  <simon@josefsson.org>
70142
70143         * tests/test-des.c: Use new namespace.
70144
70145 2007-03-15  Bruno Haible  <bruno@clisp.org>
70146
70147         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
70148         Reported by James Youngman <jay@gnu.org>.
70149
70150 2007-03-15  Bruno Haible  <bruno@clisp.org>
70151
70152         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
70153         declared prototype. Needed with cc on OSF/1 5.1.
70154
70155 2007-03-15  Bruno Haible  <bruno@clisp.org>
70156
70157         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
70158         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
70159         (struct gl_list_implementation): Add dispose_fn argument to the
70160         'create_empty', 'create' methods.
70161         (struct gl_list_impl_base): Add field 'dispose_fn'.
70162         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
70163         argument.
70164         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
70165         dispose_fn argument.
70166         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
70167         dispose_fn on the dropped values.
70168         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
70169         dispose_fn argument.
70170         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
70171         dropped values.
70172         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
70173         (gl_tree_remove_node): Call dispose_fn on the dropped value.
70174         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
70175         (gl_tree_remove_node): Call dispose_fn on the dropped value.
70176         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
70177         argument.
70178         (gl_tree_list_free): Call dispose_fn on the dropped values.
70179         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
70180         the dropped values.
70181         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
70182         Add dispose_fn argument.
70183         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
70184         Call dispose_fn on the dropped values.
70185         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
70186         Add dispose_fn argument.
70187         (gl_sublist_create): Initialize the 'dispose_fn' field.
70188         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
70189         * tests/test-array_list.c (main): Update.
70190         * tests/test-carray_list.c (main): Update.
70191         * tests/test-avltree_list.c (main): Update.
70192         * tests/test-rbtree_list.c (main): Update.
70193         * tests/test-avltreehash_list.c (main): Update.
70194         * tests/test-rbtreehash_list.c (main): Update.
70195         * tests/test-linked_list.c (main): Update.
70196         * tests/test-linkedhash_list.c (main): Update.
70197         * tests/test-array_oset.c (main): Update.
70198
70199 2007-03-15  Bruno Haible  <bruno@clisp.org>
70200
70201         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
70202         (gl_oset_create_empty): Add dispose_fn argument.
70203         (struct gl_oset_implementation): Add dispose_fn argument to
70204         'create_empty' method.
70205         (struct gl_oset_impl_base): Add dispose_fn field.
70206         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
70207         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
70208         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
70209         values.
70210         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
70211         (gl_tree_oset_free): Call dispose_fn on the dropped values.
70212         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
70213         dropped value.
70214         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
70215         dropped value.
70216         * tests/test-array_oset.c (main): Update.
70217         * tests/test-avltree_oset.c (main): Update.
70218         * tests/test-rbtree_oset.c (main): Update.
70219         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
70220
70221 2007-03-13  Bruno Haible  <bruno@clisp.org>
70222
70223         * tests/test-stdbool.c (i): Update after last patch.
70224
70225 2007-03-12  Bruno Haible  <bruno@clisp.org>
70226
70227         * lib/quotearg.c: Include <wctype.h> early, before the definition of
70228         the iswprint macro. Needed on Solaris 2.5.1.
70229
70230 2007-03-12  Bruno Haible  <bruno@clisp.org>
70231
70232         * tests/test-printf-frexp.c (main): Declare x as volatile.
70233
70234 2007-03-12  Simon Josefsson  <simon@josefsson.org>
70235
70236         * doc/gnulib.texi (Build robot for gnulib): New section.
70237
70238 2007-03-12  Jim Meyering  <jim@meyering.net>
70239
70240         * build-aux/bootstrap: New file.
70241         * build-aux/bootstrap.conf: New file, from coreutils.
70242
70243 2007-03-11  Bruno Haible  <bruno@clisp.org>
70244
70245         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
70246
70247 2007-03-12  Simon Josefsson  <simon@josefsson.org>
70248
70249         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
70250         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
70251         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
70252
70253 2007-03-11  Bruno Haible  <bruno@clisp.org>
70254
70255         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
70256         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
70257
70258 2007-03-11  Bruno Haible  <bruno@clisp.org>
70259
70260         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
70261         formula. Needed for SunPRO C 5.0.
70262
70263 2007-03-11  Bruno Haible  <bruno@clisp.org>
70264
70265         * modules/long-options (Depends-on): Add getopt.
70266
70267 2007-03-11  Bruno Haible  <bruno@clisp.org>
70268
70269         * modules/modechange (Depends-on): Add stdbool.
70270
70271 2007-03-11  Bruno Haible  <bruno@clisp.org>
70272
70273         * modules/i-ring (Depends-on): Add stdbool.
70274
70275 2007-03-11  Bruno Haible  <bruno@clisp.org>
70276
70277         * modules/gc-des (Depends-on): Add stdbool.
70278
70279 2007-03-11  Bruno Haible  <bruno@clisp.org>
70280
70281         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
70282
70283 2007-03-11  Bruno Haible  <bruno@clisp.org>
70284
70285         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
70286
70287 2007-03-11  Bruno Haible  <bruno@clisp.org>
70288
70289         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
70290
70291 2007-03-11  Bruno Haible  <bruno@clisp.org>
70292
70293         * lib/vasnprintf.c (sprintf): Undefine.
70294
70295 2007-03-11  Bruno Haible  <bruno@clisp.org>
70296
70297         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
70298         initializers in SunPRO C and Compaq C compilers.
70299
70300 2007-03-11  Bruno Haible  <bruno@clisp.org>
70301
70302         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
70303         decrementing code ANSI C compliant.
70304
70305 2007-03-11  Bruno Haible  <bruno@clisp.org>
70306
70307         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
70308         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
70309
70310 2007-03-11  Bruno Haible  <bruno@clisp.org>
70311
70312         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
70313         <stdbool.h> substitute doesn't pass.
70314
70315 2007-03-11  Bruno Haible  <bruno@clisp.org>
70316
70317         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
70318
70319 2007-03-11  Bruno Haible  <bruno@clisp.org>
70320
70321         * gnulib-tool (func_create_megatestdir): Create also an autobuild
70322         script, for submission to autobuild.josefsson.org.
70323
70324 2007-03-10  Bruno Haible  <bruno@clisp.org>
70325
70326         * modules/canonicalize-lgpl-tests: New file.
70327         * tests/test-canonicalize-lgpl.sh: New file.
70328         * tests/test-canonicalize-lgpl.c: New file.
70329
70330         * modules/c-strcase-tests: New file.
70331         * tests/test-c-strcase.sh: New file.
70332         * tests/test-c-strcasecmp.c: New file.
70333         * tests/test-c-strncasecmp.c: New file.
70334
70335         * modules/atexit-tests: New file.
70336         * tests/test-atexit.sh: New file.
70337         * tests/test-atexit.c: New file.
70338
70339 2007-03-10  Bruno Haible  <bruno@clisp.org>
70340
70341         * tests/test-binary-io.sh: Use temporary filenames that are not so
70342         likely to clash with those of other tests (in a parallel make).
70343         * tests/test-binary-io.c: Likewise.
70344
70345 2007-03-10  Bruno Haible  <bruno@clisp.org>
70346
70347         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
70348         fallback; use #error instead.
70349         Suggested by Simon Josefsson.
70350
70351 2007-03-10  Bruno Haible  <bruno@clisp.org>
70352
70353         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
70354         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
70355         first and the last.
70356
70357 2007-03-10  Bruno Haible  <bruno@clisp.org>
70358
70359         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
70360
70361 2007-03-10  Bruno Haible  <bruno@clisp.org>
70362
70363         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
70364         "make distcheck".
70365         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
70366         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
70367         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
70368
70369 2007-03-10  Bruno Haible  <bruno@clisp.org>
70370
70371         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
70372         variable.
70373         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
70374         variable.
70375
70376 2007-03-09  Eric Blake  <ebb9@byu.net>
70377         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
70378
70379         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
70380         types are not being provided by gnulib.
70381         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
70382         types are supported.
70383
70384 2007-03-10  Bruno Haible  <bruno@clisp.org>
70385
70386         * lib/stdio_.h (__attribute__): New macro.
70387         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
70388         vsprintf): Specify __attribute__ __format__ for GCC.
70389         Suggested by Eric Blake.
70390
70391 2007-03-09  Bruno Haible  <bruno@clisp.org>
70392
70393         * modules/printf-posix-tests: New file.
70394         * tests/test-printf-posix.sh: New file.
70395         * tests/test-printf-posix.c: New file.
70396
70397         * modules/printf-posix: New file.
70398         * lib/printf.c: New file.
70399         * m4/printf-posix-rpl.m4: New file.
70400         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
70401         REPLACE_PRINTF.
70402         * lib/stdio_.h (printf): New declaration.
70403         (format, __format__, ____printf____, ____scanf____, ____strftime____,
70404         ____strfmon____): New macros.
70405         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
70406         REPLACE_PRINTF.
70407
70408 2007-03-09  Bruno Haible  <bruno@clisp.org>
70409
70410         * tests/test-vasnprintf-posix2.sh: New file.
70411         * tests/test-vasnprintf-posix2.c: New file.
70412         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
70413         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
70414         (Makefile.am): Activate test-vasnprintf-posix2.sh.
70415
70416         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
70417         a locale dependent decimal point, rather than always '.'.
70418
70419 2007-03-09  Eric Blake  <ebb9@byu.net>
70420
70421         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
70422         spite of platforms like Tandem/NSK that define it to -1.
70423
70424 2007-03-08  Bruno Haible  <bruno@clisp.org>
70425
70426         * modules/vprintf-posix-tests: New file.
70427         * tests/test-vprintf-posix.sh: New file.
70428         * tests/test-vprintf-posix.c: New file.
70429         * tests/test-printf-posix.h: New file.
70430
70431         * modules/vprintf-posix: New file.
70432         * lib/vprintf.c: New file.
70433         * m4/vprintf-posix.m4: New file.
70434         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
70435         REPLACE_VPRINTF.
70436         * lib/stdio_.h (vprintf): New declaration.
70437         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
70438         REPLACE_VPRINTF.
70439
70440 2007-03-08  Bruno Haible  <bruno@clisp.org>
70441
70442         * modules/fprintf-posix-tests: New file.
70443         * tests/test-fprintf-posix.sh: New file.
70444         * tests/test-fprintf-posix.c: New file.
70445
70446         * modules/fprintf-posix: New file.
70447         * lib/fprintf.c: New file.
70448         * m4/fprintf-posix.m4: New file.
70449         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
70450         REPLACE_FPRINTF.
70451         * lib/stdio_.h (fprintf): New declaration.
70452         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
70453         REPLACE_FPRINTF.
70454
70455 2007-03-08  Bruno Haible  <bruno@clisp.org>
70456
70457         * modules/vfprintf-posix-tests: New file.
70458         * tests/test-vfprintf-posix.sh: New file.
70459         * tests/test-vfprintf-posix.c: New file.
70460         * tests/test-fprintf-posix.h: New file.
70461         * tests/test-fprintf-posix.out: New file.
70462
70463         * modules/vfprintf-posix: New file.
70464         * lib/vfprintf.c: New file.
70465         * m4/vfprintf-posix.m4: New file.
70466         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
70467         REPLACE_VFPRINTF.
70468         * lib/stdio_.h (vfprintf): New declaration.
70469         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
70470         REPLACE_VFPRINTF.
70471
70472 2007-03-08  Bruno Haible  <bruno@clisp.org>
70473
70474         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
70475
70476 2007-03-08  Bruno Haible  <bruno@clisp.org>
70477
70478         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
70479         instead of 'expr' invocations.
70480         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70481         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70482         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70483         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70484         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70485         Suggested by Paul Eggert.
70486
70487 2007-03-08  Bruno Haible  <bruno@clisp.org>
70488
70489         * modules/fseterr-tests: New file.
70490         * tests/test-fseterr.c: New file.
70491
70492         * modules/fseterr: New file.
70493         * lib/fseterr.h: New file.
70494         * lib/fseterr.c: New file.
70495
70496 2007-03-08  Bruno Haible  <bruno@clisp.org>
70497
70498         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
70499         * lib/getopt_.h: Likewise.
70500         * lib/mbswidth.h: Likewise.
70501         * lib/setenv.h: Likewise.
70502         * lib/vasnprintf.h: Likewise.
70503         * lib/vasprintf.h: Likewise.
70504         * lib/verror.h: Likewise.
70505         * lib/xsetenv.h: Likewise.
70506         * lib/xvasprintf.h: Likewise.
70507
70508 2007-03-08  Jim Meyering  <jim@meyering.net>
70509
70510         * users.txt: Add parted.
70511
70512         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
70513
70514 2007-03-07  Bruno Haible  <bruno@clisp.org>
70515
70516         * m4/printf.m4: Make the shell script snippets copy&pastable.
70517
70518 2007-03-02  Bruno Haible  <bruno@clisp.org>
70519
70520         * lib/netinet_in_.h: New file.
70521         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
70522         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
70523         * modules/netinet_in (Files): Add lib/netinet_in_.h.
70524         (Depends-on): Add absolute-header.
70525         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
70526         into netinet/in.h.
70527
70528 2007-03-03  Bruno Haible  <bruno@clisp.org>
70529
70530         * lib/sys_select_.h: New file.
70531         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
70532         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
70533         * modules/sys_select (Files): Add lib/sys_select_.h.
70534         (Depends-on): Add absolute-header.
70535         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
70536         into sys/select.h.
70537
70538 2007-03-02  Bruno Haible  <bruno@clisp.org>
70539
70540         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
70541         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
70542         values.
70543         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
70544         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
70545         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
70546         * modules/sys_socket (Depends-on): Add absolute-header.
70547         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
70548         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
70549         (Include): Remove requirement of inclusion of <sys/types.h>.
70550
70551 2007-03-02  Bruno Haible  <bruno@clisp.org>
70552
70553         * lib/byteswap_.h (bswap_32): Fix formula.
70554
70555 2007-03-06  Bruno Haible  <bruno@clisp.org>
70556
70557         * modules/sprintf-posix-tests: New file.
70558         * tests/test-sprintf-posix.c: New file.
70559
70560         * modules/sprintf-posix: New file.
70561         * lib/sprintf.c: New file.
70562         * m4/sprintf-posix.m4: New file.
70563         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
70564         REPLACE_SPRINTF.
70565         * lib/stdio_.h (sprintf): New declaration.
70566         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
70567         REPLACE_SPRINTF.
70568
70569 2007-03-06  Bruno Haible  <bruno@clisp.org>
70570
70571         * modules/vsprintf-posix-tests: New file.
70572         * tests/test-vsprintf-posix.c: New file.
70573         * tests/test-sprintf-posix.h: New file.
70574
70575         * modules/vsprintf-posix: New file.
70576         * lib/vsprintf.c: New file.
70577         * m4/vsprintf-posix.m4: New file.
70578         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
70579         REPLACE_VSPRINTF.
70580         * lib/stdio_.h (vsprintf): New declaration.
70581         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
70582         REPLACE_VSPRINTF.
70583
70584 2007-03-06  Bruno Haible  <bruno@clisp.org>
70585
70586         * modules/vsnprintf (Depend-on): Remove minmax.
70587
70588 2007-03-06  Bruno Haible  <bruno@clisp.org>
70589
70590         * modules/snprintf-posix-tests: New file.
70591         * tests/test-snprintf-posix.c: New file.
70592
70593         * modules/snprintf-posix: New file.
70594         * m4/snprintf-posix.m4: New file.
70595         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
70596         gl_FUNC_SNPRINTF.
70597         (gl_FUNC_SNPRINTF): Invoke it.
70598         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
70599         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
70600         is set.
70601         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
70602
70603 2007-03-06  Bruno Haible  <bruno@clisp.org>
70604
70605         * modules/vsnprintf-posix-tests: New file.
70606         * tests/test-vsnprintf-posix.c: New file.
70607         * tests/test-snprintf-posix.h: New file.
70608
70609         * modules/vsnprintf-posix: New file.
70610         * m4/vsnprintf-posix.m4: New file.
70611         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
70612         gl_FUNC_VSNPRINTF.
70613         (gl_FUNC_VSNPRINTF): Invoke it.
70614         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
70615         * lib/stdio_.h (vsnprintf): Define as a replacement if
70616         REPLACE_VSNPRINTF is set.
70617         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
70618
70619 2007-03-06  Bruno Haible  <bruno@clisp.org>
70620
70621         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
70622         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
70623
70624 2007-03-06  Bruno Haible  <bruno@clisp.org>
70625
70626         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
70627         (asinl): Declare also if HAVE_DECL_ASINL is set.
70628         (atanl): Declare also if HAVE_DECL_ATANL is set.
70629         (ceill): Declare also if HAVE_DECL_CEILL is set.
70630         (cosl): Declare also if HAVE_DECL_COSL is set.
70631         (expl): Declare also if HAVE_DECL_EXPL is set.
70632         (floorl): Declare also if HAVE_DECL_FLOORL is set.
70633         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
70634         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
70635         (logl): Declare also if HAVE_DECL_LOGL is set.
70636         (sinl): Declare also if HAVE_DECL_SINL is set.
70637         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
70638         (tanl): Declare also if HAVE_DECL_TANL is set.
70639         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
70640         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
70641         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
70642         declaration of frexpl, ldexpl.
70643         * modules/printf-frexpl (Depends-on): Add math.
70644         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
70645
70646 2007-03-05  Bruno Haible  <bruno@clisp.org>
70647
70648         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
70649         frexpl and ldexpl are declared.
70650         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
70651
70652 2007-03-05  Bruno Haible  <bruno@clisp.org>
70653
70654         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
70655         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
70656
70657 2007-03-05  Bruno Haible  <bruno@clisp.org>
70658
70659         * lib/stdio_.h: Include <stddef.h>.
70660
70661 2007-03-05  Bruno Haible  <bruno@clisp.org>
70662
70663         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
70664
70665 2007-03-05  Bruno Haible  <bruno@clisp.org>
70666
70667         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
70668         NetBSD 4, from Ralf Wildenhues.
70669
70670 2007-03-04  Bruno Haible  <bruno@clisp.org>
70671
70672         * lib/vasprintf.h: Update #if logic for the case when the functions
70673         exist but are overridden.
70674
70675 2007-03-04  Bruno Haible  <bruno@clisp.org>
70676
70677         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
70678         implementations: glibc-2.4 and MacOS X 10.3.
70679         * tests/test-vasnprintf-posix.c (test_function): Test also the case
70680         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
70681         * tests/test-vasprintf-posix.c (test_function): Likewise.
70682
70683 2007-03-04  Bruno Haible  <bruno@clisp.org>
70684
70685         * modules/vasprintf-posix-tests: New file.
70686         * tests/test-vasprintf-posix.c: New file.
70687
70688         * modules/vasprintf-posix: New file.
70689         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
70690         defined.
70691         * m4/vasprintf-posix.m4: New file.
70692         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
70693         gl_FUNC_VASPRINTF.
70694         (gl_FUNC_VASPRINTF): Invoke it.
70695         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
70696         here.
70697         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
70698
70699 2007-03-04  Bruno Haible  <bruno@clisp.org>
70700
70701         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
70702         REPLACE_GETTIMEOFDAY.
70703         * modules/sys_time (Makefile.am): Likewise.
70704         * m4/sys_time_h.m4: Likewise.
70705         * m4/gettimeofday.m4: Likewise.
70706
70707 2007-03-04  Bruno Haible  <bruno@clisp.org>
70708
70709         * modules/vasnprintf-posix-tests: New file.
70710         * tests/test-vasnprintf-posix.c: New file.
70711
70712         * modules/vasnprintf-posix: New file.
70713         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
70714         printf-frexpl.h.
70715         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
70716         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
70717         REPLACE_VASNPRINTF is defined.
70718         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
70719         gl_FUNC_VASNPRINTF.
70720         (gl_FUNC_VASNPRINTF): Invoke it.
70721         * m4/vasnprintf-posix.m4: New file.
70722         * m4/printf.m4: New file.
70723
70724 2007-03-04  Bruno Haible  <bruno@clisp.org>
70725
70726         Compile progreloc.c only if --enable-relocatable is specified.
70727         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
70728         if --enable-relocatable was specified.
70729         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
70730         lib_SOURCES.
70731
70732 2007-03-04  Jim Meyering  <jim@meyering.net>
70733
70734         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
70735         Use it consistently, rather than enumerating errno constants.
70736
70737 2007-03-04  Bruno Haible  <bruno@clisp.org>
70738
70739         * modules/xvasprintf-tests: New file.
70740         * tests/test-xvasprintf.c: New file.
70741
70742         * modules/vasprintf-tests: New file.
70743         * tests/test-vasprintf.c: New file.
70744
70745         * modules/vasnprintf-tests: New file.
70746         * tests/test-vasnprintf.c: New file.
70747
70748         * modules/vsnprintf-tests: New file.
70749         * tests/test-vsnprintf.c: New file.
70750
70751         * modules/snprintf-tests: New file.
70752         * tests/test-snprintf.c: New file.
70753
70754 2007-03-04  Bruno Haible  <bruno@clisp.org>
70755
70756         Compile relocatable.c only if --enable-relocatable is specified.
70757         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
70758         gl_RELOCATABLE_LIBRARY.
70759         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
70760         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
70761         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
70762         gl_RELOCATABLE_LIBRARY.
70763         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
70764         (Makefile.am): Remove lib_SOURCES.
70765         * modules/relocatable-lib-lgpl (configure.ac): Invoke
70766         gl_RELOCATABLE_LIBRARY.
70767         (Makefile.am): Remove lib_SOURCES.
70768         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
70769         always.
70770         * modules/relocatable-prog-wrapper (configure.ac): Invoke
70771         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
70772
70773 2007-03-04  Bruno Haible  <bruno@clisp.org>
70774
70775         * modules/argmatch-tests: New file.
70776         * tests/test-argmatch.c: New file.
70777
70778         * tests/test-allocsa.c (main): Halve the number of loop runs.
70779
70780         * modules/alloca-opt-tests: New file.
70781         * tests/test-alloca-opt.c: New file.
70782
70783 2007-03-04  Jim Meyering  <jim@meyering.net>
70784
70785         Work around difference between Linux ACLs and Solaris 10 ZFS.
70786         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
70787         for EINVAL.
70788
70789 2007-03-03  Bruno Haible  <bruno@clisp.org>
70790
70791         * modules/relocatable-prog (Depends-on): Add back progreloc's
70792         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
70793
70794 2007-03-03  Bruno Haible  <bruno@clisp.org>
70795
70796         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
70797         * modules/relocatable-lib: New file.
70798
70799 2007-03-03  Bruno Haible  <bruno@clisp.org>
70800
70801         * modules/relocatable-prog: Renamed from modules/relocatable.
70802         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
70803
70804 2007-03-03  Bruno Haible  <bruno@clisp.org>
70805
70806         * modules/relocatable-script (Files): Add doc/relocatable.texi,
70807         m4/relocatable-lib.m4.
70808         (Depends-on): Remove 'relocatable'.
70809         (configure.ac): Add gl_RELOCATABLE_NOP.
70810
70811 2007-03-03  Bruno Haible  <bruno@clisp.org>
70812
70813         * modules/relocatable-prog-wrapper: New file.
70814         * modules/relocatable (Depends-on): Add it. Remove all other
70815         dependencies except progname.
70816         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
70817
70818         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
70819         (gl_FUNC_STRERROR): Nop.
70820         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
70821
70822         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
70823         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
70824
70825         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
70826         (gl_FUNC_READLINK): Update.
70827
70828         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
70829
70830 2007-03-03  Bruno Haible  <bruno@clisp.org>
70831
70832         * lib/xreadlink.c: Include <unistd.h> unconditionally.
70833         * modules/xreadlink (Depends-on): Add unistd.
70834         * modules/xreadlink-with-size (Depends-on): Likewise.
70835
70836 2007-03-03  Bruno Haible  <bruno@clisp.org>
70837
70838         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
70839         extracted from gt_FUNC_SETENV.
70840         (gt_FUNC_SETENV): Remove macro.
70841         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
70842         remove gt_FUNC_SETENV.
70843
70844 2007-03-03  Bruno Haible  <bruno@clisp.org>
70845
70846         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
70847         ENABLE_RELOCATABLE here.
70848         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
70849
70850 2007-03-03  Bruno Haible  <bruno@clisp.org>
70851
70852         * modules/rbtreehash-list-tests (Depends-on): Add progname.
70853         * tests/test-rbtreehash_list.c: Include progname.h.
70854         (main): Call set_program_name.
70855
70856         * modules/rbtree-oset-tests (Depends-on): Add progname.
70857         * tests/test-rbtree_oset.c: Include progname.h.
70858         (main): Call set_program_name.
70859
70860         * modules/rbtree-list-tests (Depends-on): Add progname.
70861         * tests/test-rbtree_list.c: Include progname.h.
70862         (main): Call set_program_name.
70863
70864         * modules/linked-list-tests (Depends-on): Add progname.
70865         * tests/test-linked_list.c: Include progname.h.
70866         (main): Call set_program_name.
70867
70868 2007-03-03  Bruno Haible  <bruno@clisp.org>
70869
70870         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
70871         All uses of __restrict changed to _Restrict_.
70872         * lib/glob_.h (__restrict): Remove macro.
70873
70874 2007-03-02  Bruno Haible  <bruno@clisp.org>
70875
70876         * modules/gettext (configure.ac): Require gettext infrastructure
70877         from version 0.16.1.
70878
70879 2007-03-02  Bruno Haible  <bruno@clisp.org>
70880
70881         * modules/linkedhash-list-tests (Depends-on): Add progname.
70882         * tests/test-linkedhash_list.c: Include progname.h.
70883         (main): Call set_program_name.
70884
70885         * modules/carray-list-tests (Depends-on): Add progname.
70886         * tests/test-carray_list.c: Include progname.h.
70887         (main): Call set_program_name.
70888
70889         * modules/avltreehash-list-tests (Depends-on): Add progname.
70890         * tests/test-avltreehash_list.c: Include progname.h.
70891         (main): Call set_program_name.
70892
70893         * modules/avltree-oset-tests (Depends-on): Add progname.
70894         * tests/test-avltree_oset.c: Include progname.h.
70895         (main): Call set_program_name.
70896
70897         * modules/avltree-list-tests (Depends-on): Add progname.
70898         * tests/test-avltree_list.c: Include progname.h.
70899         (main): Call set_program_name.
70900
70901         * modules/array-oset-tests (Depends-on): Add progname.
70902         * tests/test-array_oset.c: Include progname.h.
70903         (main): Call set_program_name.
70904
70905         * modules/array-list-tests (Depends-on): Add progname.
70906         * tests/test-array_list.c: Include progname.h.
70907         (main): Call set_program_name.
70908
70909         * modules/argp-tests (Depends-on): Add progname.
70910         * tests/test-argp.c: Include argp.h first. Include progname.h.
70911         (main): Call set_program_name.
70912
70913 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
70914
70915         * doc/gnulib-tool.texi (Initial import): Reword description of
70916         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
70917         limited effect even if defined after the first system include.
70918
70919 2007-03-01  Bruno Haible  <bruno@clisp.org>
70920
70921         * build-aux/config.libpath: Update to libtool-1.5.22.
70922         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
70923
70924 2007-03-01  Bruno Haible  <bruno@clisp.org>
70925
70926         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
70927         foo_CFLAGS.
70928         Reported by Ralf Wildenhues.
70929
70930 2007-03-01  Bruno Haible  <bruno@clisp.org>
70931
70932         * build-aux/install-reloc: Remove object files left over by some
70933         compilers.
70934         Reported by Ralf Wildenhues.
70935
70936 2007-03-01  Bruno Haible  <bruno@clisp.org>
70937
70938         * build-aux/install-reloc: Break long lines.
70939
70940 2007-03-01  Bruno Haible  <bruno@clisp.org>
70941
70942         * doc/relocatable.texi: Document that it may not work on OpenBSD.
70943         Reported by Ralf Wildenhues.
70944
70945 2007-03-01  Bruno Haible  <bruno@clisp.org>
70946
70947         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
70948         include ordering constraints.
70949
70950 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
70951
70952         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
70953         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
70954         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
70955         as another example.
70956         * lib/time_.h: Fix misspelling.
70957         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
70958         Require gl_HEADER_TIME_H_DEFAULTS.
70959         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
70960         * m4/time_r.m4 (gl_TIME_R): Likewise.
70961         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
70962
70963 2007-03-01  Bruno Haible  <bruno@clisp.org>
70964
70965         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
70966         * m4/utimens.m4 (gl_UTIMENS): Likewise.
70967
70968 2007-03-01  Jim Meyering  <jim@meyering.net>
70969
70970         * modules/xreadlink (Maintainer): Add my name.
70971         * modules/xreadlink-with-size (Depends-on): Alphabetize.
70972
70973 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
70974             Bruno Haible  <bruno@clisp.org>
70975
70976         * build-aux/install-reloc: Compile also c-ctype.c.
70977         * build-aux/relocatable.sh.in: New file.
70978         * doc/relocatable.texi: New file.
70979         * doc/relocatable-maint.texi: New file.
70980         * doc/gnulib.texi: Include relocatable-maint.texi.
70981         * lib/progreloc.c: Include unistd.h unconditionally.
70982         * lib/relocwrapper.c: Include unistd.h unconditionally.
70983         Include c-ctype.h.
70984         (add_dotbin): Use c_tolower.
70985         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
70986         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
70987         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
70988         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
70989         to m4/relocatable-lib.m4.
70990         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
70991         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
70992         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
70993         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
70994         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
70995         * modules/relocatable: New file.
70996         * modules/relocatable-lib: New file.
70997         * modules/relocatable-script: New file.
70998
70999 2007-02-28  Bruno Haible  <bruno@clisp.org>
71000
71001         Import --enable-relocatable infrastructure.
71002         * build-aux/config.libpath: New file, from GNU gettext.
71003         * build-aux/install-reloc: New file, from GNU gettext.
71004         * build-aux/reloc-ldflags: New file, from GNU gettext.
71005         * lib/relocatable.h: New file, from GNU gettext.
71006         * lib/relocatable.c: New file, from GNU gettext.
71007         * lib/relocwrapper.c: New file, from GNU gettext.
71008         * m4/relocatable.m4: New file, from GNU gettext.
71009
71010 2007-02-28  Bruno Haible  <bruno@clisp.org>
71011
71012         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
71013
71014         * modules/xreadlink: New file, from GNU gettext with modifications.
71015         * lib/xreadlink.c: New file, from GNU gettext.
71016         * lib/xreadlink.h: Add comments.
71017         (xreadlink): New declaration.
71018
71019         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
71020         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
71021         lib/xreadlink-with-size.c.
71022         (configure.ac): Remove gl_XREADLINK invocation.
71023         (Makefile.am): Augment lib_SOURCES.
71024         * m4/xreadlink.m4: Remove file.
71025         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
71026         (xreadlink_with_size): Renamed from xreadink.
71027         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
71028         * modules/canonicalize (Depends-on): Replace xreadlink with
71029         xreadlink-with-size.
71030         * lib/canonicalize.c (canonicalize_filename_mode): Update.
71031
71032 2007-02-25  Jim Meyering  <jim@meyering.net>
71033
71034         * build-aux/announce-gen: When complaining about excess arguments,
71035         list them.
71036
71037 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
71038
71039         * README: Document signed integer overflow situation more
71040         accurately.
71041
71042 2007-02-25  Bruno Haible  <bruno@clisp.org>
71043
71044         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
71045         'a' or 'A' conversion.
71046
71047 2007-02-25  Bruno Haible  <bruno@clisp.org>
71048
71049         * modules/filename: Renamed from modules/pathname.
71050         (Files): Replace lib/pathname.h with lib/filename.h. Replace
71051         lib/concatpath.c with lib/concat-filename.c.
71052         (Makefile.am): Update.
71053         (Include): Replace pathname.h with filename.h.
71054         * lib/filename.h: Renamed from lib/pathname.h.
71055         (concatenated_filename): Renamed from concatenated_pathname.
71056         * lib/concat-filename.c: Renamed from lib/concatpath.c.
71057         (concatenated_filename): Renamed from concatenated_pathname.
71058         * lib/findprog.c: Include filename.h instead of pathname.h.
71059         (find_in_path): Update.
71060         * lib/javacomp.c: Include filename.h instead of pathname.h.
71061         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
71062         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
71063         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
71064         is_oldgcj_14_13_usable, is_javac_usable): Update.
71065         * lib/javaexec.c: Include filename.h instead of pathname.h.
71066         (execute_java_class): Update.
71067         * modules/findprog: Update.
71068         * modules/javacomp: Update.
71069         * modules/javaexec: Update.
71070         * MODULES.html.sh (File system functions): Add 'filename', remove
71071         'pathname'.
71072
71073 2007-02-25  Bruno Haible  <bruno@clisp.org>
71074
71075         * modules/printf-frexpl-tests: New file.
71076         * tests/test-printf-frexpl.c: New file.
71077
71078         * modules/printf-frexpl: New file.
71079         * lib/printf-frexpl.h: New file.
71080         * lib/printf-frexpl.c: New file.
71081         * m4/printf-frexpl.m4: New file.
71082
71083 2007-02-25  Bruno Haible  <bruno@clisp.org>
71084
71085         * modules/printf-frexp-tests: New file.
71086         * tests/test-printf-frexp.c: New file.
71087
71088         * modules/printf-frexp: New file.
71089         * lib/printf-frexp.h: New file.
71090         * lib/printf-frexp.c: New file.
71091         * m4/printf-frexp.m4: New file.
71092
71093 2007-02-25  Bruno Haible  <bruno@clisp.org>
71094
71095         Assume automake >= 1.10 for the tests.
71096         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
71097         * modules/arctwo-tests: Likewise.
71098         * modules/argp-tests: Likewise.
71099         * modules/avltree-list-tests: Likewise.
71100         * modules/avltree-oset-tests: Likewise.
71101         * modules/avltreehash-list-tests: Likewise.
71102         * modules/carray-list-tests: Likewise.
71103         * modules/crc-tests: Likewise.
71104         * modules/des-tests: Likewise.
71105         * modules/gc-arcfour-tests: Likewise.
71106         * modules/gc-arctwo-tests: Likewise.
71107         * modules/gc-des-tests: Likewise.
71108         * modules/gc-hmac-md5-tests: Likewise.
71109         * modules/gc-hmac-sha1-tests: Likewise.
71110         * modules/gc-md2-tests: Likewise.
71111         * modules/gc-md4-tests: Likewise.
71112         * modules/gc-md5-tests: Likewise.
71113         * modules/gc-pbkdf2-sha1-tests: Likewise.
71114         * modules/gc-rijndael-tests: Likewise.
71115         * modules/gc-sha1-tests: Likewise.
71116         * modules/gc-tests: Likewise.
71117         * modules/getaddrinfo-tests: Likewise.
71118         * modules/hmac-md5-tests: Likewise.
71119         * modules/hmac-sha1-tests: Likewise.
71120         * modules/linked-list-tests: Likewise.
71121         * modules/linkedhash-list-tests: Likewise.
71122         * modules/lock-tests: Likewise.
71123         * modules/md2-tests: Likewise.
71124         * modules/md4-tests: Likewise.
71125         * modules/md5-tests: Likewise.
71126         * modules/rbtree-list-tests: Likewise.
71127         * modules/rbtree-oset-tests: Likewise.
71128         * modules/rbtreehash-list-tests: Likewise.
71129         * modules/read-file-tests: Likewise.
71130         * modules/rijndael-tests: Likewise.
71131         * modules/stdint-tests: Likewise.
71132         * modules/tls-tests: Likewise.
71133
71134 2007-02-24  Bruno Haible  <bruno@clisp.org>
71135
71136         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
71137         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
71138         function; instead check whether isnan with a double argument links.
71139         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
71140         function; instead check whether isnan with a 'long double' argument
71141         links.
71142         Reported by Eric Blake <ebb9@byu.net>.
71143
71144 2007-02-24  Bruno Haible  <bruno@clisp.org>
71145
71146         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
71147         defined.
71148         * lib/isnanl.c: Remove all code. Just include isnan.c.
71149         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
71150
71151 2007-02-25  Jim Meyering  <jim@meyering.net>
71152
71153         Avoid conflicting types for 'unsetenv' on FreeBSD.
71154         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
71155         conflicting with FreeBSD's (5.0 and 6.1) function declaration
71156         in stdlib.h.
71157
71158 2007-02-24  Bruno Haible  <bruno@clisp.org>
71159
71160         * modules/isnanl-nolibm-tests: New file.
71161         * tests/test-isnanl.c: New file.
71162
71163         * modules/isnanl-nolibm: New file.
71164         * lib/isnanl.h: New file.
71165         * lib/isnanl.c: New file.
71166         * m4/isnanl.m4: New file.
71167
71168 2007-02-24  Bruno Haible  <bruno@clisp.org>
71169
71170         * modules/isnan-nolibm-tests: New file.
71171         * tests/test-isnan.c: New file.
71172
71173         * modules/isnan-nolibm: New file.
71174         * lib/isnan.h: New file.
71175         * lib/isnan.c: New file.
71176         * m4/isnan.m4: New file.
71177
71178 2007-02-24  Bruno Haible  <bruno@clisp.org>
71179
71180         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
71181         assume that an exponent fits in 20 bits.
71182
71183 2007-02-24  Jim Meyering  <jim@meyering.net>
71184
71185         * m4/regex.m4: Update the description of the configure-time option,
71186         --without-included-regex, to state accurately what the defaults are,
71187         and perhaps to give people an idea why using this option is risky.
71188
71189 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
71190
71191         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
71192         loops on small arguments.  This attempts to avoid the problem
71193         Bruno Haible reported for AIX 4.3.2 in
71194         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
71195
71196 2007-02-23  Bruno Haible  <bruno@clisp.org>
71197
71198         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
71199         Needed for help2man.
71200
71201 2007-02-23  Karl Berry  <karl@gnu.org>
71202
71203         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
71204         exists, foo.h should be cvs-ignored, not committed.
71205
71206 2007-02-23  Eric Blake  <ebb9@byu.net>
71207
71208         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
71209         * lib/stat-time.h (includes): Likewise.
71210         * lib/utimecmp.c (includes): Likewise.
71211         * lib/utimens.h (includes): Likewise.
71212         * lib/getdate.y (includes): Also include "timespec.h" for use
71213         internal to the module.
71214         * modules/utimens (Depends-on): Revert yesterday's patch.
71215         * modules/nanosleep (Depends-on): Add missing dependency.
71216
71217 2007-02-22  Bruno Haible  <bruno@clisp.org>
71218
71219         * lib/glob.c: Don't include getlogin_r.h.
71220
71221 2007-02-22  Jim Meyering  <jim@meyering.net>
71222
71223         * modules/utimens (Depends-on): Add timespec, required for
71224         utimens.h's inclusion of timespec.h.
71225
71226 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
71227
71228         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
71229         long unreadable paths in GNU/Linux.  Problem reported by Andreas
71230         Schwab in
71231         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
71232         I'll try to think of a better way to fix the Solaris problem.
71233
71234         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
71235         like glibc; on Solaris 10, it fails with errno == EINVAL.
71236         POSIX says the behavior is unspecified if the first argument is NULL,
71237         so play it safe and never pass NULL to the system getcwd.
71238
71239 2007-02-21  Jim Meyering  <jim@meyering.net>
71240
71241         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
71242         of gettimeofday.  It would conflict with the one now always
71243         provided via sys_time_.h.  Reported by Matthew Woehlke, as
71244         an IRIX 6.5 build failure.
71245
71246 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
71247
71248         Minor fixups to port to Solaris 10 with Sun C 5.8.
71249         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
71250         * modules/getcwd (Depends-on): Add dirfd.
71251         * lib/putenv.c (putenv): #undef it.
71252         (rpl_putenv): New decl.
71253         (malloc, free): Include <stdlib.h> rather than prototyping separately.
71254
71255 2007-02-20  Bruno Haible  <bruno@clisp.org>
71256
71257         * modules/stdio-tests: New file.
71258         * tests/test-stdio.c: New file.
71259
71260         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
71261         (Depends-on): Add stdio.
71262         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
71263         (Include): Use <stdio.h> instead of vsnprintf.h.
71264         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
71265         HAVE_DECL_VSNPRINTF.
71266         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
71267
71268         * modules/snprintf (Files): Remove lib/snprintf.h.
71269         (Depends-on): Add stdio.
71270         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
71271         (Include): Use <stdio.h> instead of snprintf.h.
71272         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
71273         HAVE_DECL_SNPRINTF.
71274         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
71275         * lib/getaddrinfo.c: Likewise.
71276
71277         * modules/stdio: New file.
71278         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
71279         * lib/snprintf.h: Remove file.
71280         * lib/vsnprintf.h: Remove file.
71281         * lib/.cppi-disable: Remove snprintf.h.
71282         * m4/stdio_h.m4: New file.
71283         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
71284
71285 2007-02-20  Jim Meyering  <jim@meyering.net>
71286
71287         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
71288         used by e.g., mingw.  From Bruno Haible.
71289
71290 2007-02-19  Bruno Haible  <bruno@clisp.org>
71291
71292         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
71293         warnings.
71294         Reported by Ben Pfaff <blp@cs.stanford.edu>.
71295
71296 2007-02-19  Bruno Haible  <bruno@clisp.org>
71297
71298         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
71299         from mingw users.
71300
71301 2007-02-19  Bruno Haible  <bruno@clisp.org>
71302
71303         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
71304         warnings.
71305         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
71306
71307 2007-02-19  Jim Meyering  <jim@meyering.net>
71308
71309         Don't use FD after a successful "fdopendir (fd)".
71310         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
71311         Reset it by calling dirfd on the just-obtained DIR*.
71312
71313         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
71314         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
71315
71316 2007-02-18  Bruno Haible  <bruno@clisp.org>
71317
71318         * lib/readlink.c: Include <unistd.h>.
71319         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
71320         HAVE_READLINK.
71321         * modules/readlink (Depends-on): Add unistd.
71322         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71323         (Include): Add <unistd.h>.
71324
71325         * lib/getlogin_r.h: Remove file.
71326         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
71327         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
71328         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
71329         HAVE_DECL_GETLOGIN_R.
71330         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
71331         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71332         (Include): Use <unistd.h> instead of getlogin_r.h.
71333
71334         * lib/getcwd.h: Remove file.
71335         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
71336         * lib/xgetcwd.c: Likewise.
71337         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
71338         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
71339         * modules/getcwd (Files): Remove lib/getcwd.h.
71340         (Depends-on): Add unistd.
71341         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71342         (Include): Use <unistd.h> instad of getcwd.h.
71343
71344         * lib/ftruncate.c: Include <unistd.h> first.
71345         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
71346         Set HAVE_FTRUNCATE.
71347         * modules/ftruncate (Depends-on): Add unistd.
71348         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71349
71350         * lib/fchdir.c: Include <unistd.h> first.
71351         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
71352         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
71353         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
71354         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71355         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
71356
71357         * lib/dup2.c: Include <unistd.h> first.
71358         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
71359         HAVE_DUP2.
71360         * modules/dup2 (Depends-on): Add unistd.
71361         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71362
71363         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
71364         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
71365         REPLACE_CHOWN. Don't define chown as a macro here.
71366         * modules/chown (Depends-on): Add unistd.
71367         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71368
71369         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
71370         Add definition for GL_LINK_WARNING.
71371         (chown, dup2): New declarations.
71372         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
71373         link warning.
71374         (ftruncate): New declaration.
71375         (getcwd): New declaration, taken from old getcwd.h.
71376         (getlogin_r): New declaration, taken from old getlogin_r.h.
71377         (readlink): New declaration.
71378         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
71379         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
71380         (gl_PREREQ_UNISTD): Remove macro.
71381         (gl_UNISTD_MODULE_INDICATOR): New macro.
71382         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
71383         many new variables. Don't set UNISTD_H.
71384         * modules/unistd (Description): Change.
71385         (Depends-on): Add link-warning.
71386         (configure.ac): Update.
71387         (Makefile.am): Create unistd.h always. Substitute many new variables
71388         into it.
71389
71390 2007-02-18  Bruno Haible  <bruno@clisp.org>
71391
71392         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
71393         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
71394         HAVE_GETSUBOPT.
71395         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
71396         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
71397         * lib/getsubopt.h: Remove file.
71398         * modules/getsubopt (Files): Remove lib/getsubopt.h.
71399         (Depends-on): Add stdlib.
71400         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
71401         (Includes): Use <stdlib.h> instead of getsubopt.h.
71402         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
71403         Set HAVE_GETSUBOPT.
71404         * lib/getsubopt.c: Don't include getsubopt.h.
71405
71406 2007-02-18  Bruno Haible  <bruno@clisp.org>
71407
71408         * modules/fchdir (Depends-on): Add dup2.
71409
71410 2007-02-18  Bruno Haible  <bruno@clisp.org>
71411
71412         * lib/stdlib_.h: Handle glibc's special invocation convention
71413         specially.
71414
71415 2007-02-18  Bruno Haible  <bruno@clisp.org>
71416
71417         * modules/stdlib-tests: New file.
71418         * tests/test-stdlib.c: New file.
71419
71420         * modules/mkstemp (Files): Remove lib/mkstemp.h.
71421         (Depends-on): Add stdlib.
71422         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
71423         (Includes): Use <stdlib.h> instead of mkstemp.h.
71424         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
71425         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
71426         * lib/mkstemp.c: Don't include mkstemp.h.
71427         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
71428         * lib/stdlib--.h: Don't include mkstemp.h.
71429
71430         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
71431         (Depends-on): Add stdlib.
71432         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
71433         (Includes): Use <stdlib.h> instead of mkdtemp.h.
71434         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
71435         HAVE_MKDTEMP.
71436         * lib/mkdtemp.c: Don't include mkdtemp.h.
71437         * lib/clean-temp.c: Don't include mkdtemp.h.
71438
71439         * modules/exit (Files): Remove lib/exit.h.
71440         (Depends-on): Add stdlib.
71441         (Makefile.am): Remove lib_SOURCES.
71442         (Include): Use <stdlib.h> instead of exit.h.
71443         * lib/argmatch.c: Don't include exit.h.
71444         * lib/execute.c: Likewise.
71445         * lib/pagealign_alloc.c: Likewise.
71446         * lib/pipe.c: Likewise.
71447         * lib/wait-process.c: Likewise.
71448         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
71449         * lib/exitfail.c: Likewise.
71450         * lib/savewd.c: Likewise.
71451         * lib/xsetenv.c: Likewise.
71452
71453         * modules/stdlib: New file.
71454         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
71455         and extra comments about mkstemp().
71456         * lib/exit.h: Remove file.
71457         * lib/mkdtemp.h: Remove file.
71458         * lib/mkstemp.h: Remove file.
71459         * m4/stdlib_h.m4: New file.
71460         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
71461
71462 2007-02-18  Bruno Haible  <bruno@clisp.org>
71463
71464         * modules/math-tests: New file.
71465         * tests/test-math.c: New file.
71466
71467         * modules/math: New file.
71468         * modules/mathl (Files): Remove lib/mathl.h.
71469         (Depends-on): Add math.
71470         (Makefile.am): Don't mention mathl.h.
71471         (Include): Use <math.h> instead of mathl.h.
71472         * lib/math_.h: New file.
71473         * lib/mathl.h: Remove file.
71474         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
71475         mathl.h.
71476         * lib/asinl.c: Likewise.
71477         * lib/atanl.c: Likewise.
71478         * lib/ceill.c: Likewise.
71479         * lib/cosl.c: Likewise.
71480         * lib/expl.c: Likewise.
71481         * lib/floorl.c: Likewise.
71482         * lib/frexpl.c: Likewise.
71483         * lib/ldexpl.c: Likewise.
71484         * lib/logl.c: Likewise.
71485         * lib/sincosl.c: Likewise.
71486         * lib/sinl.c: Likewise.
71487         * lib/sqrtl.c: Likewise.
71488         * lib/tanl.c: Likewise.
71489         * lib/trigl.c: Likewise.
71490         * m4/math_h.m4: New file.
71491         * MODULES.html.sh (Mathematics): Add math.
71492
71493 2007-02-17  Bruno Haible  <bruno@clisp.org>
71494
71495         * modules/wctype-tests: New file.
71496         * tests/test-wctype.c: New file.
71497
71498         * modules/wchar-tests: New file.
71499         * tests/test-wchar.c: New file.
71500
71501         * modules/unistd-tests: New file.
71502         * tests/test-unistd.c: New file.
71503
71504         * modules/time-tests: New file.
71505         * tests/test-time.c: New file.
71506
71507         * modules/sysexits-tests: New file.
71508         * tests/test-sysexits.c: New file.
71509
71510         * modules/sys_time-tests: New file.
71511         * tests/test-sys_time.c: New file.
71512
71513         * modules/sys_stat-tests: New file.
71514         * tests/test-sys_stat.c: New file.
71515
71516         * modules/sys_socket-tests: New file.
71517         * tests/test-sys_socket.c: New file.
71518
71519         * modules/sys_select-tests: New file.
71520         * tests/test-sys_select.c: New file.
71521
71522         * modules/string-tests: New file.
71523         * tests/test-string.c: New file.
71524
71525         * modules/stdbool-tests: New file.
71526         * tests/test-stdbool.c: New file.
71527
71528         * modules/netinet_in-tests: New file.
71529         * tests/test-netinet_in.c: New file.
71530
71531         * modules/inttypes-tests: New file.
71532         * tests/test-inttypes.c: New file.
71533
71534         * modules/fcntl-tests: New file.
71535         * tests/test-fcntl.c: New file.
71536
71537         * modules/byteswap-tests: New file.
71538         * tests/test-byteswap.c: New file.
71539
71540         * modules/arpa_inet-tests: New file.
71541         * tests/test-arpa_inet.c: New file.
71542
71543 2007-02-17  Bruno Haible  <bruno@clisp.org>
71544
71545         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
71546         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
71547         if the corresponding module is not enabled. Emit link warnings if
71548         the function is used nevertheless.
71549         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
71550         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
71551         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
71552         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
71553         * modules/inttypes (Depends-on): Add link-warning.
71554         (Makefile.am): Copy the contents of build-aux/link-warning.h into
71555         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
71556         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
71557         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
71558         * modules/imaxdiv (configure.ac): Likewise.
71559         * modules/strtoimax (configure.ac): Likewise.
71560         * modules/strtoumax (configure.ac): Likewise.
71561
71562 2007-02-17  Bruno Haible  <bruno@clisp.org>
71563
71564         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
71565         gl_STRING_MODULE_INDICATOR_DEFAULTS.
71566         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
71567         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
71568
71569 2007-02-17  Bruno Haible  <bruno@clisp.org>
71570
71571         * modules/link-warning: New file.
71572         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
71573         * lib/string_.h (GL_LINK_WARNING): Remove definition.
71574         * modules/string (Depends-on): Add link-warning.
71575         (Makefile.am): Copy the contents of build-aux/link-warning.h into
71576         string.h.
71577         * MODULES.html.sh (Support for building libraries and executables): Add
71578         link-warning.
71579
71580 2007-02-17  Bruno Haible  <bruno@clisp.org>
71581
71582         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
71583         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
71584         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
71585         long lines.
71586
71587 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
71588             Bruno Haible  <bruno@clisp.org>
71589
71590         * modules/tmpfile: New file.
71591         * lib/tmpfile.c: New file.
71592         * m4/tmpfile.m4: New file.
71593         * MODULES.html.sh (func_all_modules): New section "Input/output".
71594
71595 2007-02-15  Bruno Haible  <bruno@clisp.org>
71596
71597         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
71598         (supports_delete_on_close): New function.
71599         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
71600
71601 2007-02-14  Bruno Haible  <bruno@clisp.org>
71602
71603         * modules/mbspcasecmp-tests: New file.
71604         * tests/test-mbspcasecmp.sh: New file.
71605         * tests/test-mbspcasecmp.c: New file.
71606
71607         New module mbspcasecmp.
71608         * modules/mbspcasecmp: New file.
71609         * lib/mbspcasecmp.c: New file.
71610         * lib/string_.h (strncasecmp): Change warning message.
71611         (mbspcasecmp): New declaration.
71612         * m4/mbspcasecmp.m4: New file.
71613         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71614         GNULIB_MBSPCASECMP.
71615         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
71616         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
71617
71618 2007-02-14  Bruno Haible  <bruno@clisp.org>
71619
71620         * modules/mbsncasecmp-tests: New file.
71621         * tests/test-mbsncasecmp.sh: New file.
71622         * tests/test-mbsncasecmp.c: New file.
71623
71624         New module mbsncasecmp.
71625         * modules/mbsncasecmp: New file.
71626         * lib/mbsncasecmp.c: New file.
71627         * lib/string_.h (mbsncasecmp): New declaration.
71628         * m4/mbsncasecmp.m4: New file.
71629         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71630         GNULIB_MBSNCASECMP.
71631         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
71632         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
71633
71634 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
71635
71636         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
71637         Verify that it doesn't overlap with our flags.
71638         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
71639         do not have the desired effect in multibyte locales; instead, use
71640         mbscasecmp.
71641         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
71642         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
71643         we don't require GNU fnmatch ourselves (if our users require it, they
71644         should do so explicitly).
71645
71646         Fix regex code so it doesn't rely on strcasecmp.
71647         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
71648         Otherwise, include gnulib's langinfo.h.
71649         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
71650         undesirable behavior in non-C locales.  Instead, rely on localecharset.
71651         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
71652         * modules/regex (FILES): Remove m4/codeset.m4.
71653         (Depends-on): Add localcharset.  Remove strcase.
71654
71655 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71656
71657         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
71658         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
71659
71660 2007-02-13  Bruno Haible  <bruno@clisp.org>
71661
71662         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
71663         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71664
71665 2007-02-12  Bruno Haible  <bruno@clisp.org>
71666
71667         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
71668         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
71669         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
71670         time warning rather than a link error.
71671
71672 2007-02-12  Bruno Haible  <bruno@clisp.org>
71673
71674         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
71675         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
71676         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71677
71678 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
71679
71680         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
71681         args, not 2.
71682
71683 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
71684
71685         New module 'time', so that apps can include <time.h> as per
71686         POSIX and GNU instead of separate include files like time_r.h
71687         and timegm.h.  This implementation tries out a simpler approach
71688         for replacing decls in standard include files (as compared to
71689         the string module), somewhat as an experiment.
71690
71691         * config/srclist.txt: Comment out mktime.c for now.
71692         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
71693         since it doesn't apply any more.  Use generic wording instead.
71694         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
71695         'time'.
71696         * lib/time_.h, m4/time_h.m4, modules/time: New files.
71697         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
71698         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
71699         Don't include <sys/types.h>; no longer needed since we assume C89.
71700         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
71701         * lib/strftime.c: Likewise.
71702         * lib/time_r.c: Likewise.
71703         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
71704         * lib/nanosleep.c: Include <time.h> first, to check interface.
71705         * lib/strptime.c: Likewise.
71706         * lib/time_r.c: Likewise.
71707         * lib/timegm.c: Likewise.
71708         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
71709         needed.
71710         * lib/timegm.c: Don't include timegm.h; no longer needed.
71711         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
71712         time.h now handles any problems in that area.
71713         (struct timespec, nanosleep): Remove; time.h now arranges for these.
71714         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
71715         that time.h defines struct timespec.
71716         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
71717         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
71718         handles that.
71719         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
71720         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
71721         needed.  Set REPLACE_LOCALTIME.
71722         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
71723         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
71724         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
71725         nanosleep; time_h.m4 now does that.  Don't require
71726         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
71727         module handles this now.
71728         * modules/getdate (Depends-on): Remove timespec.  Add time.
71729         * modules/nanosleep (Depends-on): Likewise.
71730         * modules/stat-time (Depends-on): Likewise.
71731         * modules/nanosleep (Include): Include time.h, not timespec.h.
71732         * modules/strptime (Files): Remove lib/strptime.h.
71733         (Depends-on): Add extensions, time.
71734         (Include): Include time.h, not strptime.h.
71735         * modules/time_r (Files): Remove lib/time_r.h.
71736         (Depends-on): Add time.
71737         (Include): Include time.h, not time_r.h.
71738         * modules/timegm: Likewise.
71739         * modules/timespec (Description): Now does timespec-related decls
71740         of our own, instead of struct timespec itself.
71741         (Depends-on): Add time; remove extensions.
71742         (Maintainer): Add self.
71743         * modules/utimecmp (Depends-on): Add time; remove timespec.
71744         * modules/utimens (Depends-on): Likewise.
71745         * modules/xnanosleep (Depends-on): Likewise.
71746
71747 2007-02-11  Bruno Haible  <bruno@clisp.org>
71748
71749         * lib/c-strstr.c: Include allocsa.h.
71750         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
71751         * lib/c-strcasestr.c: Include allocsa.h.
71752         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
71753         * lib/strcasestr.c: Include allocsa.h.
71754         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
71755         * lib/mbsstr.c: Include allocsa.h.
71756         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
71757         allocsa/freesa instead of malloc/free.
71758         * lib/mbscasestr.c: Include allocsa.h.
71759         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
71760         allocsa/freesa instead of malloc/free.
71761         * modules/c-strstr (Depends-on): Add allocsa.
71762         * modules/c-strcasestr (Depends-on): Likewise.
71763         * modules/strcasestr (Depends-on): Likewise.
71764         * modules/mbsstr (Depends-on): Likewise.
71765         * modules/mbscasestr (Depends-on): Likewise.
71766
71767 2007-02-11  Bruno Haible  <bruno@clisp.org>
71768
71769         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
71770
71771         * modules/mbsspn-tests: New file.
71772         * tests/test-mbsspn.sh: New file.
71773         * tests/test-mbsspn.c: New file.
71774
71775 2007-02-11  Bruno Haible  <bruno@clisp.org>
71776
71777         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
71778
71779         * modules/mbspbrk-tests: New file.
71780         * tests/test-mbspbrk.sh: New file.
71781         * tests/test-mbspbrk.c: New file.
71782
71783 2007-02-11  Bruno Haible  <bruno@clisp.org>
71784
71785         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
71786         unneeded cast.
71787
71788         * modules/mbscspn-tests: New file.
71789         * tests/test-mbscspn.sh: New file.
71790         * tests/test-mbscspn.c: New file.
71791
71792 2007-02-11  Bruno Haible  <bruno@clisp.org>
71793
71794         * modules/mbscasecmp-tests: New file.
71795         * tests/test-mbscasecmp.sh: New file.
71796         * tests/test-mbscasecmp.c: New file.
71797
71798 2007-02-11  Bruno Haible  <bruno@clisp.org>
71799
71800         Ensure O(n) worst-case complexity of mbscasestr.
71801         * lib/mbscasestr.c: Include stdbool.h.
71802         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
71803         functions.
71804         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
71805         the bookkeeping indicates that it's worth it.
71806         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
71807
71808         * modules/mbscasestr-tests: New file.
71809         * tests/test-mbscasestr1.c: New file.
71810         * tests/test-mbscasestr2.sh: New file.
71811         * tests/test-mbscasestr2.c: New file.
71812         * tests/test-mbscasestr3.sh: New file.
71813         * tests/test-mbscasestr3.c: New file.
71814         * tests/test-mbscasestr4.sh: New file.
71815         * tests/test-mbscasestr4.c: New file.
71816         * m4/locale-tr.m4: New file.
71817
71818 2007-02-11  Bruno Haible  <bruno@clisp.org>
71819
71820         Ensure O(n) worst-case complexity of mbsstr.
71821         * lib/mbsstr.c: Include stdbool.h.
71822         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
71823         functions.
71824         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
71825         bookkeeping indicates that it's worth it.
71826         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
71827
71828         * modules/mbsstr-tests: New file.
71829         * tests/test-mbsstr1.c: New file.
71830         * tests/test-mbsstr2.sh: New file.
71831         * tests/test-mbsstr2.c: New file.
71832         * tests/test-mbsstr3.sh: New file.
71833         * tests/test-mbsstr3.c: New file.
71834         * m4/locale-fr.m4: New file.
71835
71836 2007-02-11  Bruno Haible  <bruno@clisp.org>
71837
71838         * lib/mbsrchr.c (mbsrchr): Fix bug.
71839
71840         * modules/mbsrchr-tests: New file.
71841         * tests/test-mbsrchr.sh: New file.
71842         * tests/test-mbsrchr.c: New file.
71843
71844 2007-02-11  Bruno Haible  <bruno@clisp.org>
71845
71846         * lib/mbschr.c (mbschr): Fix bug.
71847
71848         * modules/mbschr-tests: New file.
71849         * tests/test-mbschr.sh: New file.
71850         * tests/test-mbschr.c: New file.
71851         * m4/locale-zh.m4: New file.
71852
71853 2007-02-11  Bruno Haible  <bruno@clisp.org>
71854
71855         Support for copying multibyte string iterators.
71856         * lib/mbiter.h: Include <string.h>.
71857         (mbiter_multi_copy): New function.
71858         (mbi_copy): New macro.
71859         * lib/mbuiter.h: Include <string.h>.
71860         (mbuiter_multi_copy): New function.
71861         (mbui_copy): New macro.
71862
71863 2007-02-11  Bruno Haible  <bruno@clisp.org>
71864
71865         New module mbslen.
71866         * modules/mbslen: New file.
71867         * lib/mbslen.c: New file.
71868         * lib/string_.h (mbslen): New declaration.
71869         * m4/mbslen.m4: New file.
71870         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71871         GNULIB_MBSLEN.
71872         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
71873         * MODULES.html.sh (Internationalization functions): Add mbslen.
71874
71875 2007-02-11  Bruno Haible  <bruno@clisp.org>
71876
71877         Ensure O(n) worst-case complexity of strcasestr substitute.
71878         * lib/strcasestr.c: Include stdbool.h.
71879         (knuth_morris_pratt): New function.
71880         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
71881         bookkeeping indicates that it's worth it.
71882         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
71883
71884         * modules/strcasestr-tests: New file.
71885         * tests/test-strcasestr.c: New file.
71886
71887 2007-02-11  Bruno Haible  <bruno@clisp.org>
71888
71889         Ensure O(n) worst-case complexity of c_strcasestr.
71890         * lib/c-strcasestr.c: Include stdbool.h, string.h.
71891         (knuth_morris_pratt): New function.
71892         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
71893         the bookkeeping indicates that it's worth it.
71894         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
71895
71896         * modules/c-strcasestr-tests: New file.
71897         * tests/test-c-strcasestr.c: New file.
71898
71899 2007-02-11  Bruno Haible  <bruno@clisp.org>
71900
71901         Ensure O(n) worst-case complexity of c_strstr.
71902         * lib/c-strstr.c: Include stdbool.h, string.h.
71903         (knuth_morris_pratt): New function.
71904         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
71905         bookkeeping indicates that it's worth it.
71906         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
71907
71908         * lib/c-strstr.c: Complete rewrite for maintainability.
71909
71910         * modules/c-strstr-tests: New file.
71911         * tests/test-c-strstr.c: New file.
71912
71913 2007-02-11  Bruno Haible  <bruno@clisp.org>
71914
71915         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
71916         5.2.1 and earlier, whereby \055 was treated just like the range
71917         delimiter '-'.
71918         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
71919
71920 2007-02-08  Bruno Haible  <bruno@clisp.org>
71921
71922         * modules/regex (Depends-on): Add stdbool.
71923         Reported by Dalibor Topic <robilad@kaffe.org>.
71924
71925 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
71926
71927         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
71928         Prefer returning from main to exiting from it.
71929         Remove unnecessary parens after sizeof.
71930
71931 2007-02-05  Bruno Haible  <bruno@clisp.org>
71932
71933         New module mbssep.
71934         * modules/mbssep: New file.
71935         * lib/mbssep.c: New file.
71936         * lib/string_.h (strsep): Add a conditional link warning.
71937         (mbssep): New declaration.
71938         * m4/mbssep.m4: New file.
71939         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71940         GNULIB_MBSSEP.
71941         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
71942         * MODULES.html.sh (Internationalization functions): Add mbssep.
71943
71944 2007-02-05  Bruno Haible  <bruno@clisp.org>
71945
71946         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
71947         Optimize search in case of 1 delimiter.
71948
71949 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
71950
71951         * lib/acl.h: Include sys/types.h before sys/acl.h.
71952
71953 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
71954
71955         Merge upstream fix for glibc bugzilla #3957:
71956
71957         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
71958
71959         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
71960         bit for RE_HAT_LISTS_NOT_NEWLINE.
71961         (build_charclass_op): Remove bogus comment.
71962
71963 2007-02-05  Simon Josefsson  <simon@josefsson.org>
71964
71965         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
71966
71967 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
71968
71969         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
71970         * lib/memmem.c [!defined _LIBC]: Include config.h.
71971
71972 2007-02-04  Bruno Haible  <bruno@clisp.org>
71973
71974         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
71975         warning message.
71976
71977 2007-02-04  Bruno Haible  <bruno@clisp.org>
71978
71979         New module mbstok_r.
71980         * modules/mbstok_r: New file.
71981         * lib/mbstok_r.c: New file.
71982         * lib/string_.h (strtok_r): Change argument names to match the
71983         comments. Add a conditional link warning.
71984         (mbstok_r): New declaration.
71985         * m4/mbstok_r.m4: New file.
71986         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71987         GNULIB_MBSTOK_R.
71988         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
71989         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
71990
71991 2007-02-04  Bruno Haible  <bruno@clisp.org>
71992
71993         New module mbsspn.
71994         * modules/mbsspn: New file.
71995         * lib/mbsspn.c: New file.
71996         * lib/string_.h (strspn): Add a conditional link warning.
71997         (mbsspn): New declaration.
71998         * m4/mbsspn.m4: New file.
71999         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72000         GNULIB_MBSSPN.
72001         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
72002         * MODULES.html.sh (Internationalization functions): Add mbsspn.
72003
72004 2007-02-04  Bruno Haible  <bruno@clisp.org>
72005
72006         New module mbspbrk.
72007         * modules/mbspbrk: New file.
72008         * lib/mbspbrk.c: New file.
72009         * lib/string_.h (strpbrk): Add a conditional link warning.
72010         (mbspbrk): New declaration.
72011         * m4/mbspbrk.m4: New file.
72012         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72013         GNULIB_MBSPBRK.
72014         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
72015         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
72016
72017 2007-02-04  Bruno Haible  <bruno@clisp.org>
72018
72019         New module mbscspn.
72020         * modules/mbscspn: New file.
72021         * lib/mbscspn.c: New file.
72022         * lib/string_.h (strcspn): Add a conditional link warning.
72023         (mbscspn): New declaration.
72024         * m4/mbscspn.m4: New file.
72025         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72026         GNULIB_MBSCSPN.
72027         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
72028         * MODULES.html.sh (Internationalization functions): Add mbscspn.
72029
72030 2007-02-04  Bruno Haible  <bruno@clisp.org>
72031
72032         New module mbscasestr, reduced goal of strcasestr.
72033         * modules/mbscasestr: New file.
72034         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
72035         (mbscasestr): Renamed from strcasestr.
72036         * lib/strcasestr.c: Don't include mbuiter.h.
72037         (strcasestr): Remove support for multibyte locales.
72038         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
72039         Change the conditional link warning.
72040         (mbscasestr): New declaration.
72041         * m4/mbscasestr.m4: New file.
72042         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
72043         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
72044         REPLACE_STRCASESTR.
72045         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
72046         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
72047         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
72048         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
72049         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
72050         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
72051         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
72052         (Depends-on): Remove mbuiter.
72053         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
72054
72055 2007-02-04  Bruno Haible  <bruno@clisp.org>
72056
72057         Simplify handling of strncasecmp.
72058         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
72059         the conditional link warning.
72060         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
72061         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
72062         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
72063         * modules/strcase (configure.ac): Don't invoke
72064         gl_STRING_MODULE_INDICATOR.
72065         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
72066
72067 2007-02-04  Bruno Haible  <bruno@clisp.org>
72068
72069         New module mbscasecmp, reduced goal of strcasecmp.
72070         * modules/mbscasecmp: New file.
72071         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
72072         (mbscasecmp): Renamed from strcasecmp.
72073         * lib/strcasecmp.c: Don't include mbuiter.h.
72074         (strcasecmp): Remove support for multibyte locales.
72075         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
72076         Change the conditional link warning.
72077         (mbscasecmp): New declaration.
72078         * m4/mbscasecmp.m4: New file.
72079         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
72080         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
72081         REPLACE_STRCASECMP.
72082         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
72083         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72084         GNULIB_MBSCASECMP.
72085         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
72086         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
72087         * modules/strcase (Files): Remove m4/mbrtowc.m4.
72088         (Depends-on): Remove mbuiter.
72089         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
72090
72091 2007-02-04  Bruno Haible  <bruno@clisp.org>
72092
72093         New module mbsstr. Remove module strstr.
72094         * modules/mbsstr: New file.
72095         * modules/strstr: Remove file.
72096         * lib/mbsstr.c: Renamed from lib/strstr.c.
72097         (mbsstr): Renamed from strstr.
72098         * lib/string_.h (strstr): Remove declaration. Change the conditional
72099         link warning.
72100         (mbsstr): New declaration.
72101         * m4/mbsstr.m4: New file.
72102         * m4/strstr.m4: Remove file.
72103         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
72104         REPLACE_STRSTR.
72105         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
72106         Don't initialize GNULIB_STRSTR.
72107         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
72108         substitute GNULIB_STRSTR and REPLACE_STRSTR.
72109         * MODULES.html.sh (Internationalization functions): Add mbsstr.
72110         (Support for systems lacking ANSI C 89): Remove strstr.
72111
72112 2007-02-04  Bruno Haible  <bruno@clisp.org>
72113
72114         New module mbsrchr.
72115         * modules/mbsrchr: New file.
72116         * lib/mbsrchr.c: New file.
72117         * lib/string_.h (strrchr): Add a conditional link warning.
72118         (mbsrchr): New declaration.
72119         * m4/mbsrchr.m4: New file.
72120         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72121         GNULIB_MBSRCHR.
72122         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
72123         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
72124
72125 2007-02-04  Bruno Haible  <bruno@clisp.org>
72126
72127         New module mbschr.
72128         * modules/mbschr: New file.
72129         * lib/mbschr.c: New file.
72130         * lib/string_.h (strchr): Add a conditional link warning.
72131         (mbschr): New declaration.
72132         * m4/mbschr.m4: New file.
72133         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72134         GNULIB_MBSCHR.
72135         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
72136         * MODULES.html.sh (Internationalization functions): Add mbschr.
72137
72138 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
72139
72140         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
72141
72142         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
72143
72144 2007-02-04  Bruno Haible  <bruno@clisp.org>
72145
72146         New module description section 'configure.ac-early'.
72147         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
72148         (func_get_autoconf_early_snippet): New function.
72149         (func_import, func_create_testdir): Use it. Remove special cases for
72150         modules 'extensions' and 'lock'.
72151         * modules/extensions (configure.ac-early): Require
72152         gl_USE_SYSTEM_EXTENSIONS.
72153         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
72154
72155 2007-02-04  Bruno Haible  <bruno@clisp.org>
72156
72157         Make use of gcj-4.3's -fsource and -ftarget option.
72158         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
72159         and if so try the options -fsource and -ftarget.
72160         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
72161         source_version, ftarget_option, target_version arguments.
72162         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
72163         (is_envjavac_oldgcj_14_14_usable): Renamed from
72164         is_envjavac_gcj_14_14_usable.
72165         (is_envjavac_oldgcj_14_13_usable): Renamed from
72166         is_envjavac_gcj_14_13_usable.
72167         (is_gcj_present): Update.
72168         (is_gcj_43, is_gcj43_usable): New functions.
72169         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
72170         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
72171         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
72172         try the options -fsource and -ftarget.
72173
72174 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
72175
72176         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
72177         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
72178         larger value.
72179
72180 2007-02-03  Jim Meyering  <jim@meyering.net>
72181
72182         Give tools a better chance to allocate space for very large buffers.
72183         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
72184
72185         Make pwd and readlink work also when run with an unreadable parent dir
72186         on systems with openat support.
72187         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
72188         provided getcwd function, even when we have openat support.
72189         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
72190
72191 2007-02-02  Bruno Haible  <bruno@clisp.org>
72192
72193         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
72194         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
72195         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
72196         portability problems if one of these functions is only used on specific
72197         platforms.
72198         Reported by Paul Eggert.
72199
72200 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
72201
72202         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
72203         is causing more trouble than it's curing.
72204         * lib/regex_internal.h (__mempcpy): Remove.
72205         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
72206         (and make the code a tad smaller to boot).
72207         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
72208
72209 2007-02-02  Jim Meyering  <jim@meyering.net>
72210
72211         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
72212         section, not in the Makefile.am: one.
72213
72214 2007-02-02  Eric Blake  <ebb9@byu.net>
72215
72216         * lib/strchrnul.c: Always include config.h first.
72217
72218         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
72219         gnulib strstr is not necessary here.
72220
72221 2007-02-02  Simon Josefsson  <simon@josefsson.org>
72222
72223         * m4/socklen.m4: Fix typo.
72224
72225 2007-02-02  Eric Blake  <ebb9@byu.net>
72226
72227         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
72228         * modules/netinet_in (Makefile.am): Likewise.
72229
72230 2007-02-01  Bruno Haible  <bruno@clisp.org>
72231
72232         * lib/string_.h (GL_LINK_WARNING): New macro.
72233         (strcasecmp, strstr, strcasestr): If provided by the system,
72234         conditionally define as a macro that leads to a warning instead of to
72235         an error.
72236         (strncasecmp): Conditionally define as a macro that leads to a warning.
72237
72238 2007-02-01  Karl Berry  <karl@gnu.org>
72239
72240         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
72241
72242 2007-02-01  Bruno Haible  <bruno@clisp.org>
72243
72244         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
72245         renamings.
72246
72247 2007-02-01  Eric Blake  <ebb9@byu.net>
72248
72249         * modules/regex (Depends-on): Revert dependence on mempcpy.
72250         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
72251         module's definition of mempcpy.
72252         Reported by Paul Eggert.
72253
72254 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
72255
72256         * lib/string_.h: If the gnulib module XYZ is not present, undefine
72257         the symbol XYZ before redefining it.  This fixes a problem with
72258         programs that don't use XYZ, when compiled on systems that define
72259         XYZ to something else.
72260
72261 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
72262
72263         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
72264         occurs when "mkdir -m foo" creates a setgid directory that is (1)
72265         writeable to group or other and (2) is intended to have a special
72266         mode bit that is set or cleared.  In such a case, the directory
72267         should be neither group- nor other-writeable until the special
72268         mode bits are right.
72269
72270 2007-01-31  Eric Blake  <ebb9@byu.net>
72271
72272         * modules/mountlist (Depends-on): Add strstr.
72273
72274         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
72275         bug.
72276         * modules/string (Makefile.am): Remove redundant replacement.
72277         * modules/regex (Depends-on): Add mempcpy.
72278
72279 2007-01-31  Bruno Haible  <bruno@clisp.org>
72280
72281         New module description field 'Link'.
72282         * gnulib-tool (func_usage): Document --extract-link-directive.
72283         (sed_extract_prog): Recognize 'Link' directive.
72284         (func_get_link_directive): New function.
72285         (func_import): Show summary of link directives.
72286         Handle --extract-link-directive option.
72287         * modules/acl (Link): New section.
72288         * modules/clock-time (Link): New section.
72289         * modules/euidaccess (Link): New section.
72290         * modules/gettext (Link): New section.
72291         * modules/iconv (Link): New section.
72292         * modules/lock (Link): New section.
72293         * modules/nanosleep (Link): New section.
72294         * modules/readline (Link): New section.
72295
72296 2007-01-27  Bruno Haible  <bruno@clisp.org>
72297
72298         Enforce the use of gnulib modules for unportable <string.h> functions.
72299         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
72300         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
72301         (gl_HEADER_STRING_H_BODY): Require it.
72302         * lib/string_.h: If the gnulib module XYZ is not present, redefine
72303         the symbol XYZ to one that gives a link error.
72304         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
72305         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
72306         * modules/mempcpy (configure.ac): Likewise.
72307         * modules/memrchr (configure.ac): Likewise.
72308         * modules/stpcpy (configure.ac): Likewise.
72309         * modules/stpncpy (configure.ac): Likewise.
72310         * modules/strcase (configure.ac): Likewise.
72311         * modules/strcasestr (configure.ac): Likewise.
72312         * modules/strchrnul (configure.ac): Likewise.
72313         * modules/strdup (configure.ac): Likewise.
72314         * modules/strndup (configure.ac): Likewise.
72315         * modules/strnlen (configure.ac): Likewise.
72316         * modules/strpbrk (configure.ac): Likewise.
72317         * modules/strsep (configure.ac): Likewise.
72318         * modules/strstr (configure.ac): Likewise.
72319         * modules/strtok_r (configure.ac): Likewise.
72320
72321 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
72322
72323         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
72324
72325 2007-01-30  Jim Meyering  <jim@meyering.net>
72326
72327         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
72328
72329 2007-01-29  Bruno Haible  <bruno@clisp.org>
72330
72331         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
72332         * lib/execute.c: Likewise.
72333         * lib/pipe.c: Likewise.
72334         * lib/printf-args.h: Likewise.
72335         * lib/printf-args.c: Likewise.
72336         * lib/printf-parse.c: Likewise.
72337         * lib/vasnprintf.c: Likewise.
72338
72339 2007-01-29  Eric Blake  <ebb9@byu.net>
72340
72341         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
72342         declaration.
72343
72344 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
72345
72346         * lib/strptime.h (strptime): Use 'restrict' for args where
72347         POSIX requires this.
72348         * lib/strptime.c (strptime): Likewise.
72349         Change license notice from LGPL to GPL, since gnulib-tool will
72350         change this as needed.
72351         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
72352         defined.
72353         Include "strptime.h" first, to check interface.
72354         Do not #undef _LIBC and _NL_CURRENT.
72355         Do not include <stdlib.h>; no longer needed.
72356         Include "time_r.h" and declare ptime_locale_status
72357         only if _LIBC is not defined.
72358         (__P): Remove unused macro.
72359         (match_string): Bring back glibc version, but use it only if _LIBC
72360         is defined.
72361         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
72362         Remove unnecessary assertion and abort() call.
72363         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
72364         * m4/strptime.m4: Fix serial number comment.
72365         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
72366         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
72367         (Depends-on): Add time_r.
72368
72369 2007-01-29  Bruno Haible  <bruno@clisp.org>
72370
72371         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72372         strptime.
72373         * modules/strptime (Depends-on): Add stdbool.
72374         * lib/strptime.h: Include <time.h> always. Add comments.
72375
72376 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
72377
72378         * modules/strptime: New file.
72379         * lib/strptime.h: New file.
72380         * lib/strptime.c: New file.
72381         * m4/strptime.m4: New file.
72382
72383 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
72384
72385         * MODULES.html.sh: New module mpsort.
72386         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
72387
72388         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
72389         a circularity problem with HP-UX ia64 reported by Bob Proulx in
72390         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
72391         All uses changed.
72392         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
72393         All uses changed.
72394         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
72395         to _Restrict_.
72396         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
72397         the parameter matches the prototype.
72398
72399 2007-01-28  Jim Meyering  <jim@meyering.net>
72400
72401         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
72402         sys/time.h here, reverting that part of the previous patch:
72403         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
72404
72405 2007-01-28  Bruno Haible  <bruno@clisp.org>
72406
72407         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
72408         value of $(SYS_TIME_H).
72409         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
72410         remove it conditionally, too. [added by Jim Meyering]
72411         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
72412         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
72413         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
72414         GETTIMEOFDAY_REPLACEMENT to 1.
72415
72416 2007-01-28  Bruno Haible  <bruno@clisp.org>
72417
72418         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
72419         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
72420         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
72421         Set UNISTD_H instead of UNISTD_H2.
72422         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
72423
72424 2007-01-28  Bruno Haible  <bruno@clisp.org>
72425
72426         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
72427         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
72428
72429 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72430
72431         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
72432         (func_create_testdir): Ensure C locale for `grep' and `tr'
72433         character ranges.
72434         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
72435         ACLOCAL_AMFLAGS parsing state machine.
72436
72437 2007-01-27  Bruno Haible  <bruno@clisp.org>
72438
72439         * modules/unistr/base: Update.
72440
72441 2007-01-27  Bruno Haible  <bruno@clisp.org>
72442
72443         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
72444         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
72445         * modules/unistr/u32-mbtouc-unsafe: Renamed from
72446         modules/unistr/u32-mbtouc.
72447         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
72448         * lib/unistr.h: Update.
72449         * lib/linebreak.c: Update.
72450         * modules/unistr/u32-mbtouc: Renamed from
72451         modules/unistr/u32-mbtouc-safe.
72452         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
72453         * lib/unistr.h: Update.
72454         * lib/unistr/u32-to-u8.c: Update.
72455         * lib/unistr/u32-to-u16.c: Update.
72456
72457 2007-01-27  Bruno Haible  <bruno@clisp.org>
72458
72459         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
72460         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
72461         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
72462         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
72463         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
72464         * modules/unistr/u16-mbtouc-unsafe: Renamed from
72465         modules/unistr/u16-mbtouc.
72466         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
72467         * lib/unistr.h: Update.
72468         * lib/linebreak.c: Update.
72469         * modules/linebreak: Update.
72470         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
72471         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
72472         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
72473         * modules/unistr/u16-mbtouc: Renamed from
72474         modules/unistr/u16-mbtouc-safe.
72475         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
72476         * lib/unistr.h: Update.
72477         * lib/unistr/u16-to-u8.c: Update.
72478         * modules/unistr/u16-to-u8: Update.
72479         * lib/unistr/u16-to-u32.c: Update.
72480         * modules/unistr/u16-to-u32: Update.
72481
72482 2007-01-27  Bruno Haible  <bruno@clisp.org>
72483
72484         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
72485         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
72486         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
72487         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
72488         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
72489         * modules/unistr/u8-mbtouc-unsafe: Renamed from
72490         modules/unistr/u8-mbtouc.
72491         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
72492         * lib/unistr.h: Update.
72493         * lib/striconveh.c: Update.
72494         * modules/striconveh: Update.
72495         * lib/linebreak.c: Update.
72496         * modules/linebreak: Update.
72497         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
72498         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
72499         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
72500         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
72501         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
72502         * lib/unistr.h: Update.
72503         * lib/striconveh.c: Update.
72504         * modules/striconveh: Update.
72505         * lib/unistr/u8-to-u16.c: Update.
72506         * modules/unistr/u8-to-u16: Update.
72507         * lib/unistr/u8-to-u32.c: Update.
72508         * modules/unistr/u8-to-u32: Update.
72509
72510 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72511
72512         Sync from Libtool.
72513         * lib/argz.c: Do not include strings.h nor memory.h, include
72514         string.h unconditionally.  Patch by Simon Josefsson.
72515
72516 2007-01-27  Bruno Haible  <bruno@clisp.org>
72517
72518         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
72519         from gl_HEADER_STRING_H_BODY.
72520         (gl_HEADER_STRING_H_BODY): Require it.
72521         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
72522         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
72523         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
72524         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
72525         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
72526         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
72527         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
72528         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
72529         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
72530         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
72531         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
72532         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
72533         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
72534         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
72535         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
72536
72537 2007-01-27  Bruno Haible  <bruno@clisp.org>
72538
72539         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
72540         check_PROGRAMS into noinst_PROGRAMS.
72541         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
72542         check_PROGRAMS in this case.
72543         (func_import): Set for_test to false.
72544         (func_create_testdir): Set for_test to true.
72545
72546 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
72547             Bruno Haible  <bruno@clisp.org>
72548
72549         * modules/strcasestr (Files): Remove lib/strcasestr.h.
72550         (Depends-on): Add string.
72551         (Includes): Use <string.h> instead of strcasestr.h.
72552         * modules/string (Makefile.am): Also substitute the value of
72553         REPLACE_STRCASESTR.
72554         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
72555         assume strcasestr is declared in <string.h> not <strings.h>. Also
72556         set REPLACE_STRCASESTR.
72557         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
72558         REPLACE_STRCASESTR.
72559         * lib/strcasestr.h: Remove file.
72560         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
72561         * lib/string_.h (strcasestr): New declaration.
72562
72563 2007-01-27  Bruno Haible  <bruno@clisp.org>
72564
72565         * lib/string_.h: Use 'extern'.
72566
72567 2007-01-27  Jim Meyering  <jim@meyering.net>
72568
72569         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
72570         of set-but-not-used local, "q".
72571
72572         * lib/mempcpy.c: Include <config.h> before <string.h>.
72573         This fixes a compilation error on HP-UX, due to the system's
72574         "restrict"-using mempcpy prototype.
72575
72576 2007-01-26  Bruno Haible  <bruno@clisp.org>
72577
72578         Small optimization.
72579         * lib/javacomp.c: Include c-strstr.h.
72580          (is_envjavac_gcj): Use c_strstr instead of strstr.
72581         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
72582
72583 2007-01-26  Bruno Haible  <bruno@clisp.org>
72584
72585         * MODULES.html.sh (Unicode string functions): Add the new modules.
72586
72587         * modules/uniconv/u32-strconv-to-locale: New file.
72588         * lib/uniconv/u32-strconv-to-locale.c: New file.
72589
72590         * modules/uniconv/u16-strconv-to-locale: New file.
72591         * lib/uniconv/u16-strconv-to-locale.c: New file.
72592
72593         * modules/uniconv/u8-strconv-to-locale: New file.
72594         * lib/uniconv/u8-strconv-to-locale.c: New file.
72595
72596         * modules/uniconv/u32-strconv-from-locale: New file.
72597         * lib/uniconv/u32-strconv-from-locale.c: New file.
72598
72599         * modules/uniconv/u16-strconv-from-locale: New file.
72600         * lib/uniconv/u16-strconv-from-locale.c: New file.
72601
72602         * modules/uniconv/u8-strconv-from-locale: New file.
72603         * lib/uniconv/u8-strconv-from-locale.c: New file.
72604
72605         * modules/uniconv/u32-strconv-to-enc: New file.
72606         * lib/uniconv/u32-strconv-to-enc.c: New file.
72607         * modules/uniconv/u32-strconv-to-enc-tests: New file.
72608         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
72609
72610         * modules/uniconv/u16-strconv-to-enc: New file.
72611         * lib/uniconv/u16-strconv-to-enc.c: New file.
72612         * lib/uniconv/u-strconv-to-enc.h: New file.
72613         * modules/uniconv/u16-strconv-to-enc-tests: New file.
72614         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
72615
72616         * modules/uniconv/u8-strconv-to-enc: New file.
72617         * lib/uniconv/u8-strconv-to-enc.c: New file.
72618         * modules/uniconv/u8-strconv-to-enc-tests: New file.
72619         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
72620
72621         * modules/uniconv/u32-strconv-from-enc: New file.
72622         * lib/uniconv/u32-strconv-from-enc.c: New file.
72623         * modules/uniconv/u32-strconv-from-enc-tests: New file.
72624         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
72625
72626         * modules/uniconv/u16-strconv-from-enc: New file.
72627         * lib/uniconv/u16-strconv-from-enc.c: New file.
72628         * modules/uniconv/u16-strconv-from-enc-tests: New file.
72629         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
72630
72631         * modules/uniconv/u8-strconv-from-enc: New file.
72632         * lib/uniconv/u8-strconv-from-enc.c: New file.
72633         * lib/uniconv/u-strconv-from-enc.h: New file.
72634         * modules/uniconv/u8-strconv-from-enc-tests: New file.
72635         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
72636
72637         * modules/uniconv/u32-conv-from-enc: New file.
72638         * lib/uniconv/u32-conv-from-enc.c: New file.
72639         * modules/uniconv/u32-conv-from-enc-tests: New file.
72640         * tests/uniconv/test-u32-conv-from-enc.c: New file.
72641
72642         * modules/uniconv/u16-conv-from-enc: New file.
72643         * lib/uniconv/u16-conv-from-enc.c: New file.
72644         * lib/uniconv/u-conv-from-enc.h: New file.
72645         * modules/uniconv/u16-conv-from-enc-tests: New file.
72646         * tests/uniconv/test-u16-conv-from-enc.c: New file.
72647
72648         * modules/uniconv/u8-conv-from-enc: New file.
72649         * lib/uniconv/u8-conv-from-enc.c: New file.
72650         * modules/uniconv/u8-conv-from-enc-tests: New file.
72651         * tests/uniconv/test-u8-conv-from-enc.c: New file.
72652
72653         * modules/uniconv/base: New file.
72654         * lib/uniconv.h: New file.
72655
72656 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
72657
72658         * doc/gnulib-tool.texi (Initial import): Update to match current
72659         behavior with strdup module.
72660         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
72661         * lib/memmem.h: Remove; all uses removed.  This is now done
72662         by <string.h>.
72663         * lib/mempcpy.h: Likewise.
72664         * lib/memrchr.h: Likewise.
72665         * lib/stpcpy.h: Likewise.
72666         * lib/stpncpy.h: Likewise.
72667         * lib/strcase.h: Likewise.
72668         * lib/strchrnul.h: Likewise.
72669         * lib/strdup.h: Likewise.
72670         * lib/strndup.h: Likewise.
72671         * lib/strnlen.h: Likewise.
72672         * lib/strpbrk.h: Likewise.
72673         * lib/strsep.h: Likewise.
72674         * lib/strstr.h: Likewise.
72675         * lib/strtok_r.h: Likewise.
72676         * lib/string_.h: New file.
72677         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
72678         Rely on <string.h> instead.
72679         * lib/canon-host.c: Likewise.
72680         * lib/chdir-long.c: Likewise.
72681         * lib/concatpath.c: Likewise.
72682         * lib/exclude.c: Likewise.
72683         * lib/fchdir.c: Likewise.
72684         * lib/getaddrinfo.c: Likewise.
72685         * lib/getcwd.c: Likewise.
72686         * lib/getsubopt.c: Likewise.
72687         * lib/glob.c: Likewise.
72688         * lib/hard-locale.c: Likewise.
72689         * lib/iconvme.c: Likewise.
72690         * lib/javacomp.c: Likewise.
72691         * lib/mempcpy.c: Likewise.
72692         * lib/memrchr.c: Likewise.
72693         * lib/regex_internal.h: Likewise.
72694         * lib/stpncpy.c: Likewise.
72695         * lib/strcasecmp.c: Likewise.
72696         * lib/strchrnul.c: Likewise.
72697         * lib/strdup.c: Likewise.
72698         * lib/striconv.c: Likewise.
72699         * lib/striconveh.c: Likewise.
72700         * lib/striconveha.c: Likewise.
72701         * lib/strncasecmp.c: Likewise.
72702         * lib/strndup.c: Likewise.
72703         * lib/strnlen.c: Likewise.
72704         * lib/strsep.c: Likewise.
72705         * lib/strstr.c: Likewise.
72706         * lib/strtok_r.c: Likewise.
72707         * lib/userspec.c: Likewise.
72708         * lib/w32spawn.h: Likewise.
72709         * lib/xstrndup.c: Likewise.
72710         * lib/mountlist.c (strstr): Remove decl.
72711         * m4/string_h.m4: New file.
72712         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
72713         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
72714         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
72715         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
72716         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
72717         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
72718         Set REPLACE_STRCASECMP if necessary.
72719         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
72720         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
72721         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
72722         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
72723         HAVE_DECL_STRDUP if necessary.
72724         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
72725         since gl_FUNC_STRNDUP does that now.
72726         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
72727         Check for decl here...
72728         (gl_PREREQ_STRNLEN): ... not here.
72729         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
72730         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
72731         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
72732         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
72733         necessary.
72734         * modules/string: New file.
72735         * modules/memmem (Files): Remove special-purpose include file.
72736         (Depends-on): Add string.
72737         (Include): Include <string.h>, not the removed file.
72738         * modules/mempcpy: Likewise.
72739         * modules/memrchr: Likewise.
72740         * modules/stpcpy: Likewise.
72741         * modules/stpncpy: Likewise.
72742         * modules/strcase: Likewise.
72743         * modules/strchrnul: Likewise.
72744         * modules/strdup: Likewise.
72745         * modules/strndup: Likewise.
72746         * modules/strnlen: Likewise.
72747         * modules/strpbrk: Likewise.
72748         * modules/strsep: Likewise.
72749         * modules/strstr: Likewise.
72750         * modules/strtok_r: Likewise.
72751         * tests/test-dirname.c: Don't include "strdup.h", since
72752         <string.h> now suffices.
72753         * tests/test-memmem.c: Don't include "memmem.h", since
72754         <string.h> now suffices.
72755
72756 2007-01-25  Bruno Haible  <bruno@clisp.org>
72757
72758         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
72759         *resultp is 0.
72760
72761         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
72762         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
72763         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
72764         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
72765
72766         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
72767         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
72768         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
72769         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
72770         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
72771         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
72772
72773 2007-01-24  Bruno Haible  <bruno@clisp.org>
72774
72775         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
72776         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
72777         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
72778         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
72779         gl_FUNC_FTS_CORE.
72780         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
72781         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
72782         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
72783         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
72784         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
72785         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
72786         gl_FUNC_FCHOWNAT.
72787         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
72788         gl_FUNC_STRFTIME.
72789         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
72790         Reported by Ralf Wildenhues.
72791
72792 2007-01-24  Bruno Haible  <bruno@clisp.org>
72793
72794         Drop AC_REQUIRE calls that are redundant with the module dependencies.
72795         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
72796         gl_GETADDRINFO.
72797         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
72798         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
72799         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
72800
72801 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
72802
72803         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
72804         Don't use 'exit'; just return from 'main'.
72805         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
72806
72807         * lib/fnmatch_.h: Readjust white space and comments to match
72808         glibc, to avoid spurious diffs.
72809
72810 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72811
72812         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
72813         2004-12-01 change by Jakub Jelinek, since this code won't compile
72814         if !LIBC.  Problem reported by Bob Proulx.
72815
72816 2007-01-23  Bruno Haible  <bruno@clisp.org>
72817
72818         * lib/striconveh.c: Include c-strcaseeq.h.
72819         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
72820         * modules/striconveh (Depends-on): Add c-strcaseeq.
72821
72822 2007-01-23  Bruno Haible  <bruno@clisp.org>
72823
72824         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
72825
72826         * modules/c-strcaseeq: New file.
72827         * lib/c-strcaseeq.h: New file.
72828
72829         * modules/streq: New file.
72830         * lib/streq.h: New file.
72831
72832 2007-01-23  Bruno Haible  <bruno@clisp.org>
72833
72834         * modules/striconveha-tests: New file.
72835         * tests/test-striconveha.c: New file.
72836
72837         * lib/striconveha.h: Include <stdbool.h>.
72838         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
72839         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
72840         (mem_iconveha_notranslit): Renamed from mem_iconveha.
72841         (mem_iconveha): New function.
72842         (str_iconveha_notranslit): Renamed from str_iconveha.
72843         (str_iconveha): New function.
72844         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
72845         c-strcase.
72846
72847 2007-01-23  Bruno Haible  <bruno@clisp.org>
72848
72849         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
72850         encodings without forgiving before trying any encoding with handler.
72851         (str_iconveha): Try all encodings without forgiving before trying any
72852         encoding with handler.
72853
72854 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72855
72856         Import the following changes from libc.
72857
72858         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
72859
72860         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
72861
72862         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
72863
72864         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
72865         normal_bracket label.
72866
72867         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
72868
72869         [BZ #361]
72870         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
72871         to normal_bracket after fetching the next character.
72872
72873 2007-01-22  Bruno Haible  <bruno@clisp.org>
72874
72875         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
72876         argument.
72877         * lib/striconveh.c (iconv_carefully_1): New function.
72878         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
72879         argument.
72880         (str_cd_iconveh): Update.
72881         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
72882         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
72883         * tests/test-striconveh.c (MAGIC): New macro.
72884         (new_offsets): New function.
72885         (main): Test call with and without offsets.
72886
72887 2007-01-22  Bruno Haible  <bruno@clisp.org>
72888
72889         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
72890         * modules/sys_select (Makefile.am): Likewise.
72891         * modules/sys_socket (Makefile.am): Likewise.
72892         * modules/sys_time (Makefile.am): Likewise.
72893
72894 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
72895
72896         * modules/gettimeofday (License): Change from GPL to LGPL, since
72897         gettimeofday is a library function.
72898
72899 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72900
72901         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
72902
72903 2007-01-21  Bruno Haible  <bruno@clisp.org>
72904
72905         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
72906
72907 2007-01-21  Bruno Haible  <bruno@clisp.org>
72908
72909         * modules/striconveha: New file.
72910         * lib/striconveha.h: New file.
72911         * lib/striconveha.c: New file.
72912         * MODULES.html.sh (Internationalization functions): Add striconveha.
72913         * lib/striconv.c (str_iconv): Optimize the case of an empty input
72914         string.
72915         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
72916
72917 2007-01-21  Bruno Haible  <bruno@clisp.org>
72918
72919         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
72920         * lib/striconveh.c (str_iconveh): Likewise.
72921
72922 2007-01-21  Bruno Haible  <bruno@clisp.org>
72923
72924         * lib/striconveh.h (mem_iconveh): New declaration.
72925         * lib/striconveh.c (mem_iconveh): New function.
72926         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
72927
72928 2007-01-21  Bruno Haible  <bruno@clisp.org>
72929
72930         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
72931
72932         * lib/striconveh.h (mem_cd_iconveh): Change specification.
72933         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
72934         original result buffer.
72935         (str_cd_iconveh): Update.
72936         * tests/test-striconveh.c (main): Update.
72937
72938         * lib/striconv.h (mem_cd_iconv): Change specification.
72939         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
72940         result buffer.
72941         (str_cd_iconv): Update.
72942         * tests/test-striconv.c (main): Update.
72943
72944 2007-01-21  Bruno Haible  <bruno@clisp.org>
72945
72946         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
72947
72948 2007-01-20  Jim Meyering  <jim@meyering.net>
72949
72950         * lib/userspec.c (parse_with_separator): If a user or group string
72951         starts with "+", skip the corresponding name-to-ID look-up, since
72952         such a look-up must fail: user and group names may not include "+".
72953
72954 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
72955
72956         * lib/poll.c: Include sys/time.h and time.h unconditionally,
72957         since we now assume the sys_time module.
72958         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
72959         check for sys/time.h; no longer needed.
72960         * modules/poll (Depends-on): Depend on sys_time.
72961
72962 2007-01-18  Bruno Haible  <bruno@clisp.org>
72963
72964         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
72965         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
72966
72967         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
72968         gettimeofday.
72969
72970         * tests/test-gettimeofday.c: Include <time.h>.
72971         (dummy): Remove variable.
72972
72973         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
72974         gl_HEADER_SYS_TIME_H.
72975         (gl_HEADER_SYS_TIME_H): New macro.
72976
72977         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
72978         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
72979         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
72980         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
72981         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
72982         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
72983         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
72984         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
72985         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
72986         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
72987         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
72988
72989         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
72990         last change; it caused a compilation error when cross-compiling to
72991         Cygwin.
72992
72993 2007-01-18  Jim Meyering  <jim@meyering.net>
72994
72995         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
72996         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
72997         than the race-prone "test -d sys || mkdir sys".
72998         (configure.ac): Use AC_PROG_MKDIR_P.
72999         * modules/sys_select: Likewise.
73000         * modules/sys_socket: Likewise.
73001         * modules/sys_time: Likewise.
73002
73003 2007-01-18  Eric Blake  <ebb9@byu.net>
73004
73005         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
73006         replace gettimeofday.
73007         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
73008         name, to avoid infinite recursion.
73009
73010 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
73011
73012         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
73013         module sys_time.
73014         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
73015         assume timespec.h defines struct timeval.
73016         * lib/settime.c: Likewise.
73017         * lib/utimens.c: Likewise.
73018         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
73019         since we now assume the gettimeofday module.
73020         * lib/tempname.c (__gen_tempname): Likewise.
73021         * lib/gettimeofday.h: Remove.
73022         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
73023         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
73024         Include <time.h>, for 'time()'.
73025         (localtime_buffer_addr): Also use this workaround if
73026         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
73027         to simplify the uses.  All uses changed.
73028         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
73029         that #undef is inside {}, and 'const' follows type name consistently.
73030         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
73031         (gettimeofday): Do not use the maximum possible value for
73032         tv->tv_usec, since that might break usages other than ls.c.
73033         Instead, we'll leave ls.c alone.  This undoes today's patch
73034         by Bruno.  Add a compile-time warning for 1s-clock resolution;
73035         we've never observed the problem but might as well keep the
73036         canary.
73037         * lib/nanosleep.c: Include timespec.h first, for interface check.
73038         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
73039         now assume the sys_time module.
73040         * lib/tempname.c: Likewise.
73041         * lib/timespec.h: Likewise.
73042         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
73043         needed.
73044         * lib/strftime.c: Likewise.
73045         * lib/timespec.h: Likewise.
73046         * lib/posixtm.c: Include posixtm.h first, for interface check.
73047         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
73048         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
73049         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
73050         * lib/sys_time_.h: New file.
73051         * lib/timespec.h (struct timespec): Use long int, not long.
73052         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
73053         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
73054         Remove obsolescent call to AC_HEADER_TIME.
73055         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
73056         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
73057         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
73058         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
73059         Likewise.
73060         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
73061         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
73062         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
73063         into the sys_time module.  Check for gettimeofday just once.
73064         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
73065         for gettimeofday signature to just check the signature.  Merely
73066         compile it, since linking doesn't test signature.  Improve test for
73067         whether gettimeofday.o is actually needed.
73068         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
73069         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
73070         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
73071         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73072         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
73073         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
73074         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
73075         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
73076         than worrying about sys/time.h.
73077         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
73078         Don't bother worrying about TIME_WITH_SYS_TIME.
73079         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
73080         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
73081         * m4/sys_time_h.m4: New file.
73082         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
73083         Don't include sys/time.h.  Return from main rather than exiting.
73084         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
73085         all uses changed.
73086         * modules/gethrxtime (Depends-on): Add sys_time.
73087         * modules/gettime (Depends-on): Likewise.
73088         * modules/gettimeofday (Depends-on): Likewise.
73089         * modules/nanosleep (Depends-on): Likewise.
73090         * modules/settime (Depends-on): Likewise.
73091         * modules/tempname (Depends-on): Likewise.
73092         * modules/utimens (Depends-on): Likewise.
73093         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
73094         (Include): Change back to <sys/time.h>.
73095         (Maintainer): Add self.
73096         * modules/sys_time: New file.
73097         * modules/tempname (Depends-on): Add gettimeofday.
73098         * tests/test-gettimeofday.c: Include <sys/time.h>
73099         rather than gettimeofday.h.
73100
73101 2007-01-17  Bruno Haible  <bruno@clisp.org>
73102
73103         * gnulib-tool (func_get_license): Revert last patch. Instead, let
73104         the license default to GPL.
73105         (func_create_testdir): Don't complain if a module is LGPL and its
73106         tests module depends on GPLed modules.
73107
73108 2007-01-17  Bruno Haible  <bruno@clisp.org>
73109
73110         * lib/gettimeofday.c (gettimeofday): Add code for the case
73111         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
73112         maximum possible value for tv->tv_usec, rather than the minimum one.
73113
73114 2005-10-08  Martin Lambers  <marlam@marlam.de>
73115 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
73116 2007-01-16  Bruno Haible  <bruno@clisp.org>
73117
73118         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
73119         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
73120         gl_FUNC_GETTIMEOFDAY.
73121         (Include): Add gettimeofday.h.
73122         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
73123         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
73124         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
73125         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
73126         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
73127         * lib/gettimeofday.h: New file.
73128         * lib/gettimeofday.c: Include <sys/timeb.h>.
73129         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
73130         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73131         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
73132         fall back on time().
73133
73134         * tests/test-gettimeofday.c: New file.
73135         * modules/gettimeofday-tests: New file.
73136
73137 2007-01-16  Eric Blake  <ebb9@byu.net>
73138
73139         * modules/fnmatch (Depends-on): Depend on wchar.
73140         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
73141         * m4/fnmatch.m4: Likewise.
73142         * modules/mbchar (Makefile.am): Assume <wchar.h>.
73143         * m4/mbchar.m4: Likewise.
73144         * modules/mbswidth (Depends-on): Depend on wchar.
73145         * lib/mbswidth.c: Assume <wchar.h>.
73146         * m4/mbswidth.m4: Likewise.
73147         * modules/quotearg (Depends-on): Depend on wchar.
73148         * lib/quotearg.c: Assume <wchar.h>.
73149         * m4/quotearg.m4: Likewise.
73150         * modules/regex (Depends-on): Depend on wchar.
73151         * lib/regex_internal.h: Assume <wchar.h>.
73152         * m4/regex.m4: Likewise.
73153         * modules/stdint (Depends-on): Depend on wchar.
73154         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
73155         * m4/stdint.m4: Likewise.
73156         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
73157         * modules/strftime (Depends-on): Depend on wchar.
73158         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
73159         * modules/strtol (Depends-on): Depend on wchar.
73160         * lib/strtol.c: Assume <wchar.h>.
73161         * modules/wcwidth (Depends-on): Depend on wchar.
73162         * lib/wcwidth.h: Assume <wchar.h>.
73163         * m4/wcwidth.m4: Likewise.
73164
73165 2007-01-16  Bruno Haible  <bruno@clisp.org>
73166
73167         * modules/csharpexec-script: New, created from...
73168         * modules/csharpexec: ... this.
73169
73170 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
73171
73172         * modules/javaexec-script: New, created from...
73173         * modules/javaexec: ... this.
73174
73175 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73176
73177         * modules/poll (Dependencies): Add sys_select.
73178
73179 2007-01-15  Jim Meyering  <jim@meyering.net>
73180
73181         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
73182         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
73183         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
73184         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
73185
73186 2007-01-15  Bruno Haible  <bruno@clisp.org>
73187
73188         * modules/striconveh: New file.
73189         * lib/striconveh.h: New file.
73190         * lib/striconveh.c: New file.
73191         * MODULES.html.sh (Internationalization functions): Add striconveh.
73192
73193         * modules/striconveh-tests: New file.
73194         * tests/test-striconveh.c: New file.
73195
73196 2007-01-15  Bruno Haible  <bruno@clisp.org>
73197
73198         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
73199         not from GNU libiconv or GNU libc.
73200
73201 2007-01-15  Bruno Haible  <bruno@clisp.org>
73202
73203         * doc/gnulib-intro.texi (Copyright): Explain the different license
73204         terms for module descriptions, autoconf macros, tests, documentation.
73205
73206 2007-01-14  Bruno Haible  <bruno@clisp.org>
73207
73208         * modules/striconv-tests: New file.
73209         * tests/test-striconv.c: New file.
73210
73211 2007-01-14  Bruno Haible  <bruno@clisp.org>
73212
73213         * modules/iconv-tests: New file.
73214         * tests/test-iconv.c: New file.
73215
73216 2007-01-14  Bruno Haible  <bruno@clisp.org>
73217
73218         * gnulib-tool (func_get_license): For test modules, use the license of
73219         the main module.
73220
73221 2007-01-14  Bruno Haible  <bruno@clisp.org>
73222
73223         * modules/iconv (Include): Clarify that <iconv.h> can only be included
73224         if iconv is found to exist.
73225
73226 2007-01-14  Bruno Haible  <bruno@clisp.org>
73227
73228         * modules/c-ctype-tests: New file.
73229         * tests/test-c-ctype.c: New file.
73230
73231 2007-01-14  Bruno Haible  <bruno@clisp.org>
73232
73233         * modules/binary-io-tests: New file.
73234         * tests/test-binary-io.sh: New file.
73235         * tests/test-binary-io.c: New file.
73236
73237 2007-01-14  Bruno Haible  <bruno@clisp.org>
73238
73239         * modules/array-oset-tests: New file.
73240         * tests/test-array_oset.c: New file.
73241
73242 2007-01-14  Bruno Haible  <bruno@clisp.org>
73243
73244         * modules/array-list-tests: New file.
73245         * tests/test-array_list.c: New file.
73246
73247 2007-01-14  Bruno Haible  <bruno@clisp.org>
73248
73249         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
73250         and make.
73251         Reported by Simon Josefsson in
73252         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
73253
73254 2007-01-14  Bruno Haible  <bruno@clisp.org>
73255
73256         * modules/allocsa-tests: New file.
73257         * tests/test-allocsa.c: New file.
73258
73259 2007-01-14  Bruno Haible  <bruno@clisp.org>
73260
73261         * modules/fchdir (Depends-on): Add absolute-header.
73262         * modules/unistd (Depends-on): Likewise.
73263
73264 2006-12-30  Bruno Haible  <bruno@clisp.org>
73265
73266         * modules/fchdir: New file.
73267         * modules/unistd (Files): Add lib/unistd_.h.
73268         (Makefile.am): Generate unistd.h from unistd_.h.
73269         * lib/fchdir.c: New file.
73270         * lib/dirent_.h: New file.
73271         * lib/unistd_.h: New file.
73272         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
73273         * m4/fchdir.m4: New file.
73274         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
73275         (gl_HEADER_UNISTD): Invoke it.
73276         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
73277         function.
73278         * lib/backupfile.c (opendir, closedir): Undefine.
73279         * lib/chown.c (open, close): Undefine.
73280         * lib/clean-temp.c (open, close): Undefine.
73281         * lib/copy-file.c (open, close): Undefine.
73282         * lib/execute.c (open, close): Undefine.
73283         * lib/fsusage.c (open, close): Undefine.
73284         * lib/gc-gnulib.c (open, close): Undefine.
73285         * lib/getcwd.c (opendir, closedir): Undefine.
73286         * lib/glob.c (opendir, closedir): Undefine.
73287         * lib/javacomp.c (open, close): Undefine.
73288         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
73289         * lib/openat-proc.c (open, close): Undefine.
73290         * lib/pagealign_alloc.c (open, close): Undefine.
73291         * lib/pipe.c (open, close): Undefine.
73292         * lib/progreloc.c (open, close): Undefine.
73293         * lib/savedir.c (opendir, closedir): Undefine.
73294         * lib/utime.c (open, close): Undefine.
73295         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
73296
73297 2007-01-10  Bruno Haible  <bruno@clisp.org>
73298
73299         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
73300
73301 2007-01-12  Eric Blake  <ebb9@byu.net>
73302
73303         Provide a robust <wchar.h>.  Further simplifications are now
73304         possible in other modules, but not included here.
73305         * modules/wchar: New module.
73306         * m4/wchar.m4: New file.
73307         * lib/wchar_.h: Likewise.
73308         * modules/mbchar (Depends-on): Depend on wchar, as the first use
73309         of the new module.
73310         * MODULES.html.sh (Extended multibyte and wide character utilities):
73311         New section.
73312
73313 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
73314
73315         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
73316         to a reasonable default for memory allocation.
73317         (xreadlink): Don't allocate a huge buffer, to work around a buggy
73318         file system that reports garbage st_size values for symlinks.
73319         Problem reported by Liyang Hu.
73320
73321 2007-01-11  Simon Josefsson  <simon@josefsson.org>
73322
73323         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
73324         Emacs .#* auto-save files).
73325
73326 2007-01-11  Bruno Haible  <bruno@clisp.org>
73327
73328         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
73329         directory.
73330
73331 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
73332
73333         Use @...@ consistently in lib/wctype_.h.
73334         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
73335         on it being set to 1 or 0.
73336         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
73337         go back to AC_SUBSTing it.
73338         * modules/wctype (Makefile.am): Undo previous change.
73339
73340 2007-01-10  Eric Blake  <ebb9@byu.net>
73341
73342         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
73343         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
73344         * modules/wctype (Makefile.am): Likewise.
73345         Reported by Chris McGuire.
73346
73347 2007-01-10  Jim Meyering  <jim@meyering.net>
73348
73349         fts.c: a small readability/maintainability improvement
73350         * lib/fts.c (fts_read): Make this code slightly more readable and
73351         maintainable by hoisting the "sp->fts_cur = p" assignments to
73352         immediately follow the statements that set P.  Derived from
73353         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
73354
73355 2007-01-10  Eric Blake  <ebb9@byu.net>
73356
73357         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
73358         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
73359         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
73360         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
73361         Reported by Chris McGuire.
73362
73363 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73364
73365         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
73366         in sed script.
73367
73368 2007-01-09  Bruno Haible  <bruno@clisp.org>
73369
73370         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
73371         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
73372         variables.
73373         (func_module): Use them.
73374
73375 2007-01-09  Bruno Haible  <bruno@clisp.org>
73376
73377         * modules/unistr/base: New file.
73378         * lib/unistr.h: New file.
73379
73380         * modules/unistr/u8-to-u16: New file.
73381         * lib/unistr/u8-to-u16.c: New file.
73382
73383         * modules/unistr/u8-to-u32: New file.
73384         * lib/unistr/u8-to-u32.c: New file.
73385
73386         * modules/unistr/u16-to-u8: New file.
73387         * lib/unistr/u16-to-u8.c: New file.
73388
73389         * modules/unistr/u16-to-u32: New file.
73390         * lib/unistr/u16-to-u32.c: New file.
73391
73392         * modules/unistr/u32-to-u8: New file.
73393         * lib/unistr/u32-to-u8.c: New file.
73394
73395         * modules/unistr/u32-to-u16: New file.
73396         * lib/unistr/u32-to-u16.c: New file.
73397
73398         * modules/unistr/u8-check: New file.
73399         * modules/unistr/u16-check: New file.
73400         * modules/unistr/u32-check: New file.
73401         * lib/unistr/u8-check.c: New file.
73402         * lib/unistr/u16-check.c: New file.
73403         * lib/unistr/u32-check.c: New file.
73404
73405         * modules/unistr/u8-chr: New file.
73406         * modules/unistr/u16-chr: New file.
73407         * modules/unistr/u32-chr: New file.
73408         * lib/unistr/u8-chr.c: New file.
73409         * lib/unistr/u16-chr.c: New file.
73410         * lib/unistr/u32-chr.c: New file.
73411
73412         * modules/unistr/u8-cmp: New file.
73413         * modules/unistr/u16-cmp: New file.
73414         * modules/unistr/u32-cmp: New file.
73415         * lib/unistr/u8-cmp.c: New file.
73416         * lib/unistr/u16-cmp.c: New file.
73417         * lib/unistr/u32-cmp.c: New file.
73418
73419         * modules/unistr/u8-cpy: New file.
73420         * modules/unistr/u16-cpy: New file.
73421         * modules/unistr/u32-cpy: New file.
73422         * lib/unistr/u8-cpy.c: New file.
73423         * lib/unistr/u16-cpy.c: New file.
73424         * lib/unistr/u32-cpy.c: New file.
73425         * lib/unistr/u-cpy.h: New file.
73426
73427         * modules/unistr/u8-cpy-alloc: New file.
73428         * modules/unistr/u16-cpy-alloc: New file.
73429         * modules/unistr/u32-cpy-alloc: New file.
73430         * lib/unistr/u8-cpy-alloc.c: New file.
73431         * lib/unistr/u16-cpy-alloc.c: New file.
73432         * lib/unistr/u32-cpy-alloc.c: New file.
73433         * lib/unistr/u-cpy-alloc.h: New file.
73434
73435         * modules/unistr/u8-endswith: New file.
73436         * modules/unistr/u16-endswith: New file.
73437         * modules/unistr/u32-endswith: New file.
73438         * lib/unistr/u8-endswith.c: New file.
73439         * lib/unistr/u16-endswith.c: New file.
73440         * lib/unistr/u32-endswith.c: New file.
73441         * lib/unistr/u-endswith.h: New file.
73442
73443         * modules/unistr/u8-mblen: New file.
73444         * modules/unistr/u16-mblen: New file.
73445         * modules/unistr/u32-mblen: New file.
73446         * lib/unistr/u8-mblen.c: New file.
73447         * lib/unistr/u16-mblen.c: New file.
73448         * lib/unistr/u32-mblen.c: New file.
73449
73450         * modules/unistr/u8-mbtouc: New file.
73451         * modules/unistr/u16-mbtouc: New file.
73452         * modules/unistr/u32-mbtouc: New file.
73453         * lib/unistr/u8-mbtouc.c: New file.
73454         * lib/unistr/u16-mbtouc.c: New file.
73455         * lib/unistr/u32-mbtouc.c: New file.
73456
73457         * modules/unistr/u8-mbtouc-safe: New file.
73458         * modules/unistr/u16-mbtouc-safe: New file.
73459         * modules/unistr/u32-mbtouc-safe: New file.
73460         * lib/unistr/u8-mbtouc-safe.c: New file.
73461         * lib/unistr/u16-mbtouc-safe.c: New file.
73462         * lib/unistr/u32-mbtouc-safe.c: New file.
73463
73464         * modules/unistr/u8-move: New file.
73465         * modules/unistr/u16-move: New file.
73466         * modules/unistr/u32-move: New file.
73467         * lib/unistr/u8-move.c: New file.
73468         * lib/unistr/u16-move.c: New file.
73469         * lib/unistr/u32-move.c: New file.
73470         * lib/unistr/u-move.h: New file.
73471
73472         * modules/unistr/u8-next: New file.
73473         * modules/unistr/u16-next: New file.
73474         * modules/unistr/u32-next: New file.
73475         * lib/unistr/u8-next.c: New file.
73476         * lib/unistr/u16-next.c: New file.
73477         * lib/unistr/u32-next.c: New file.
73478
73479         * modules/unistr/u8-prev: New file.
73480         * modules/unistr/u16-prev: New file.
73481         * modules/unistr/u32-prev: New file.
73482         * lib/unistr/u8-prev.c: New file.
73483         * lib/unistr/u16-prev.c: New file.
73484         * lib/unistr/u32-prev.c: New file.
73485
73486         * modules/unistr/u8-set: New file.
73487         * modules/unistr/u16-set: New file.
73488         * modules/unistr/u32-set: New file.
73489         * lib/unistr/u8-set.c: New file.
73490         * lib/unistr/u16-set.c: New file.
73491         * lib/unistr/u32-set.c: New file.
73492         * lib/unistr/u-set.h: New file.
73493
73494         * modules/unistr/u8-startswith: New file.
73495         * modules/unistr/u16-startswith: New file.
73496         * modules/unistr/u32-startswith: New file.
73497         * lib/unistr/u8-startswith.c: New file.
73498         * lib/unistr/u16-startswith.c: New file.
73499         * lib/unistr/u32-startswith.c: New file.
73500         * lib/unistr/u-startswith.h: New file.
73501
73502         * modules/unistr/u8-stpcpy: New file.
73503         * modules/unistr/u16-stpcpy: New file.
73504         * modules/unistr/u32-stpcpy: New file.
73505         * lib/unistr/u8-stpcpy.c: New file.
73506         * lib/unistr/u16-stpcpy.c: New file.
73507         * lib/unistr/u32-stpcpy.c: New file.
73508         * lib/unistr/u-stpcpy.h: New file.
73509
73510         * modules/unistr/u8-stpncpy: New file.
73511         * modules/unistr/u16-stpncpy: New file.
73512         * modules/unistr/u32-stpncpy: New file.
73513         * lib/unistr/u8-stpncpy.c: New file.
73514         * lib/unistr/u16-stpncpy.c: New file.
73515         * lib/unistr/u32-stpncpy.c: New file.
73516         * lib/unistr/u-stpncpy.h: New file.
73517
73518         * modules/unistr/u8-strcat: New file.
73519         * modules/unistr/u16-strcat: New file.
73520         * modules/unistr/u32-strcat: New file.
73521         * lib/unistr/u8-strcat.c: New file.
73522         * lib/unistr/u16-strcat.c: New file.
73523         * lib/unistr/u32-strcat.c: New file.
73524         * lib/unistr/u-strcat.h: New file.
73525
73526         * modules/unistr/u8-strchr: New file.
73527         * modules/unistr/u16-strchr: New file.
73528         * modules/unistr/u32-strchr: New file.
73529         * lib/unistr/u8-strchr.c: New file.
73530         * lib/unistr/u16-strchr.c: New file.
73531         * lib/unistr/u32-strchr.c: New file.
73532
73533         * modules/unistr/u8-strcmp: New file.
73534         * modules/unistr/u16-strcmp: New file.
73535         * modules/unistr/u32-strcmp: New file.
73536         * lib/unistr/u8-strcmp.c: New file.
73537         * lib/unistr/u16-strcmp.c: New file.
73538         * lib/unistr/u32-strcmp.c: New file.
73539
73540         * modules/unistr/u8-strcpy: New file.
73541         * modules/unistr/u16-strcpy: New file.
73542         * modules/unistr/u32-strcpy: New file.
73543         * lib/unistr/u8-strcpy.c: New file.
73544         * lib/unistr/u16-strcpy.c: New file.
73545         * lib/unistr/u32-strcpy.c: New file.
73546         * lib/unistr/u-strcpy.h: New file.
73547
73548         * modules/unistr/u8-strcspn: New file.
73549         * modules/unistr/u16-strcspn: New file.
73550         * modules/unistr/u32-strcspn: New file.
73551         * lib/unistr/u8-strcspn.c: New file.
73552         * lib/unistr/u16-strcspn.c: New file.
73553         * lib/unistr/u32-strcspn.c: New file.
73554         * lib/unistr/u-strcspn.h: New file.
73555
73556         * modules/unistr/u8-strdup: New file.
73557         * modules/unistr/u16-strdup: New file.
73558         * modules/unistr/u32-strdup: New file.
73559         * lib/unistr/u8-strdup.c: New file.
73560         * lib/unistr/u16-strdup.c: New file.
73561         * lib/unistr/u32-strdup.c: New file.
73562         * lib/unistr/u-strdup.h: New file.
73563
73564         * modules/unistr/u8-strlen: New file.
73565         * modules/unistr/u16-strlen: New file.
73566         * modules/unistr/u32-strlen: New file.
73567         * lib/unistr/u8-strlen.c: New file.
73568         * lib/unistr/u16-strlen.c: New file.
73569         * lib/unistr/u32-strlen.c: New file.
73570         * lib/unistr/u-strlen.h: New file.
73571
73572         * modules/unistr/u8-strmblen: New file.
73573         * modules/unistr/u16-strmblen: New file.
73574         * modules/unistr/u32-strmblen: New file.
73575         * lib/unistr/u8-strmblen.c: New file.
73576         * lib/unistr/u16-strmblen.c: New file.
73577         * lib/unistr/u32-strmblen.c: New file.
73578
73579         * modules/unistr/u8-strmbtouc: New file.
73580         * modules/unistr/u16-strmbtouc: New file.
73581         * modules/unistr/u32-strmbtouc: New file.
73582         * lib/unistr/u8-strmbtouc.c: New file.
73583         * lib/unistr/u16-strmbtouc.c: New file.
73584         * lib/unistr/u32-strmbtouc.c: New file.
73585
73586         * modules/unistr/u8-strncat: New file.
73587         * modules/unistr/u16-strncat: New file.
73588         * modules/unistr/u32-strncat: New file.
73589         * lib/unistr/u8-strncat.c: New file.
73590         * lib/unistr/u16-strncat.c: New file.
73591         * lib/unistr/u32-strncat.c: New file.
73592         * lib/unistr/u-strncat.h: New file.
73593
73594         * modules/unistr/u8-strncmp: New file.
73595         * modules/unistr/u16-strncmp: New file.
73596         * modules/unistr/u32-strncmp: New file.
73597         * lib/unistr/u8-strncmp.c: New file.
73598         * lib/unistr/u16-strncmp.c: New file.
73599         * lib/unistr/u32-strncmp.c: New file.
73600
73601         * modules/unistr/u8-strncpy: New file.
73602         * modules/unistr/u16-strncpy: New file.
73603         * modules/unistr/u32-strncpy: New file.
73604         * lib/unistr/u8-strncpy.c: New file.
73605         * lib/unistr/u16-strncpy.c: New file.
73606         * lib/unistr/u32-strncpy.c: New file.
73607         * lib/unistr/u-strncpy.h: New file.
73608
73609         * modules/unistr/u8-strnlen: New file.
73610         * modules/unistr/u16-strnlen: New file.
73611         * modules/unistr/u32-strnlen: New file.
73612         * lib/unistr/u8-strnlen.c: New file.
73613         * lib/unistr/u16-strnlen.c: New file.
73614         * lib/unistr/u32-strnlen.c: New file.
73615         * lib/unistr/u-strnlen.h: New file.
73616
73617         * modules/unistr/u8-strpbrk: New file.
73618         * modules/unistr/u16-strpbrk: New file.
73619         * modules/unistr/u32-strpbrk: New file.
73620         * lib/unistr/u8-strpbrk.c: New file.
73621         * lib/unistr/u16-strpbrk.c: New file.
73622         * lib/unistr/u32-strpbrk.c: New file.
73623         * lib/unistr/u-strpbrk.h: New file.
73624
73625         * modules/unistr/u8-strrchr: New file.
73626         * modules/unistr/u16-strrchr: New file.
73627         * modules/unistr/u32-strrchr: New file.
73628         * lib/unistr/u8-strrchr.c: New file.
73629         * lib/unistr/u16-strrchr.c: New file.
73630         * lib/unistr/u32-strrchr.c: New file.
73631
73632         * modules/unistr/u8-strspn: New file.
73633         * modules/unistr/u16-strspn: New file.
73634         * modules/unistr/u32-strspn: New file.
73635         * lib/unistr/u8-strspn.c: New file.
73636         * lib/unistr/u16-strspn.c: New file.
73637         * lib/unistr/u32-strspn.c: New file.
73638         * lib/unistr/u-strspn.h: New file.
73639
73640         * modules/unistr/u8-strstr: New file.
73641         * modules/unistr/u16-strstr: New file.
73642         * modules/unistr/u32-strstr: New file.
73643         * lib/unistr/u8-strstr.c: New file.
73644         * lib/unistr/u16-strstr.c: New file.
73645         * lib/unistr/u32-strstr.c: New file.
73646         * lib/unistr/u-strstr.h: New file.
73647
73648         * modules/unistr/u8-strtok: New file.
73649         * modules/unistr/u16-strtok: New file.
73650         * modules/unistr/u32-strtok: New file.
73651         * lib/unistr/u8-strtok.c: New file.
73652         * lib/unistr/u16-strtok.c: New file.
73653         * lib/unistr/u32-strtok.c: New file.
73654         * lib/unistr/u-strtok.h: New file.
73655
73656         * modules/unistr/u8-uctomb: New file.
73657         * modules/unistr/u16-uctomb: New file.
73658         * modules/unistr/u32-uctomb: New file.
73659         * lib/unistr/u8-uctomb.c: New file.
73660         * lib/unistr/u16-uctomb.c: New file.
73661         * lib/unistr/u32-uctomb.c: New file.
73662
73663         * MODULES.html.sh (Unicode string functions): Add the new modules.
73664
73665 2007-01-08  Bruno Haible  <bruno@clisp.org>
73666
73667         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
73668         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
73669         subdirectories.
73670
73671 2007-01-08  Karl Berry  <karl@gnu.org>
73672
73673         * doc/error.texi: mention that main() fns must set program_name
73674         when progname is used.
73675
73676 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
73677
73678         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
73679         WCTYPE_H is empty, for the benefit of builds from non-distclean
73680         directories.  Problem reported by Eric Blake in
73681         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
73682
73683 2007-01-08  Bruno Haible  <bruno@clisp.org>
73684
73685         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
73686         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
73687         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
73688         PROVIDE_CANONICALIZE_FILENAME_MODE.
73689         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
73690
73691 2007-01-08  Bruno Haible  <bruno@clisp.org>
73692
73693         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
73694         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
73695         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
73696         * lib/fts.c: Likewise.
73697         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
73698
73699 2006-12-25  Bruno Haible  <bruno@clisp.org>
73700
73701         * modules/utf8-ucs4-safe: New file.
73702         * lib/utf8-ucs4-safe.h: New file.
73703         * lib/unistr/utf8-ucs4-safe.c: New file.
73704
73705         * modules/utf16-ucs4-safe: New file.
73706         * lib/utf16-ucs4-safe.h: New file.
73707         * lib/unistr/utf16-ucs4-safe.c: New file.
73708
73709         * MODULES.html.sh (Unicode string functions): Add the new modules.
73710
73711 2007-01-08  Bruno Haible  <bruno@clisp.org>
73712
73713         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
73714         (Depends-on): Add unitypes.
73715         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
73716         (u8_mbtouc_aux): Move out to separate file.
73717         (u8_mbtouc): Use ucs4_t, uint8_t types.
73718         * lib/unistr/utf8-ucs4.c: New file.
73719
73720         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
73721         (Depends-on): Add unitypes.
73722         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
73723         (u16_mbtouc_aux): Move out to separate file.
73724         (u16_mbtouc): Use ucs4_t, uint16_t types.
73725         * lib/unistr/utf16-ucs4.c: New file.
73726
73727         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
73728         (Depends-on): Add unitypes.
73729         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
73730         (u8_uctomb_aux): Move out to separate file.
73731         (u8_uctomb): Use ucs4_t, uint8_t types.
73732         * lib/unistr/ucs4-utf8.c: New file.
73733
73734         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
73735         (Depends-on): Add unitypes.
73736         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
73737         (u16_uctomb_aux): Move out to separate file.
73738         (u16_uctomb): Use ucs4_t, uint16_t types.
73739         * lib/unistr/ucs4-utf16.c: New file.
73740
73741 2006-12-25  Bruno Haible  <bruno@clisp.org>
73742
73743         * modules/unitypes: New file.
73744         * lib/unitypes.h: New file.
73745         * MODULES.html.sh (func_all_modules): New section "Unicode string
73746         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
73747         this section. Add unitypes.
73748
73749 2007-01-08  Bruno Haible  <bruno@clisp.org>
73750
73751         Avoid variable names that conflict with those from libtool.
73752         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
73753         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
73754         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
73755         library_names_spec to acl_library_names_spec, hardcode_* to
73756         acl_hardcode_*.
73757         Reported by Ralf Wildenhues.
73758
73759 2007-01-08  Bruno Haible  <bruno@clisp.org>
73760
73761         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
73762         definition.
73763         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
73764         definition.
73765         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
73766         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
73767         definition.
73768         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
73769         definition.
73770         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
73771         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
73772         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
73773         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
73774         definition.
73775         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
73776         definition.
73777         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
73778         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
73779         GC_USE_<algorithm>.
73780         * lib/gc-libgcrypt.c: Likewise.
73781         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
73782         * modules/gc-arctwo (configure.ac): Likewise.
73783         * modules/gc-des (configure.ac): Likewise.
73784         * modules/gc-hmac-md5 (configure.ac): Likewise.
73785         * modules/gc-hmac-sha1 (configure.ac): Likewise.
73786         * modules/gc-md2 (configure.ac): Likewise.
73787         * modules/gc-md4 (configure.ac): Likewise.
73788         * modules/gc-md5 (configure.ac): Likewise.
73789         * modules/gc-random (configure.ac): Likewise.
73790         * modules/gc-rijndael (configure.ac): Likewise.
73791         * modules/gc-sha1 (configure.ac): Likewise.
73792
73793 2007-01-08  Bruno Haible  <bruno@clisp.org>
73794
73795         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
73796         macro definition.
73797         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
73798         definition.
73799         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
73800         definition.
73801         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
73802         * modules/fcntl-safer (configure.ac): Likewise.
73803         * modules/fopen-safer (configure.ac): Likewise.
73804         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
73805         GNULIB_FWRITEERROR macro definition.
73806
73807 2007-01-08  Bruno Haible  <bruno@clisp.org>
73808
73809         * m4/gnulib-common.m4: New file.
73810         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
73811         (func_get_filelist): Add m4/gnulib-common.m4.
73812
73813 2007-01-08  Bruno Haible  <bruno@clisp.org>
73814
73815         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
73816         command.
73817
73818 2007-01-08  Jim Meyering  <jim@meyering.net>
73819
73820         Use a more robust test for a "can't happen" condition.
73821         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
73822         narrowed the st_size value.  Presuming the "can't happen" condition
73823         is true, that narrowing could conceivably convert an invalid st_size
73824         value into a valid one.  Instead, use a change based on Matthew
73825         Woehlke's original patch.
73826
73827         Slight readability improvement: use an assert-like macro
73828         in place of literal "abort ()" uses.
73829         * lib/fts.c (fts_assert): Define.
73830         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
73831         Use this macro instead of a bare 'abort'.
73832
73833 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
73834
73835         Don't worry about using IRIX 5.3's wctype.h broken definitions;
73836         simply work around them.
73837         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
73838         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
73839         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
73840         declaring.
73841         Don't bother to define as macros, since the standard doesn't require it.
73842         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
73843         longer worry about IRIX 5.3.
73844         (HAVE_WCTYPE_CTMP_BUG): Remove.
73845
73846 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
73847
73848         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
73849         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
73850         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
73851         Problems reported by Georg Schwarz for IRIX 5.3.
73852
73853         * gnulib-tool (autoconf_minversion): Take the maximum version number
73854         found, not the minimum.  Problem reported by James Youngman.
73855
73856 2007-01-03  Karl Berry  <karl@gnu.org>
73857
73858         * doc/error.texi: new file, explaining interaction with progname.
73859         * doc/gnulib.texi: include it.  Update copyright.
73860
73861 2007-01-03  Simon Josefsson  <simon@josefsson.org>
73862
73863         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
73864         AC_CANONICAL_HOST, to improve autobuild outputs.
73865
73866 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
73867             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
73868
73869         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
73870         sockets, server sockets, and other file descriptors.  Count errors
73871         to compute the return value.  Reorder the code a bit to be easier
73872         to follow.  Don't set event bits that were not requested (except
73873         POLLERR and POLLHUP).
73874
73875 2007-01-01  Bruno Haible  <bruno@clisp.org>
73876
73877         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
73878
73879 2007-01-03  Jim Meyering  <jim@meyering.net>
73880
73881         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
73882
73883 2007-01-02  Bruno Haible  <bruno@clisp.org>
73884
73885         * modules/settime (Include): Require timespec.h.
73886         * modules/nanosleep (Include): Likewise.
73887
73888 2007-01-01  Bruno Haible  <bruno@clisp.org>
73889
73890         * gnulib-tool (func_emit_copyright_notice): Bump year.
73891         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
73892
73893 2007-01-01  Bruno Haible  <bruno@clisp.org>
73894
73895         Improve support for OpenBSD.
73896         * build-aux/config.rpath (libname_spec): Export.
73897         (library_names_spec): New variable. Export.
73898         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
73899         library_names_spec from the config.rpath output. Locate shared library
73900         through the name pattern in library_names_spec.
73901
73902 2007-01-01  Eric Blake  <ebb9@byu.net>
73903
73904         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
73905
73906 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
73907
73908         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
73909         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
73910         assume the C locale, and avoid an "eval" that could cause trouble.
73911         Problem with SORT reported by Bob Proulx.
73912
73913         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
73914         Define.  Trivial patch from Henning Nielsen Lund, originally
73915         sent to bug-grep@gnu.org today.
73916
73917 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
73918
73919         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
73920         struct stat.  Problem reported by Henning Nielsen Lund.
73921         * lib/acl.c: Include acl.h first, to check interface.  Don't
73922         bother to include sys/types.h and sys/stat.h again.
73923
73924 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
73925
73926         Import the following change from libc; problem reported by
73927         Sven Verdoolaege.
73928
73929         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
73930
73931         [BZ #1373]
73932         * lib/argp.h: Remove __NTH for __argp_usage inline function.
73933
73934 2006-12-28  Jim Meyering  <jim@meyering.net>
73935
73936         * build-aux/announce-gen: Do not assume that the package
73937         builds any of tar.gz, tar.bz2, and .xdelta files.
73938         Suggestion from Simon Josefsson.
73939
73940 2006-12-28  Simon Josefsson  <simon@josefsson.org>
73941
73942         * modules/announce-gen: New file.
73943
73944 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
73945
73946         * lib/mbchar.h: Just include <wctype.h>; the wctype module
73947         handles its gotchas now.
73948         * lib/mbswidth.c: Likewise.
73949         * lib/wcwidth.h: Likewise.
73950         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
73951         and iswcntrl; the wctype module does this stuff now.
73952         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
73953         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
73954         * modules/mbchar (Depends-on): Add wctype.
73955         * modules/mbswidth (Depends-on): Likewise.
73956         * modules/wcwidth (Depends-on): Likewise.
73957
73958 2006-12-27  Eric Blake  <ebb9@byu.net>
73959
73960         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
73961         module uses more than what <wctype.h> is required to provide.
73962
73963 2006-12-26  Eric Blake  <ebb9@byu.net>
73964
73965         * gnulib-tool (sed_extract_prog): Avoid space-tab.
73966
73967 2006-12-26  Eric Blake  <ebb9@byu.net>
73968
73969         * modules/absolute-header: New module.
73970         * modules/fcntl (Depends-on): Depend on it.
73971         * modules/inttypes (Depends-on): Likewise.
73972         * modules/stdint (Depends-on): Likewise.
73973         * modules/sys_stat (Depends-on): Likewise.
73974         * modules/wctype (Depends-on): Likewise.
73975         * MODULES.html.sh (Support for building libraries and
73976         executables): Document it.
73977
73978 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
73979
73980         * gnulib-tool (SED): Remove, undoing previous change.
73981         The problem was that it broke coreutils on Solaris, because
73982         "sed --posix" leaked into a makefile.
73983         (sed): New alias, if 'alias' and GNU sed.
73984
73985 2006-12-24  Jim Meyering  <jim@meyering.net>
73986
73987         Work around an fchownat bug in glibc-2.4:
73988         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
73989         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
73990         in spite of the -P option.
73991         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
73992         New macros.
73993         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
73994         * modules/openat (Files): Add lib/fchownat.c.
73995         * lib/openat.c (fchownat): Don't define here.  Move to...
73996         * lib/fchownat.c: ...this new file.
73997
73998 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
73999
74000         Fix bug reported by Bruno Haible in
74001         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
74002         where quotearg.c didn't compile on Mac OS X 10.2 because it
74003         lacks <wchar.h> and wint_t.
74004         * lib/wctype_.h (__wctype_wint_t): New type.
74005         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
74006         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
74007         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
74008         Arg is now of type __wctype_wint_t, not wint_t.
74009         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
74010         substitute HAVE_WINT_T.
74011         * modules/wctype (Files): Add m4/wint_t.m4.
74012         (wctype.h): Substitute HAVE_WINT_T.
74013
74014 2006-12-23  Bruno Haible  <bruno@clisp.org>
74015
74016         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
74017
74018 2006-12-23  Bruno Haible  <bruno@clisp.org>
74019
74020         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
74021         S_ISLNK.
74022         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
74023         mingw.
74024
74025 2006-12-22  Bruno Haible  <bruno@clisp.org>
74026
74027         * lib/copy-file.c: Include acl.h.
74028         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
74029         Close the file descriptors only after being done with copy_acl.
74030         * modules/copy-file (Depends-on): Add acl.
74031
74032 2006-12-22  Bruno Haible  <bruno@clisp.org>
74033
74034         * gnulib-tool (SED): New variable.
74035         Use $SED instead of sed everywhere.
74036
74037 2006-12-22  Bruno Haible  <bruno@clisp.org>
74038
74039         * modules/no-c++: New file.
74040         * m4/no-c++.m4: New file.
74041         * MODULES.html.sh (Support for building libraries and executables):
74042         Add no-c++.
74043
74044 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
74045
74046         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
74047         Include <limits.h>, and use its INT_MAX to rewrite the
74048         j loop so that it does not overflow 'int'.  Problem reported by
74049         Ralf Wildenhues in
74050         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
74051         Play it safe by shifting left by 1 rather than multiplying by 2,
74052         as GCC is less likely to optimize this away when the value
74053         is signed (when it assumes overflow leads to undefined behavior).
74054         Also, don't assume time_t uses two's complement.
74055
74056 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
74057
74058         * MODULES.html.sh: New module wctype.
74059         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
74060         * lib/fnmatch.c: Don't bother to include <wchar.h> before
74061         <wctype.h>, since the new wctype module should fix this.
74062         * lib/quotearg.c: Include <wctype.h> unconditionally, since
74063         the wctype module should arrange for it.
74064         * lib/regex_internal.h: Likewise.
74065         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
74066         since the wctype module should handle this now.
74067         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
74068         * modules/fnmatch (Depends-on): Add wctype.
74069         * modules/quotearg (Depends-on): Likewise.
74070         * modules/regex (Depends-on): Likewise.
74071
74072 2006-12-19  Bruno Haible  <bruno@clisp.org>
74073
74074         * lib/strdup.h [C++]: Wrap definitions in extern "C".
74075         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
74076
74077 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74078
74079         * modules/savewd (Depends-on): Fix dependency on fcntl.
74080
74081 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
74082
74083         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
74084         conforms to C99, rather than relying on the user's environment
74085         setting of STDINT_H.
74086
74087 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
74088         and Eric Blake  <ebb9@byu.net>
74089
74090         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
74091         This is more consistent with the other defines here.
74092         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
74093         Port to z/OS.  Problem reported by Paul Gilmartin.
74094         Change local vars to use gl_ prefix rather than ac_.
74095         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
74096         with other defines.
74097         * modules/double-slash-root: New module.
74098         * modules/dirname (Files): Remove m4/double-slash-root.m4.
74099         (Depends-on): Add double-slash-root.
74100         * MODULES.html.sh (File system functions): Mention new module.
74101
74102 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
74103
74104         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
74105         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
74106         This is for the benefit of gzip, which doesn't do i18n.
74107
74108 2006-12-12  Jim Meyering  <jim@meyering.net>
74109
74110         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
74111         Reported by Andreas Schwab <schwab@suse.de>.
74112
74113 2006-12-12  Bruno Haible  <bruno@clisp.org>
74114
74115         Merge these changes.
74116         2006-09-05  Bruno Haible  <bruno@clisp.org>
74117         * lib/iconvme.c (iconv_string): No need to save and restore errno when
74118         iconv_alloc succeeded.
74119         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
74120         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
74121         test for " && dest " at the end - dest is always != NULL there. Call
74122         iconv with 4xNULL arguments initially, to reset the state. Call iconv
74123         with 2xNULL arguments, also to flush the state storage. Handle the
74124         IRIX iconv behaviour. Realloc the final result, to throw away unused
74125         memory.
74126
74127 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
74128
74129         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
74130         and fchmodat unconditionally, since glibc 2.4 has them.
74131         Problem reported by Arkadiusz Miskiewicz.
74132
74133 2006-12-10  Bruno Haible  <bruno@clisp.org>
74134
74135         * gnulib-tool (func_import): Show the include files only for those
74136         modules that are copied and specified.
74137         Reported by Karl Berry.
74138
74139 2006-12-08  Jim Meyering  <jim@meyering.net>
74140
74141         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
74142         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
74143
74144         * build-aux/announce-gen: Add two new options, both optional:
74145         --bootstrap-tools=TOOL_LIST
74146               a comma-separated list of tools, e.g.,
74147               autoconf,automake,bison,gnulib
74148         --gnulib-snapshot-date=DATE
74149               if gnulib is in the bootstrap tool list,
74150               then report this as the snapshot date.
74151               If not specified, use the current date/time.
74152               If you specify a date here, be sure it's UTC.
74153
74154 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74155
74156         * tests/test-argp-2.sh: Fix test to match actual output.
74157         (func_compare): Fix sed script to be portable.
74158
74159 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
74160
74161         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
74162         workaround for this case.  It is not autoconfigured now; offhand
74163         it's hard to see how to autoconfigure it.
74164
74165 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
74166
74167         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
74168         a directory that is about to be chowned.  Such a directory's
74169         initial file permissions should permit the owner only and this
74170         should not be changed until after the chown, since the group and
74171         other bits would be incorrect if they granted permission before
74172         the chown.
74173
74174         Fix porting problem for iswctype reported by Georg Schwarz in:
74175         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
74176         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
74177         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
74178         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
74179         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
74180
74181 2006-12-03  Jim Meyering  <jim@meyering.net>
74182
74183         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
74184         p->fts_statp may not yet be defined.
74185         (fts_read): Instead, set it in the caller, once p->fts_statp is
74186         sure to be defined, and corresponds to a top-level directory.
74187         This bug made du -x fail.  Here's the coreutils test case:
74188         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
74189         Reported by Mike Frysinger.
74190
74191 2006-12-01  Jim Meyering  <jim@meyering.net>
74192
74193         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
74194         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
74195         Reported by Simon Josefsson.
74196
74197 2006-11-30  Jim Meyering  <jim@meyering.net>
74198
74199         * m4/warning.m4: Use the all-permissive copyright notice
74200         recommended by RMS (rather than LGPL).
74201         * m4/vararrays.m4: Likewise.
74202         * m4/flexmember.m4: Likewise.
74203
74204 2006-11-29  Bruno Haible  <bruno@clisp.org>
74205
74206         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
74207         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
74208         using +=.
74209         Reported by Simon Josefsson <simon@josefsson.org>.
74210
74211 2006-11-28  James Youngman <jay@gnu.org>
74212
74213         * README: Advise users that they might find the bug-gnulib@gnu.org
74214         and autotools-announce@gnu.org mailing lists useful.
74215
74216 2006-11-28  Bruno Haible  <bruno@clisp.org>
74217
74218         * m4/ptrdiff_max.m4: Remove file.
74219
74220 2006-11-21  Bruno Haible  <bruno@clisp.org>
74221
74222         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
74223         _AC_COMPUTE_INT.
74224         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
74225         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
74226         _AC_COMPUTE_INT.
74227         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
74228         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
74229         _AC_COMPUTE_INT.
74230         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
74231
74232 2006-11-28  Jim Meyering  <jim@meyering.net>
74233
74234         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
74235         warning from "gcc -Wshadow" about shadowing the builtin.
74236
74237 2006-11-27  Bruno Haible  <bruno@clisp.org>
74238
74239         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
74240         _AC_COMPUTE_INT.
74241         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
74242
74243 2006-11-27  Bruno Haible  <bruno@clisp.org>
74244             Paul Eggert  <eggert@cs.ucla.edu>
74245
74246         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
74247
74248 2006-11-26  Bruno Haible  <bruno@clisp.org>
74249
74250         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
74251         noinst_LTLIBRARIES.
74252
74253 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
74254             Bruno Haible  <bruno@clisp.org>
74255
74256         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
74257         if compiling with "gcc -ansi".
74258
74259 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
74260
74261         Fix some incompatibilities with gcc -ansi -pedantic.
74262         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
74263         if compiling pedantically with GCC, unless it's C99 or later.
74264         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
74265         it mishandles gcc -ansi -pedantic as well.
74266         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
74267         if gcc -pedantic.
74268         * lib/regexec.c (check_node_accept_bytes): Don't use auto
74269         initializers for struct if -pedantic, unless it's C99 or later.
74270
74271 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
74272
74273         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
74274         Don't close an fd more than once. Identical atimes indicate
74275         success, not failure.
74276
74277 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
74278
74279         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
74280
74281 2006-11-23  Jim Meyering  <jim@meyering.net>
74282
74283         * build-aux/announce-gen: New file.  From coreutils.
74284
74285 2006-11-22  Jim Meyering  <jim@meyering.net>
74286
74287         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
74288         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
74289         (fts_read): Use a temporary to narrow the overused st_size member
74290         before using it in a switch statement.  Reported by Matthew Woehlke.
74291
74292         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
74293         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
74294
74295 2006-11-20  Bruno Haible  <bruno@clisp.org>
74296
74297         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
74298         changequote instead of pairs of brackets.
74299         Reported by Andreas Schwab <schwab@suse.de>.
74300
74301 2006-11-21  Jim Meyering  <jim@meyering.net>
74302
74303         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
74304         so as to remain compatible with older compilers.
74305         Patch from Michael Deutschmann.
74306
74307 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
74308
74309         * MODULES.html.sh (File system functions): Add openat.
74310
74311         * lib/openat.h (rpl_fstatat): New macro, if
74312         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
74313         (fstatat): Define to rpl_fstatat under the same conditions,
74314         unless COMPILING_FSTATAT.
74315         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
74316         seems to have the bug.
74317         * lib/fstatat.c: New file.
74318         * modules/openat (Files): Add it.
74319
74320 2006-11-20  Bruno Haible  <bruno@clisp.org>
74321
74322         * Makefile: New file.
74323
74324 2006-11-20  Jim Meyering  <jim@meyering.net>
74325
74326         The beginnings of syntax-related checks for gnulib.
74327         * lib/Makefile: New file.
74328         * lib/t-idcache: New script.  Ensure that the two halves of
74329         idcache.c stay in sync.
74330
74331         * lib/idcache.c: Adjust comments in user- and group- portions to
74332         be more accurate, and to be consistent with one another.
74333
74334 2006-11-20  Jim Meyering  <jim@meyering.net>
74335
74336         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
74337         continue using the flexible array member (thus, this module performs
74338         half as many malloc calls), with the addition that...
74339         (getgroup, getuser): Consistently record a non-match via an empty
74340         "name" string, and map an empty string match to a NULL return value.
74341         * modules/idcache (Depends-on): Re-add flexmember.
74342
74343         * lib/idcache.c (getuser): Remove all uses of the register keyword.
74344         (getuidbyname, getgroup, getgidbyname): Likewise.
74345
74346         Use cleaner syntax: NULL rather than 0.
74347         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
74348
74349 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
74350
74351         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
74352         It mishandled the case where the group was missing.
74353         Problem reported by Greg Schafer.
74354         * modules/idcache: Likewise.
74355
74356 2006-11-18  Jim Meyering  <jim@meyering.net>
74357
74358         * check-module (%exempt_header): Add exception for some
74359         conditionally-included headers.
74360
74361         * modules/i-ring (Depends-on): Add verify.
74362         (License): Change to LGPL.
74363
74364 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
74365
74366         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
74367         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
74368         and inttostr.h.  Use snprintf rather than uinttostr, so that
74369         LGPLed code doesn't depend on GPLed.
74370
74371 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
74372
74373         * modules/inline (License): Change from GPL to LGPL.
74374
74375 2006-11-17  Jim Meyering  <jim@meyering.net>
74376
74377         * modules/d-type (License): Switch to LGPL.
74378
74379 2006-11-15  Bruno Haible  <bruno@clisp.org>
74380
74381         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
74382
74383 2006-11-15  Eric Blake  <ebb9@byu.net>
74384
74385         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
74386         the module dependency.
74387
74388 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74389             Bruno Haible  <bruno@clisp.org>
74390
74391         * gnulib-tool (func_create_testdir): Add license consistency check.
74392
74393 2006-11-15  Eric Blake  <ebb9@byu.net>
74394
74395         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
74396         random "(cached)" in configure output.
74397
74398 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74399
74400         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
74401         test for conforming inttypes.h is both announced and cached.
74402
74403         * MODULES.html.sh (seen_modules, seen_files): New variables.
74404         (func_module): Rewrite to use a few less gnulib-tool and sed
74405         invocations.  Avoid a couple of quadratic algorithms for ...
74406         (missed_modules, missed_files): ... these, with ...
74407         (func_append, func_tmpdir): ... these new functions, from
74408         gnulib-tool.  Analogously, install traps for cleanup.
74409
74410         * tests/test-gc.c (main): Remove unused variables.
74411         * tests/test-read-file.c: Include stdlib.h, for 'free'.
74412
74413 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
74414
74415         * modules/inttostr (License): Change to LGPL.
74416
74417 2006-11-14  Eric Blake  <ebb9@byu.net>
74418
74419         * modules/tempname (License): Change to LGPL.
74420
74421 2006-11-14  Eric Blake  <ebb9@byu.net>
74422
74423         * doc/functions.texi (Function Portability): *printf functions on
74424         Cygwin now understand all POSIX size specifiers.
74425
74426 2006-11-14  Bruno Haible  <bruno@clisp.org>
74427
74428         * modules/c-ctype (License): Change to LGPL.
74429
74430 2006-11-12  Bruno Haible  <bruno@clisp.org>
74431
74432         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
74433         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
74434         for GNOME libraries, for which the include files are installed in
74435         subdirectories of $prefix/include.
74436
74437 2006-11-12  Bruno Haible  <bruno@clisp.org>
74438
74439         * m4/lib-link.m4: Require at least autoconf-2.54.
74440         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
74441         name to underscores for the --with option.
74442
74443 2006-11-13  Bruno Haible  <bruno@clisp.org>
74444
74445         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
74446         the tests directory.
74447         Reported by Ralf Wildenhues.
74448
74449 2006-11-13  Bruno Haible  <bruno@clisp.org>
74450
74451         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
74452         (func_emit_initmacro_end): Undo the override here.
74453         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
74454         Works around the famous automake error in coreutils.
74455
74456 2006-11-13  Eric Blake  <ebb9@byu.net>
74457
74458         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
74459         element, not its node.
74460
74461 2006-11-12  Bruno Haible  <bruno@clisp.org>
74462
74463         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
74464         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
74465
74466 2006-11-12  Bruno Haible  <bruno@clisp.org>
74467
74468         * gnulib-tool: New option --local-symlink.
74469         (func_usage): Document it.
74470         (lsymbolic): New variable.
74471         (func_import, func_create_testdir): If --symlink was not specified,
74472         test whether --local-symlink was specified and the file comes from
74473         the local_gnulib_dir.
74474
74475 2006-11-12  Bruno Haible  <bruno@clisp.org>
74476
74477         * gnulib-tool (func_ln): New function.
74478         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
74479
74480 2006-11-12  Bruno Haible  <bruno@clisp.org>
74481
74482         Finish support for source files in subdirectories.
74483         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
74484         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
74485         AUTOMAKE_OPTIONS.
74486         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
74487
74488 2006-11-12  Bruno Haible  <bruno@clisp.org>
74489
74490         * gnulib-tool (func_get_automake_snippet): Synthesize also an
74491         EXTRA_lib_SOURCES augmentation.
74492         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
74493
74494 2006-11-12  Jim Meyering  <jim@meyering.net>
74495
74496         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
74497         file descriptors.  This also averts a failure on systems with
74498         native openat support when a traversed directory lacks "x" access.
74499         * lib/fts_.h: Include "i-ring.h"
74500         (struct FTS) [fts_fd_ring]: New member.
74501         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
74502         (FCHDIR): Add parentheses.
74503         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
74504         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
74505         When descending, rather than simply closing the previous
74506         fts_cwd_fd value, push that file descriptor onto the ring.
74507         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
74508         (fts_open): Initialize the new fd_ring member.
74509         (fts_close): Clear the ring.
74510         (fts_safe_changedir): When possible, use our new fd_ring to skip
74511         the diropen and fstat and dev/ino comparison that would normally
74512         accompany a virtual `chdir ("..")'.
74513
74514         * modules/fts (Depends-on): Add i-ring.
74515         * modules/i-ring: New module.
74516         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
74517         * m4/i-ring.m4: New file.
74518
74519 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74520
74521         * gnulib-tool (func_create_testdir): Fix replacement of
74522         `build-aux' in configure.ac.  Run autotools in gltests
74523         subdirectory.
74524         (func_create_testdir, func_create_megatestdir, test): There is
74525         no need for '--force' in most autotool invocations in a new
74526         tree.  Actually fail the whole test if any of the tools, or the
74527         configure or make stages fail.
74528
74529         Sync from Automake.
74530         * build-aux/gnupload: Revert last change.  Add pointer to upload
74531         instructions of the GNU Maintenance Instructions.
74532         Suggestion by Karl Berry.
74533
74534 2006-11-10  Jim Meyering  <jim@meyering.net>
74535
74536         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
74537
74538 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
74539
74540         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
74541         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
74542         (bind_textdomain_codeset) [! ENABLE_NLS]:
74543         Evaluate all the arguments.  That way, callers get compatible behavior
74544         if the arguments have side effects.  Also, it avoids some GCC
74545         diagnostics in some cases; Joel E. Denny reported problems when Bison
74546         was configured with --enable-gcc-warnigs.
74547
74548 2006-11-10  Jim Meyering  <jim@meyering.net>
74549
74550         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
74551         relevant options in CFLAGS (like -O, -fno-inline) are taken into
74552         account.
74553
74554 2006-11-10  Jim Meyering  <jim@meyering.net>
74555
74556         * modules/inline: New file/module.
74557         * modules/xalloc (Files): Remove m4/inline.m4.
74558         (Depends-on): Add inline, instead.
74559         * modules/oset: Likewise.
74560         * modules/list: Likewise.
74561
74562 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
74563
74564         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
74565         Problem reported by Matthew Woehlke.
74566
74567 2006-11-09  Bruno Haible  <bruno@clisp.org>
74568
74569         * lib/tempname.c (gen_tempname): Remove variant that invokes
74570         __gen_tempname.
74571         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
74572         __gen_tempname.
74573
74574 2006-11-08  Bruno Haible  <bruno@clisp.org>
74575
74576         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
74577         to 'yes' instead of 'cross-compiling'.
74578
74579 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
74580
74581         * lib/quotearg.h (quotearg_free): New decl.
74582         * lib/quotearg.c (quotearg_free): New function.
74583         (slot0, nslots, slotvec0, slotvec):
74584         Now file-scope so that quotearg_free can get at them.
74585
74586 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74587
74588         Sync from Automake.
74589         * build-aux/gnupload: Add missing 'gnu' to example URL.
74590         Report by Karl Berry.
74591
74592 2006-11-08  Bruno Haible  <bruno@clisp.org>
74593
74594         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
74595         Suggested by Paul Eggert.
74596
74597 2006-11-08  Jim Meyering  <jim@meyering.net>
74598
74599         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
74600         It's already included if !_LIBC.
74601         (fts_safe_changedir): Add a comment.
74602
74603 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
74604
74605         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
74606         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
74607         Matthew Woehlke.
74608
74609         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
74610         definitions up, to avoid colliding with change below.
74611         (static_inline) [HAVE_INLINE]: New macro.
74612         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
74613         Provide extern decls when !HAVE_INLINE.  Do not define unless
74614         static_inline is defined, either by us or by xmalloc.c.  Use
74615         static_inline rather than static inline.
74616         (XCALLOC): Optimize sizeof(T) = 1 case.
74617         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
74618
74619 2006-11-07  Bruno Haible  <bruno@clisp.org>
74620
74621         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
74622         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
74623         AC_C_INLINE.
74624         * modules/xalloc (Files): Add m4/inline.m4.
74625
74626 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74627
74628         * README: Fix typo.
74629         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
74630         (Miscellanous Notes): ...from this.
74631
74632 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
74633
74634         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
74635         Mention that offsetof should be used instead of sizeof.
74636         From Bruno Haible.
74637
74638 2006-11-07  Bruno Haible  <bruno@clisp.org>
74639
74640         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
74641
74642 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
74643
74644         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
74645         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
74646         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
74647         (gl_tree_add_before, gl_tree_add_after):
74648         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
74649         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
74650         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
74651         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
74652         (gl_linked_add_after, gl_linked_add_at): Likewise.
74653         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
74654         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
74655         (gl_tree_add_before, gl_tree_add_after): Likewise.
74656         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
74657         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
74658         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
74659
74660 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74661
74662         * lib/gl_oset.h: Use C comment style, not C++ comment style.
74663
74664 2006-11-06  Bruno Haible  <bruno@clisp.org>
74665
74666         * m4/inline.m4: New file.
74667         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
74668         * modules/list (Files): Add m4/inline.m4.
74669         * modules/oset (Files): Likewise.
74670
74671 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
74672
74673         * lib/idcache.c: Include <stddef.h>, for offsetof.
74674         (struct userid.name): Change from char * to a flexible array member.
74675         All uses changed.
74676         * modules/idcache (Depends-on): Add flexmember.
74677
74678         * MODULES.html.sh (Core language properties): New module flexmember.
74679         * modules/flexmember, m4/flexmember.m4: New files.
74680
74681         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
74682         inline functions that are identical with the old xnmalloc_inline,
74683         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
74684         that we can avoid some unnecessary integer multiplications and
74685         divisions in the common case where the element size is known at
74686         compile time.
74687         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
74688         needed.
74689         (xnboundedmalloc): Remove.
74690         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
74691         arguments, for consistency with rest of this header.
74692         (xcharalloc): Rewrite using XNMALLOC.
74693         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
74694         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
74695         versions have been moved to lib/xalloc.h and renamed to be the
74696         non-*_inline versions.
74697         (xmalloc, xrealloc): Implement without reference to the xnmalloc
74698         and xnrealloc functions, since those functions are now inline and
74699         now call us.
74700         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
74701         renaming described above.
74702         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
74703         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
74704         captures the dependency in AC_C_INLINE.
74705
74706         New module canonicalize-lgpl, proposed by Charles Wilson in
74707         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
74708         with a few small changes afterwards.
74709         * MODULES.html.sh (File system functions): New module
74710         canonicalize-lgpl.
74711         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
74712         and canonicalize_file_name.
74713         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
74714         * modules/canonicalize-lgpl: New files.
74715
74716 2006-11-05  Bruno Haible  <bruno@clisp.org>
74717
74718         * gnulib-tool (func_import, func_create_testdir): Create directories
74719         also for files in subdirectories of lib/.
74720
74721 2006-11-05  Bruno Haible  <bruno@clisp.org>
74722
74723         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
74724         ANSI C compliant.
74725
74726 2006-11-03  Bruno Haible  <bruno@clisp.org>
74727
74728         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
74729         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
74730         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
74731         (xnboundedmalloc): New inline function.
74732         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
74733         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
74734         xmalloc.
74735         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
74736         xmalloc.
74737         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
74738         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
74739         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
74740         xmalloc.
74741         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
74742         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
74743         xmalloc.
74744         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
74745         gl_tree_add_after): Use XMALLOC instead of xmalloc.
74746         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
74747         xmalloc.
74748         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
74749         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
74750         gl_tree_add_after): Use XMALLOC instead of xmalloc.
74751         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
74752         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
74753         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
74754         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
74755
74756 2006-11-03  Bruno Haible  <bruno@clisp.org>
74757
74758         * lib/c-ctype.h [C++]: Define functions without name mangling.
74759         * lib/fwriteerror.h [C++]: Likewise.
74760         * lib/gcd.h [C++]: Likewise.
74761         * lib/linebreak.h [C++]: Likewise.
74762
74763 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
74764
74765         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
74766         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
74767         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
74768         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
74769         Check for functions and headers just once.
74770         Check for declaration of canonicalize_file_name.
74771         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
74772
74773 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
74774
74775         * gnulib-tool (func_import): Fix typo in actioncmd.
74776
74777 2006-11-02  Bruno Haible  <bruno@clisp.org>
74778
74779         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
74780         newline sequence in the Makefile.am snippet as a space, like "make"
74781         does.
74782         Reported by Roger Persson <perrog@gmail.com>.
74783
74784 2006-11-01  Bruno Haible  <bruno@clisp.org>
74785
74786         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
74787         already declared in <string.h>.
74788         * lib/strcase.h (strncasecmp): Don't declare it if yes.
74789
74790 2006-11-01  Bruno Haible  <bruno@clisp.org>
74791
74792         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
74793         * lib/strcase.h: Include <string.h>.
74794         (strcasecmp): Define to rpl_strcasecmp here.
74795
74796 2006-11-01  Bruno Haible  <bruno@clisp.org>
74797
74798         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
74799
74800 2006-11-01  Eric Blake  <ebb9@byu.net>
74801
74802         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
74803
74804         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
74805
74806 2006-10-29  Bruno Haible  <bruno@clisp.org>
74807
74808         Make it compile in C++ mode.
74809         * lib/full-write.c (full_rw): Add a cast.
74810
74811 2006-11-01  Bruno Haible  <bruno@clisp.org>
74812
74813         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
74814         be POSIX compliant.
74815         Reported by Roger Persson <perrog@gmail.com>.
74816
74817 2006-11-01  Eric Blake  <ebb9@byu.net>
74818
74819         * lib/getopt_.h: Fix comments.
74820
74821 2006-10-31  Eric Blake  <ebb9@byu.net>
74822
74823         * modules/tmpdir (Depends-on): Add sys_stat.
74824         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
74825         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
74826         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
74827         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
74828         tempname.
74829
74830 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
74831
74832         Avoid some C++ diagnostics reported by Bruno Haible.
74833         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
74834         xmalloc.
74835         (quotearg_alloc): Use xcharalloc rather than xmalloc.
74836         (struct slotvec): Move to top level.
74837         (quotearg_n_options): Rewrite to avoid xmalloc.
74838         * lib/xalloc.h (xcharalloc): New function.
74839         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
74840         [defined __cplusplus]: Add function template that provides result
74841         type propagation.  This part of the change is from Bruno Haible.
74842
74843 2006-10-29  Bruno Haible  <bruno@clisp.org>
74844
74845         Make it compile in C++ mode.
74846         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
74847         * lib/strnlen1.c (strnlen1): Cast memchr result.
74848         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
74849         * lib/clean-temp.c (string_equals, string_hash): Add casts.
74850         (create_temp_dir): Rename local variable 'template'.
74851         (compile_csharp_using_sscli): Add cast.
74852         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
74853         * lib/findprog.c (find_in_path): Likewise.
74854         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
74855         * lib/wait-process.c (register_slave_subprocess): Likewise.
74856
74857 2006-10-22  Bruno Haible  <bruno@clisp.org>
74858
74859         * modules/tsearch: New file.
74860         * lib/tsearch.h: New file.
74861         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
74862         * m4/tsearch.m4: New file.
74863         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
74864
74865 2006-10-29  Eric Blake  <ebb9@byu.net>
74866
74867         * lib/arcfour.c: Assume config.h.
74868         * lib/arctwo.c: Likewise.
74869         * lib/base64.c: Likewise.
74870         * lib/check-version.c: Likewise.
74871         * lib/crc.c: Likewise.
74872         * lib/des.c: Likewise.
74873         * lib/gc-gnulib.c: Likewise.
74874         * lib/gc-libgcrypt.c: Likewise.
74875         * lib/gc-pbkdf2-sha1.c: Likewise.
74876         * lib/getaddrinfo.c: Likewise.
74877         * lib/getdelim.c: Likewise.
74878         * lib/getline.c: Likewise.
74879         * lib/hmac-md5.c: Likewise.
74880         * lib/hmac-sha1.c: Likewise.
74881         * lib/iconvme.c: Likewise.
74882         * lib/md2.c: Likewise.
74883         * lib/md4.c: Likewise.
74884         * lib/memxor.c: Likewise.
74885         * lib/read-file.c: Likewise.
74886         * lib/readline.c: Likewise.
74887         * lib/rijndael-alg-fst.c: Likewise.
74888         * lib/rijndael-api-fst.c: Likewise.
74889         * lib/xgetdomainname.c: Likewise.
74890
74891 2006-10-28  Eric Blake  <ebb9@byu.net>
74892
74893         * lib/xstrndup.c: Assume config.h.
74894
74895 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
74896
74897         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
74898         stat-macros.h is now for our own macros, whereas stat_h is for
74899         macros in the <sys/stat.h> name space.
74900         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
74901         (STAT_MACROS_H): Remove.
74902         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
74903         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
74904         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
74905         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
74906         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
74907         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
74908         Move these macros to ...
74909         * lib/stat_.h: here.  Don't include stat-macros.h.
74910         * lib/canonicalize.c: Don't include stat-macros.h.
74911         * lib/chown.c: Likewise.
74912         * lib/euidaccess.c: Likewise.
74913         * lib/file-type.c: Likewise.
74914         * lib/filemode.c: Likewise.
74915         * lib/glob.c: Likewise.
74916         * lib/isapipe.c: Likewise.
74917         * lib/lchown.c: Likewise.
74918         * lib/lstat.c: Likewise.
74919         * lib/mkdir-p.c: Likewise.
74920         * lib/rmdir.c: Likewise.
74921         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
74922         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
74923         unless mkdir isn't declared, to speed up 'configure'.
74924         Always create sys/stat.h, since it's unlikely any real sys/stat.h
74925         would define all the S_* symbols.
74926         * modules/canonicalize (Depends-on):
74927         Depend on sys_stat, not stat-macros.
74928         * modules/chown: Likewise.
74929         * modules/euidaccess: Likewise.
74930         * modules/filemode: Likewise.
74931         * modules/file-type: Likewise.
74932         * modules/glob: Likewise.
74933         * modules/isapipe: Likewise.
74934         * modules/lchown: Likewise.
74935         * modules/lstat: Likewise.
74936         * modules/mkancesdirs: Likewise.
74937         * modules/rmdir: Likewise.
74938         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
74939         * modules/modechange: Likewise.
74940         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
74941         (configure.ac): Remove gl_STAT_MACROS.
74942         * modules/sys_stat (Depends-on): Remove stat-macros.
74943
74944 2006-10-27  Bruno Haible  <bruno@clisp.org>
74945
74946         * m4/signed.m4: Remove file.
74947         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
74948         invocation.
74949         * modules/vasnprintf (Files): Remove m4/signed.m4.
74950
74951 2006-10-27  Bruno Haible  <bruno@clisp.org>
74952
74953         Update to GNU gettext 0.16.
74954         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
74955         m4/inttypes-h.m4, m4/signed.m4.
74956         * m4/gettext.m4: Update to GNU gettext 0.16.
74957         * m4/intl.m4: New file, from GNU gettext.
74958         * m4/intldir.m4: New file, from GNU gettext.
74959         * config/srclist.txt: Update
74960
74961 2006-10-27  Eric Blake  <ebb9@byu.net>
74962
74963         * MODULES.html.sh: Document tempname.
74964         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
74965         dependencies.
74966         (Files): Move lib/tempname.c...
74967         * modules/tempname: ...to this new module.
74968         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
74969         (gl_PREREQ_TEMPNAME): Move...
74970         * m4/tempname.m4: ...to this new file.
74971         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
74972         * modules/sys_stat (Depends-on): Add stat-macros.
74973         * lib/stat_.h (includes): Pick up stat macros.
74974         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
74975         if stat macros are broken.
74976         * lib/tempname.c (includes): No need to include "stat-macros.h".
74977         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
74978         (direxists, __path_search) [!_LIBC]: Don't compile these in
74979         gnulib; the tmpdir module covers that.
74980         * lib/tempname.h: New file.
74981
74982 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
74983
74984         * COPYING: Explain how gnulib-tool converts licence headers.
74985         Almost all wording by Eric Blake.
74986
74987 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
74988
74989         * lib/mbchar.h (is_basic_table): Make read-only.
74990         * lib/mbchar.c (is_basic_table): Likewise.
74991         Reported by John Darrington.
74992
74993 2006-10-25  Bruno Haible  <bruno@clisp.org>
74994
74995         * lib/progname.h (set_program_name): Undefine before defining.
74996
74997 2006-10-25  Bruno Haible  <bruno@clisp.org>
74998
74999         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
75000         false for non-gcc C++ compilers.
75001         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
75002
75003 2006-10-24  Bruno Haible  <bruno@clisp.org>
75004
75005         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
75006         iconv implementations like Irix iconv.
75007
75008 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75009
75010         * modules/vararrays: New file.
75011         * m4/vararrays.m4: New file, taken from diffutils.
75012         * MODULES.html.sh: New module vararrays.
75013
75014 2006-10-24  Karl Berry  <karl@gnu.org>
75015
75016         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
75017         Don't call GNU Unix.
75018
75019 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75020
75021         * users.txt: Add Libtool.
75022
75023         Sync from Libtool:
75024
75025         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75026
75027         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
75028         to gnulib's policy of including config.h unconditionally.
75029
75030 2006-10-24  Bruno Haible  <bruno@clisp.org>
75031
75032         * modules/wcwidth (Files): Add m4/wint_t.m4.
75033         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
75034         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
75035
75036 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75037
75038         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
75039         to pacify GCC with some -W flags enabled.  Problem reported by
75040         Bruno Haible.
75041
75042 2006-10-24  Jim Meyering  <jim@meyering.net>
75043
75044         * MODULES.html.sh: Remove uinttostr.  It's not a module.
75045         Reported by Karl Berry.
75046
75047 2006-10-23  Bruno Haible  <bruno@clisp.org>
75048
75049         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
75050
75051 2006-10-24  Bruno Haible  <bruno@clisp.org>
75052
75053         * lib/gl_list.h: Use C comment style, not C++ comment style.
75054
75055 2006-10-23  Eric Blake  <ebb9@byu.net>
75056
75057         * lib/getaddrinfo.c (includes): Add missing include.
75058
75059 2006-10-23  Bruno Haible  <bruno@clisp.org>
75060             Paul Eggert  <eggert@cs.ucla.edu>
75061
75062         Ability to rename obstack_free.
75063         * lib/obstack.h (__obstack_free): New macro. Declare instead of
75064         obstack_free.
75065         (obstack_free): Invoke the __obstack_free macro.
75066         * lib/obstack.c (obstack_free): Use __obstack_free macro.
75067
75068 2006-10-23  Bruno Haible  <bruno@clisp.org>
75069             Paul Eggert  <eggert@cs.ucla.edu>
75070
75071         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
75072         __argc, __argv from the declaration. (They are defined as macros on
75073         mingw.)
75074
75075 2006-10-22  Bruno Haible  <bruno@clisp.org>
75076
75077         * doc/gnulib-intro.texi: New file.
75078         * doc/gnulib.texi: Include it.
75079
75080 2006-10-21  Bruno Haible  <bruno@clisp.org>
75081
75082         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
75083         "Introduction", "Miscellanous Notes", "Particular Modules".
75084
75085 2006-10-21  Bruno Haible  <bruno@clisp.org>
75086
75087         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75088         Change mostlyclean-local rule to avoid sh syntax error from bash
75089         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
75090
75091 2006-10-23  Jim Meyering  <jim@meyering.net>
75092
75093         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
75094         in place of snprintf.
75095
75096         * modules/inttostr (Files): Add lib/uinttostr.c.
75097         * lib/uinttostr.c (inttostr): New file/function.
75098         * lib/inttostr.h (uinttostr): Declare.
75099         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
75100         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
75101         Add uinttostr.
75102         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
75103
75104 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
75105
75106         * lib/canonicalize.c (ELOOP): Define if not already defined.
75107         Problem reported by Bruno Haible in
75108         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
75109
75110 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
75111
75112         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
75113         Problem reported by Perry Smith and Ville Laurikari.
75114
75115         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
75116         uses.
75117
75118 2006-10-19  Bruno Haible  <bruno@clisp.org>
75119
75120         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
75121         for mingw.
75122
75123 2006-10-19  Bruno Haible  <bruno@clisp.org>
75124
75125         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
75126         Needed for mingw.
75127
75128 2006-10-19  Bruno Haible  <bruno@clisp.org>
75129
75130         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
75131
75132 2006-10-19  Bruno Haible  <bruno@clisp.org>
75133
75134         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
75135         it.
75136
75137 2006-10-19  Bruno Haible  <bruno@clisp.org>
75138
75139         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
75140         invocation.
75141
75142 2006-10-19  Bruno Haible  <bruno@clisp.org>
75143
75144         * gnulib-tool (func_create_testdir): Don't include ftruncate and
75145         mountlist by default.
75146
75147 2006-10-16  Bruno Haible  <bruno@clisp.org>
75148
75149         * lib/c-strstr.c: Include c-strstr.h.
75150
75151 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
75152
75153         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
75154         in a slash.
75155
75156 2006-10-18  Bruno Haible  <bruno@clisp.org>
75157
75158         * lib/lock.h [C++]: Wrap definitions in extern "C".
75159
75160 2006-10-18  Bruno Haible  <bruno@clisp.org>
75161
75162         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
75163         gl_LIBOBJS list.
75164
75165 2006-10-18  Bruno Haible  <bruno@clisp.org>
75166
75167         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
75168
75169 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
75170
75171         * lib/xstrtol.h: Include gettext.h.
75172         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
75173         Problem reported by Eric Blake.
75174         * modules/xstrtol (Depends-on): Add gettext-h.
75175
75176 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
75177
75178         * lib/strftime.c (advance): New macro.
75179         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
75180         incomplete type, so you can't add 0 to it.  Problem and patch
75181         reported by Eelco Dolstra for dietlibc.
75182
75183 2006-10-18  Jim Meyering  <jim@meyering.net>
75184
75185         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
75186         type for a local, and rename it: s/up/user_proc/.
75187
75188 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
75189
75190         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
75191         READ_UTMP_USER_PROCESS.
75192         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
75193
75194 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
75195
75196         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
75197         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
75198
75199 2006-10-17  Eric Blake  <ebb9@byu.net>
75200
75201         * lib/sigprocmask.c (sigprocmask): Fix typo.
75202
75203         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
75204
75205         * modules/clean-temp (Makefile.am): Don't add to make output...
75206         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
75207         config.h.
75208
75209 2006-10-17  Bruno Haible  <bruno@clisp.org>
75210
75211         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
75212         differently if DEFAULT_TEXT_DOMAIN is set.
75213
75214 2006-10-16  Bruno Haible  <bruno@clisp.org>
75215
75216         * lib/clean-temp.c: Include fwriteerror.h.
75217
75218 2006-10-16  Bruno Haible  <bruno@clisp.org>
75219
75220         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
75221
75222 2006-10-16  Bruno Haible  <bruno@clisp.org>
75223
75224         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
75225         * lib/sigprocmask.h: Include <sys/types.h>.
75226         (sigset_t): Use the system's definition if present.
75227
75228 2006-10-17  Eric Blake  <ebb9@byu.net>
75229
75230         * lib/xvasprintf.c (includes): Assume config.h.
75231         * lib/xasprintf.c (includes): Likewise.
75232
75233 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
75234
75235         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
75236         at least as wide as intmax_t.
75237
75238 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
75239
75240         (Imported from Automake.)
75241         * build-aux/gnupload: Update to version 1.1 of directive file.
75242
75243 2006-10-16  Eric Blake  <ebb9@byu.net>
75244
75245         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
75246         match Automake 1.10a.
75247
75248 2006-10-14  Bruno Haible  <bruno@clisp.org>
75249
75250         * modules/sigprocmask: New file.
75251         * lib/sigprocmask.h: New file.
75252         * lib/sigprocmask.c: New file.
75253         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
75254         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
75255         request sigprocmask.o.
75256         (gl_PREREQ_SIGPROCMASK): New macro.
75257         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
75258         (Depends-on): Add sigprocmask.
75259         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
75260         gt_SIGNALBLOCKING. Test for 'raise' only once.
75261         * lib/fatal-signal.c: Include sigprocmask.h.
75262         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
75263         unblock_fatal_signals): Define always.
75264         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75265         sigprocmask.
75266
75267 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
75268
75269         Sync from Automake.
75270         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
75271         which incorrectly sets the mode of an existing destination
75272         directory.  In some cases the unpatched install-sh could do the
75273         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
75274         system.  We hope this is rare in practice, but it's clearly worth
75275         fixing.  Problem reported by Alex Unleashed in
75276         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
75277         Also, don't bother to check for -m bugs unless we're using -m;
75278         suggested by Stepan Kasal.
75279
75280 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75281
75282         Sync from Automake.
75283         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
75284         `-c' flag, so they appear at the same position as in %FASTDEP%
75285         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
75286         which ignores unknown options only after the first non-option.
75287         Bug report against M4 by Nelson H. F. Beebe.
75288
75289 2006-10-13  Jim Meyering  <jim@meyering.net>
75290
75291         Fix a bug in yesterday's change.
75292         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
75293         p->fts_statp->st_dev would be used uninitialized.
75294         Ensures that we always call fts_stat on the very first entry.
75295         Miklos Szeredi reported that find -xdev stopped working.
75296
75297 2006-10-12  Bruno Haible  <bruno@clisp.org>
75298
75299         * gnulib-tool (func_get_automake_snippet): Append an automatically
75300         computed EXTRA_DIST augmentation.
75301         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
75302         * modules/alloca-opt (Makefile.am): Likewise.
75303         * modules/allocsa (Makefile.am): Likewise.
75304         * modules/arcfour (Makefile.am): Likewise.
75305         * modules/arctwo (Makefile.am): Likewise.
75306         * modules/argmatch (Makefile.am): Likewise.
75307         * modules/argz (Makefile.am): Likewise.
75308         * modules/atexit (Makefile.am): Likewise.
75309         * modules/backupfile (Makefile.am): Likewise.
75310         * modules/byteswap (Makefile.am): Likewise.
75311         * modules/c-strtod (Makefile.am): Likewise.
75312         * modules/c-strtold (Makefile.am): Likewise.
75313         * modules/calloc (Makefile.am): Likewise.
75314         * modules/canon-host (Makefile.am): Likewise.
75315         * modules/canonicalize (Makefile.am): Likewise.
75316         * modules/chdir-long (Makefile.am): Likewise.
75317         * modules/chdir-safer (Makefile.am): Likewise.
75318         * modules/check-version (Makefile.am): Likewise.
75319         * modules/chown (Makefile.am): Likewise.
75320         * modules/cloexec (Makefile.am): Likewise.
75321         * modules/close-stream (Makefile.am): Likewise.
75322         * modules/closeout (Makefile.am): Likewise.
75323         * modules/crc (Makefile.am): Likewise.
75324         * modules/csharpexec (Makefile.am): Likewise.
75325         * modules/cycle-check (Makefile.am): Likewise.
75326         * modules/des (Makefile.am): Likewise.
75327         * modules/dev-ino (Makefile.am): Likewise.
75328         * modules/dirfd (Makefile.am): Likewise.
75329         * modules/dirname (Makefile.am): Likewise.
75330         * modules/dup2 (Makefile.am): Likewise.
75331         * modules/eealloc (Makefile.am): Likewise.
75332         * modules/error (Makefile.am): Likewise.
75333         * modules/euidaccess (Makefile.am): Likewise.
75334         * modules/exclude (Makefile.am): Likewise.
75335         * modules/exitfail (Makefile.am): Likewise.
75336         * modules/fcntl-safer (Makefile.am): Likewise.
75337         * modules/fcntl (Makefile.am): Likewise.
75338         * modules/file-type (Makefile.am): Likewise.
75339         * modules/fileblocks (Makefile.am): Likewise.
75340         * modules/filemode (Makefile.am): Likewise.
75341         * modules/filenamecat (Makefile.am): Likewise.
75342         * modules/fnmatch (Makefile.am): Likewise.
75343         * modules/fopen-safer (Makefile.am): Likewise.
75344         * modules/fpending (Makefile.am): Likewise.
75345         * modules/fprintftime (Makefile.am): Likewise.
75346         * modules/free (Makefile.am): Likewise.
75347         * modules/fsusage (Makefile.am): Likewise.
75348         * modules/ftruncate (Makefile.am): Likewise.
75349         * modules/fts (Makefile.am): Likewise.
75350         * modules/gc-arcfour (Makefile.am): Likewise.
75351         * modules/gc-des (Makefile.am): Likewise.
75352         * modules/gc-hmac-md5 (Makefile.am): Likewise.
75353         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
75354         * modules/gc-md4 (Makefile.am): Likewise.
75355         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
75356         * modules/gc-sha1 (Makefile.am): Likewise.
75357         * modules/gc (Makefile.am): Likewise.
75358         * modules/getaddrinfo (Makefile.am): Likewise.
75359         * modules/getcwd (Makefile.am): Likewise.
75360         * modules/getdelim (Makefile.am): Likewise.
75361         * modules/getdomainname (Makefile.am): Likewise.
75362         * modules/getgroups (Makefile.am): Likewise.
75363         * modules/gethostname (Makefile.am): Likewise.
75364         * modules/gethrxtime (Makefile.am): Likewise.
75365         * modules/getline (Makefile.am): Likewise.
75366         * modules/getloadavg (Makefile.am): Likewise.
75367         * modules/getlogin_r (Makefile.am): Likewise.
75368         * modules/getndelim2 (Makefile.am): Likewise.
75369         * modules/getopt (Makefile.am): Likewise.
75370         * modules/getpagesize (Makefile.am): Likewise.
75371         * modules/getpass-gnu (Makefile.am): Likewise.
75372         * modules/getpass (Makefile.am): Likewise.
75373         * modules/getsubopt (Makefile.am): Likewise.
75374         * modules/gettime (Makefile.am): Likewise.
75375         * modules/gettimeofday (Makefile.am): Likewise.
75376         * modules/getugroups (Makefile.am): Likewise.
75377         * modules/getusershell (Makefile.am): Likewise.
75378         * modules/glob (Makefile.am): Likewise.
75379         * modules/group-member (Makefile.am): Likewise.
75380         * modules/hard-locale (Makefile.am): Likewise.
75381         * modules/hash (Makefile.am): Likewise.
75382         * modules/hmac-md5 (Makefile.am): Likewise.
75383         * modules/hmac-sha1 (Makefile.am): Likewise.
75384         * modules/human (Makefile.am): Likewise.
75385         * modules/idcache (Makefile.am): Likewise.
75386         * modules/imaxabs (Makefile.am): Likewise.
75387         * modules/imaxdiv (Makefile.am): Likewise.
75388         * modules/inet_ntop (Makefile.am): Likewise.
75389         * modules/inet_pton (Makefile.am): Likewise.
75390         * modules/intprops (Makefile.am): Likewise.
75391         * modules/inttostr (Makefile.am): Likewise.
75392         * modules/inttypes (Makefile.am): Likewise.
75393         * modules/isapipe (Makefile.am): Likewise.
75394         * modules/javaversion (Makefile.am): Likewise.
75395         * modules/lchmod (Makefile.am): Likewise.
75396         * modules/lchown (Makefile.am): Likewise.
75397         * modules/localcharset (Makefile.am): Likewise.
75398         * modules/long-options (Makefile.am): Likewise.
75399         * modules/lstat (Makefile.am): Likewise.
75400         * modules/malloc (Makefile.am): Likewise.
75401         * modules/mathl (Makefile.am): Likewise.
75402         * modules/mbchar (Makefile.am): Likewise.
75403         * modules/md2 (Makefile.am): Likewise.
75404         * modules/md4 (Makefile.am): Likewise.
75405         * modules/md5 (Makefile.am): Likewise.
75406         * modules/memcasecmp (Makefile.am): Likewise.
75407         * modules/memchr (Makefile.am): Likewise.
75408         * modules/memcmp (Makefile.am): Likewise.
75409         * modules/memcoll (Makefile.am): Likewise.
75410         * modules/memcpy (Makefile.am): Likewise.
75411         * modules/memmem (Makefile.am): Likewise.
75412         * modules/memmove (Makefile.am): Likewise.
75413         * modules/mempcpy (Makefile.am): Likewise.
75414         * modules/memrchr (Makefile.am): Likewise.
75415         * modules/memset (Makefile.am): Likewise.
75416         * modules/memxor (Makefile.am): Likewise.
75417         * modules/mkancesdirs (Makefile.am): Likewise.
75418         * modules/mkdir-p (Makefile.am): Likewise.
75419         * modules/mkdir (Makefile.am): Likewise.
75420         * modules/mkdtemp (Makefile.am): Likewise.
75421         * modules/mkstemp (Makefile.am): Likewise.
75422         * modules/mktime (Makefile.am): Likewise.
75423         * modules/modechange (Makefile.am): Likewise.
75424         * modules/mountlist (Makefile.am): Likewise.
75425         * modules/nanosleep (Makefile.am): Likewise.
75426         * modules/obstack (Makefile.am): Likewise.
75427         * modules/openat (Makefile.am): Likewise.
75428         * modules/pagealign_alloc (Makefile.am): Likewise.
75429         * modules/pathmax (Makefile.am): Likewise.
75430         * modules/physmem (Makefile.am): Likewise.
75431         * modules/poll (Makefile.am): Likewise.
75432         * modules/posixtm (Makefile.am): Likewise.
75433         * modules/posixver (Makefile.am): Likewise.
75434         * modules/putenv (Makefile.am): Likewise.
75435         * modules/quote (Makefile.am): Likewise.
75436         * modules/quotearg (Makefile.am): Likewise.
75437         * modules/raise (Makefile.am): Likewise.
75438         * modules/read-file (Makefile.am): Likewise.
75439         * modules/readline (Makefile.am): Likewise.
75440         * modules/readlink (Makefile.am): Likewise.
75441         * modules/readtokens (Makefile.am): Likewise.
75442         * modules/readutmp (Makefile.am): Likewise.
75443         * modules/realloc (Makefile.am): Likewise.
75444         * modules/regex (Makefile.am): Likewise.
75445         * modules/rename-dest-slash (Makefile.am): Likewise.
75446         * modules/rename (Makefile.am): Likewise.
75447         * modules/rijndael (Makefile.am): Likewise.
75448         * modules/rmdir (Makefile.am): Likewise.
75449         * modules/rpmatch (Makefile.am): Likewise.
75450         * modules/safe-read (Makefile.am): Likewise.
75451         * modules/safe-write (Makefile.am): Likewise.
75452         * modules/same-inode (Makefile.am): Likewise.
75453         * modules/same (Makefile.am): Likewise.
75454         * modules/save-cwd (Makefile.am): Likewise.
75455         * modules/savedir (Makefile.am): Likewise.
75456         * modules/setenv (Makefile.am): Likewise.
75457         * modules/settime (Makefile.am): Likewise.
75458         * modules/sha1 (Makefile.am): Likewise.
75459         * modules/sig2str (Makefile.am): Likewise.
75460         * modules/snprintf (Makefile.am): Likewise.
75461         * modules/stat-macros (Makefile.am): Likewise.
75462         * modules/stat-time (Makefile.am): Likewise.
75463         * modules/stdbool (Makefile.am): Likewise.
75464         * modules/stdint (Makefile.am): Likewise.
75465         * modules/stdlib-safer (Makefile.am): Likewise.
75466         * modules/stpcpy (Makefile.am): Likewise.
75467         * modules/stpncpy (Makefile.am): Likewise.
75468         * modules/strcase (Makefile.am): Likewise.
75469         * modules/strcasestr (Makefile.am): Likewise.
75470         * modules/strchrnul (Makefile.am): Likewise.
75471         * modules/strcspn (Makefile.am): Likewise.
75472         * modules/strdup (Makefile.am): Likewise.
75473         * modules/strerror (Makefile.am): Likewise.
75474         * modules/strftime (Makefile.am): Likewise.
75475         * modules/strndup (Makefile.am): Likewise.
75476         * modules/strnlen (Makefile.am): Likewise.
75477         * modules/strpbrk (Makefile.am): Likewise.
75478         * modules/strsep (Makefile.am): Likewise.
75479         * modules/strstr (Makefile.am): Likewise.
75480         * modules/strtod (Makefile.am): Likewise.
75481         * modules/strtoimax (Makefile.am): Likewise.
75482         * modules/strtok_r (Makefile.am): Likewise.
75483         * modules/strtol (Makefile.am): Likewise.
75484         * modules/strtoll (Makefile.am): Likewise.
75485         * modules/strtoul (Makefile.am): Likewise.
75486         * modules/strtoull (Makefile.am): Likewise.
75487         * modules/strtoumax (Makefile.am): Likewise.
75488         * modules/strverscmp (Makefile.am): Likewise.
75489         * modules/sys_socket (Makefile.am): Likewise.
75490         * modules/sys_stat (Makefile.am): Likewise.
75491         * modules/sysexits (Makefile.am): Likewise.
75492         * modules/time_r (Makefile.am): Likewise.
75493         * modules/timegm (Makefile.am): Likewise.
75494         * modules/timespec (Makefile.am): Likewise.
75495         * modules/tmpfile-safer (Makefile.am): Likewise.
75496         * modules/trim (Makefile.am): Likewise.
75497         * modules/unistd-safer (Makefile.am): Likewise.
75498         * modules/unlinkdir (Makefile.am): Likewise.
75499         * modules/unlocked-io (Makefile.am): Likewise.
75500         * modules/userspec (Makefile.am): Likewise.
75501         * modules/utime (Makefile.am): Likewise.
75502         * modules/utimecmp (Makefile.am): Likewise.
75503         * modules/utimens (Makefile.am): Likewise.
75504         * modules/vasnprintf (Makefile.am): Likewise.
75505         * modules/vasprintf (Makefile.am): Likewise.
75506         * modules/vsnprintf (Makefile.am): Likewise.
75507         * modules/xalloc (Makefile.am): Likewise.
75508         * modules/xgetcwd (Makefile.am): Likewise.
75509         * modules/xnanosleep (Makefile.am): Likewise.
75510         * modules/xreadlink (Makefile.am): Likewise.
75511         * modules/xstrtod (Makefile.am): Likewise.
75512         * modules/xstrtol (Makefile.am): Likewise.
75513         * modules/xstrtold (Makefile.am): Likewise.
75514         * modules/yesno (Makefile.am): Likewise.
75515         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
75516
75517 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
75518
75519         * modules/error (Makefile.am): Distribute files through
75520         EXTRA_DIST, not lib_SOURCES.
75521
75522 2006-10-12  Eric Blake  <ebb9@byu.net>
75523
75524         * modules/error (Makefile.am): Distribute files in /lib.
75525         * modules/obstack (Makefile.am): Likewise.
75526
75527 2006-10-12  Bruno Haible  <bruno@clisp.org>
75528
75529         * modules/acl (Makefile.am): Distribute all files in lib/ through
75530         EXTRA_DIST.
75531         * modules/arcfour (Makefile.am): Likewise.
75532         * modules/arctwo (Makefile.am): Likewise.
75533         * modules/argmatch (Makefile.am): Likewise.
75534         * modules/argz (Makefile.am): Likewise.
75535         * modules/atexit (Makefile.am): Likewise.
75536         * modules/backupfile (Makefile.am): Likewise.
75537         * modules/c-strtod (Makefile.am): Likewise.
75538         * modules/c-strtold (Makefile.am): Likewise.
75539         * modules/calloc (Makefile.am): Likewise.
75540         * modules/canon-host (Makefile.am): Likewise.
75541         * modules/canonicalize (Makefile.am): Likewise.
75542         * modules/chdir-long (Makefile.am): Likewise.
75543         * modules/chdir-safer (Makefile.am): Likewise.
75544         * modules/check-version (Makefile.am): Likewise.
75545         * modules/chown (Makefile.am): Likewise.
75546         * modules/cloexec (Makefile.am): Likewise.
75547         * modules/close-stream (Makefile.am): Likewise.
75548         * modules/closeout (Makefile.am): Likewise.
75549         * modules/crc (Makefile.am): Likewise.
75550         * modules/cycle-check (Makefile.am): Likewise.
75551         * modules/des (Makefile.am): Likewise.
75552         * modules/dirfd (Makefile.am): Likewise.
75553         * modules/dirname (Makefile.am): Likewise.
75554         * modules/dup2 (Makefile.am): Likewise.
75555         * modules/euidaccess (Makefile.am): Likewise.
75556         * modules/exclude (Makefile.am): Likewise.
75557         * modules/exitfail (Makefile.am): Likewise.
75558         * modules/fcntl-safer (Makefile.am): Likewise.
75559         * modules/file-type (Makefile.am): Likewise.
75560         * modules/fileblocks (Makefile.am): Likewise.
75561         * modules/filemode (Makefile.am): Likewise.
75562         * modules/filenamecat (Makefile.am): Likewise.
75563         * modules/fnmatch (Makefile.am): Likewise.
75564         * modules/fopen-safer (Makefile.am): Likewise.
75565         * modules/fpending (Makefile.am): Likewise.
75566         * modules/fprintftime (Makefile.am): Likewise.
75567         * modules/free (Makefile.am): Likewise.
75568         * modules/fsusage (Makefile.am): Likewise.
75569         * modules/ftruncate (Makefile.am): Likewise.
75570         * modules/fts (Makefile.am): Likewise.
75571         * modules/gc (Makefile.am): Likewise.
75572         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
75573         * modules/getaddrinfo (Makefile.am): Likewise.
75574         * modules/getcwd (Makefile.am): Likewise.
75575         * modules/getdelim (Makefile.am): Likewise.
75576         * modules/getdomainname (Makefile.am): Likewise.
75577         * modules/getgroups (Makefile.am): Likewise.
75578         * modules/gethostname (Makefile.am): Likewise.
75579         * modules/gethrxtime (Makefile.am): Likewise.
75580         * modules/getline (Makefile.am): Likewise.
75581         * modules/getloadavg (Makefile.am): Likewise.
75582         * modules/getlogin_r (Makefile.am): Likewise.
75583         * modules/getopt (Makefile.am): Likewise.
75584         * modules/getpass (Makefile.am): Likewise.
75585         * modules/getpass-gnu (Makefile.am): Likewise.
75586         * modules/getsubopt (Makefile.am): Likewise.
75587         * modules/gettime (Makefile.am): Likewise.
75588         * modules/gettimeofday (Makefile.am): Likewise.
75589         * modules/getugroups (Makefile.am): Likewise.
75590         * modules/getusershell (Makefile.am): Likewise.
75591         * modules/glob (Makefile.am): Likewise.
75592         * modules/group-member (Makefile.am): Likewise.
75593         * modules/hard-locale (Makefile.am): Likewise.
75594         * modules/hash (Makefile.am): Likewise.
75595         * modules/hmac-md5 (Makefile.am): Likewise.
75596         * modules/hmac-sha1 (Makefile.am): Likewise.
75597         * modules/human (Makefile.am): Likewise.
75598         * modules/idcache (Makefile.am): Likewise.
75599         * modules/imaxabs (Makefile.am): Likewise.
75600         * modules/imaxdiv (Makefile.am): Likewise.
75601         * modules/inet_ntop (Makefile.am): Likewise.
75602         * modules/inet_pton (Makefile.am): Likewise.
75603         * modules/inttostr (Makefile.am): Likewise.
75604         * modules/isapipe (Makefile.am): Likewise.
75605         * modules/lchown (Makefile.am): Likewise.
75606         * modules/long-options (Makefile.am): Likewise.
75607         * modules/lstat (Makefile.am): Likewise.
75608         * modules/malloc (Makefile.am): Likewise.
75609         * modules/mathl (Makefile.am): Likewise.
75610         * modules/mbchar (Makefile.am): Likewise.
75611         * modules/md2 (Makefile.am): Likewise.
75612         * modules/md4 (Makefile.am): Likewise.
75613         * modules/md5 (Makefile.am): Likewise.
75614         * modules/memcasecmp (Makefile.am): Likewise.
75615         * modules/memchr (Makefile.am): Likewise.
75616         * modules/memcmp (Makefile.am): Likewise.
75617         * modules/memcoll (Makefile.am): Likewise.
75618         * modules/memcpy (Makefile.am): Likewise.
75619         * modules/memmem (Makefile.am): Likewise.
75620         * modules/memmove (Makefile.am): Likewise.
75621         * modules/mempcpy (Makefile.am): Likewise.
75622         * modules/memrchr (Makefile.am): Likewise.
75623         * modules/memset (Makefile.am): Likewise.
75624         * modules/memxor (Makefile.am): Likewise.
75625         * modules/mkancesdirs (Makefile.am): Likewise.
75626         * modules/mkdir (Makefile.am): Likewise.
75627         * modules/mkdir-p (Makefile.am): Likewise.
75628         * modules/mkdtemp (Makefile.am): Likewise.
75629         * modules/mkstemp (Makefile.am): Likewise.
75630         * modules/mktime (Makefile.am): Likewise.
75631         * modules/modechange (Makefile.am): Likewise.
75632         * modules/mountlist (Makefile.am): Likewise.
75633         * modules/nanosleep (Makefile.am): Likewise.
75634         * modules/openat (Makefile.am): Likewise.
75635         * modules/pagealign_alloc (Makefile.am): Likewise.
75636         * modules/physmem (Makefile.am): Likewise.
75637         * modules/poll (Makefile.am): Likewise.
75638         * modules/posixtm (Makefile.am): Likewise.
75639         * modules/posixver (Makefile.am): Likewise.
75640         * modules/putenv (Makefile.am): Likewise.
75641         * modules/quote (Makefile.am): Likewise.
75642         * modules/quotearg (Makefile.am): Likewise.
75643         * modules/raise (Makefile.am): Likewise.
75644         * modules/read-file (Makefile.am): Likewise.
75645         * modules/readline (Makefile.am): Likewise.
75646         * modules/readlink (Makefile.am): Likewise.
75647         * modules/readtokens (Makefile.am): Likewise.
75648         * modules/readutmp (Makefile.am): Likewise.
75649         * modules/realloc (Makefile.am): Likewise.
75650         * modules/regex (Makefile.am): Likewise.
75651         * modules/rename (Makefile.am): Likewise.
75652         * modules/rename-dest-slash (Makefile.am): Likewise.
75653         * modules/rijndael (Makefile.am): Likewise.
75654         * modules/rmdir (Makefile.am): Likewise.
75655         * modules/rpmatch (Makefile.am): Likewise.
75656         * modules/safe-read (Makefile.am): Likewise.
75657         * modules/safe-write (Makefile.am): Likewise.
75658         * modules/same (Makefile.am): Likewise.
75659         * modules/save-cwd (Makefile.am): Likewise.
75660         * modules/savedir (Makefile.am): Likewise.
75661         * modules/setenv (Makefile.am): Likewise.
75662         * modules/settime (Makefile.am): Likewise.
75663         * modules/sha1 (Makefile.am): Likewise.
75664         * modules/sig2str (Makefile.am): Likewise.
75665         * modules/snprintf (Makefile.am): Likewise.
75666         * modules/stdlib-safer (Makefile.am): Likewise.
75667         * modules/stpcpy (Makefile.am): Likewise.
75668         * modules/stpncpy (Makefile.am): Likewise.
75669         * modules/strcase (Makefile.am): Likewise.
75670         * modules/strcasestr (Makefile.am): Likewise.
75671         * modules/strchrnul (Makefile.am): Likewise.
75672         * modules/strcspn (Makefile.am): Likewise.
75673         * modules/strdup (Makefile.am): Likewise.
75674         * modules/strerror (Makefile.am): Likewise.
75675         * modules/strftime (Makefile.am): Likewise.
75676         * modules/strndup (Makefile.am): Likewise.
75677         * modules/strnlen (Makefile.am): Likewise.
75678         * modules/strpbrk (Makefile.am): Likewise.
75679         * modules/strsep (Makefile.am): Likewise.
75680         * modules/strstr (Makefile.am): Likewise.
75681         * modules/strtod (Makefile.am): Likewise.
75682         * modules/strtoimax (Makefile.am): Likewise.
75683         * modules/strtok_r (Makefile.am): Likewise.
75684         * modules/strtol (Makefile.am): Likewise.
75685         * modules/strtoll (Makefile.am): Likewise.
75686         * modules/strtoul (Makefile.am): Likewise.
75687         * modules/strtoull (Makefile.am): Likewise.
75688         * modules/strtoumax (Makefile.am): Likewise.
75689         * modules/strverscmp (Makefile.am): Likewise.
75690         * modules/time_r (Makefile.am): Likewise.
75691         * modules/timegm (Makefile.am): Likewise.
75692         * modules/tmpfile-safer (Makefile.am): Likewise.
75693         * modules/unistd-safer (Makefile.am): Likewise.
75694         * modules/unlinkdir (Makefile.am): Likewise.
75695         * modules/userspec (Makefile.am): Likewise.
75696         * modules/utime (Makefile.am): Likewise.
75697         * modules/utimecmp (Makefile.am): Likewise.
75698         * modules/utimens (Makefile.am): Likewise.
75699         * modules/vasnprintf (Makefile.am): Likewise.
75700         * modules/vasprintf (Makefile.am): Likewise.
75701         * modules/vsnprintf (Makefile.am): Likewise.
75702         * modules/xalloc (Makefile.am): Likewise.
75703         * modules/xgetcwd (Makefile.am): Likewise.
75704         * modules/xnanosleep (Makefile.am): Likewise.
75705         * modules/xreadlink (Makefile.am): Likewise.
75706         * modules/xstrtod (Makefile.am): Likewise.
75707         * modules/xstrtol (Makefile.am): Likewise.
75708         * modules/xstrtold (Makefile.am): Likewise.
75709         * modules/yesno (Makefile.am): Likewise.
75710
75711 2006-10-12  Jim Meyering  <jim@meyering.net>
75712
75713         * m4/getloadavg.m4: Revert the change below.
75714
75715         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
75716         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
75717         fail with a symlink, which is what coreutils' ./bootstrap now
75718         creates by default.
75719
75720 2006-10-12  Bruno Haible  <bruno@clisp.org>
75721
75722         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
75723         mingw.
75724         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
75725         MSVC and mingw explicitly.
75726
75727 2006-10-11  Simon Josefsson  <jas@extundo.com>
75728             Bruno Haible  <bruno@clisp.org>
75729
75730         Add support for multiple gnulib-tool invocations in the scope of a
75731         single configure.ac file.
75732         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
75733         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
75734         with the same contents as the _LIBADD variable.
75735         (func_emit_initmacro_start, func_emit_initmacro_end,
75736         func_emit_initmacro_done): New functions.
75737         (func_import, func_create_testdir): Invoke them. Allow the identifiers
75738         gl_LIBOBJS and gl_LTLIBOBJS.
75739
75740 2006-10-11  Bruno Haible  <bruno@clisp.org>
75741
75742         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
75743         (func_create_testdir): Don't create po/Makefile.am, don't invoke
75744         autoreconf. Instead, invoke autopoint explicitly but move back the
75745         *.m4 files from gnulib.
75746
75747 2006-10-11  Bruno Haible  <bruno@clisp.org>
75748
75749         * gnulib-tool (func_usage): Make module names after --create-testdir
75750         optional.
75751         (func_create_testdir): If no module was specified, use nearly all
75752         modules.
75753
75754 2006-10-12  Jim Meyering  <jim@meyering.net>
75755
75756         Big performance improvement for fts-based tools that use FTS_NOSTAT.
75757         Avoid spurious inode-mismatch problems on non-POSIX file systems.
75758         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
75759         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
75760         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
75761         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
75762         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
75763         (fts_set_stat_required): New function.
75764         (fts_open): Defer the calls to fts_stat, if possible or requested.
75765         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
75766         into fts_stat itself.
75767         (fts_read): Perform any required (deferred) fts_stat call.
75768         (fts_build): Likewise, for the directory we're about to open and read.
75769         In the readdir loop, carefully decide whether each entry will require
75770         an eventual call to fts_stat, using dirent.d_type info if available.
75771         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
75772         a command line argument into this function.  Update all callers.
75773         Map a return value of FTS_DOT to FTS_D for a command line argument.
75774         * modules/fts (Depends-on): Add d-type.  Alphabetize.
75775         Thanks to Miklos Szeredi for his tenacity and for the initial
75776         bug report about "find" failing on a FUSE-based file system.
75777
75778         * lib/fts.c (fts_open): Use consistent indentation.
75779
75780 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
75781
75782         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
75783         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
75784         reported by Jim Meyering.  All uses of cache variables renamed
75785         to match Autoconf's.
75786         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
75787         the other one.
75788
75789         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
75790         Fix misspelling in diagnostic.
75791
75792 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
75793
75794         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
75795         defined.  Problem reported by Matthew Woehlke.
75796
75797         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
75798         Add support for Tandem NonStop R series.
75799         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
75800         Use new macro.
75801
75802         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
75803         (has_trailing_slash): Omit size arg; all callers changed.
75804         Omit 'inline', since it doesn't help performance and we'd
75805         need to configure it.
75806         Don't count //, ///, etc. as having a trailing slash.
75807         As a side effect, this removes a C99ism reported by Matthew Woehlke.
75808         (rpl_rename_dest_slash): On failure, use rename's errno rather
75809         than (in some cases) an incorrect or junk errno.
75810         Simplify code by removing need to compute length; this does
75811         cause it to make two passes instead of one over the file name,
75812         but it's worth it.
75813
75814         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
75815         change, since Autoconf's version may no longer be appropriate now
75816         that we are using CVS Autoconf's version.  Add support for Tandem.
75817
75818 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
75819             Bruno Haible  <bruno@clisp.org>
75820
75821         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
75822         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
75823         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
75824         gl_AC_TYPE_LONG_LONG.
75825
75826         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
75827         instead of HAVE_LONG_LONG.
75828         * lib/printf-args.c (printf_fetchargs): Likewise.
75829         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
75830         * lib/vasnprintf.c (VASNPRINTF): Likewise.
75831         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
75832         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
75833         gl_AC_TYPE_LONG_LONG.
75834
75835 2006-10-11  Bruno Haible  <bruno@clisp.org>
75836
75837         * m4/longlong.m4: Add comments.
75838         * m4/ulonglong.m4: Likewise.
75839
75840 2006-10-10  Bruno Haible  <bruno@clisp.org>
75841
75842         Make it possible to #define stpcpy, strdup to aliases.
75843         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
75844         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
75845
75846 2006-10-10  Bruno Haible  <bruno@clisp.org>
75847
75848         Make it possible to #define gcd to an alias.
75849         * lib/gcd.c: Include config.h.
75850
75851 2006-10-10  Bruno Haible  <bruno@clisp.org>
75852
75853         Make it possible to #define c_isascii to an alias.
75854         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
75855         defined. Undefine the macros before defining them, to avoid gcc
75856         warnings.
75857         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
75858         define NO_C_CTYPE_MACROS early.
75859
75860 2006-10-10  Bruno Haible  <bruno@clisp.org>
75861
75862         Make it possible to #define set_program_name to an alias.
75863         * lib/progname.c: Don't undefine set_program_name; instead, undefine
75864         ENABLE_RELOCATABLE early.
75865
75866 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
75867
75868         Port to Tandem NSK OSS, which has 64-bit signed int but at most
75869         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
75870         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
75871         More generally, don't assume that 64-bit signed int is available
75872         if unsigned int is, and vice versa.
75873         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
75874         unsigned symbols, not on their signed counterparts.
75875         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
75876         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
75877         (UINT64_C, UINTMAX_C):
75878         Likewise.
75879         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
75880         unsigned counterparts.
75881         (Have_long_long, Unsigned): New macros.
75882         (Int): Renamed from INT.
75883         (strtoimax): Use the new macros.
75884         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
75885         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
75886         * modules/inttypes (inttypes.h): Substitute
75887         HAVE_UNSIGNED_LONG_LONG_INT.
75888         * modules/stdint (stdint.h): Likewise.
75889         (Files): Add m4/ulonglong.m4.
75890
75891 2006-10-10  Bruno Haible  <bruno@clisp.org>
75892
75893         Fix a gcc -Wshadow warning.
75894         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
75895         to 'bucket'.
75896         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
75897         gl_linked_indexof_from_to): Likewise.
75898         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
75899         Likewise.
75900         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
75901         Likewise.
75902         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
75903         Reported by Eric Blake.
75904
75905 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
75906
75907         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
75908         for NetBSD.  Problem reported by Bruno Haible.
75909
75910 2006-10-09  Jim Meyering  <jim@meyering.net>
75911
75912         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
75913         Patch from Bruno Haible.
75914
75915 2006-10-09  Jim Meyering  <jim@meyering.net>
75916
75917         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
75918         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
75919         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
75920
75921 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
75922
75923         Don't include <config.h> twice; this doesn't work in some cases,
75924         e.g., when config.h has "#define intmax_t long long int" and
75925         we include <config.h>, <inttypes.h>, <config.h> in that order.
75926         Problem reported by Matthew Woehlke in:
75927         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
75928         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
75929         * lib/fts-cycle.c: Don't include config.h.
75930         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
75931         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
75932         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
75933         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
75934         inttypes.h.
75935         * lib/xstrtoumax.c: Likewise.
75936         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
75937         __strtol and the like, so that this module is more like its siblings.
75938         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
75939         Remove; no longer needed now that we assume gnulib inttypes.h.
75940
75941 2006-10-08  Bruno Haible  <bruno@clisp.org>
75942
75943         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
75944         option.
75945
75946 2006-10-07  Jim Meyering  <jim@meyering.net>
75947
75948         * modules/inttypes (inttypes.h): Revert what seems to have been
75949         an inadvertent part of today's change: use "|", not "/" in the
75950         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
75951
75952 2006-10-07  Bruno Haible  <bruno@clisp.org>
75953
75954         * modules/sublist: New file.
75955
75956 2006-10-07  Bruno Haible  <bruno@clisp.org>
75957
75958         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
75959         * modules/argz (argz.h): Likewise.
75960         * modules/arpa_inet (arpa/inet.h): Likewise.
75961         * modules/byteswap (byteswap.h): Likewise.
75962         * modules/configmake (configmake.h): Likewise.
75963         * modules/fcntl (fcntl.h): Likewise.
75964         * modules/fnmatch (fnmatch.h): Likewise.
75965         * modules/getopt (getopt.h): Likewise.
75966         * modules/glob (glob.h): Likewise.
75967         * modules/inttypes (inttypes.h): Likewise.
75968         * modules/netinet_in (netinet/in.h): Likewise.
75969         * modules/poll (poll.h): Likewise.
75970         * modules/stdbool (stdbool.h): Likewise.
75971         * modules/stdint (stdint.h): Likewise.
75972         * modules/sys_select (sys/select.h): Likewise.
75973         * modules/sys_socket (sys/socket.h): Likewise.
75974         * modules/sys_stat (sys/stat.h): Likewise.
75975         * modules/sysexits (sysexits.h): Likewise.
75976         * modules/unistd (unistd.h): Likewise.
75977         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75978         Add a "DO NOT EDIT" comment to the generated file.
75979         (func_import): Likewise for gnulib-comp.m4.
75980
75981 2006-10-07  Bruno Haible  <bruno@clisp.org>
75982
75983         * lib/gl_sublist.h: New file.
75984         * lib/gl_sublist.c: New file.
75985
75986 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
75987
75988         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
75989         name (relative to the original working directory) and the file
75990         name component (relative to the temporary working directory).  All
75991         callers changed.
75992         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
75993         * lib/mkdir-p.c (make_dir_parents): Likewise.
75994         * lib/mkdir-p.h (make_dir_parents): Likewise.
75995
75996 2006-10-06  Eric Blake  <ebb9@byu.net>
75997
75998         Define several macros for use by the clean-temp module.
75999         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
76000         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
76001         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
76002
76003         * lib/clean-temp.h (close_stream_temp): New declaration.
76004         * lib/clean-temp.c (includes): Pull in headers according to what
76005         other modules are in use.
76006         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
76007
76008 2006-10-06  Bruno Haible  <bruno@clisp.org>
76009
76010         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
76011         instead of fopen, fwriteerror.
76012
76013 2006-10-06  Bruno Haible  <bruno@clisp.org>
76014
76015         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
76016         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
76017         int.
76018         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
76019         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
76020         Return an error indicator.
76021         Suggested by Eric Blake.
76022
76023 2006-10-06  Bruno Haible  <bruno@clisp.org>
76024
76025         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
76026         Reported by Eric Blake.
76027
76028 2006-10-06  Bruno Haible  <bruno@clisp.org>
76029
76030         * modules/closeout (Description): Mention stderr too.
76031
76032 2006-10-06  Bruno Haible  <bruno@clisp.org>
76033         and Paul Eggert  <eggert@cs.ucla.edu>
76034
76035         * lib/closeout.c (close_stdout): Also close stderr.
76036         * lib/closeout.h: Update comment.
76037
76038 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
76039
76040         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
76041         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
76042         * lib/dirchownmod.c: Include lchown.h.
76043         * lib/lchown.c: Don't include files that lchown.h now includes.
76044         Don't declare chown, since lchown.h now does that.
76045         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
76046         (lchown): Define to rpl_chown if lchown is declared but
76047         does not exist.  Declare using a prototype if lchown is not
76048         declared.  Add a copyright notice.
76049         * lib/mkstemp.h: Include <unistd.h>.
76050         * lib/openat.c: Include lchown.h.
76051
76052         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
76053         we now test for that separately.
76054         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
76055         rather than O_NOFOLLOW, when testing whether it's possible to
76056         avoid a race condition reliably.
76057         * lib/savewd.c (savewd_chdir): Likewise.
76058
76059         Remove macros that are no longer needed now that stdint.h is
76060         reliable.
76061         * lib/fsusage.c (UINTMAX_MAX): Remove.
76062         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
76063         * lib/utimecmp.c (SIZE_MAX): Remove.
76064
76065         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
76066
76067         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
76068         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
76069         O_NOATIME works.
76070
76071 2006-10-05  Bruno Haible  <bruno@clisp.org>
76072
76073         * lib/gl_list.h (gl_sortedlist_search_from_to,
76074         gl_sortedlist_indexof_from_to): New declarations.
76075         (gl_list_implementation): New fields sortedlist_search_from_to,
76076         sortedlist_indexof_from_to.
76077         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
76078         inline functions.
76079         * lib/gl_list.c (gl_sortedlist_search_from_to,
76080         gl_sortedlist_indexof_from_to): New functions.
76081         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
76082         function.
76083         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
76084         (gl_array_sortedlist_search_from_to): New function.
76085         (gl_array_list_implementation): Update.
76086         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
76087         function.
76088         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
76089         (gl_carray_sortedlist_search_from_to): New function.
76090         (gl_carray_list_implementation): Update.
76091         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
76092         gl_linked_sortedlist_indexof_from_to): New functions.
76093         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
76094         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
76095         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
76096         gl_tree_sortedlist_indexof_from_to): New functions.
76097         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
76098         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
76099         Update.
76100         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
76101         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
76102         Update.
76103
76104 2006-10-05  Bruno Haible  <bruno@clisp.org>
76105
76106         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
76107         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
76108         (struct gl_list_implementation): Add fields search_from_to,
76109         indexof_from_to. Remove fields search, indexof.
76110         (gl_list_search): Use the search_from_to method.
76111         (gl_list_search_from, gl_list_search_from_to): New functions.
76112         (gl_list_indexof): Use the indexof_from_to method.
76113         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
76114         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
76115         (gl_list_search_from, gl_list_search_from_to): New functions.
76116         (gl_list_indexof): Use the indexof_from_to method.
76117         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
76118         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
76119         gl_array_indexof. Add start_index, end_index arguments.
76120         (gl_array_search_from_to): Renamed from gl_array_search. Add
76121         start_index, end_index arguments.
76122         (gl_array_remove, gl_array_list_implementation): Update.
76123         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
76124         gl_carray_indexof. Add start_index, end_index arguments.
76125         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
76126         start_index, end_index arguments.
76127         (gl_carray_remove, gl_carray_list_implementation): Update.
76128         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
76129         gl_linked_search. Add start_index, end_index arguments.
76130         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
76131         start_index, end_index arguments.
76132         (gl_linked_remove): Update.
76133         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
76134         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
76135         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
76136         field to 'size_t'.
76137         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
76138         gl_tree_search. Add start_index, end_index arguments.
76139         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
76140         start_index, end_index arguments.
76141         (gl_tree_remove): Update.
76142         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
76143         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
76144         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
76145         function.
76146         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
76147         gl_tree_search. Add start_index, end_index arguments.
76148         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
76149         start_index, end_index arguments.
76150         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
76151         Update.
76152         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
76153
76154 2006-10-05  Bruno Haible  <bruno@clisp.org>
76155
76156         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
76157
76158         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
76159         fwriteerror_temp): New declarations.
76160         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
76161         (descriptors): New variable.
76162         (cleanup): First, close the descriptors.
76163         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
76164         fclose_temp, fwriteerror_temp): New functions.
76165
76166 2006-10-04  Jim Meyering  <jim@meyering.net>
76167
76168         * lib/fts.c (fts_open): Tiny comment change.
76169
76170 2006-10-04  Bruno Haible  <bruno@clisp.org>
76171
76172         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
76173         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
76174         gl_LOCK_BODY.
76175         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
76176         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
76177         gl_LOCK_EARLY_BODY.
76178         (gl_LOCK): Require gl_LOCK_BODY.
76179
76180 2006-10-04  Bruno Haible  <bruno@clisp.org>
76181
76182         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
76183         (gl_oset_search_atleast): New declaration.
76184         (struct gl_oset_implementation): Add field 'search_atleast'.
76185         (gl_oset_search_atleast): New inline function.
76186         * lib/gl_oset.c (gl_oset_search_atleast): New function.
76187         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
76188         (gl_array_oset_implementation): Update.
76189         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
76190         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
76191         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
76192
76193 2006-10-04  Bruno Haible  <bruno@clisp.org>
76194
76195         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
76196
76197 2006-10-03  Bruno Haible  <bruno@clisp.org>
76198
76199         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
76200         from gl_avltreehash_list_implementation.
76201
76202 2006-10-03  Bruno Haible  <bruno@clisp.org>
76203
76204         * lib/gl_oset.c (gl_oset_add): Fix return type.
76205
76206 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
76207
76208         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
76209
76210 2006-10-02  Eric Blake  <ebb9@byu.net>
76211
76212         * modules/strnlen (Depends-on): Add extensions.
76213
76214 2006-10-02  Eric Blake  <ebb9@byu.net>
76215
76216         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
76217         definition in 2.60+.
76218
76219 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
76220
76221         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
76222         checks.
76223
76224 2006-10-02  Bruno Haible  <bruno@clisp.org>
76225
76226         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
76227         to the AUTOMAKE_OPTIONS.
76228         Reported by Jim Meyering.
76229
76230 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
76231
76232         Work around bug in Solaris 10 /proc file system:
76233         /proc/self/fd/NNN/.. isn't the parent directory of
76234         the directory whose file descriptor is NNN.  This needs to
76235         be worked around at run time, not compile time, since a
76236         program might be built on Solaris 8, where things work, and
76237         run on Solaris 10.
76238         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
76239         to use the following interface instead:
76240         (OPENAT_BUFFER_SIZE): New macro.
76241         (openat_proc_name): New function.
76242         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
76243         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
76244         Likewise.
76245         * lib/openat-proc.c: New file.
76246         * modules/openat (Files): Add lib/openat-proc.c.
76247         (Depends-on): Add same-inode, stdbool.
76248         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
76249
76250 2006-09-29  Bruno Haible  <bruno@clisp.org>
76251
76252         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
76253         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
76254         argument. Set stdout_closed before testing for ferror, not after.
76255         (fwriteerror, fwriteerror_no_ebadf): New functions.
76256
76257 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76258
76259         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
76260
76261 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
76262
76263         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
76264         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
76265
76266 2006-09-28  Jim Meyering  <jim@meyering.net>
76267
76268         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
76269         Include <unistd.h>.
76270
76271 2006-09-28  Bruno Haible  <bruno@clisp.org>
76272
76273         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
76274         * modules/linkedhash-list (Depends-on): Likewise.
76275         * modules/rbtreehash-list (Depends-on): Likewise.
76276
76277 2006-09-28  Bruno Haible  <bruno@clisp.org>
76278
76279         * lib/strndup.h: Simplify the redefinition of strndup.
76280         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
76281         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
76282
76283 2006-09-28  Bruno Haible  <bruno@clisp.org>
76284
76285         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
76286         * lib/gl_linkedhash_list.c: Likewise.
76287         * lib/gl_rbtreehash_list.c: Likewise.
76288
76289 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
76290
76291         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
76292         getaddrinfo.
76293
76294         * lib/__fpending.h: Don't include <stdio_ext.h> unless
76295         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
76296         it causes <stdio_ext.h> to cause a compile-time error.
76297         Problem reported by Nelson H. F. Beebe.
76298         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
76299         of HAVE_DECL___PENDING.
76300
76301         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
76302         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
76303         declaration.
76304
76305 2006-09-27  Jim Meyering  <jim@meyering.net>
76306
76307         This file could end up with a definition for a function
76308         named __strndup, rather than rpl_strndup on a system with
76309         incomplete weak_alias support.
76310         * lib/strndup.c (strndup): Rename from __strndup.
76311         Remove #defines that used to map __strndup to strndup.
76312         Don't use K&R prototypes.
76313         Remove LIBC-related code, since this file is not sync'd with glibc.
76314         * lib/strndup.h: Revamp, accordingly.
76315         * m4/strndup.m4: Modernize.
76316
76317 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
76318
76319         * modules/savewd (Depends-on): Add 'raise'.
76320         * lib/savewd.c: Include <signal.h>, for 'raise'.
76321
76322 2006-09-26  Jim Meyering  <jim@meyering.net>
76323
76324         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
76325         when we detect Darwin 8.7.0's acl_get_file bug.
76326         Rearrange to perform the new (below) run-test while $LIBS
76327         contains any acl-related library.  Set USE_ACL at the end.
76328         (gl_ACL_GET_FILE): New function.
76329
76330 2006-09-26  Eric Blake  <ebb9@byu.net>
76331
76332         * lib/verror.c: Include <config.h> unconditionally.
76333
76334 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
76335
76336         * modules/clock-time (Maintainer): Add self.
76337         * modules/getlogin_r (Depends-on): Add extensions.
76338
76339 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76340
76341         * modules/clock-time: New module.
76342         * modules/nanosleep (Depends-on): Add clock-time.
76343         * modules/gethrxtime (Depends-on): Likewise.
76344         * modules/gettime (Depends-on): Likewise.
76345         * modules/settime (Depends-on): Likewise.
76346
76347         * modules/fts-lgpl: Depend on openat.
76348         * modules/mkancesdirs: Depend on savewd.
76349         * modules/mkdir-p: Likewise.
76350
76351 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76352
76353         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
76354
76355         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
76356         `gl_have_arbitrary_file_name_length_limit' to
76357         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
76358         actually works between configure runs.
76359
76360 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76361             Bruno Haible  <bruno@clisp.org>
76362
76363         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
76364
76365 2006-09-25  Jim Meyering  <jim@meyering.net>
76366
76367         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
76368         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
76369
76370 2006-09-25  Eric Blake  <ebb9@byu.net>
76371
76372         * gnulib-tool (func_import, func_create_testdir): Fix typos in
76373         exec's in 2006-09-18 patch when shuffling fds.
76374
76375 2006-09-25  Bruno Haible  <bruno@clisp.org>
76376
76377         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
76378         Reported by Jim Meyering.
76379
76380 2006-09-24  Jim Meyering  <jim@meyering.net>
76381
76382         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
76383         compare a pointer against a literal "0".  That caused failures with
76384         at least HP-UX's hpcc.
76385
76386 2006-09-22  Simon Josefsson  <jas@extundo.com>
76387
76388         * modules/gc-sha1:
76389         * modules/gc-md4:
76390         * modules/gc-hmac-sha1:
76391         * modules/gc-hmac-md5:
76392         * modules/gc-des:
76393         * modules/gc-arcfour: Distribute more files.
76394
76395 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76396
76397         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
76398         (gl_linked_iterator_from_to): Initialize struct completely.
76399         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
76400         (gl_tree_iterator_from_to): Likewise
76401         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
76402         * lib/gl_array_list.c [lint] (gl_array_iterator)
76403         (gl_array_iterator_from_to): Likewise.
76404         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
76405         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
76406         (gl_carray_iterator_from_to): Likewise.
76407
76408         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
76409         * lib/md4.c (md4_process_block): Remove unused variable.
76410         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
76411         parentheses for clarity.
76412
76413 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76414
76415         * modules/bison-i18n (Depends-on): Add gettext.
76416
76417 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76418
76419         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
76420         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
76421         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
76422         also add missing comma that caused broken test.
76423         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
76424         stdlib.h, for `abort'.
76425         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
76426         variables.
76427         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
76428         include unistd.h if present, for `rmdir'.
76429         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
76430         variables.
76431         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
76432         in the process include standard headers for prototypes.
76433         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
76434         gets declared on GNU/Linux.
76435         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
76436         unistd.h, for `rmdir'.
76437         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
76438
76439         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
76440         always true.
76441         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
76442
76443         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
76444
76445 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76446
76447         * gnulib-tool (func_version): Create output all at once.  This
76448         may help avoid triggering unnecessary SIGPIPEs, and at any
76449         rate it doesn't hurt.
76450
76451 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76452             Bruno Haible  <bruno@clisp.org>
76453
76454         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
76455         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
76456         * m4/signed.m4 (bh_C_SIGNED): Likewise.
76457
76458         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
76459         (gl_FUNC_VASPRINTF): Invoke it.
76460
76461 2006-09-22  Bruno Haible  <bruno@clisp.org>
76462
76463         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
76464         getloadavg.c as first argument.
76465
76466 2006-09-22  Bruno Haible  <bruno@clisp.org>
76467
76468         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
76469         at the beginning of the gl_INIT macro.
76470         * modules/getloadavg (configure.ac): Pass $gl_source_base to
76471         gl_GETLOADAVG.
76472
76473 2006-09-22  Bruno Haible  <bruno@clisp.org>
76474
76475         * gnulib-tool (func_create_megatestdir): Don't include the config-h
76476         module.
76477         Suggested by Ralf Wildenhues.
76478
76479 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
76480
76481         Import this patch from libc:
76482
76483         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
76484
76485         * lib/regex_internal.c (re_string_reconstruct): Handle
76486         offset < pstr->valid_raw_len && pstr->offsets_needed case.
76487         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
76488         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
76489         re_string_context_at.
76490
76491         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
76492         now requires it.
76493         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
76494         gl_REGEX now does it for us.
76495         (gl_REGEX): Add test taken from
76496         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
76497
76498         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
76499         Check that large offsets work.  Modernize Autoconf usages.
76500         Prefer "yes" to mean a good thing rather than a bad.
76501         Don't put "#define mkstemp" in config.h, as this might interfere
76502         with standard system headers that "#define mkstemp mkstemp64".
76503
76504         * modules/mkstemp (Depends-on): Add extensions, so that
76505         mkstemp is visible on some platforms.
76506         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
76507         (Include): Change to "mkstemp.h" from <stdlib.h>.
76508         (Files): Add mkstemp.h.
76509
76510         * lib/mkstemp.h: New file, since some standard headers
76511         #define mkstemp.
76512         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
76513         Include "mkstemp.h".
76514         Make the _LIBC code resemble glibc original more,
76515         e.g., use K&R style.
76516         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
76517         (mkstemp): Remove, since mkstemp.h does this for us.
76518         * lib/stdlib--.h: Include mkstemp.h.
76519
76520         Import this patch from libc:
76521
76522         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
76523
76524         * lib/tempname.c (__gen_tempname): Change attempts_min
76525         into a macro.  Use preprocessor to decide how to initialize
76526         attempts [Coverity CID 67].
76527
76528 2006-09-20  Bruno Haible  <bruno@clisp.org>
76529
76530         * lib/mkdtemp.c: Import from libc.
76531         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
76532                 * sysdeps/posix/tempname.c (__gen_tempname): Change
76533                 attempts_min into a macro.  Use preprocessor to decide how to
76534                 initialize attempts [Coverity CID 67].
76535         2001-11-27  Paul Eggert  <eggert@twinsun.com>
76536                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
76537                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
76538
76539 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76540
76541         * gnulib-tool (func_exit): New function, to allow to pass the
76542         exit status portably through the trap.  Use everywhere.
76543         (--help, --version): Signal a write error.
76544         (trap): catch SIGPIPE, for write errors.
76545         Exit at the end of the trap, with the correct exit status.
76546
76547 2006-09-19  Karl Berry  <karl@gnu.org>
76548
76549         * doc/gnulib.texi: note about the license texinfo files.
76550
76551 2006-09-19  Eric Blake  <ebb9@byu.net>
76552
76553         * gnulib-tool: Avoid space-tab.
76554
76555 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
76556
76557         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
76558         that prevented coreutils 6.1 from building.  Problem reported
76559         by Petter Reinholdtsen.
76560
76561 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
76562
76563         * gnulib-tool (avoidlist): Fix typo that broke options like
76564         --avoid=lock that are used by coreutils bootstrap.
76565
76566 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
76567
76568         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
76569         more systematically.
76570
76571 2006-09-18  Jim Meyering  <jim@meyering.net>
76572
76573         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
76574
76575 2006-09-18  Bruno Haible  <bruno@clisp.org>
76576
76577         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
76578
76579 2006-09-18  Bruno Haible  <bruno@clisp.org>
76580
76581         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
76582         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
76583         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
76584         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
76585         * m4/gettext.m4: Require autoconf >= 2.52.
76586         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
76587         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
76588         of gl_cv_header_inttypes_h.
76589
76590 2006-09-18  Bruno Haible  <bruno@clisp.org>
76591
76592         * lib/javaversion.c: Include configmake.h.
76593
76594 2006-09-18  Bruno Haible  <bruno@clisp.org>
76595
76596         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
76597         avoid that the while loops be executed in a subshell.
76598
76599 2006-09-18  Bruno Haible  <bruno@clisp.org>
76600
76601         * MODULES.html.sh (func_module): Break long lines.
76602         Suggested by Bruce Korb <bkorb@gnu.org>.
76603
76604 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76605
76606         Speed up by a factor of 1.12.
76607         * gnulib-tool (nl): New variable.
76608         (func_import): Rewrite include directive extraction to only read each
76609         directive once.
76610
76611 2006-09-17  Bruno Haible  <bruno@clisp.org>
76612
76613         * modules/javaversion (Makefile.am): Remove DEFS setting.
76614         (Depends-on): Add configmake, for PKGDATADIR definition.
76615
76616 2006-09-17  Bruno Haible  <bruno@clisp.org>
76617
76618         * gnulib-tool (func_create_testdir): Rewrite all files at once.
76619
76620 2006-09-17  Bruno Haible  <bruno@clisp.org>
76621
76622         * gnulib-tool (func_append): New function, stolen from libtool.m4.
76623         (func_modules_transitive_closure, func_modules_add_dummy,
76624         func_modules_to_filelist, func_import, func_create_testdir,
76625         func_create_megatestdir, ...): Use it wherever possible.
76626         Suggested by Ralf Wildenhues.
76627
76628 2006-09-16  Karl Berry  <karl@gnu.org>
76629
76630         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
76631         to avoid sectioning errors.
76632         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
76633         [ifinfo]: blank line after @center-ed titles.
76634         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
76635         Spell FSF address consistently with others.
76636         (These changes approved by rms.)
76637
76638 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76639
76640         Speed up by a factor of 1.61.
76641         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
76642         already checked module names again.
76643
76644 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76645
76646         Speed up by a factor of 1.13.
76647         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
76648         for new_files, and the input to func_add_or_update.
76649
76650 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76651
76652         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
76653         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
76654
76655 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
76656
76657         * modules/mkancesdirs (Depends-on): Add fcntl.
76658         * modules/savewd: New file.
76659         * MODULES.html.sh (File system functions): Add savewd.
76660
76661         * modules/configmake (Makefile.am): Add support for the
76662         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
76663
76664 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
76665
76666         * m4/savewd.m4: New file.
76667
76668 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
76669
76670         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
76671         (dirchownmod): New arg FD.  All callers changed.
76672         Use FD rather than opening the directory ourself, as opening is
76673         now the caller's responsibility.
76674         * lib/dirchownmod.h: Likewise.
76675         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
76676         hosts that require <sys/types.h> before <sys/stat.h>.  Include
76677         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
76678         (test_dir): Remove.
76679         (mkancesdirs): Return length of prefix of FILE that has already
76680         been made, or -2 if there is a child doing the work.  Redo
76681         algorithm so that it is O(N) rather than O(N**2).  Optimize away
76682         ".", and treat ".." specially since it might stray back into
76683         already-created areas.  Use a subprocess if necessary.  New arg
76684         WD; all users changed.  MAKE_DIR function should now return 1
76685         if it creates a directory that is not readable.  Return -2 if
76686         a child process is spun off.
76687         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
76688         Adjust signature to match code.
76689         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
76690         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
76691         all users changed.
76692         * lib/savewd.c, lib/savewd.h: New files.
76693
76694 2006-09-15  Jim Meyering  <jim@meyering.net>
76695
76696         * modules/rename-dest-slash: New module.
76697         * MODULES.html.sh (posix_compat): Add it here.
76698
76699         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
76700
76701 2006-09-15  Jim Meyering  <jim@meyering.net>
76702
76703         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
76704         file.
76705
76706         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
76707
76708 2006-09-15  Jim Meyering  <jim@meyering.net>
76709
76710         * lib/rename-dest-slash.c (has_trailing_slash): Use
76711         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
76712         (rpl_rename_dest_slash): Perform the cheaper trailing slash
76713         test before testing whether SRC is a directory.
76714         Suggestions from Bruno Haible.
76715
76716         Avoid a warning about an unused variable.
76717         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
76718         into the #ifdef block where it's used.
76719
76720         * lib/rename-dest-slash.c: New file.
76721
76722 2006-09-14  Bruno Haible  <bruno@clisp.org>
76723
76724         * lib/allocsa.c: Include <config.h> unconditionally.
76725         * lib/asnprintf.c: Likewise.
76726         * lib/asprintf.c: Likewise.
76727         * lib/c-strcasecmp.c: Likewise.
76728         * lib/c-strcasestr.c: Likewise.
76729         * lib/c-strncasecmp.c: Likewise.
76730         * lib/c-strstr.c: Likewise.
76731         * lib/classpath.c: Likewise.
76732         * lib/clean-temp.c: Likewise.
76733         * lib/concatpath.c: Likewise.
76734         * lib/copy-file.c: Likewise.
76735         * lib/csharpcomp.c: Likewise.
76736         * lib/csharpexec.c: Likewise.
76737         * lib/execute.c: Likewise.
76738         * lib/fatal-signal.c: Likewise.
76739         * lib/findprog.c: Likewise.
76740         * lib/fwriteerror.c: Likewise.
76741         * lib/gl_array_list.c: Likewise.
76742         * lib/gl_array_oset.c: Likewise.
76743         * lib/gl_avltree_list.c: Likewise.
76744         * lib/gl_avltree_oset.c: Likewise.
76745         * lib/gl_avltreehash_list.c: Likewise.
76746         * lib/gl_carray_list.c: Likewise.
76747         * lib/gl_linked_list.c: Likewise.
76748         * lib/gl_linkedhash_list.c: Likewise.
76749         * lib/gl_list.c: Likewise.
76750         * lib/gl_oset.c: Likewise.
76751         * lib/gl_rbtree_list.c: Likewise.
76752         * lib/gl_rbtree_oset.c: Likewise.
76753         * lib/gl_rbtreehash_list.c: Likewise.
76754         * lib/imaxabs.c: Likewise.
76755         * lib/imaxdiv.c: Likewise.
76756         * lib/javacomp.c: Likewise.
76757         * lib/javaexec.c: Likewise.
76758         * lib/javaversion.c: Likewise.
76759         * lib/linebreak.c: Likewise.
76760         * lib/localcharset.c: Likewise.
76761         * lib/lock.c: Likewise.
76762         * lib/mbchar.c: Likewise.
76763         * lib/mbswidth.c: Likewise.
76764         * lib/mkdtemp.c: Likewise.
76765         * lib/pipe.c: Likewise.
76766         * lib/printf-args.c: Likewise.
76767         * lib/printf-parse.c: Likewise.
76768         * lib/progname.c: Likewise.
76769         * lib/progreloc.c: Likewise.
76770         * lib/readlink.c: Likewise.
76771         * lib/sh-quote.c: Likewise.
76772         * lib/stpcpy.c: Likewise.
76773         * lib/stpncpy.c: Likewise.
76774         * lib/strcasecmp.c: Likewise.
76775         * lib/strcasestr.c: Likewise.
76776         * lib/strcspn.c: Likewise.
76777         * lib/striconv.c: Likewise.
76778         * lib/strncasecmp.c: Likewise.
76779         * lib/strnlen1.c: Likewise.
76780         * lib/strstr.c: Likewise.
76781         * lib/strtok_r.c: Likewise.
76782         * lib/tls.c: Likewise.
76783         * lib/tmpdir.c: Likewise.
76784         * lib/unicodeio.c: Likewise.
76785         * lib/unsetenv.c: Likewise.
76786         * lib/vasnprintf.c: Likewise.
76787         * lib/vasprintf.c: Likewise.
76788         * lib/wait-process.c: Likewise.
76789         * lib/xallocsa.c: Likewise.
76790         * lib/xsetenv.c: Likewise.
76791         * lib/xstriconv.c: Likewise.
76792
76793 2006-09-13  Simon Josefsson  <jas@extundo.com>
76794
76795         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
76796         that internally, suggested by Ralf Wildenhues
76797         <Ralf.Wildenhues@gmx.de>.
76798
76799 2006-09-13  Simon Josefsson  <jas@extundo.com>
76800
76801         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
76802         @LIBOBJS@.
76803         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
76804
76805 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
76806
76807         * lib/_fpending.c: Include <config.h> unconditionally, since we no
76808         longer worry about uses that don't define HAVE_CONFIG_H.
76809         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
76810         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
76811         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
76812         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
76813         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
76814         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
76815         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
76816         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
76817         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
76818         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
76819         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
76820         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
76821         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
76822         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
76823         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
76824         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
76825         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
76826         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
76827         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
76828         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
76829         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
76830         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
76831         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
76832         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
76833         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
76834         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
76835         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
76836         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
76837         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
76838         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
76839         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
76840         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
76841         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
76842         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
76843         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
76844         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
76845         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
76846         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
76847         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
76848         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
76849         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
76850         Likewise.
76851
76852 2006-09-13  Eric Blake  <ebb9@byu.net>
76853
76854         * lib/getopt.c: Fix typo in last commit.
76855
76856 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
76857
76858         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
76859         dgettext.
76860
76861 2006-09-12  Jim Meyering  <jim@meyering.net>
76862
76863         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
76864         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
76865         Reported by Nelson H. F. Beebe.
76866
76867 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
76868
76869         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
76870         program_invocation_name and program_invocation_short_name are
76871         initialized.
76872         * lib/argp-namefrob.h: Move declarations of program_invocation_name
76873         and program_invocation_short_name to argp.h, so they are visible
76874         to user programs.
76875         * lib/argp.h: Likewise
76876
76877 2006-09-10  Bruno Haible  <bruno@clisp.org>
76878
76879         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
76880         m4/inttypes_h.m4, m4/uintmax_t.m4.
76881
76882 2006-09-10  Bruno Haible  <bruno@clisp.org>
76883
76884         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
76885         gl_AC_TYPE_UINTMAX_T.
76886
76887 2006-09-10  Bruno Haible  <bruno@clisp.org>
76888
76889         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
76890
76891 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76892
76893         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
76894         convention.  Text proposed by Bruno Haible.
76895         (struct argp_option): Document the use of N_() wrappers.
76896
76897         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
76898         '\v', and translate the two parts separately, instead of feeding
76899         the whole string to gettext.  This allows to exclude
76900         '\v' from the strings visible to the translator by writing doc
76901         strings as N_("..") "\v" N_("..").
76902
76903 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
76904
76905         * config/srclist.txt: Undo latest change; the bug was fixed.
76906
76907 2006-09-09  Bruno Haible  <bruno@clisp.org>
76908
76909         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
76910         assignments if building a library without libtool.
76911         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
76912         in func_emit_lib_Makefile_am.
76913         (func_import): When building a static library libfoo.a, arrange to
76914         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
76915         (func_create_testdir): Likewise.
76916         * modules/gc (configure.ac, Makefile.am): If building statically,
76917         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
76918         * modules/iconvme (configure.ac, Makefile.am): Likewise.
76919         * modules/striconv (configure.ac, Makefile.am): Likewise.
76920         Based on a suggestion by Ralf Wildenhues.
76921
76922 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76923
76924         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
76925         Check for unistd.h too, since Autoconf doesn't assume POSIX.
76926         Also:
76927
76928         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76929         Add year_2050_test to catch glibc bug 2821
76930         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
76931
76932         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
76933         Prefer #ifdef to #if.
76934
76935         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
76936         Return from 'main' instead of calling 'exit'.
76937
76938 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76939
76940         * lib/mktime.c (guess_time_tm): Fix bug where mktime
76941         returned the maximum time_t value rather than (time_t) -1.
76942         Problem originally reported by William Bardwell
76943         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
76944
76945         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
76946         Moved to here ...
76947         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
76948         ... from here.
76949
76950 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76951
76952         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
76953         2821 is fixed.
76954
76955 2006-09-08  Jim Meyering  <jim@meyering.net>
76956
76957         Don't make generated files read-only.  That would bother too many
76958         people.  However, do retain the ability to work when targets are
76959         read-only: remove the destination and temporary files before writing
76960         them (when generated via sed or echo), or by using the -f option for
76961         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
76962         * modules/alloca-opt, modules/argz, modules/arpa_inet:
76963         * modules/byteswap, modules/configmake, modules/fcntl:
76964         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
76965         * modules/localcharset, modules/netinet_in, modules/poll:
76966         * modules/stdbool, modules/stdint, modules/sys_select:
76967         * modules/sys_socket, modules/sys_stat, modules/sysexits:
76968
76969 2006-09-08  Jim Meyering  <jim@meyering.net>
76970
76971         Avoid new build failure on FreeBSD 6.0.
76972         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
76973         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
76974         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
76975
76976 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76977
76978         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
76979
76980 2006-09-07  Jim Meyering  <jim@meyering.net>
76981
76982         Fix global typo in last change: use chmod u-w, not chmod u-x.
76983         Spotted by Paul Eggert and Bruce Korb.
76984         * modules/alloca-opt, modules/argz, modules/arpa_inet:
76985         * modules/byteswap, modules/configmake, modules/fcntl:
76986         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
76987         * modules/localcharset, modules/netinet_in, modules/poll:
76988         * modules/stdbool, modules/stdint, modules/sys_select:
76989         * modules/sys_socket, modules/sys_stat, modules/sysexits:
76990
76991 2006-09-06  Jim Meyering  <jim@meyering.net>
76992
76993         Make generated files be read-only.
76994         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
76995         Ensure that each generated file is now read-only.
76996         * modules/argz: Likewise.
76997         * modules/arpa_inet: Likewise.
76998         * modules/byteswap: Likewise.
76999         * modules/configmake: Likewise.
77000         * modules/fcntl: Likewise.
77001         * modules/fnmatch: Likewise.
77002         * modules/getopt: Likewise.
77003         * modules/glob: Likewise.
77004         * modules/inttypes: Likewise.
77005         * modules/netinet_in: Likewise.
77006         * modules/poll: Likewise.
77007         * modules/stdbool: Likewise.
77008         * modules/stdint: Likewise.
77009         * modules/sys_select: Likewise.
77010         * modules/sys_socket: Likewise.
77011         * modules/sys_stat: Likewise.
77012         * modules/sysexits: Likewise.
77013         * modules/localcharset: Same as above, but continue using temporary
77014         file named "t-$@" (why different?) rather than the "$@-t" used
77015         everywhere else.
77016
77017         * modules/sysexits (Makefile.am): Replace literal occurrences
77018         of "sysexit.h" more readable, and more consistent, "$@".
77019
77020 2006-09-06  Bruno Haible  <bruno@clisp.org>
77021
77022         * modules/striconv: New file.
77023         * modules/xstriconv: New file.
77024         * MODULES.html.sh (Internationalization functions): Add striconv,
77025         xstriconv.
77026
77027 2006-09-06  Bruno Haible  <bruno@clisp.org>
77028
77029         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
77030         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
77031         not using libtool correctly.
77032
77033 2006-09-06  Bruno Haible  <bruno@clisp.org>
77034
77035         * lib/striconv.h: New file.
77036         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
77037         iconvstring.c.
77038         * lib/xstriconv.h: New file.
77039         * lib/xstriconv.c: New file.
77040
77041 2006-09-06  Bruno Haible  <bruno@clisp.org>
77042
77043         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
77044         lib_..._LDFLAGS.
77045
77046 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77047
77048         * lib/argz_.h: Sync from Libtool.
77049
77050         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
77051                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
77052
77053         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
77054
77055 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
77056
77057         * modules/trim: New file.
77058
77059 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
77060
77061         * lib/trim.h: New file.
77062         * lib/trim.c: New file.
77063
77064 2006-09-05  Bruno Haible  <bruno@clisp.org>
77065
77066         * MODULES.html.sh (String handling): Add trim.
77067
77068 2006-09-04  Karl Berry  <karl@gnu.org>
77069
77070         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
77071         until next release.
77072
77073 2006-09-03  Bruno Haible  <bruno@clisp.org>
77074
77075         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
77076         correctly.
77077
77078 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
77079
77080         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
77081         not gl_GETLOADAVG.  Omit unneeded semicolons.
77082         Problems reported by Ralf Wildenhues in
77083         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
77084         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
77085         at the end, which is the usual gnulib style.
77086
77087         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
77088         of doing all the work ourselves.
77089         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
77090         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
77091
77092 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
77093
77094         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
77095         Problem reported by Ralf Wildenhues in
77096         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
77097
77098         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
77099         HAVE_STRUCT_STATFS_F_FSTYPENAME.
77100
77101 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
77102
77103         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
77104         yesterday's patch by changing test -n to test -z.
77105
77106 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77107
77108         * modules/getloadavg (Files): Add m4/getloadavg.m4.
77109         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
77110         the former is now obsolescent.
77111
77112         * modules/chdir-long (Depends-on): Add fcntl.
77113
77114 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77115
77116         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
77117         obsolescent, and programs should use gnulib instead.
77118         * m4/getloadavg.m4: New file, with contents taken from Autoconf
77119         but with prefixes changed.
77120
77121 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77122
77123         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
77124         or stdbool.h, because they might not exist while configuring.
77125
77126         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
77127         Don't include unistd.h or limits.h; not needed, since chdir-long.h
77128         does that for us.
77129         (O_DIRECTORY): Remove.
77130
77131 2006-08-31  Eric Blake  <ebb9@byu.net>
77132
77133         * gnulib-tool: Don't let emacs change spaces to TAB.
77134
77135 2006-08-31  Bruno Haible  <bruno@clisp.org>
77136
77137         * gnulib-tool: When calling func_import more than once, do it in a
77138         subshell.
77139         Reported by Eric Blake <ebb9@byu.net>.
77140
77141 2006-08-31  Bruno Haible  <bruno@clisp.org>
77142
77143         * gnulib-tool (nl): Remove variable.
77144         (sed_transform_lib_file): Use more robust test for config-h module.
77145         (func_import): Fix typo in 2006-08-25 patch.
77146
77147 2006-08-31  Bruno Haible  <bruno@clisp.org>
77148
77149         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
77150         specified, augment Makefile.am variables instead of assigning them.
77151
77152 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
77153
77154         Work around a bug in both the Linux and SunOS 64-bit kernels:
77155         nanosleep mishandles sleeps for longer than 2**31 seconds.
77156         Problem reported by Frank v Waveren in
77157         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
77158         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
77159         Check for nanosleep bug.
77160         (LIB_NANOSLEEP): Append clock_gettime library if needed.
77161
77162 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
77163
77164         Work around a bug in both the Linux and SunOS 64-bit kernels:
77165         nanosleep mishandles sleeps for longer than 2**31 seconds.
77166         Problem reported by Frank v Waveren in
77167         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
77168         * lib/nanosleep.c (BILLION): New constant.
77169         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
77170         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
77171         implementation.
77172
77173 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
77174
77175         * modules/nanosleep (Depends-on): Add gettime.
77176
77177 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
77178         and Simon Josefsson  <jas@extundo.com>
77179         and Oskar Liljeblad  <oskar@osk.mine.nu>
77180
77181         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
77182         * gnulib-tool (func_import): New license type 'unmodifiable license
77183         text'.
77184         * modules/fdl: Use it.  Longer description.
77185         * module/gpl, module/lgpl: New files.
77186
77187 2006-08-30  Jim Meyering  <jim@meyering.net>
77188
77189         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
77190         shadowing the parameter.
77191
77192 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77193
77194         Sync from Libtool:
77195
77196         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77197
77198         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
77199         sharing with gnulib.  Report by Eric Blake.
77200
77201 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
77202
77203         * modules/isapipe: New file.
77204         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
77205
77206 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
77207
77208         * modules/configmake (Makefile.am): Add a comment, and omit
77209         the CONFIGMAKE_ prefix from generated macro names.  Suggested
77210         by Bruno Haible.
77211
77212 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
77213
77214         * m4/isapipe.m4: New file.
77215
77216 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
77217
77218         * lib/isapipe.c, lib/isapipe.h: New files.
77219
77220 2006-08-29  Jim Meyering  <jim@meyering.net>
77221
77222         * modules/configmake (Makefile.am): Make configmake.h depend on
77223         Makefile.  Otherwise, a stale configmake.h could hang around.
77224
77225 2006-08-29  Eric Blake  <ebb9@byu.net>
77226
77227         * lib/error.c (error_at_line, print_errno_message): Match libc, after
77228         resolution of upstream bug 3044.
77229
77230 2006-08-29  Bruno Haible  <bruno@clisp.org>
77231
77232         * modules/localcharset (Depends-on): Add configmake.
77233         (Makefile.am): Remove setting of LIBDIR through DEFS.
77234
77235 2006-08-29  Bruno Haible  <bruno@clisp.org>
77236
77237         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
77238         defined.
77239
77240 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
77241
77242         * modules/fcntl: New file.
77243         * modules/chdir-safer (Depends-on): Add fcntl.
77244         * modules/fts: Likewise.
77245         * modules/mkdir-p: Likewise.
77246
77247         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
77248         This undoes the most recent change, since we're now addressing the
77249         problem in a different way.
77250
77251         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
77252         into output, since the output might be called Makefile.am even
77253         if $makefile_name is something different.
77254         (func_import): Use $makefile_am rather than
77255         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
77256         empty.
77257
77258         * modules/inttypes (Files): Add m4/inttypes-h.m4.
77259
77260 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
77261
77262         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
77263         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
77264         recent change to stdint.m4, since we're now addressing the problem in a
77265         different way.
77266
77267 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
77268
77269         * m4/fcntl_h.m4: New file.
77270
77271 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
77272
77273         * lib/fcntl_.h: New file.
77274         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
77275         the fcntl module.
77276         * lib/dirchownmod.c: Likewise.
77277         * lib/fts.c: Likewise.
77278
77279         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
77280         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
77281         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
77282         just before including <inttypes.h>, to avoid circular inclusion.
77283
77284 2006-08-28  Jim Meyering  <jim@meyering.net>
77285
77286         * doc/visibility.texi: Actually read and correct the grammar of the
77287         sentence affected by yesterday's change.
77288
77289 2006-08-28  Eric Blake  <ebb9@byu.net>
77290
77291         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
77292         needs wrapper.
77293
77294 2006-08-28  Eric Blake  <ebb9@byu.net>
77295
77296         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
77297
77298 2006-08-28  Eric Blake  <ebb9@byu.net>
77299
77300         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
77301
77302 2006-08-28  Bruno Haible  <bruno@clisp.org>
77303
77304         * modules/c-strstr: New file, from GNU gettext.
77305         * MODULES.html.sh (String handling): Add c-strstr.
77306
77307 2006-08-28  Bruno Haible  <bruno@clisp.org>
77308
77309         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
77310         macros.
77311         Reported by Eric Blake.
77312
77313 2006-08-28  Bruno Haible  <bruno@clisp.org>
77314
77315         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
77316         (VASNPRINTF): Return a string of length > INT_MAX without failing.
77317         * lib/vasprintf.c: Include errno.h, limits.h.
77318         (EOVERFLOW): New fallback definition.
77319         (vasprintf): Test here whether the string length is > INT_MAX.
77320         * lib/vsnprintf.c: Include errno.h, limits.h.
77321         (EOVERFLOW): New fallback definition.
77322         (vsnprintf): Fix bug when generated string was too long for the buffer.
77323         Test here whether the string length is > INT_MAX.
77324
77325 2006-08-28  Bruno Haible  <bruno@clisp.org>
77326
77327         * lib/inttypes_.h (SCNX*): Remove definitions.
77328         Reported by Eric Blake.
77329
77330 2006-08-28  Bruno Haible  <bruno@clisp.org>
77331
77332         * lib/c-strstr.h: New file, from GNU gettext.
77333         * lib/c-strstr.c: New file, from GNU gettext.
77334
77335 2006-08-28  Bruno Haible  <bruno@clisp.org>
77336
77337         * gnulib-tool: Reorder some statements.
77338
77339 2006-08-28  Bruno Haible  <bruno@clisp.org>
77340
77341         * gnulib-tool: New option --makefile-name.
77342         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
77343         $makefile_name.
77344         (func_import): Write $makefile_name to the cache file, and read it from
77345         there unless explicitly specified. Use $makefile_name as file name
77346         instead of Makefile.am. Adjust the recommendations accordingly.
77347
77348 2006-08-28  Bruno Haible  <bruno@clisp.org>
77349
77350         * gnulib-tool (func_verify_module): Check against misapplying patch.
77351
77352 2006-08-28  Bruno Haible  <bruno@clisp.org>
77353
77354         * gnulib-tool (func_relativize, func_relconcat): New functions.
77355         Give an error if --local-dir is given with --update.
77356         Remove trailing slashes from $local_gnulib_dir.
77357         (func_import): Store the relativized $local_gnulib_dir in
77358         gnulib-cache.m4, and read it from there if not specified explicitly.
77359
77360 2006-08-28  Bruno Haible  <bruno@clisp.org>
77361
77362         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
77363         is the current directory. Respect also $local_gnulib_dir.
77364
77365 2006-08-28  Bruno Haible  <bruno@clisp.org>
77366             Simon Josefsson  <jas@extundo.com>
77367
77368         BeOS portability.
77369         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
77370
77371 2006-08-27  Jim Meyering  <jim@meyering.net>
77372
77373         * doc/visibility.texi: Remove duplicate word: "pointer".
77374
77375 2006-08-26  Bruno Haible  <bruno@clisp.org>
77376
77377         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
77378         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
77379         (Makefile.am): Create inttypes.h from inttypes_.h.
77380         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
77381
77382         * modules/imaxabs: New file.
77383
77384         * modules/imaxdiv: New file.
77385
77386 2006-08-26  Bruno Haible  <bruno@clisp.org>
77387
77388         * m4/inttypes.m4: New file.
77389         * m4/_inttypes_h.m4: Remove file.
77390         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
77391         PRI_MACROS_BROKEN.
77392         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
77393
77394         * m4/imaxabs.m4: New file.
77395
77396         * m4/imaxdiv.m4: New file.
77397
77398 2006-08-26  Bruno Haible  <bruno@clisp.org>
77399
77400         * lib/inttypes_.h: New file.
77401         * lib/inttypes.h: Remove file.
77402         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
77403
77404         * lib/imaxabs.c: New file.
77405
77406         * lib/imaxdiv.c: New file.
77407
77408 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
77409
77410         New config-h module, so that "make" output needn't be cluttered
77411         by -DHAVE_CONFIG_H.
77412         * MODULES.html.sh (Support for building libraries and executables):
77413         Add config-h.
77414         * modules/config-h: New file.
77415         * gnulib-tool (nl, sed_transform_lib_file): New vars.
77416         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
77417         the config-h module is used.
77418
77419         New configmake module, so that "make" output needn't be cluttered
77420         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
77421         * MODULES.html.sh (Support for building libraries and executables):
77422         Add configmake.
77423         * modules/configmake: New file.
77424
77425 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
77426
77427         * m4/config-h.m4: New file.
77428
77429 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
77430
77431         * config/srclist.txt: Add elisp-comp.
77432
77433 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
77434
77435         * MODULES.html.sh (Support for building libraries and executables):
77436         Add elisp-comp.
77437         * build-aux/elisp-comp: New file.
77438         * modules/elisp-comp: New file.
77439
77440 2006-08-24  Bruno Haible  <bruno@clisp.org>
77441
77442         * gnulib-tool (func_create_testdir): Use non-default values of
77443         sourcebase and m4base.
77444
77445 2006-08-24  Bruno Haible  <bruno@clisp.org>
77446
77447         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
77448         HTML structure.
77449
77450 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
77451
77452         * modules/openat (Depends-on): Add lchown.
77453
77454 2006-08-23  Bruno Haible  <bruno@clisp.org>
77455
77456         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
77457         of gl_LOCK_EARLY instead of gl_LOCK.
77458
77459 2006-08-23  Bruno Haible  <bruno@clisp.org>
77460
77461         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
77462         on OSF/1 to no.
77463         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
77464
77465 2006-08-23  Bruno Haible  <bruno@clisp.org>
77466
77467         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
77468         as unusable.
77469
77470         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
77471         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
77472         (gl_LOCK): New macro.
77473
77474 2006-08-22  Simon Josefsson  <jas@extundo.com>
77475
77476         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
77477         to md5 module.
77478
77479 2006-08-22  Simon Josefsson  <jas@extundo.com>
77480
77481         * MODULES.html.sh: Add "Support for maintaining and release
77482         projects".
77483
77484         * build-aux/gnupload: New file, from coreutils.
77485
77486 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
77487
77488         Avoid the need for AC_LIBSOURCES in m4 macros.
77489         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
77490         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
77491         * modules/check-version (EXTRA_DIST): Add check-version.h.
77492         * modules/crc (EXTRA_DIST): Add crc.h.
77493         * modules/des (EXTRA_DIST): Add des.h.
77494         * modules/gc (EXTRA_DIST): Add gc.h.
77495         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
77496         * modules/getline (EXTRA_DIST): Add getline.h.
77497         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
77498         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
77499         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
77500         * modules/md2 (EXTRA_DIST): Add md2.h.
77501         * modules/md4 (EXTRA_DIST): Add md4.h.
77502         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
77503         * modules/read-file (EXTRA_DIST): Add read-file.h.
77504         * modules/readline (EXTRA_DIST): Add readline.h.
77505         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
77506         rijndael-api-fst.h.
77507
77508 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
77509
77510         * m4/rijndael.m4 (gl_ARCFOUR):
77511         * m4/arctwo.m4 (gl_ARCTWO):
77512         * m4/check-version.m4 (gl_CHECK_VERSION):
77513         * m4/crc.m4 (gl_CRC):
77514         * m4/des.m4 (gl_DES):
77515         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
77516         * m4/gc.m4 (gl_GC):
77517         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
77518         * m4/getline.m4 (gl_FUNC_GETLINE):
77519         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
77520         * m4/hmac-md5.m4 (gl_HMAC_MD5):
77521         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
77522         * m4/md2.m4 (gl_MD2):
77523         * m4/md4.m4 (gl_MD4):
77524         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
77525         * m4/read-file.m4 (gl_FUNC_READ_FILE):
77526         * m4/readline.m4 (gl_FUNC_READLINE):
77527         * m4/rijndael.m4 (gl_RIJNDAEL):
77528         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
77529         to get the necessary .h files and whatnot.
77530
77531 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
77532
77533         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
77534         gnulib rather than the other way around.
77535         * config/srclistvars.sh (COREUTILS): Remove.
77536
77537 2006-08-22  Jim Meyering  <jim@meyering.net>
77538
77539         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
77540
77541         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
77542
77543 2006-08-22  Eric Blake  <ebb9@byu.net>
77544
77545         * modules/regexprops-generic: New file.
77546         * MODULES.html.sh (Support for building documentation): List it.
77547
77548 2006-08-22  Eric Blake  <ebb9@byu.net>
77549
77550         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
77551         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
77552         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
77553         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
77554
77555 2006-08-22  Bruno Haible  <bruno@clisp.org>
77556
77557         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
77558         and lib_LTLIBRARIES like the other lib_* variables.
77559
77560 2006-08-22  Bruno Haible  <bruno@clisp.org>
77561
77562         * build-aux/x-to-1.in: New file, from GNU gettext.
77563
77564 2006-08-22  Bruno Haible  <bruno@clisp.org>
77565
77566         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
77567         <utmpx.h> exists.
77568
77569 2006-08-22  Bruno Haible  <bruno@clisp.org>
77570
77571         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
77572         <utmpx.h> exists.
77573
77574 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
77575
77576         BeOS portability.
77577         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
77578         exist.
77579         Problem reported by Bruno Haible.
77580
77581 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
77582
77583         Avoid the need for AC_LIBSOURCES in m4 macros.
77584         * modules/acl (EXTRA_DIST): Add acl.h.
77585         * modules/argmatch (Files): Add m4/argmatch.m4.
77586         (configure.ac): Add gl_ARGMATCH.
77587         (EXTRA_DIST): Renamed from lib_SOURCES, for
77588         consistency with the other modules.  Remove argmatch.c.
77589         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
77590         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
77591         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
77592         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
77593         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
77594         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
77595         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
77596         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
77597         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
77598         * modules/closeout (EXTRA_DIST): Add closeout.h.
77599         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
77600         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
77601         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
77602         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
77603         dirname.h; remove basename.c and stripslash.c.
77604         * modules/exclude (EXTRA_DIST): Add exclude.h.
77605         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
77606         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
77607         * modules/file-type (EXTRA_DIST): Add file-type.h.
77608         * modules/filemode (EXTRA_DIST): Add filemode.h.
77609         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
77610         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
77611         * modules/fpending (EXTRA_DIST): Add __fpending.h.
77612         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
77613         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
77614         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
77615         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
77616         * modules/getdate (EXTRA_DIST): Add getdate.c.
77617         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
77618         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
77619         * modules/getpass (EXTRA_DIST): Add getpass.h.
77620         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
77621         * modules/group-member (EXTRA_DIST): Add group-member.h.
77622         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
77623         * modules/hash (EXTRA_DIST): Add hash.h.
77624         * modules/human (EXTRA_DIST): Add human.h.
77625         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
77626         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
77627         * modules/lchown (EXTRA_DIST): Add lchown.h.
77628         * modules/long-options (EXTRA_DIST): Add long-options.h.
77629         * modules/lstat (EXTRA_DIST): Add lstat.h.
77630         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
77631         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
77632         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
77633         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
77634         * modules/memxor (EXTRA_DIST): Add memxor.h.
77635         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
77636         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
77637         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
77638         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
77639         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
77640         * modules/physmem (EXTRA_DIST): Add physmem.h.
77641         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
77642         * modules/posixver (EXTRA_DIST): Add posixver.h.
77643         * modules/quote (EXTRA_DIST): Add quote.h.
77644         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
77645         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
77646         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
77647         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
77648         regex_internal.h regexec.c.
77649         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
77650         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
77651         * modules/same (EXTRA_DIST): Add same.h.
77652         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
77653         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
77654         * modules/savedir (EXTRA_DIST): Add savedir.h.
77655         * modules/sha1 (EXTRA_DIST): Add sha1.h.
77656         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
77657         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
77658         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
77659         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
77660         * modules/strdup (EXTRA_DIST): Add strdup.h.
77661         * modules/strftime (EXTRA_DIST): Add strftime.h.
77662         * modules/strndup (EXTRA_DIST): Add strndup.h.
77663         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
77664         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
77665         * modules/time_r (EXTRA_DIST): Add time_r.h.
77666         * modules/timespec (EXTRA_DIST): Add timespec.h.
77667         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
77668         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
77669         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
77670         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
77671         * modules/userspec (EXTRA_DIST): Add userspec.h.
77672         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
77673         * modules/utimens (EXTRA_DIST): Add utimens.h.
77674         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
77675         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
77676         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
77677         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
77678         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
77679         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
77680         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
77681         * modules/yesno (EXTRA_DIST): Add yesno.h.
77682
77683 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
77684
77685         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
77686
77687         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
77688         * m4/dev-ino.m4, same-inode.m4: Remove.
77689
77690         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
77691         * m4/acl.m4 (AC_FUNC_ACL):
77692         * m4/backupfile.m4 (gl_BACKUPFILE):
77693         * m4/c-strtod.m4 (gl_C99_STRTOLD):
77694         * m4/canon-host.m4 (gl_CANON_HOST):
77695         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
77696         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
77697         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
77698         * m4/cloexec.m4 (gl_CLOEXEC):
77699         * m4/close-stream.m4 (gl_CLOSE_STREAM):
77700         * m4/closeout.m4 (gl_CLOSEOUT):
77701         * m4/dirfd.m4 (gl_FUNC_DIRFD):
77702         * m4/dirname.m4 (gl_DIRNAME):
77703         * m4/exclude.m4 (gl_EXCLUDE):
77704         * m4/exitfail.m4 (gl_EXITFAIL):
77705         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
77706         * m4/file-type.m4 (gl_FILE_TYPE):
77707         * m4/filemode.m4 (gl_FILEMODE):
77708         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
77709         * m4/fpending.m4 (gl_FUNC_FPENDING):
77710         * m4/fprintftime.m4 (gl_FPRINTFTIME):
77711         * m4/fts.m4 (gl_FUNC_FTS):
77712         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
77713         * m4/getdate.m4 (gl_GETDATE):
77714         * m4/gethrxtime.m4 (gl_GETHRXTIME):
77715         * m4/getpagesize.m4 (gl_GETPAGESIZE):
77716         * m4/getpass.m4 (gl_FUNC_GETPASS):
77717         * m4/gettime.m4 (gl_GETTIME):
77718         * m4/getugroups.m4 (gl_GETUGROUPS):
77719         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
77720         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
77721         * m4/hard-locale.m4 (gl_HARD_LOCALE):
77722         * m4/hash.m4 (gl_HASH):
77723         * m4/idcache.m4 (gl_IDCACHE):
77724         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
77725         * m4/lchown.m4 (gl_FUNC_LCHOWN):
77726         * m4/long-options.m4 (gl_LONG_OPTIONS):
77727         * m4/lstat.m4 (gl_FUNC_LSTAT):
77728         * m4/md5.m4 (gl_MD5):
77729         * m4/memcasecmp.m4 (gl_MEMCASECMP):
77730         * m4/memcoll.m4 (gl_MEMCOLL):
77731         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
77732         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
77733         * m4/memxor.m4 (gl_MEMXOR):
77734         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
77735         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
77736         * m4/modechange.m4 (gl_MODECHANGE):
77737         * m4/mountlist.m4 (gl_MOUNTLIST):
77738         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
77739         * m4/openat.m4 (gl_FUNC_OPENAT):
77740         * m4/pathmax.m4 (gl_PATHMAX):
77741         * m4/physmem.m4 (gl_PHYSMEM):
77742         * m4/posixtm.m4 (gl_POSIXTM):
77743         * m4/posixver.m4 (gl_POSIXVER):
77744         * m4/quote.m4 (gl_QUOTE):
77745         * m4/quotearg.m4 (gl_QUOTEARG):
77746         * m4/readtokens.m4 (gl_READTOKENS):
77747         * m4/readutmp.m4 (gl_READUTMP):
77748         * m4/regex.m4 (gl_REGEX):
77749         * m4/safe-read.m4 (gl_SAFE_READ):
77750         * m4/safe-write.m4 (gl_SAFE_WRITE):
77751         * m4/same.m4 (gl_SAME):
77752         * m4/save-cwd.m4 (gl_SAVE_CWD):
77753         * m4/savedir.m4 (gl_SAVEDIR):
77754         * m4/settime.m4 (gl_SETTIME):
77755         * m4/sha1.m4 (gl_SHA1):
77756         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
77757         * m4/stat-macros.m4 (gl_STAT_MACROS):
77758         * m4/stat-time.m4 (gl_STAT_TIME):
77759         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
77760         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
77761         * m4/strdup.m4 (gl_FUNC_STRDUP):
77762         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
77763         * m4/strndup.m4 (gl_FUNC_STRNDUP):
77764         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
77765         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
77766         * m4/time_r.m4 (gl_TIME_R):
77767         * m4/timespec.m4 (gl_TIMESPEC):
77768         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
77769         * m4/unlinkdir.m4 (gl_UNLINKDIR):
77770         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
77771         * m4/userspec.m4 (gl_USERSPEC):
77772         * m4/utimecmp.m4 (gl_UTIMECMP):
77773         * m4/utimens.m4 (gl_UTIMENS):
77774         * m4/xalloc.m4 (gl_XALLOC):
77775         * m4/xgetcwd.m4 (gl_XGETCWD):
77776         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
77777         * m4/xreadlink.m4 (gl_XREADLINK):
77778         * m4/xstrtod.m4 (gl_XSTRTOD):
77779         * m4/yesno.m4 (gl_YESNO):
77780         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
77781         to get the necessary .h files and whatnot.
77782
77783 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
77784             Bruno Haible  <bruno@clisp.org>
77785
77786         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
77787         /bin/sh understanding of '!' conditional negation.
77788
77789 2006-08-21  Jim Meyering  <jim@meyering.net>
77790
77791         * modules/openat (Depends-on): Really alphabetize.
77792
77793         * modules/acl (Depends-on): Add error and quote.
77794
77795         * check-module (find_included_lib_files): Add at-func.c to the
77796         ok-to-include-more-than-once white list.
77797
77798         * modules/openat (Depends-on): Add lstat.  Alphabetize.
77799
77800 2006-08-21  Bruno Haible  <bruno@clisp.org>
77801
77802         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
77803         Emit a pkgdata_DATA variable only if some snippets add contents to it.
77804         Reported by Martin Lambers <marlam@marlam.de>.
77805
77806 2006-08-21  Bruno Haible  <bruno@clisp.org>
77807
77808         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
77809         specify an installation location, don't emit a noinst_LIBRARIES or
77810         noinst_LTLIBRARIES assignment.
77811
77812 2006-08-21  Bruno Haible  <bruno@clisp.org>
77813
77814         BeOS portability.
77815         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
77816         BeOS has mbrtowc() but no <wctype.h>.
77817
77818 2006-08-21  Bruno Haible  <bruno@clisp.org>
77819
77820         BeOS portability.
77821         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
77822         exist.
77823
77824 2006-08-21  Bruno Haible  <bruno@clisp.org>
77825
77826         BeOS portability.
77827         * lib/mbchar.h: Include <wctype.h> only if it exists.
77828
77829 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
77830
77831         Remove files that are no longer needed by their respective modules.
77832         * m4/obstack.m4: Remove.
77833         * m4/strerror_r.m4: Remove.
77834         * m4/uint32_t.m4: Remove.
77835         * m4/uintptr_t.m4: Remove.
77836         * m4/ullong_max.m4: Remove.
77837         * m4/xstrtoimax.m4: Remove.
77838         * m4/xstrtoumax.m4: Remove.
77839
77840         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
77841         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
77842         dependencies now capture this.
77843
77844         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
77845         Do not use AC_LIBSOURCES, since gnulib modules now do this.
77846         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
77847         * m4/human.m4 (gl_HUMAN): Likewise.
77848         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
77849         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
77850
77851         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
77852
77853         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
77854         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
77855         stdint.
77856         * m4/human.m4 (gl_HUMAN): Likewise.
77857         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
77858         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
77859         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
77860         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
77861         * m4/xstrtol (gl_XSTRTOL): Likewise.
77862
77863         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
77864         AC_TYPE_LONG_LONG_INT.
77865         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
77866         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
77867         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
77868         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
77869
77870         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
77871         on stdbool.
77872
77873         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
77874         (gl_PREREQ_XSTRTOUL): Remove.
77875
77876         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
77877
77878         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
77879         mode.
77880
77881 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
77882
77883         Add and change modules to make it easier for coreutils to use
77884         gnulib-tool.
77885         * modules/backupfile (Files): Remove m4/d-ino.m4.
77886         (Depends-on): Add d-ino.
77887         * modules/cycle-check (Depends-on): Add stdint.
77888         (lib_SOURCES): Add cycle-check.h.
77889         * modules/d-ino: New module.
77890         * modules/d-type: New module.
77891         * modules/error (Files): Remove m4/strerror_r.m4.
77892         * modules/filemode (Files): Add m4/st_dm_mode.m4.
77893         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
77894         m4/inttypes_h.m4, m4/uintmax_t.m4.
77895         (Depends-on): Add stdint.
77896         (lib_SOURCES): Add fsusage.h.
77897         * modules/getcwd (Files): Remove d-ino.m4.
77898         (Depends-on): Add d-ino.
77899         * modules/getndelim2 (Depends-on): Add stdint.
77900         * modules/glob (Files): Remove m4/d-type.m4.
77901         (Depends-on): Add d-type.
77902         * modules/host-os: New module.
77903         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
77904         m4/inttypes_h.m4, m4/uintmax_t.m4.
77905         * Depends-on: Add stdint.
77906         (lib_SOURCES): Add human.h.
77907         * modules/inttostr (Files): Remove m4/intmax_t.m4,
77908         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
77909         m4/uintmax_t.m4, m4/ulonglong.m4.
77910         (Depends-on): Add stdint.
77911         (EXTRA_DIST): Add inttostr.h.
77912         * modules/lchmod: New module.
77913         * modules/link-follow: New module.
77914         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
77915         (Depends-on): Add lchmod.
77916         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
77917         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
77918         (Depends-on): Add stdint.
77919         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
77920         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
77921         (Depends-on): Add stdint.
77922         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
77923         * modules/perl: New module.
77924         * modules/regex (Depends-on): Add stdint.
77925         * modules/rmdir-errno: New module.
77926         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
77927         m4/intmax_t.m4.
77928         (Depends-on): Add stdint.
77929         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
77930         m4/uintmax_t.m4.
77931         (Depends-on): Add stdint.
77932         * modules/unlink-busy: New module.
77933         * modules/utimecmp (Depends-on): Add stdint.
77934         * modules/uptime: New module.
77935         * modules/winsz-ioctl: New module.
77936         * modules/winsz-termios: New module.
77937         * modules/xnanosleep (Depends-on): Add nanosleep.
77938         * modules/ullong_max: Remove.
77939         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
77940         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
77941         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
77942         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
77943         (Depends-on): Add inttypes.
77944         (lib_SOURCES): Add xstrtol.h.
77945         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
77946         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
77947         * MODULES.html.sh: Move 'assert' into the assert section.
77948         Move 'dummy' into the linking section.
77949         Remove ullong_max.
77950         Add section for compatibility checks for POSIX:2001 functions,
77951         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
77952         winsz-ioctl, and winsz-termios into it.
77953         Add lchmod.
77954         Add top-level Misc section and put host-os, perl, and uptime
77955         into it.
77956
77957 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
77958
77959         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
77960         now assume the stdint module.  Do not include inttypes.h.
77961         * lib/fsusage.h: Likewise.
77962         * lib/getndelim2.c: Likewise.
77963         * lib/human.h: Likewise.
77964         * lib/inttostr.h: Likewise.
77965         * lib/obstack.c: Likewise.
77966         * lib/regex_internal.h: Likewise.
77967         * lib/tempname.c: Likewise.
77968         * lib/utimecmp.c: Likewise.
77969         * lib/xstrtol.h: Likewise.
77970
77971         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
77972
77973         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
77974         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
77975         * lib/xtime.h: Likewise.
77976
77977 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77978
77979         * modules/openat (Files): Add lib/fchmodat.c.
77980         Fixes problem reported by Jay Youngman.
77981
77982 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77983
77984         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
77985         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
77986
77987 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
77988             Bruno Haible  <bruno@clisp.org>
77989
77990         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
77991         and is a script that invokes bison. Tighten the code. Add comments.
77992
77993 2006-08-18  Jim Meyering  <jim@meyering.net>
77994
77995         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
77996         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
77997         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
77998         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
77999
78000 2006-08-18  Bruno Haible  <bruno@clisp.org>
78001
78002         * modules/bison-i18n: New file.
78003         * MODULES.html.sh (Internationalization functions): Add it.
78004
78005 2006-08-18  Bruno Haible  <bruno@clisp.org>
78006
78007         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
78008         sys/statvfs.h. When getmntinfo was found, check its declaration and
78009         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
78010
78011 2006-08-18  Bruno Haible  <bruno@clisp.org>
78012
78013         * m4/bison-i18n.m4: New file, from bison.
78014
78015 2006-08-18  Bruno Haible  <bruno@clisp.org>
78016
78017         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
78018         (ME_DUMMY): Treat "kernfs" as a dummy.
78019         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
78020
78021 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
78022
78023         Update from coreutils.
78024
78025         2006-08-15  Jim Meyering  <jim@meyering.net>
78026
78027         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
78028
78029         2006-01-17  Jim Meyering  <jim@meyering.net>
78030
78031         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
78032
78033         2006-01-11  Jim Meyering  <jim@meyering.net>
78034
78035         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
78036         Check for the lchmod function.
78037
78038 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
78039
78040         Update from coreutils.
78041
78042         * lib/__fpending.h: Add copyright notice.
78043         * lib/fprintftime.h: Likewise.
78044         * lib/savedir.c: Use (C) in copyright notice.
78045         * lib/savedir.h: Likewise.
78046
78047         2006-08-15  Jim Meyering  <jim@meyering.net>
78048
78049         * lib/at-func.c: New file, with the logic of all emulated at-functions.
78050         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
78051         in support of the EXPECTED_ERRNO macro.
78052         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
78053         definitions.  Instead, define the appropriate symbols and include
78054         "at-func.c".
78055         * lib/mkdirat.c (mkdirat): Likewise.
78056         * lib/fchmodat.c (fchmodat): Likewise.
78057         (ENOSYS): Remove definition.
78058         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
78059         it.  Don't include "unistd--.h" -- it wasn't ever used.
78060
78061         2006-01-17  Jim Meyering  <jim@meyering.net>
78062
78063         Rewrite fts.c not to change the current working directory,
78064         by using openat, fstatat, fdopendir, etc..
78065
78066         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
78067         (HAVE_OPENAT_SUPPORT): Define.
78068         [_LIBC] (fchdir): Don't undef or define; no longer used.
78069         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
78070         Now, this `function' always succeeds, and consumes its file descriptor
78071         parameter -- so callers must not close such FDs.  Update callers.
78072         (diropen_fd, opendirat, cwd_advance_fd): New functions.
78073         (diropen): Add parameter, SP.  Adjust all callers.
78074         Implement using diropen_fd, rather than open.
78075         (fts_open): Initialize new member, fts_cwd_fd.
78076         Remove fts_rft-setting code.
78077         (fts_close): Close fts_cwd_fd, if necessary.
78078         (__opendir2): Define in terms of opendir or opendirat,
78079         depending on whether the FST_NOCHDIR flag is set.
78080         (fts_build): Since fts_safe_changedir consumes its FD, and since
78081         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
78082         and close the dup'd file descriptor upon failure.
78083         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
78084         (fts_safe_changedir): Tweak semantics to reflect that this function
78085         now calls cwd_advance_fd and hence consumes its FD argument.
78086         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
78087         [struct FTS] (fts_rft): Remove now-unused member.
78088         [struct FTS] (fts_cycle.state): Improve comment.
78089
78090         * lib/openat.c (openat_needs_fchdir): New function.
78091         * lib/openat.h (openat_needs_fchdir): Declare it.
78092
78093 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
78094
78095         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
78096         Problem and fix reported by Pádraig Brady in
78097         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
78098
78099 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
78100
78101         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
78102
78103 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
78104
78105         * lib/memcoll.c (memcoll): Optimize for the common case where the
78106         arguments are bytewise equal.
78107
78108 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
78109
78110         * doc/regexprops-generic.texi: Add a copyright notice.
78111
78112 2006-08-15  Bruno Haible  <bruno@clisp.org>
78113
78114         * modules/tmpdir (License): Change to LGPL.
78115
78116 2006-08-15  Bruno Haible  <bruno@clisp.org>
78117
78118         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
78119         module.
78120
78121 2006-08-14  Simon Josefsson  <jas@extundo.com>
78122
78123         * config/srclist.txt: Add gnupload.
78124
78125 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
78126
78127         Change copyright notice from LGPL 2 to GPL 2, since that's the
78128         standard form used in the gnulib repository.
78129         * tests/test-lock.c: Likewise.
78130         * tests/test-stdint.c: Likewise.
78131         * tests/test-tls.c: Likewise.
78132
78133         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
78134         prelude-manager.  User shorter URLs for GNU projects, without '?'.
78135         Add copyright notice.
78136
78137         * check-module: Add copyright notice.  Output a copyright
78138         notice if "--version" is specified.
78139         * modules/COPYING: New file.
78140         * tests/test-getaddrinfo.c: Add copyright notice.
78141         * tests/test-verify.c: Likewise.
78142
78143 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
78144
78145         Change copyright notice from LGPL 2 to GPL 2, since that's the
78146         standard form used in the gnulib repository.
78147         * lib/lock.c: LGPL -> GPL.
78148         * lib/lock.h: Likewise.
78149         * lib/strnlen1.c: Likewise.
78150         * lib/strnlen1.h: Likewise.
78151         * lib/tls.c: Likewise.
78152         * lib/tls.h: Likewise.
78153         * lib/tmpdir.c: Likewise.
78154
78155         * lib/TODO: Remove; this belongs only in coreutils.
78156
78157 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
78158
78159         Add copyright notices to long-enough files that lack them, since
78160         otherwise the files aren't clearly free.  Use the same notice that
78161         getdate.texi already uses.
78162         * doc/alloca-opt.texi: Add copyright notice.
78163         * doc/alloca.texi: Likewise.
78164         * doc/ctime.texi: Likewise.
78165         * doc/functions.texi: Likewise.
78166         * doc/gcd.texi: Likewise.
78167         * doc/gnulib-tool.texi: Likewise.
78168         * doc/inet_ntoa.texi: Likewise.
78169         * doc/visibility.texi: Likewise.
78170
78171         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
78172         * doc/quote.texi: Add copyright notice.
78173
78174         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
78175         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
78176         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
78177         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
78178         is now obsolete, and give a pointer to the Sun list.
78179         Add copyright notice.
78180
78181 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
78182
78183         * config/srclistvars.sh: Add copyright notice.
78184
78185 2006-08-14  Eric Blake  <ebb9@byu.net>
78186
78187         Import the following change from libc:
78188
78189         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
78190
78191         Upstream bug 2997.
78192         * lib/misc/error.c: Add space between program name and message if file
78193         name is missing.
78194
78195 2006-08-12  Karl Berry  <karl@gnu.org>
78196
78197         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
78198         remove, these originate in gnulib now.
78199
78200 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78201
78202         * doc/Makefile (standards.info standards.html standards.dvi):
78203         Also depend on make-stds.texi.
78204
78205 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
78206
78207         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
78208         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
78209
78210         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
78211         in wchar_t.  Problem reported by Eric Blake.
78212
78213         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
78214         LEN is smaller than SIZE.  Suggested by Bruno Haible.
78215         Also, help the compiler to keep LEN in a register.
78216
78217 2006-08-11  Eric Blake  <ebb9@byu.net>
78218
78219         * users.txt: Sort.  Add tar.
78220
78221 2006-08-11  Bruno Haible  <bruno@clisp.org>
78222
78223         * users.txt: New file.
78224
78225 2006-08-11  Bruno Haible  <bruno@clisp.org>
78226
78227         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
78228         before <wchar.h>. Needed for OSF/1 and BSD/OS.
78229
78230 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
78231
78232         * modules/snprintf (Depends-on): Remove minmax.
78233         (Maintainer): Add self and Bruno.
78234
78235 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
78236
78237         * lib/.cppi-disable: Add snprintf.h, socket_.h.
78238         * lib/snprintf.c: Include <errno.h> and <limits.h>.
78239         (EOVERFLOW): Define if the system does not.
78240         Do not include "minmax.h"; it wasn't used.
78241         (snprintf): Don't assume size_t promotes to an unsigned type.
78242         Fix bug when generated string was too long for the buffer: the
78243         buffer's contents are supposed to be the initial prefix of the
78244         output.  Don't assume vasnprintf returns EOVERFLOW if the size
78245         exceeds INT_MAX; do the check ourselves.
78246
78247         Import the following changes from libc:
78248
78249         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
78250
78251         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
78252         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
78253         set wc to the byte which couldn't be converted.
78254         (re_string_reconstruct): Don't clear valid_raw_len before calling
78255         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
78256         tip_context using re_string_context_at.
78257
78258         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
78259
78260         * lib/posix/regex.h: g++ still cannot handled [restrict].
78261
78262         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
78263
78264         * lib/posix/regex.h: Remove special handling for VMS.
78265
78266 2006-08-10  Jim Meyering  <jim@meyering.net>
78267
78268         * modules/same-inode: New module.
78269         * modules/dev-ino: New module.
78270         * modules/cycle-check: Depend on these modules, rather than simply
78271         including their .h files.
78272         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
78273         required via m4/cycle-check.m4.
78274         * modules/same: Depend on new same-inode module, rather than
78275         including same-inode.h.
78276         * modules/chdir-safer: New file.
78277
78278         * modules/chown (Depends-on): Add stat-macros.
78279
78280 2006-08-10  Jim Meyering  <jim@meyering.net>
78281
78282         * m4/cycle-check.m4: New file.
78283         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
78284         * m4/dev-ino.m4, m4/same-inode.m4: New files.
78285
78286 2006-08-10  Eric Blake  <ebb9@byu.net>
78287
78288         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
78289         in from original proposal.
78290
78291 2006-08-10  Eric Blake  <ebb9@byu.net>
78292         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
78293
78294         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
78295         namespace.
78296
78297 2006-08-10  Bruno Haible  <bruno@clisp.org>
78298
78299         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
78300         as well.
78301
78302 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
78303
78304         Sync from coreutils.
78305
78306         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
78307
78308         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
78309         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
78310
78311 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
78312
78313         * modules/restrict: Remove; no longer needed now that we assume
78314         Autoconf 2.59 or later.
78315         * MODULES.html.sh: Remove 'restrict'.
78316         * modules/argp (Depends-on): Remove 'restrict'.
78317         * modules/base64 (Depends-on): Likewise.
78318         * modules/gc (Depends-on): Likewise.
78319         * modules/getaddrinfo (Depends-on): Likewise.
78320         * modules/glob (Depends-on): Likewise.
78321         * modules/inet_ntop (Depends-on): Likewise.
78322         * modules/inet_pton (Depends-on): Likewise.
78323         * modules/memxor (Depends-on): Likewise.
78324         * modules/regex (Depends-on): Likewise.
78325         * modules/strtok_r (Depends-on): Likewise.
78326         * modules/time_r (Depends-on): Likewise.
78327
78328 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
78329
78330         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
78331         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
78332         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
78333         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
78334         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
78335         * m4/memxor.m4 (gl_MEMXOR): Likewise.
78336         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
78337         gl_C_RESTRICT replaced by AC_C_RESTRICT.
78338
78339         Merge from coreutils.
78340         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
78341         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
78342         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
78343         * m4/time_r.m4 (gl_TIME_R): Likewise.
78344
78345 2006-08-09  Karl Berry  <karl@gnu.org>
78346
78347         * config/srclist.txt: no more gettext-tools, per Bruno.
78348
78349 2006-08-08  Eric Blake  <ebb9@byu.net>
78350
78351         * modules/verror: New module.
78352         * MODULES.html.sh: Document it.
78353
78354 2006-08-08  Eric Blake  <ebb9@byu.net>
78355
78356         * lib/verror.h, lib/verror.c: New files.
78357
78358 2006-08-08  Eric Blake  <ebb9@byu.net>
78359
78360         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
78361         verror_at_line output complies with GNU Coding Standards even when
78362         file is NULL.
78363
78364 2006-08-07  Bruno Haible  <bruno@clisp.org>
78365
78366         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
78367         versions of AIX.
78368         Reported by Ralf Wildenhues.
78369
78370 2006-08-07  Bruno Haible  <bruno@clisp.org>
78371
78372         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
78373         in an AC_DEFUN. Needed so that the autoconf snippets can use
78374         AC_REQUIRE.
78375
78376 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78377
78378         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78379         Initialize pkgdata_DATA.
78380         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
78381         overriding it.
78382
78383 2006-08-06  Eric Blake  <ebb9@byu.net>
78384
78385         * lib/error.h: Fold in some upstream changes from glibc.
78386         * lib/error.c: Likewise.
78387
78388 2006-08-04  Bruno Haible  <bruno@clisp.org>
78389
78390         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78391         Make the mostlyclean-local rule depend on mostlyclean-generic.
78392         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
78393
78394 2006-07-31  Bruno Haible  <bruno@clisp.org>
78395
78396         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
78397         <stdlib.h>, <string.h>.
78398
78399 2006-07-30  Bruno Haible  <bruno@clisp.org>
78400
78401         * modules/readlink (License): Change to LGPL.
78402
78403 2006-07-30  Bruno Haible  <bruno@clisp.org>
78404
78405         * modules/javaversion (Makefile.am): Distribute javaversion.java and
78406         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
78407         set PKGDATADIR to point to it.
78408
78409 2006-07-30  Bruno Haible  <bruno@clisp.org>
78410
78411         * modules/csharpexec (configure.ac): Comment out macro invocation.
78412         * modules/javaexec (configure.ac): Likewise.
78413         * modules/javacomp-script (configure.ac): Likewise.
78414
78415         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
78416
78417 2006-07-30  Bruno Haible  <bruno@clisp.org>
78418
78419         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
78420         linked-list.
78421
78422 2006-07-30  Bruno Haible  <bruno@clisp.org>
78423
78424         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
78425
78426 2006-07-30  Bruno Haible  <bruno@clisp.org>
78427
78428         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78429         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
78430         get removed.
78431
78432 2006-07-29  Bruno Haible  <bruno@clisp.org>
78433
78434         Make it possible for gnulib-tool to work with locally modified or
78435         augmented gnulib repositories.
78436         * gnulib-tool (func_usage): Document --local-dir option.
78437         (local_gnulib_dir): New variable.
78438         Handle --local-dir option.
78439         (func_lookup_file): New function.
78440         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
78441         (func_get_description, func_get_filelist, func_get_description,
78442         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
78443         func_get_automake_snippet, func_get_include_directive,
78444         func_get_license, func_get_maintainer): Use func_lookup_file.
78445         (func_import, func_create_testdir): Use func_lookup_file.
78446
78447 2006-07-29  Bruno Haible  <bruno@clisp.org>
78448
78449         * modules/setenv (Depends-on): Add unistd.
78450
78451 2006-07-29  Bruno Haible  <bruno@clisp.org>
78452
78453         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
78454
78455 2006-07-29  Bruno Haible  <bruno@clisp.org>
78456
78457         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
78458
78459 2006-07-29  Bruno Haible  <bruno@clisp.org>
78460
78461         * gnulib-tool (import, update): If there is no Makefile.am, look at
78462         aclocal.m4, instead of bailing out.
78463
78464 2006-07-29  Bruno Haible  <bruno@clisp.org>
78465
78466         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
78467         Categorize the options by when they are useful.
78468
78469 2006-07-29  Bruno Haible  <bruno@clisp.org>
78470
78471         * gnulib-tool (func_usage): Document option --no-libtool.
78472         Handle option --no-libtool.
78473         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
78474         for changed semantics of $libtool variable.
78475         (func_import): Likewise. If libtool is not used, show this through
78476         an option --no-libtool.
78477         (func_create_testdir): Update.
78478
78479 2006-07-29  Bruno Haible  <bruno@clisp.org>
78480
78481         * gnulib-tool (func_import): Extend error message about missing
78482         --doc-base.
78483
78484 2006-07-29  Bruno Haible  <bruno@clisp.org>
78485
78486         * gnulib-tool (func_import): Don't create the $docbase directory if
78487         there is no file to store there.
78488
78489 2006-07-29  Bruno Haible  <bruno@clisp.org>
78490
78491         * gnulib-tool (autoconf_minversion): If a --dir option is given and
78492         relevant, look for configure.ac there, not in the current directory.
78493         Also use a simple search for AC_PREREQ, not "autoconf --trace".
78494
78495 2006-07-29  Bruno Haible  <bruno@clisp.org>
78496
78497         * gnulib-tool (SORT): New variable.
78498         (func_usage): Undocument --assume-autoconf option.
78499         Remove --assume-autoconf option handling.
78500         (autoconf_minversion): Determine from the contents of configure.ac.
78501         (func_import): Remove autoconf_minversion handling.
78502         Suggested by Eric Blake.
78503
78504 2006-07-29  Bruno Haible  <bruno@clisp.org>
78505
78506         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
78507
78508 2006-07-29  Bruno Haible  <bruno@clisp.org>
78509
78510         * config/srclist.txt (*setenv.[ch]): Remove rules.
78511
78512 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78513
78514         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
78515
78516 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78517
78518         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
78519         arpa/inet.h.
78520
78521 2006-07-28  Simon Josefsson  <jas@extundo.com>
78522
78523         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
78524         * modules/inet_pton (Depends-on): Likewise.
78525
78526 2006-07-28  Simon Josefsson  <jas@extundo.com>
78527
78528         * m4/netinet_in_h.m4: New file.
78529
78530 2006-07-28  Simon Josefsson  <jas@extundo.com>
78531
78532         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
78533         #include's.
78534
78535 2006-07-28  Simon Josefsson  <jas@extundo.com>
78536
78537         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
78538         #include's.
78539
78540 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
78541
78542         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
78543         setgid on directories only if they set these bits.
78544         * lib/modechange.h: Remove obsolete comment about masks.
78545
78546 2006-07-28  Eric Blake  <ebb9@byu.net>
78547
78548         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
78549         macro expansion.
78550
78551 2006-07-28  Bruno Haible  <bruno@clisp.org>
78552
78553         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
78554
78555 2006-07-28  Bruno Haible  <bruno@clisp.org>
78556
78557         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
78558
78559 2006-07-28  Bruno Haible  <bruno@clisp.org>
78560
78561         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
78562         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
78563         Define fallbacks.
78564         Avoids link error on FreeBSD 4.x.
78565         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
78566
78567         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
78568         encoding.
78569         * lib/mbswidth.c (iswcntrl): Likewise.
78570
78571 2006-07-27  Bruno Haible  <bruno@clisp.org>
78572
78573         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
78574         test.
78575
78576 2006-07-27  Bruno Haible  <bruno@clisp.org>
78577
78578         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
78579         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
78580         defined.
78581
78582 2006-07-26  Eric Blake  <ebb9@byu.net>
78583
78584         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
78585
78586 2006-07-26  Eric Blake  <ebb9@byu.net>
78587
78588         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
78589         like mingw that lack mkstemp.
78590         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
78591         avoid compilation warning on mingw.
78592
78593 2006-07-26  Bruno Haible  <bruno@clisp.org>
78594
78595         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
78596         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
78597         INT_FAST*_MIN, INTPTR_MIN.
78598
78599 2006-07-25  Bruno Haible  <bruno@clisp.org>
78600
78601         * modules/version-etc (Depends-on): Add stdarg.
78602
78603 2006-07-25  Bruno Haible  <bruno@clisp.org>
78604
78605         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
78606         complex commands.
78607
78608 2006-07-25  Bruno Haible  <bruno@clisp.org>
78609
78610         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
78611         defined in <stdarg.h> or config.h.
78612
78613 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
78614
78615         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
78616         (gl_STDIO_SAFER): Remove.
78617
78618 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
78619
78620         * MODULES.html.sh (File stream based Input/Output):
78621         Add fopen-safer, tmpfile-safer; remove stdio-safer.
78622         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
78623         * modules/fopen-safer, modules/tmpfile-safer: New files.
78624         * modules/stdio-safer: Remove.
78625
78626 2006-07-24  Bruno Haible  <bruno@clisp.org>
78627
78628         * modules/tmpdir: New file.
78629         * MODULES.html.sh (File system functions): Add it.
78630
78631 2006-07-24  Bruno Haible  <bruno@clisp.org>
78632
78633         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
78634         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
78635
78636 2006-07-24  Bruno Haible  <bruno@clisp.org>
78637
78638         * modules/clean-temp: New file.
78639
78640 2006-07-24  Bruno Haible  <bruno@clisp.org>
78641
78642         * m4/tmpdir.m4: New file, from GNU gettext.
78643
78644 2006-07-24  Bruno Haible  <bruno@clisp.org>
78645
78646         * lib/tmpdir.h: New file, from GNU gettext.
78647         * lib/tmpdir.c: New file, from GNU gettext.
78648
78649 2006-07-24  Bruno Haible  <bruno@clisp.org>
78650
78651         * lib/clean-temp.h: New file, from GNU gettext.
78652         * lib/clean-temp.c: New file, from GNU gettext.
78653
78654 2006-07-23  Eric Blake  <ebb9@byu.net>
78655
78656         * modules/stdio-safer (Files): Add tmpfile-safer.c.
78657         (Depends-on): Add binary-io.
78658
78659 2006-07-23  Eric Blake  <ebb9@byu.net>
78660
78661         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
78662
78663 2006-07-23  Eric Blake  <ebb9@byu.net>
78664
78665         * lib/tmpfile-safer.c: New file.
78666         * lib/stdio-safer.h (fopen_safer): Add prototype.
78667         * lib/stdio--.h (tmpfile): Make safer.
78668
78669 2006-07-23  Bruno Haible  <bruno@clisp.org>
78670
78671         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
78672         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
78673         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
78674         gl_linked_remove_at): Use it.
78675
78676 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78677         and Simon Josefsson <jas@extundo.com>
78678
78679         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
78680
78681         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
78682
78683 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
78684
78685         * modules/close-stream: New file.
78686         * modules/closeout (Description): Make it clear that it exits
78687         with a diagnostic on error.
78688         (Depends-on): Add close-stream.  Remove fpending, stdbool.
78689         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
78690
78691 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
78692
78693         * m4/close-stream.m4: New file.
78694
78695 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
78696
78697         * lib/close-stream.c, lib/close-stream.h: New files.
78698
78699 2006-07-22  Bruno Haible  <bruno@clisp.org>
78700
78701         Merge from GNU gettext 0.15.
78702
78703         2006-05-01  Bruno Haible  <bruno@clisp.org>
78704
78705                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
78706
78707         2006-07-22  Bruno Haible  <bruno@clisp.org>
78708
78709                 * modules/javaversion: New file.
78710                 * MODULES.html.sh (Java): Add javaversion.
78711
78712         2006-03-12  Bruno Haible  <bruno@clisp.org>
78713
78714                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
78715
78716         2005-12-04  Bruno Haible  <bruno@clisp.org>
78717
78718                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
78719                 (untested).
78720
78721         2006-06-21  Bruno Haible  <bruno@clisp.org>
78722
78723                 Avoid warnings from recent versions of mcs.
78724                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
78725                 -o, -L, -r any more. Use options documented since mcs-1.0
78726                 instead. Similarly for -g.
78727
78728         2005-12-04  Bruno Haible  <bruno@clisp.org>
78729
78730                 * build-aux/csharpcomp.sh.in: Suffix for resources is
78731                 .resources, not .resource.
78732
78733         2005-07-09  Bruno Haible  <bruno@clisp.org>
78734
78735                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
78736                 add a .dll suffix.
78737                 Reported by Mark Junker <mjscod@gmx.de>.
78738
78739         2006-07-22  Bruno Haible  <bruno@clisp.org>
78740
78741                 * modules/gettext: Upgrade to gettext-0.15.
78742                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
78743                 m4/visibility.m4.
78744                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
78745
78746 2006-07-22  Bruno Haible  <bruno@clisp.org>
78747
78748         Merge from GNU gettext 0.15.
78749
78750         2006-03-25  Bruno Haible  <bruno@clisp.org>
78751
78752                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
78753
78754         2006-07-21  Bruno Haible  <bruno@clisp.org>
78755
78756                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
78757                 "1.1".
78758
78759         2006-05-09  Bruno Haible  <bruno@clisp.org>
78760
78761                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
78762                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
78763                 for the conftestver execution.
78764
78765         2006-05-01  Bruno Haible  <bruno@clisp.org>
78766
78767                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
78768                 optional target-version argument. Verify that the compiler
78769                 groks source of the specified source-version, or add -source
78770                 option as necessary. Verify that the compiler produces
78771                 bytecode in the specified target-version, or add -target and
78772                 -source options as necessary. Make the result of the test
78773                 available as variable CONF_JAVAC. Also log error output in
78774                 config.log.
78775
78776         2006-03-11  Bruno Haible  <bruno@clisp.org>
78777
78778                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
78779
78780         2006-05-09  Bruno Haible  <bruno@clisp.org>
78781
78782                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
78783                 CLASSPATH_SEPARATOR to a semicolon.
78784
78785         2006-03-12  Bruno Haible  <bruno@clisp.org>
78786
78787                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
78788                 available as variable CONF_JAVA, for subsequent autoconf
78789                 tests. Also log error output in config.log.
78790
78791         2006-07-19  Bruno Haible  <bruno@clisp.org>
78792
78793                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
78794                 that getline works on glibc2 systems. Needed to avoid trouble
78795                 in relocatable.c.
78796                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
78797
78798         2005-12-04  Bruno Haible  <bruno@clisp.org>
78799
78800                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
78801                 launcher (untested).
78802
78803         2005-12-04  Bruno Haible  <bruno@clisp.org>
78804
78805                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
78806
78807         2006-07-22  Bruno Haible  <bruno@clisp.org>
78808
78809                 * gettext.m4: Update from GNU gettext-0.15.
78810                 * nls.m4: Likewise.
78811                 * po.m4: Likewise.
78812                 * inttypes-pri.m4: Likewise.
78813                 * inttypes-h.m4: Renamed from inttypes.m4.
78814                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
78815
78816 2006-07-22  Bruno Haible  <bruno@clisp.org>
78817
78818         Merge from GNU gettext 0.15.
78819
78820         2005-07-05  Bruno Haible  <bruno@clisp.org>
78821
78822                 * printf-args.c (printf_fetchargs): Work around broken
78823                 definition of wint_t on mingw.
78824
78825         2005-02-12  Bruno Haible  <bruno@clisp.org>
78826
78827                 * xallocsa.h: Add extern "C" for C++.
78828
78829         2006-05-17  Bruno Haible  <bruno@clisp.org>
78830
78831                 Cygwin portability.
78832                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
78833
78834         2006-04-30  Bruno Haible  <bruno@clisp.org>
78835
78836                 * progreloc.c: Include <mach-o/dyld.h> if available.
78837                 (find_executable): Use _NSGetExecutablePath when possible.
78838
78839         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
78840
78841                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
78842                 function.
78843
78844         2005-12-29  Bruno Haible  <bruno@clisp.org>
78845
78846                 * progreloc.c (set_program_name_and_installdir): Fix
78847                 compilation error.
78848
78849         2005-12-04  Bruno Haible  <bruno@clisp.org>
78850
78851                 Cygwin portability.
78852                 * progreloc.c: Include <windows.h> also on Cygwin.
78853                 (find_executable): Add support for Cygwin.
78854                 (set_program_name_and_installdir): Handle also platforms with
78855                 nonempty EXEEXT.
78856
78857         2006-07-11  Bruno Haible  <bruno@clisp.org>
78858
78859                 * javacomp.c: Fix a comment.
78860                 Reported by Jim Meyering.
78861
78862         2006-04-30  Bruno Haible  <bruno@clisp.org>
78863
78864                 * javacomp.h (compile_java_class): Add source_version,
78865                 target_version arguments.
78866                 * javacomp.c: Rewritten to choose only a compiler that
78867                 respects the specified source_version and target_version.
78868
78869         2006-06-27  Bruno Haible  <bruno@clisp.org>
78870
78871                 Assume correct S_ISDIR macro.
78872                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
78873
78874         2006-07-22  Bruno Haible  <bruno@clisp.org>
78875
78876                 * javaversion.h: New file, from GNU gettext.
78877                 * javaversion.c: New file, from GNU gettext.
78878                 * javaversion.java: New file, from GNU gettext.
78879                 * javaversion.class: New file, from GNU gettext.
78880
78881         2006-05-17  Bruno Haible  <bruno@clisp.org>
78882
78883                 Cygwin portability.
78884                 * javaexec.c (execute_java_class): Test for jview program
78885                 also on Cygwin.
78886
78887         2006-04-09  Bruno Haible  <bruno@clisp.org>
78888
78889                 * fatal-signal.c: Don't include string.h.
78890                 (at_fatal_signal): Use a copying loop instead of memcpy.
78891
78892         2005-12-04  Bruno Haible  <bruno@clisp.org>
78893
78894                 * csharpexec.c: Add support for 'clix' launcher (untested).
78895                 (execute_csharp_using_sscli): New function.
78896                 (execute_csharp_program): Call it.
78897
78898         2006-06-21  Bruno Haible  <bruno@clisp.org>
78899
78900                 Avoid warnings from recent versions of mcs.
78901                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
78902                 -o, -L, -r any more. Use options documented since mcs-1.0
78903                 instead. Similarly for -g.
78904
78905         2005-07-09  Bruno Haible  <bruno@clisp.org>
78906
78907                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
78908                 add a .dll suffix.
78909                 Reported by Mark Junker <mjscod@gmx.de>.
78910
78911         2006-06-17  Bruno Haible  <bruno@clisp.org>
78912
78913                 * config.charset: Update for NetBSD 3.0.
78914
78915         2006-05-17  Bruno Haible  <bruno@clisp.org>
78916
78917                 Cygwin portability.
78918                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
78919
78920         2006-05-16  Bruno Haible  <bruno@clisp.org>
78921
78922                 * localcharset.c [CYGWIN]: Include <windows.h>.
78923                 (get_charset_aliases): For Cygwin, return the same CPxxx
78924                 aliases list as under WIN32.
78925                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
78926                 the environment variables. Fall back to GetACP().
78927
78928         2006-04-05  Bruno Haible  <bruno@clisp.org>
78929
78930                 * config.charset: Update Juan Manuel Guerrero's address.
78931
78932         2005-02-12  Bruno Haible  <bruno@clisp.org>
78933
78934                 * allocsa.h: Add extern "C" for C++.
78935
78936         2005-02-10  Bruno Haible  <bruno@clisp.org>
78937
78938                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
78939                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
78940
78941         2006-07-22  Bruno Haible  <bruno@clisp.org>
78942
78943                 * gettext.h: Update to GNU gettext-0.15.
78944
78945 2006-07-22  Bruno Haible  <bruno@clisp.org>
78946
78947         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
78948         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
78949         lib-prefix.m4, longdouble.m4, ssize_t.m4.
78950
78951 2006-07-21  Eric Blake  <ebb9@byu.net>
78952
78953         * modules/stdlib-safer: New file.
78954         * MODULES.html.sh (File stream based Input/Output): Add
78955         stdlib-safer.
78956
78957 2006-07-21  Eric Blake  <ebb9@byu.net>
78958
78959         * lib/stdlib-safer.h: New file from coreutils, required by
78960         stdlib--.h.
78961
78962 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
78963
78964         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
78965
78966 2006-07-20  Bruno Haible  <bruno@clisp.org>
78967
78968         * gnulib-tool: Recognize new option --assume-autoconf.
78969         (autoconf_minversion): New variable.
78970         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
78971
78972 2006-07-20  Bruno Haible  <bruno@clisp.org>
78973
78974         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
78975
78976 2006-07-19  Derek R. Price  <derek@ximbiot.com>
78977
78978         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
78979         Reindent and repaginate.
78980
78981 2006-07-19  Derek Price  <derek@ximbiot.com>
78982
78983         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
78984         Correct grammar.
78985
78986 2006-07-17  Bruno Haible  <bruno@clisp.org>
78987
78988         * modules/list: New file.
78989         * modules/array-list: New file.
78990         * modules/carray-list, modules/carray-list-tests: New files.
78991         * modules/linked-list, modules/linked-list-tests: New files.
78992         * modules/avltree-list, modules/avltree-list-tests: New files.
78993         * modules/rbtree-list, modules/rbtree-list-tests: New files.
78994         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
78995         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
78996         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
78997         * modules/oset: New file.
78998         * modules/array-oset: New file.
78999         * modules/avltree-oset, modules/avltree-oset-tests: New files.
79000         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
79001         * tests/test-carray_list.c: New file.
79002         * tests/test-linked_list.c: New file.
79003         * tests/test-avltree_list.c: New file.
79004         * tests/test-rbtree_list.c: New file.
79005         * tests/test-linkedhash_list.c: New file.
79006         * tests/test-avltreehash_list.c: New file.
79007         * tests/test-rbtreehash_list.c: New file.
79008         * tests/test-avltree_oset.c: New file.
79009         * tests/test-rbtree_oset.c: New file.
79010         * MODULES.html.sh (Container data structures): New section.
79011
79012 2006-07-17  Bruno Haible  <bruno@clisp.org>
79013
79014         * m4/gl_list.m4: New file.
79015
79016 2006-07-17  Bruno Haible  <bruno@clisp.org>
79017
79018         * lib/gl_list.h: New file.
79019         * lib/gl_list.c: New file.
79020         * lib/gl_array_list.h: New file.
79021         * lib/gl_array_list.c: New file.
79022         * lib/gl_carray_list.h: New file.
79023         * lib/gl_carray_list.c: New file.
79024         * lib/gl_linked_list.h: New file.
79025         * lib/gl_linked_list.c: New file.
79026         * lib/gl_anylinked_list1.h: New file.
79027         * lib/gl_anylinked_list2.h: New file.
79028         * lib/gl_avltree_list.h: New file.
79029         * lib/gl_avltree_list.c: New file.
79030         * lib/gl_anyavltree_list1.h: New file.
79031         * lib/gl_anyavltree_list2.h: New file.
79032         * lib/gl_rbtree_list.h: New file.
79033         * lib/gl_rbtree_list.c: New file.
79034         * lib/gl_anyrbtree_list1.h: New file.
79035         * lib/gl_anyrbtree_list2.h: New file.
79036         * lib/gl_anytree_list1.h: New file.
79037         * lib/gl_anytree_list2.h: New file.
79038         * lib/gl_linkedhash_list.h: New file.
79039         * lib/gl_linkedhash_list.c: New file.
79040         * lib/gl_anyhash_list1.h: New file.
79041         * lib/gl_anyhash_list2.h: New file.
79042         * lib/gl_avltreehash_list.h: New file.
79043         * lib/gl_avltreehash_list.c: New file.
79044         * lib/gl_rbtreehash_list.h: New file.
79045         * lib/gl_rbtreehash_list.c: New file.
79046         * lib/gl_anytreehash_list1.h: New file.
79047         * lib/gl_anytreehash_list2.h: New file.
79048
79049         * lib/gl_oset.h: New file.
79050         * lib/gl_oset.c: New file.
79051         * lib/gl_array_oset.h: New file.
79052         * lib/gl_array_oset.c: New file.
79053         * lib/gl_avltree_oset.h: New file.
79054         * lib/gl_avltree_oset.c: New file.
79055         * lib/gl_rbtree_oset.h: New file.
79056         * lib/gl_rbtree_oset.c: New file.
79057         * lib/gl_anytree_oset.h: New file.
79058
79059 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
79060
79061         * m4/mkancesdirs.m4: New file.
79062         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
79063         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
79064         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
79065         it.
79066
79067 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
79068
79069         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
79070         * lib/mkancesdirs.h: New files.
79071         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
79072         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
79073         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
79074         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
79075         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
79076         callers changed.  Revamp internals significantly, by not
79077         attempting to create directories that are temporarily more
79078         permissive than the final results.  Do not attempt to use
79079         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
79080         This removes some race conditions, fixes some bugs, and simplifies
79081         things.  Use new dirchownmod function to do owner and mode changes.
79082         * lib/mkdir-p.h: Likewise.
79083         * lib/modechange.c (octal_to_mode): New function.
79084         (struct mode_change): New member mentioned.
79085         (make_node_op_equals): New arg mentioned.  All callers changed.
79086         (mode_compile): Keep track of which mode bits the user has explicitly
79087         mentioned.
79088         (mode_adjust): New arg DIR, so that we implement the X op correctly.
79089         New arg PMODE_BITS, to keep track of which mode bits the user
79090         mentioned; it treats S_ISUID and S_ISGID speciall.
79091         All callers changed.
79092         * lib/modechange.h: Likewise.
79093
79094 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
79095
79096         * MODULES.html.sh: Add mkancestors.
79097         * modules/mkancesdirs: New module.
79098         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
79099         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
79100         The chdir-safer and afs files are now orphans; I'll remove them
79101         unless someone speaks up.
79102         Add lib/dirchownmod.c, lib/dirchownmod.h.
79103         (Depends-on): Remove alloca, chown, save-cwd, dirname.
79104         Add lchown, mkancesdirs.
79105         (Maintainer): Add self.
79106
79107 2006-07-15  Karl Berry  <karl@gnu.org>
79108
79109         * gnulib-tool: help message wording/arrangement.
79110
79111 2006-07-14  Simon Josefsson  <jas@extundo.com>
79112
79113         * doc/gnulib.texi (Libtool and Windows): New section.
79114
79115 2006-07-12  Simon Josefsson  <jas@extundo.com>
79116
79117         * modules/gendocs (License): Fix license, approved by Karl.
79118
79119 2006-07-12  Eric Blake  <ebb9@byu.net>
79120
79121         * MODULES.html.sh: Add gendocs.
79122
79123 2006-07-11  Eric Blake  <ebb9@byu.net>
79124
79125         * modules/fdl: New module, to install doc/fdl.texi.
79126         * MODULES.html.sh: Add new section for documentation modules.
79127         * gnulib-tool: Avoid space-tab.
79128         (--doc-base): New option, to manage files from doc.
79129
79130 2006-07-11  Eric Blake  <ebb9@byu.net>
79131
79132         * m4/absolute-header.m4: Fix comments to match recent change.
79133
79134 2006-07-11  Eric Blake  <ebb9@byu.net>
79135
79136         * gnulib-tool: List --doc-base before --tests-base.
79137
79138 2006-07-11  Derek R. Price  <derek@ximbiot.com>
79139
79140         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
79141
79142 2006-07-11  Bruno Haible  <bruno@clisp.org>
79143
79144         * README: Mention where to put documentation.
79145
79146 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79147
79148         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
79149
79150 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
79151
79152         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
79153         to stdint.m4.
79154
79155 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
79156
79157         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
79158         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
79159         "no/such/file/stdint.h" when there is no such file, so that
79160         the resulting C code can be parsed by dodgy compilers.
79161         Problems reported by Bob Proulx.
79162
79163 2006-07-10  Derek R. Price  <derek@ximbiot.com>
79164
79165         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
79166         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
79167         macros into the GNU _D_EXACT_NAMLEN.
79168         * lib/savedir.c:  Likewise.
79169         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
79170
79171 2006-07-10  Derek R. Price  <derek@ximbiot.com>
79172         and Paul Eggert  <eggert@cs.ucla.edu>
79173
79174         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
79175         * m4/savedir.m4:
79176         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
79177         macros into the GNU _D_EXACT_NAMLEN.
79178
79179 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
79180
79181         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
79182         around the absolute name, to work around a problem with the HP-UX
79183         11.23 native C compiler, reported by Bob Proulx.
79184
79185 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
79186
79187         * doc/maintain.texi, make-stds.texi: Sync from
79188         <http://savannah.gnu.org/projects/gnustandards>.
79189
79190 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
79191
79192         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
79193
79194 2006-07-09  Jim Meyering  <jim@meyering.net>
79195
79196         * m4/glob.m4: Remove a doubled word in a comment.
79197
79198 2006-07-09  Jim Meyering  <jim@meyering.net>
79199
79200         * lib/argp-pv.c: Remove a doubled word in a comment.
79201         * lib/check-version.c (check_version): Likewise.
79202         * lib/javacomp.c (compile_java_class): Likewise.
79203
79204 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
79205
79206         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
79207         for the benefit of people using Autoconf 2.60.  If you want to
79208         support older Autoconf versions you can copy m4/onceonly_2_57.m4
79209         (or m4/onceonly.m4, if pre-2.57) manually.
79210
79211 2006-07-08  Jim Meyering  <jim@meyering.net>
79212
79213         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
79214         comment.
79215         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
79216         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
79217         comment.
79218
79219 2006-07-08  Jim Meyering  <jim@meyering.net>
79220
79221         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
79222
79223 2006-07-07  Simon Josefsson  <jas@extundo.com>
79224
79225         * tests/test-crc.c: Change expected crc value, the test vector
79226         were probably computed using the old broken crc.c?
79227
79228 2006-07-06  Simon Josefsson  <jas@extundo.com>
79229
79230         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
79231         now the canonical place for the M4 file).
79232
79233         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
79234         from the sys_socket dependency now.
79235
79236         * modules/inet_pton (Files): Ditto.
79237
79238         * modules/inet_ntop (Files): Ditto.
79239
79240 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
79241
79242         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
79243         not gl_PREREQ_GETUSERSHELL.
79244
79245 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79246
79247         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
79248         with only one argument, for Autoconf 2.60.
79249         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
79250         expand to nothing, so add a shell command to avoid syntax error.
79251         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
79252
79253 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79254
79255         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
79256
79257 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
79258
79259         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
79260         no longer needed.  Check for isblank decl.
79261         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
79262         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
79263         of existence.
79264
79265 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
79266
79267         * lib/getloadavg.c: Use __VMS, not VMS.
79268         * lib/getopt.c: Likewise.
79269         * lib/getpagesize.h: Likewise.
79270         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
79271         and probably does not work.
79272
79273 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
79274
79275         * lib/.cppi-disable: Add wcwidth.
79276         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
79277         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
79278         (ISGRAPH): Remove.  All uses changed to isgraph.
79279         (FOLD) [!defined _LIBC]: Remove special case.
79280         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
79281         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
79282         HAVE_ISBLANK.
79283         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
79284         case.
79285
79286 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
79287
79288         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
79289         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
79290         brackets.  Other minor changes to suppress some compiler
79291         warnings.
79292
79293 2006-07-06  Derek R. Price  <derek@ximbiot.com>
79294         and Paul Eggert  <eggert@cs.ucla.edu>
79295
79296         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
79297         of invoking obsolescent AC_HEADER_DIRENT macro.
79298         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
79299         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
79300         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
79301         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
79302         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
79303         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
79304         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
79305         * m4/readdir.m4: Remove; no longer needed.
79306
79307 2006-07-06  Derek R. Price  <derek@ximbiot.com>
79308         and Paul Eggert  <eggert@cs.ucla.edu>
79309
79310         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
79311         Don't worry about this obsolete case any more.
79312         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
79313         directories.
79314         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
79315         worry about this obsolete case any more.
79316         * lib/fts.c: Likewise.
79317         * lib/getcwd.c: Likewise.
79318         * lib/glob.h: Likewise.
79319         * lib/savedir.c: Likewise.
79320
79321 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
79322
79323         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
79324         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
79325         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
79326         needed.
79327         All uses removed.
79328         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
79329         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
79330         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
79331         needed.
79332         * m4/getdate.m4 (gl_GETDATE): Likewise.
79333         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
79334         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
79335         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
79336         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
79337         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
79338         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
79339         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
79340         needed.
79341
79342 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
79343
79344         * lib/memcasecmp.c: Include <limits.h>.
79345         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
79346         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
79347         Don't assume isdigit succeeds only on '0' through '9'.
79348
79349 2006-07-05  Eric Blake  <ebb9@byu.net>
79350
79351         * modules/getaddrinfo (Depends-on): Add snprintf.
79352
79353 2006-07-05  Eric Blake  <ebb9@byu.net>
79354
79355         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
79356         to avoid 'header present but could not be compiled' on cygwin.
79357
79358 2006-07-05  Eric Blake  <ebb9@byu.net>
79359
79360         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
79361         missing from netdb.h.
79362         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
79363
79364 2006-07-05  Derek R. Price  <derek@ximbiot.com>
79365
79366         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
79367         no longer needed.
79368         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
79369         * m4/getdate.m4 (gl_GETDATE): Likewise.
79370         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
79371         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
79372         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
79373         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
79374         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
79375
79376 2006-07-05  Derek R. Price  <derek@ximbiot.com>
79377
79378         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
79379         All uses of is_space replaced by isspace.
79380         * lib/exit.h: Don't talk about STDC_HEADERS.
79381         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
79382         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
79383         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
79384         replaced by isprint etc.
79385         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
79386         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
79387         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
79388         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
79389         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
79390         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
79391
79392 2006-07-05  Bruno Haible  <bruno@clisp.org>
79393
79394         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
79395         the function exists, before testing against AIX.
79396         Reported by Martin Lambers <marlam@marlam.de>.
79397
79398 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
79399
79400         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
79401         From Mark D. Baushke.
79402
79403 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
79404
79405         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
79406         to the absolute name, not just one, to bypass Sun C 5.8's
79407         "warning: #include of /usr/include/... may be non-portable".
79408
79409 2006-07-04  Eric Blake  <ebb9@byu.net>
79410
79411         * modules/dirname-tests: New test module.
79412         * tests/test-dirname.c: New file, replacing dirname.c
79413         TEST_DIRNAME section that was recently deleted.
79414
79415 2006-07-04  Bruno Haible  <bruno@clisp.org>
79416
79417         Assume ANSI C header files and <ctype.h> functions.
79418         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
79419         (mbsnwidth): Use isprint, iscntrl instead.
79420
79421 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
79422
79423         Merge from coreutils.
79424         * MODULES.html.sh: Add xstrtold.
79425         * modules/xstrtold: New file.
79426         * modules/cycle-check (Files): Add lib/same-inode.h.
79427         * modules/dirname (Files): Add m4/double-slash-root.m4.
79428         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
79429         * modules/mkdir-p (Files): Add lib/same-inode.h.
79430         * modules/same (Files): Add lib/same-inode.h.
79431
79432 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
79433
79434         * m4/absolute-header.m4: Renamed from full-header-path.m4.
79435         This is to keep the terminology clean; POSIX talks about
79436         "absolute pathnames", not "full pathnames", but the GNU
79437         Coding Standards say to use "path" for something else;
79438         so use "absolute" to keep both sides happy.
79439         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
79440         Set gl_absolute_header, not gl_full_header_path.
79441         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
79442         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
79443         All uses changed.
79444
79445         Merge from coreutils.
79446
79447         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
79448
79449         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
79450         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
79451         want to require the building of c-strtod.o.
79452         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
79453         needs -lm directly.
79454         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
79455
79456         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
79457
79458         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
79459         --as-needed option if available.  Problem reported by Albert Chin in
79460         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
79461         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
79462         cc merely issues a bunch of annoying warnings for --as-needed
79463         (this problem was reported by Bob Proulx).  Also, try linking with
79464         -lm to detect a bug in binutils 2.16 (this problem was reported
79465         by Ralf Wildenhues).
79466
79467         2006-06-18  Jim Meyering  <jim@meyering.net>
79468
79469         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
79470         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
79471         macro.
79472         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
79473         also check for glibc-2.4's abort-inducing bug.
79474
79475         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
79476         Low-probability clean-up should be to use rmdir to get rid of
79477         the just-created directory, not unlink.
79478
79479         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
79480         configure fail, and request a bug report to inform us about it.
79481         Add a comment that, barring reports to the contrary, in 2007 we'll
79482         assume ftruncate is universally available.
79483
79484         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
79485
79486         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
79487
79488         2006-03-12  Jim Meyering  <jim@meyering.net>
79489
79490         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
79491         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
79492         * m4/same.m4 (gl_SAME): Likewise.
79493         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
79494
79495         2006-03-11  Eric Blake  <ebb9@byu.net>
79496
79497         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
79498         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
79499         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
79500         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
79501
79502 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
79503
79504         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
79505         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
79506         reported by Mark D. Baushke, one in
79507         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
79508
79509         Merge from coreutils.
79510
79511         * lib/.cppi-disable: Add stdint_.h.
79512         * lib/.cvsignore: Add stdint.h.
79513
79514         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
79515
79516         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
79517         both double and long double versions.
79518         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
79519         * lib/xstrtold.c: New file.
79520         * lib/xstrtod.h (xstrtold): New decl.
79521
79522         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
79523
79524         * lib/filemode.c (setst): Remove.
79525         (strmode): Rewrite to avoid setst.  This makes the code shorter,
79526         (arguably) clearer, and the generated code is a bit smaller on my
79527         Debian GNU/Linux stable x86 host.
79528
79529         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
79530
79531         * lib/filemode.c: Include "filemode.h" first, to test the interface.
79532         Assume that filemode.h includes sys/types.h and sys/stat.h.
79533         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
79534         (ftypelet): Reorder to put common cases first, for efficiency.
79535         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
79536         to do 'M'.
79537         (strmode): Renamed from mode_string, and now stores 12 bytes instead
79538         of 10, for compatibility with FreeBSD.  All callers changed.
79539         (filemodestring): Now stores 12 bytes instead of 10, and sets file
79540         types that can't be deduced solely from st_mode.  First arg is now a
79541         const pointer.
79542         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
79543         (strmode): Renamed from mode_string.
79544         (filemodestring): New decl.
79545         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
79546         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
79547         needed.
79548         (S_ISPORT, S_ISWHT): New macros, if not already defined.
79549
79550         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
79551
79552         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
79553         fsusage.h now does that.  Include fsusage.h first, to test interface.
79554         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
79555         at most one method (the old code could have generated decls that
79556         didn't conform to C89, not that this was ever exercised).
79557         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
79558
79559         2006-03-19  Jim Meyering  <jim@meyering.net>
79560
79561         Work even in a chroot where d_ino values for entries in "/"
79562         don't match the stat.st_ino values for the same names.
79563         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
79564         number, iterate through all entries again, using lstat instead.
79565         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
79566         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
79567
79568         * lib/getcwd.c (__getcwd): Clarify a comment.
79569         Use memcpy in place of a call to strcpy.
79570
79571         2006-03-12  Jim Meyering  <jim@meyering.net>
79572
79573         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
79574         matches that of the current directory (which we're about to chdir ".."
79575         out of), then save the dev-ino of the parent, instead.
79576
79577         * lib/same-inode.h (SAME_INODE): New file/macro.
79578         * lib/chdir-safer.c (SAME_INODE): Remove definition.
79579         Include "same-inode.h", instead.
79580         * lib/same.c: Likewise.
79581         * lib/cycle-check.h: Include "same-inode.h".
79582         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
79583         * lib/cycle-check.c (SAME_INODE): Remove definition.
79584         * lib/root-dev-ino.h: Include "same-inode.h".
79585
79586         2006-03-11  Eric Blake  <ebb9@byu.net>
79587
79588         * lib/same.c (same_name): s/base_name/last_component/
79589         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
79590         * lib/filenamecat.c (file_name_concat): Likewise.
79591
79592         2006-03-11  Eric Blake  <ebb9@byu.net>,
79593                     Paul Eggert  <eggert@cs.ucla.edu>
79594
79595         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
79596         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
79597         drive prefix.
79598         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
79599         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
79600         (last_component): New method.
79601         * lib/dirname.c (dir_len): Determine when drive letters need a
79602         subsequent slash.  Preserve // when it is special.
79603         (dir_name): Don't append dot when drive letter is absolute.
79604         [TEST_DIRNAME]: Move into a full-blown gnulib test.
79605         * lib/basename.c (base_name): New semantics - malloc the result.
79606         Preserve // when it is special.  Preserve relative files that look
79607         like drive letters.
79608         (base_len): Preserve // when it is special.
79609         (last_component): New method, similar to old base_name semantics.
79610         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
79611         base_name.  Strip redundant slashes from ///.
79612
79613 2006-07-03  Jim Meyering  <jim@meyering.net>
79614
79615         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
79616         macro is used before the first cycle_check call.
79617
79618 2006-07-03  Eric Blake  <ebb9@byu.net>
79619
79620         * modules/dirname (Depends-on): Add xstrndup.
79621
79622 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
79623
79624         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
79625         test cases, so that config.log is a bit easier to follow.
79626
79627 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
79628
79629         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
79630         both are 64 bits, since this seems to be the tradition, and this
79631         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
79632         we ever run into a host that prefers long long to long in this
79633         case, we'll need another configure-time test.  Problem reported by
79634         Jim Meyering.
79635
79636 2006-07-02  Eric Blake  <ebb9@byu.net>
79637
79638         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
79639
79640 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
79641
79642         * modules/inttypes (Depends-on): No longer depends on stdint.
79643         * modules/stdint (Description): Say more about assumptions.
79644         Say that the fast types might differ.  Say macros are used.
79645         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
79646         (Makefile.am): Revise list of substituted symbols to match
79647         new stdint.m4.
79648         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
79649         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
79650         * tests/test-stdint.c (verify_same_types)
79651         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
79652         the code conforms to C99/C89.
79653         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
79654         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
79655
79656 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
79657
79658         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
79659         but fix a bug, by requiring at least 64 bits.
79660         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
79661         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
79662         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
79663         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
79664
79665         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
79666         changes.  Make 2.59 a prerequisite.  Check and substitute for
79667         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
79668         inttypes.h.  Do not use special include files; just use the
79669         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
79670         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
79671         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
79672         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
79673         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
79674         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
79675         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
79676         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
79677         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
79678         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
79679         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
79680         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
79681         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
79682         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
79683         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
79684         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
79685         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
79686         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
79687         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
79688         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
79689         WINT_MAX.  Check for C99 conformance more strictly, by detecting
79690         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
79691         not check for things that C99 does not require, e.g., int8_t.  If
79692         a test isn't needed unless <stdint.h> isn't working, and is
79693         unlikely to be needed for any other reason, then don't do it
79694         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
79695         size_t, since we assume C89 freestanding at least.  Do not check
79696         for sig_atomic_t, wchar_t, or wint_t, since the code now does
79697         the right thing even if the types are not defined.  Instead use:
79698         (gl_STDINT_TYPE_PROPERTIES): New macro.
79699         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
79700         testing whether <sys/types.h> clashes, as Autoconf does this for
79701         us now.  All uses removed.
79702         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
79703         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
79704         (gl_CHECK_TYPE_SAME):
79705         Remove; no longer needed.
79706         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
79707         exists, since we'll return 0 anyway in that case.
79708         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
79709
79710 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
79711
79712         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
79713         possible collision with system files.
79714         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
79715         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
79716         WCHAR_MIN and WCHAR_MAX in this case.
79717         (<stddef.h>): Do not include; no longer needed.
79718         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
79719         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
79720         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
79721         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
79722         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
79723         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
79724         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
79725         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
79726         !defined(__c99))]: Include in this case too, since it's harmless
79727         now.
79728         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
79729         dangerous to do so.
79730         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
79731         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
79732         (_STDINT_MIN, _STDINT_MAX): New macros.
79733         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
79734         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
79735         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
79736         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
79737         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
79738         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
79739         macros, not typedefs; this simplifies things quite a bit.
79740         Use long int for all types narrower than int64_t.
79741         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
79742         Define in terms of long long int or int64_t or long int,
79743         not int64_t or int32_t.  This saves some compile-time testing.
79744         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
79745         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
79746         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
79747         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
79748         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
79749         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
79750         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
79751         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
79752         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
79753         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
79754         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
79755         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
79756         undef any previous version and define our own version, for
79757         simplicity and consistency with the new macros for types.
79758         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
79759         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
79760         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
79761         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
79762         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
79763         @WINT_T_SUFFIX@ to keep things simple here.
79764         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
79765         Simplify by assuming typical 8/16/32/64 host, since we're
79766         already doing that elsewhere anyway.
79767         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
79768         and assume long long int is 64 bits if available.  This
79769         speeds up 'configure'.
79770
79771 2006-07-01  Eric Blake  <ebb9@byu.net>
79772
79773         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
79774         Reported by Andreas Buening.
79775
79776 2006-07-01  Eric Blake  <ebb9@byu.net>
79777
79778         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
79779
79780 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
79781
79782         * lib/getaddrinfo.c: fixed typo
79783
79784 2006-06-29  Jim Meyering  <jim@meyering.net>
79785
79786         * modules/strftime (Maintainer): Add my name, since with the
79787         FPRINTFTIME changes strftime.c has forked from glibc.
79788
79789 2006-06-29  Eric Blake  <ebb9@byu.net>
79790
79791         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
79792
79793 2006-06-29  Eric Blake  <ebb9@byu.net>
79794
79795         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
79796
79797 2006-06-29  Eric Blake  <ebb9@byu.net>
79798
79799         * lib/stat_.h: New file.
79800
79801 2006-06-29  Eric Blake  <ebb9@byu.net>
79802
79803         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
79804         unused static function.
79805
79806 2006-06-29  Eric Blake  <ebb9@byu.net>
79807
79808         * doc/functions.texi (Function Portability): Document missing lstat
79809         on mingw.
79810
79811 2006-06-29  Eric Blake  <ebb9@byu.net>
79812
79813         * MODULES.html.sh: Add sys_stat.
79814         * modules/sys_stat: New module.
79815         * modules/mkstemp (Depends-on): Add sys_stat.
79816
79817 2006-06-29  Derek R. Price  <derek@ximbiot.com>
79818
79819         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
79820
79821 2006-06-29  Derek R. Price  <derek@ximbiot.com>
79822
79823         * m4/c-bs-a.m4: Removed.
79824
79825 2006-06-29  Derek R. Price  <derek@ximbiot.com>
79826
79827         * lib/strftime.c: Assume strftime() exists.
79828
79829 2006-06-29  Derek Price  <derek@ximbiot.com>
79830
79831         * modules/c-bs-a: Removed - \a is C89.
79832         * MODULES.html.sh: Remove c-bs-a.
79833
79834 2006-06-29  Bruno Haible  <bruno@clisp.org>
79835
79836         * modules/wcwidth (License): Change to LGPL.
79837
79838 2006-06-28  Simon Josefsson  <jas@extundo.com>
79839
79840         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
79841         on _WIN32.
79842
79843         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
79844         getnameinfo.
79845
79846 2006-06-28  Simon Josefsson  <jas@extundo.com>
79847
79848         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
79849
79850 2006-06-28  Simon Josefsson  <jas@extundo.com>
79851
79852         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
79853         functions there.  It will succeed on Windows XP, but on Windows
79854         2000 and (presumably) earlier, it will fail, and use the internal
79855         re-implementation.
79856         (use_win32_p): New function.
79857         (getaddrinfo): Use strtoul on servname, to support numeric ports.
79858         Support AI_NUMERICSERV to disable getservbyname.
79859         (getnameinfo): New function, only supports
79860         NI_NUMERICHOST|NI_NUMERICSERV for now.
79861
79862         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
79863         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
79864         getnameinfo.
79865
79866 2006-06-28  Eric Blake  <ebb9@byu.net>
79867
79868         * modules/wcwidth: New file.
79869         * modules/mbchar (Depends-on): Add wcwidth.
79870         * modules/mbswidth (Depends-on): Add wcwidth.
79871         * MODULES.html.sh: Add wcwidth.
79872
79873 2006-06-28  Eric Blake  <ebb9@byu.net>
79874
79875         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
79876         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
79877
79878 2006-06-28  Eric Blake  <ebb9@byu.net>
79879
79880         * lib/xvasprintf.h: Fix comments.
79881
79882 2006-06-28  Eric Blake  <ebb9@byu.net>
79883
79884         * lib/mbchar.h (wcwidth): Include wcwidth.h.
79885         * lib/mbswidth.c (wcwidth): Move from here...
79886         * lib/wcwidth.h: ...to this new file.
79887
79888 2006-06-28  Derek R. Price  <derek@ximbiot.com>
79889
79890         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
79891
79892         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
79893         it's obsolete.
79894         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
79895
79896 2006-06-28  Derek R. Price  <derek@ximbiot.com>
79897
79898         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
79899         Autoconf 2.60 says this stuff was obsolete.
79900
79901 2006-06-28  Bruno Haible  <bruno@clisp.org>
79902
79903         * modules/wcwidth (Files): Add m4/wchar_t.m4.
79904
79905 2006-06-28  Bruno Haible  <bruno@clisp.org>
79906
79907         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
79908         gt_TYPE_WCHAR_T.
79909
79910 2006-06-28  Bruno Haible  <bruno@clisp.org>
79911
79912         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
79913         declaration for wcwidth.
79914         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
79915
79916 2006-06-28  Bruno Haible  <bruno@clisp.org>
79917
79918         * lib/mkdtemp.c [MINGW]: Include <io.h>.
79919         (mkdir): Define using _mkdir.
79920
79921 2006-06-28  Bruno Haible  <bruno@clisp.org>
79922
79923         * lib/getaddrinfo.h: Fix POSIX URL.
79924         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
79925         _WIN32.
79926         (use_win32_p): Make static.
79927         (getaddrinfo): Reject service name if it is empty or does not consist
79928         solely of decimal digits, or if its value is > 65535.
79929         (getnameinfo): Remove useless casts.
79930
79931 2006-06-27  Simon Josefsson  <jas@extundo.com>
79932
79933         * modules/sys_select: New file, suggested by Bruno Haible, Paul
79934         Eggert and Martin Lambers.
79935
79936 2006-06-27  Simon Josefsson  <jas@extundo.com>
79937
79938         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
79939         Eggert and Martin Lambers.
79940
79941 2006-06-27  Bruno Haible  <bruno@clisp.org>
79942
79943         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
79944         result to 0, not to empty.
79945         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
79946
79947 2006-06-27  Bruno Haible  <bruno@clisp.org>
79948
79949         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
79950
79951 2006-06-26  Simon Josefsson  <jas@extundo.com>
79952
79953         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
79954         present.
79955
79956 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
79957
79958         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
79959         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
79960         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
79961
79962 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
79963
79964         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
79965
79966 2006-06-26  Bruno Haible  <bruno@clisp.org>
79967
79968         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
79969
79970 2006-06-26  Bruno Haible  <bruno@clisp.org>
79971
79972         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
79973
79974 2006-06-26  Bruno Haible  <bruno@clisp.org>
79975
79976         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
79977         SGI C compiler in pre-C99 mode.
79978         Suggested by Mark D. Baushke and Larry Jones.
79979
79980 2006-06-26  Bruno Haible  <bruno@clisp.org>
79981
79982         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
79983         WCHAR_MAX.
79984         Reported by Mark D. Baushke and Larry Jones.
79985
79986 2006-06-26  Bruno Haible  <bruno@clisp.org>
79987
79988         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
79989         in pre-C99 mode.
79990         Suggested by Mark D. Baushke and Larry Jones.
79991
79992 2006-06-23  Simon Josefsson  <jas@extundo.com>
79993             Bruno Haible  <bruno@clisp.org>
79994
79995         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
79996         Emit mostlyclean-local rule.
79997         (func_emit_tests_Makefile_am): Likewise.
79998         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
79999
80000 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
80001
80002         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
80003
80004 2006-06-23  Bruno Haible  <bruno@clisp.org>
80005
80006         * tests/test-stdint.c: Update to match ISO C 99 Technical
80007         Corrigendum 1.
80008
80009 2006-06-23  Bruno Haible  <bruno@clisp.org>
80010
80011         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
80012
80013 2006-06-23  Bruno Haible  <bruno@clisp.org>
80014
80015         * lib/stdint_.h: Treat IRIX like OpenBSD.
80016
80017 2006-06-23  Bruno Haible  <bruno@clisp.org>
80018
80019         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
80020         ISO C 99 Technical Corrigendum 1.
80021
80022 2006-06-22  Simon Josefsson  <jas@extundo.com>
80023
80024         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
80025         MinGW.
80026
80027 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80028
80029         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
80030         needed.  Some compiler complained about some of them.  Problem reported
80031         by Larry Jones in
80032         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
80033
80034 2006-06-21  Simon Josefsson  <jas@extundo.com>
80035
80036         * tests/test-getaddrinfo.c: New file.
80037
80038         * modules/getaddrinfo-tests: New file.
80039
80040         * MODULES.html.sh: Add inet_pton.
80041
80042         * modules/inet_pton: New file.
80043
80044 2006-06-21  Simon Josefsson  <jas@extundo.com>
80045
80046         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
80047         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
80048         of using the (limited) gnulib implementation on Windows XP.
80049
80050         * m4/inet_pton.m4: New file.
80051
80052 2006-06-21  Simon Josefsson  <jas@extundo.com>
80053
80054         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
80055         variable.
80056
80057         * lib/socket_.h: Don't define WINVER.
80058
80059         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
80060         slightly modified to work in gnulib.
80061
80062 2006-06-21  Simon Josefsson  <jas@extundo.com>
80063
80064         * doc/gnulib.texi (Windows sockets): Add.
80065
80066 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
80067
80068         * lib/read-file.c (fread_file): Start with buffer allocation of
80069         0 bytes rather than 1 byte; this simplifies the code.
80070         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
80071         code to free buffer and save/restore errno.
80072         (internal_read_file): Remove unused local.
80073
80074 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
80075
80076         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
80077         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
80078         Problem reported by Denis Excoffier in
80079         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
80080
80081 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80082
80083         * modules/sys_socket, modules/socklen: Include sys/types since
80084         FreeBSD 4.x's sys/socket.h needs it.
80085
80086 2006-06-19  Simon Josefsson  <jas@extundo.com>
80087
80088         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
80089
80090 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
80091
80092         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
80093
80094 2006-06-19  Bruno Haible  <bruno@clisp.org>
80095
80096         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
80097         and FULL_PATH_INTTYPES_H in angle brackets.
80098         Reported by Mark D. Baushke <mdb@gnu.org>.
80099
80100 2006-06-17  Eric Blake  <ebb9@byu.net>
80101
80102         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
80103         errno.
80104
80105 2006-06-17  Bruno Haible  <bruno@clisp.org>
80106
80107         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
80108         <sys/inttypes.h>.
80109
80110 2006-06-17  Bruno Haible  <bruno@clisp.org>
80111
80112         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
80113         whether errno is declared. Assume <errno.h> declares errno.
80114
80115 2006-06-17  Bruno Haible  <bruno@clisp.org>
80116
80117         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
80118
80119 2006-06-17  Bruno Haible  <bruno@clisp.org>
80120
80121         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
80122         problem on Solaris 2.5.1.
80123
80124 2006-06-16  Eric Blake  <ebb9@byu.net>
80125
80126         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
80127         * lib/unicodeio.c [!defined errno]: Likewise.
80128         * lib/strtol.c [!defined errno]: Likewise.
80129         * lib/strtod.c [!defined errno]: Likewise.
80130
80131 2006-06-15  Eric Blake  <ebb9@byu.net>
80132
80133         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
80134
80135 2006-06-15  Eric Blake  <ebb9@byu.net>
80136
80137         * config/srclist.txt (ssize_t.m4): Lose sync.
80138
80139 2006-06-15  Bruno Haible  <bruno@clisp.org>
80140
80141         * modules/stdint (Files): Include m4/full-header-path.m4,
80142         m4/size_max.m4, m4/wchar_t.m4.
80143         (Makefile.am): Many more substitutions.
80144         * modules/stdint-tests: New file.
80145         * tests/test-stdint.c: New file.
80146
80147 2006-06-15  Bruno Haible  <bruno@clisp.org>
80148
80149         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
80150         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
80151         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
80152         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
80153         gl_CHECK_TYPE_SAME): New macros.
80154
80155 2006-06-15  Bruno Haible  <bruno@clisp.org>
80156
80157         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
80158
80159 2006-06-15  Bruno Haible  <bruno@clisp.org>
80160
80161         * lib/stdint_.h: Rewritten to be fully auto-configured.
80162         Fixes bug on HP-UX/IA64.
80163
80164 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
80165
80166         * lib/getdate.y (__attribute__): Don't define if already defined.
80167         Problem reported by Larry Jones.
80168         * lib/utimens.c (__attribute__): Likewise.
80169
80170 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
80171
80172         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
80173         reported by Andreas Schwab.
80174
80175 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80176             Bruno Haible  <bruno@clisp.org>
80177
80178         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
80179         check for the declaration of strnlen and a run test that exposes the
80180         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
80181         rpl_strndup.
80182
80183 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80184             Bruno Haible  <bruno@clisp.org>
80185
80186         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
80187
80188 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80189
80190         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
80191         compile test, for Tru64 4.0D.
80192
80193 2006-05-28  Karl Berry  <karl@gnu.org>
80194
80195         * config/srclist.txt (printf-args.c): lose sync.
80196
80197 2006-05-26  Martin Lambers  <marlam@marlam.de>
80198
80199         * lib/getpass.c: Updates the test for the native W32 API, and adds
80200         missing includes, thus fixing compilation warnings.
80201
80202 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
80203
80204         * lib/exclude.c (exclude_fnmatch): New function.
80205         (excluded_file_name): Call exclude_fnmatch.
80206         * lib/exclude.h (excluded_file_name): New prototype
80207
80208 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
80209
80210         * lib/tempname.c (small_open, large_open): New macros.
80211         (__open, __open64) [!_LIBC]: Remove.
80212         (__gen_tempname): Use small_open and large_open instead of __open
80213         and __open64.  This fixes a portability bug on HP-UX 11.11i
80214         reported by Simon Wing-Tang in
80215         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
80216
80217 2006-05-24  Bruno Haible  <bruno@clisp.org>
80218
80219         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
80220         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
80221         Reported by Thorsten Maerz <torte@netztorte.de> via
80222         Aaron Stone <aaron@serendipity.cx>.
80223
80224 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
80225
80226         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
80227         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
80228         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
80229         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
80230         not really conditional on the cache.
80231         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
80232
80233 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
80234
80235         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
80236         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
80237         (my_usleep): Don't mishandle maximum value.
80238
80239 2006-05-19  Jim Meyering  <jim@meyering.net>
80240
80241         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
80242
80243 2006-05-17  Bruno Haible  <bruno@clisp.org>
80244
80245         Cygwin portability.
80246         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
80247
80248 2006-05-17  Bruno Haible  <bruno@clisp.org>
80249
80250         * lib/stdint_.h: Fix recognition of Cygwin.
80251
80252 2006-05-15  Bruno Haible  <bruno@clisp.org>
80253
80254         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
80255         on libtool patch by Ralf Wildenhues.
80256
80257 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
80258
80259         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
80260         test for C99 conformance; (bool) 0.5 is an integer constant
80261         expression, but (bool) -0.5 is not.  Problem reported by Fedor
80262         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
80263
80264 2006-05-11  Simon Josefsson  <jas@extundo.com>
80265
80266         * m4/xvasprintf.m4: Fix obvious typo.
80267
80268 2006-05-11  Jim Meyering  <jim@meyering.net>
80269
80270         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
80271         James Lemley.
80272
80273 2006-05-10  Simon Josefsson  <jas@extundo.com>
80274
80275         * lib/md4.c: Typo fix, update copyright years.
80276         (K1, K2): Don't use L because it turn computations into 64-bit on
80277         64-bit platforms.
80278
80279 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
80280
80281         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
80282         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
80283         unwanted sign propagation, e.g., on hosts with 64-bit int.
80284         There still are some problems with reeelly weird theoretical hosts
80285         (e.g., 33-bit int) but it's not worth worrying about now.
80286         * lib/sha1.c (rol): Likewise.
80287         (K1, K2, K3, K4): Remove unnecessary L suffix.
80288
80289 2006-05-10  Bruno Haible  <bruno@clisp.org>
80290
80291         * lib/des.c: Cast to avoid warnings.
80292
80293 2006-05-09  Bruno Haible  <bruno@clisp.org>
80294
80295         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
80296         (Depends-on): Depend also on xsize, stdarg.
80297         (configure.ac): Add gl_XVASPRINTF.
80298
80299 2006-05-09  Bruno Haible  <bruno@clisp.org>
80300
80301         * m4/xvasprintf.m4: New file.
80302
80303 2006-05-09  Bruno Haible  <bruno@clisp.org>
80304
80305         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
80306         (EOVERFLOW): Define fallback value.
80307         (xstrcat): New function.
80308         (xvasprintf): Recognize the special case of a string concatenation.
80309
80310 2006-05-08  Eric Blake  <ebb9@byu.net>
80311
80312         * gnulib-tool (func_version): Base copyright year on CVS date.
80313         (func_emit_copyright_notice): New function.
80314         (func_emit_lib_Makefile_am): Use it.
80315         (func_emit_tests_Makefile_am): Likewise.
80316         (func_import): Likewise.
80317
80318 2006-05-08  Bruno Haible  <bruno@clisp.org>
80319
80320         * modules/stdarg: New file.
80321         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
80322
80323 2006-05-08  Bruno Haible  <bruno@clisp.org>
80324
80325         * m4/stdarg.m4: New file, from GNU gettext.
80326
80327 2006-05-08  Bruno Haible  <bruno@clisp.org>
80328
80329         * config/srclist.txt (build-aux/config.rpath): different from latest
80330         release.
80331
80332 2006-05-08  Bruno Haible  <bruno@clisp.org>
80333
80334         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
80335
80336 2006-05-05  Jim Meyering  <jim@meyering.net>
80337
80338         * m4/warning.m4: New file, derived from bison's file by the same name.
80339
80340 2006-05-03  Bruno Haible  <bruno@clisp.org>
80341
80342         * lib/stdint_.h: Shorter URL.
80343         * lib/inttypes.h: Likewise.
80344
80345 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
80346
80347         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
80348
80349 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
80350
80351         * lib/verify.h: Document the internals better.  Most of this change
80352         was written by Bruno Haible.
80353
80354 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
80355
80356         * doc/verify.texi: New file, partly based on a proposal by
80357         Bruno Haible.
80358
80359 2006-05-02  Bruno Haible  <bruno@clisp.org>
80360
80361         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
80362         test from here...
80363         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
80364
80365 2006-04-29  Bruno Haible  <bruno@clisp.org>
80366
80367         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
80368         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
80369
80370 2006-04-29  Bruno Haible  <bruno@clisp.org>
80371
80372         * gnulib-tool: Make --update option actually work.
80373
80374 2006-04-29  Bruno Haible  <bruno@clisp.org>
80375
80376         * doc/gcd.texi: New file.
80377         * doc/gnulib.texi: Include it.
80378
80379 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
80380
80381         * lib/getdate.y (get_date): When adding relative date, start with the
80382         initial time, not with the result of the first mktime call.
80383
80384 2006-04-25  Bruno Haible  <bruno@clisp.org>
80385
80386         * gnulib-tool (func_import): Output the include directives in three
80387         blocks, sorted separately.
80388         Reported by Ben Pfaff <blp@cs.stanford.edu>.
80389
80390 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
80391
80392         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
80393         to define main with arguments, for C++.  Reported by Eric Blake.
80394         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
80395         Prefer 'int main ()' to 'int main (void)', for C++.
80396         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
80397         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
80398         for 'main', for C99 and C++.
80399
80400 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
80401
80402         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
80403         Don't assume that exit status -1 is valid.
80404         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
80405         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
80406         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
80407         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
80408         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
80409         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
80410         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
80411         functions can be used without declaring them, or that you can
80412         exit with status -1.
80413         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
80414
80415 2006-04-24  Karl Berry  <karl@gnu.org>
80416
80417         * config/srclist.txt (longdouble.m4): sync lost.
80418
80419 2006-04-24  Eric Blake  <ebb9@byu.net>
80420
80421         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
80422
80423 2006-04-24  Bruno Haible  <bruno@clisp.org>
80424
80425         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
80426         poll() implementation in AIX.
80427         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
80428
80429 2006-04-24  Bruno Haible  <bruno@clisp.org>
80430
80431         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
80432         assigned exactly once.
80433
80434 2006-04-23  Claudio Fontana  <claudio@gnu.org>
80435             Bruno Haible  <bruno@clisp.org>
80436
80437         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
80438         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
80439         for AM_CPPFLAGS.
80440
80441 2006-04-23  Bruno Haible  <bruno@clisp.org>
80442
80443         * modules/copy-file: Depend on unistd.
80444         * modules/execute: Likewise.
80445         * modules/fatal-signal: Likewise.
80446         * modules/findprog: Likewise.
80447         * modules/mkdtemp : Likewise.
80448         * modules/pipe: Likewise.
80449         * modules/wait-process: Likewise.
80450
80451 2006-04-23  Bruno Haible  <bruno@clisp.org>
80452
80453         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
80454         condition was already detected.
80455         Reported by Ben Pfaff <blp@cs.stanford.edu>.
80456
80457 2006-04-23  Bruno Haible  <bruno@clisp.org>
80458
80459         * lib/copy-file.c: Include <unistd.h> unconditionally.
80460         * lib/execute.c: Likewise.
80461         * lib/fatal-signal.c: Likewise.
80462         * lib/findprog.c: Likewise.
80463         * lib/mkdtemp.c: Likewise.
80464         * lib/pipe.h: Likewise.
80465         * lib/pipe.c: Likewise.
80466         * lib/wait-process.h: Likewise.
80467
80468 2006-04-23  Bruno Haible  <bruno@clisp.org>
80469
80470         * gnulib-tool (func_usage): Fix --import description. Document
80471         --update.
80472         (func_import): Create temporary file in a temporary directory, if
80473         --dry-run is specified. Silence errors from 'grep' when there are no
80474         m4 files in $m4dir.
80475         (func_create_testdir): Silence errors from 'grep' when there are no
80476         m4 files in $m4dir.
80477         Reported by Karl Berry <karl@freefriends.org>.
80478
80479 2006-04-20  Bruno Haible  <bruno@clisp.org>
80480
80481         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
80482         one argument, so that the code will be portable to Autoconf 2.60.
80483         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
80484         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
80485         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
80486
80487 2006-04-19  Derek Price  <derek@ximbiot.com>
80488             Eric Blake  <ebb9@byu.net>
80489
80490         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
80491         rather than "/full/path.h".  Update comment to match.  Shorten &
80492         generalize m4_translit call via AS_TR_CPP.
80493
80494 2006-04-19  Derek Price  <derek@ximbiot.com>
80495             Eric Blake  <ebb9@byu.net>
80496
80497         * lib/inttypes.h: Correct grammar in comment.
80498
80499 2006-04-18  Derek Price  <derek@ximbiot.com>
80500             Paul Eggert  <eggert@cs.ucla.edu>
80501
80502         * modules/inttypes: New file.
80503         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
80504
80505 2006-04-18  Derek Price  <derek@ximbiot.com>
80506             Paul Eggert  <eggert@cs.ucla.edu>
80507
80508         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
80509         New files.
80510
80511 2006-04-18  Derek Price  <derek@ximbiot.com>
80512             Paul Eggert  <eggert@cs.ucla.edu>
80513
80514         * lib/inttypes.h: New file.
80515         * lib/strtoimax.c: Assume <inttypes.h>.
80516
80517 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
80518
80519         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
80520         isn't mounted.  Problem reported by Kir Kolyshkin.
80521
80522 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
80523
80524         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
80525         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
80526         Derek R. Price.
80527         * lib/regex.h (RE_DUP_MAX): Update comment to match current
80528         implementation.
80529
80530 2006-04-12  Eric Blake  <ebb9@byu.net>
80531
80532         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
80533         is now done automatically by the corresponding Autoconf macro.
80534
80535 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
80536
80537         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
80538         time_r.h.
80539
80540 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
80541
80542         Merge regex changes from libc, removing some of our
80543         POSIX-conformance changes that were rejected and redoing them in a
80544         less-intrusive way.
80545
80546         * lib/regcomp.c (re_compile_internal, init_dfa):
80547         Length arg is now size_t, not Idx.  All uses changed.
80548         (peek_token): Forward decl now says internal_function.
80549         (__re_error_msgid, __re_error_msgid_idx):
80550         Now static rather than extern with attribute_hidden.
80551         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
80552         For some reason libc prefers K&R style defns for external functions.
80553         (regerror) [!defined _LIBC]: Likewise.
80554         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
80555         (seek_collating_symbol_entry, lookup_collation_sequence_value):
80556         (build_range_exp, build_collating_symbol):
80557         Use K&R-style defn.
80558         (re_compile_fastmap): Use '\0' to memset, not 0.
80559         (utf8_sb_map): Make the calculations more obvious.
80560         (init_dfa, parse_bracket_exp, build_charclass_op):
80561         Call calloc and cast result, as glibc does.
80562         (init_word_char, fetch_token, peek_token, peek_token_bracket):
80563         (build_range_exp, build_collating_symbol):
80564         Now internal functions.
80565
80566         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
80567
80568         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
80569         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
80570         Don't depend on VMS; depend on __VMS instead, for POSIX
80571         namespace cleanness.
80572         (regoff_t): Define to ssize_t, not long int.
80573
80574         Remove the REG_ macros named below.  Instead, make the old names
80575         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
80576         __USE_GNU_REGEX.
80577         (REG_BACKSLASH_ESCAPE_IN_LISTS):
80578         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
80579         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
80580         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
80581         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
80582         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
80583         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
80584         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
80585         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
80586         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
80587         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
80588         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
80589         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
80590         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
80591         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
80592         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
80593         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
80594         (REG_NREGS):
80595         Remove.  All uses replaced by the old RE_* names.
80596         (RE_BACKSLASH_ESCAPE_IN_LISTS):
80597         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
80598         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
80599         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
80600         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
80601         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
80602         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
80603         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
80604         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
80605         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
80606         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
80607         Don't bother having these macros be independent of each others'
80608         values, since they no longer exist in the POSIX name space.
80609
80610         Rename the following member names back to their old names,
80611         unless !__USE_GNU_REGEX.  All uses changed back.
80612         (buffer): Renamed from re_buffer.
80613         (allocated): Renamed from re_allocated.
80614         (used): Renamed from re_used.
80615         (syntax): Renamed from re_syntax.
80616         (fastmap): Renamed from re_fastmap.
80617         (translate): Renamed from re_translate.
80618         (can_be_null): Renamed from re_can_be_null.
80619         (regs_allocated): Renamed from re_regs_allocated.
80620         (fastmap_accurate): Renamed from re_fastmap_accurate.
80621         (no_sub): Renamed from re_no_sub.
80622         (not_bol): Renamed from re_not_bol.
80623         (not_eol): Renamed from re_not_eol.
80624         (newline_anchor): Renamed from re_newline_anchor.
80625         (num_regs): Renamed from rm_num_regs.
80626         (start): Renamed from rm_start.
80627         (end): Renamed from rm_end.
80628
80629         (free_state): Move up a bit.
80630
80631         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
80632         #define to be empty.
80633         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
80634         when that is what is intended.
80635         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
80636         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
80637         (MAX): New macro.
80638         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
80639         All uses changed back to re_malloc, etc.  It's now the caller's
80640         responsibility to check for overflow; all callers changed.
80641         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
80642         (re_x2nrealloc): Remove.
80643         (free_state): Remove decl.
80644
80645         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
80646         (re_set_registers, re_exec):
80647         Use K&R-style defn.
80648
80649         2006-01-31  Roland McGrath  <roland@redhat.com>
80650
80651         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
80652         Reported by Mike Frysinger <vapier@gentoo.org>.
80653
80654         2006-01-15  Andreas Jaeger  <aj@suse.de>
80655
80656         [BZ #1950]
80657         * lib/regex_internal.c (re_string_reconstruct): Adjust for
80658         build_wcs_upper_buffer change.
80659         (build_wcs_upper_buffer): Change return type.
80660
80661         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
80662
80663         * lib/regex_internal.h: Include <stdint.h> if available.
80664
80665         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
80666
80667         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
80668
80669         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
80670
80671         * lib/regcomp.c: Adjust for changed secondary hash function.
80672
80673         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
80674
80675         * lib/regex.h: Pretty printing.
80676         Clean up namespace a bit.
80677
80678         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
80679
80680         * lib/regexec.c (update_cur_sifted_state, check_arrival,
80681         check_arrival_add_next_nodes): Avoid using uninitialized variable.
80682
80683         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
80684                     Ulrich Drepper  <drepper@redhat.com>
80685
80686         [BZ #1302]
80687         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
80688         changed.
80689         (bitset_word_t): Renamed from bitset_word.  All uses changed.
80690
80691         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
80692
80693         [BZ #281]
80694         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
80695         * lib/regcomp.c: Remove unnecessary uses of
80696         unsigned RE_TRANSLATE_TYPE.
80697         * lib/regex_internal.h: Likewise.
80698         * lib/regex_internal.c: Likewise.
80699         * lib/regexec.c: Likewise.
80700         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
80701
80702         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
80703
80704         * lib/regexec.c (find_recover_state): Remove unnecessary
80705         initialization.
80706         (transit_state_bkref): Make DFA a const pointer.
80707         (get_subexp): Likewise.
80708         (check_arrival): Likewise.
80709         (update_cur_sifted_state): Likewise.
80710         (re_search_internal): Likewise.
80711         (prune_impossible_nodes): Likewise.
80712         (acquire_init_state_context): Likewise.
80713         (proceed_next_node): Likewise.
80714         (set_regs): Likewise.
80715         (free_fail_stack_return): Likewise.
80716         (check_arrival_expand_ecl): Mark DFA parameter as const.
80717         (check_arrival_expand_ecl_sub): Likewise.
80718         (check_subexp_limits): Likewise.
80719         (sub_epsilon_src_nodes):  Likewise.
80720         (add_epsilon_src_nodes):  Likewise.
80721         (merge_state_array): Likewise.
80722         (update_regs): Likewise.
80723         (build_trtable): Likewise.
80724         (sift_states_backward): Mark MCTX parameter as const.
80725         (build_sifted_states): Likewise.
80726         (update_cur_sifted_state): Likewise.
80727         (sift_states_mkref): Likewise.
80728         (check_arrival_expand_ecl): Mark eclosure as const.
80729         (check_dst_limits_calc_pos_1): Likewise.
80730         * lib/regex_internal.h (re_match_context_t): Make dfa a const
80731         pointer.
80732
80733         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
80734
80735         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
80736         (transit_state_sb): Likewise.
80737         (transit_state_mb): Likewise.
80738         (sift_states_iter_mb): Likewise.
80739         (check_arrival_add_next_nodes): Likewise.
80740         (check_node_accept_bytes): Change first parameter to pointer-to-const.
80741         [_LIBC] (re_search_2_stub): Use mempcpy.
80742
80743         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
80744         mbrtowc for very simple UTF-8 case.
80745
80746         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
80747         a pointer-to-const.
80748         (re_acquire_state_context): Likewise.
80749         * lib/regex_internal.h: Adjust prototypes.
80750
80751         * lib/regex.c: Prevent using C++ compilers.
80752
80753         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
80754         (re_acquire_state_context): Likewise.
80755
80756 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
80757
80758         * modules/regex (Depends-on): Add ssize_t.
80759
80760 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
80761
80762         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
80763         translation table.
80764
80765 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
80766
80767         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
80768
80769 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
80770             Bruno Haible  <bruno@clisp.org>
80771
80772         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
80773         <sys/types.h> and <inttypes.h>.
80774
80775 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80776
80777         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
80778         `__error_t_defined', so argp.h will not typedef the former.
80779
80780 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
80781
80782         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
80783         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
80784         glibc names.  Even if glibc is changed to conform to POSIX, the
80785         traditional names will be available anyway, since regex depends on
80786         the extensions module.  Also, fix a longstanding typo in the
80787         implementation of Spencer ERE test #75 from grep 2.3.  Problems
80788         reported by Emanuele Giaquinta.  Also, change sense of cached
80789         variable, so that the message makes sense.
80790
80791 2006-03-24  Simon Josefsson  <jas@extundo.com>
80792
80793         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
80794         including some doc fixes.
80795         (base64_encode_alloc): Fix +1 bug on allocation failures.
80796
80797 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80798
80799         * lib/base64.c (base64_encode): Do not read past end of array with
80800         unsanitized input on systems with CHAR_BIT > 8.
80801
80802 2006-03-24  Eric Blake  <ebb9@byu.net>
80803
80804         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
80805
80806 2006-03-22  Karl Berry  <karl@gnu.org>
80807
80808         * config/srclist.txt (*setenv.[ch]): get from coreutils.
80809         * config/srclistvars.sh (COREUTILS): new var.
80810
80811 2006-03-17  Jim Meyering  <jim@meyering.net>
80812
80813         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
80814         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
80815
80816 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
80817
80818         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
80819         no longer needs it.  Instead, check that regoff_t is as least
80820         as wide as ptrdiff_t.
80821
80822         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
80823         so that our regex.h stays compatible with the installed regex.
80824         This is helpful for installers who configure --without-included-regex.
80825         Problem reported by Emanuele Giaquinta.
80826
80827 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
80828
80829         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
80830         Typedef to long int, not to off_, as POSIX will likely change
80831         in that direction.
80832
80833 2006-03-15  Eric Blake  <ebb9@byu.net>
80834
80835         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
80836
80837 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
80838
80839         * lib/argp-help.c (validate_uparams): Fix typo
80840         * lib/argp-parse.c (argp_default_options): Consistently begin help
80841         messages with a lowercase letter.
80842
80843 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
80844
80845         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
80846         overrun buffers and shouldn't be used (much as gets shouldn't be
80847         used).
80848         * lib/time_r.c (asctime_r, ctime_r): Likewise.
80849
80850 2006-03-08  Simon Josefsson  <jas@extundo.com>
80851
80852         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
80853         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
80854
80855 2006-03-08  Simon Josefsson  <jas@extundo.com>
80856
80857         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
80858         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
80859
80860 2006-03-08  Simon Josefsson  <jas@extundo.com>
80861
80862         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
80863         signal that configure disabled the device.
80864
80865 2006-03-08  Simon Josefsson  <jas@extundo.com>
80866
80867         * build-aux/maint.mk: Fix refresh-po, to handle no translated
80868         languages.
80869
80870 2006-03-07  Simon Josefsson  <jas@extundo.com>
80871
80872         * modules/getopt (Depends-on): Add unistd.
80873
80874         * modules/unistd: New file.
80875
80876 2006-03-07  Simon Josefsson  <jas@extundo.com>
80877
80878         * modules/gc-random: New file.
80879
80880 2006-03-07  Simon Josefsson  <jas@extundo.com>
80881
80882         * m4/unistd_h.m4: New file.
80883
80884 2006-03-07  Simon Josefsson  <jas@extundo.com>
80885
80886         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
80887         test to be side-effect free by storing the result in the cache
80888         variable gl_cv_lib_readline, and moving the assignment of
80889         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
80890         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
80891
80892 2006-03-07  Simon Josefsson  <jas@extundo.com>
80893
80894         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
80895         error on missing devices (the functions will return an error).
80896
80897         * m4/gc.m4: Move random stuff to gc-random.m4
80898
80899 2006-03-07  Simon Josefsson  <jas@extundo.com>
80900
80901         * lib/unistd_.h: New file.
80902
80903 2006-03-07  Simon Josefsson  <jas@extundo.com>
80904
80905         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
80906
80907 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
80908
80909         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
80910         Problem reported by Juan Manuel Guerrero.
80911
80912 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
80913
80914         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
80915         the unistd module.
80916         * lib/getlogin_r.c: Likewise.
80917         * lib/getlogin_r.h: Likewise.
80918         * lib/glob.c: Likewise.
80919         * lib/pagealign_alloc.c: Likewise.
80920         * lib/unistd_.h: Remove; no longer needed.
80921
80922 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
80923
80924         * MODULES.html.sh (Support for systems lacking POSIX:2001):
80925         Add unistd.
80926         * modules/c-stack (Depends-on): Add unistd.
80927         * modules/getlogin_r: Likewise.
80928         * modules/glob: Likewise.
80929         * modules/pagealign_alloc: Likewise.
80930         * modules/unistd (Files): Remove lib/unistd_.h.
80931         (EXTRA_DIST): Remove.
80932         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
80933         need unistd_.h.
80934         (MOSTLYCLEANFILES): Remove unistd.h-t.
80935
80936 2006-03-03  Simon Josefsson  <jas@extundo.com>
80937
80938         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
80939
80940 2006-03-03  Simon Josefsson  <jas@extundo.com>
80941
80942         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
80943         libidn and bison.
80944
80945 2006-03-03  Simon Josefsson  <jas@extundo.com>
80946
80947         * build-aux/maint.mk: Add indent target.
80948
80949 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
80950
80951         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
80952         our replacement poll.h in any case, to avoid a differing
80953         declaration from a system header.  Seen on AIX.
80954
80955 2006-03-01  Simon Josefsson  <jas@extundo.com>
80956
80957         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
80958         <kasal@ucw.cz>.
80959
80960 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
80961
80962         * modules/gettime (Depends-on): Add extensions module.
80963         * modules/nanosleep (Depends-on): Likewise.
80964         * modules/settime (Depends-on): Likewise.
80965
80966 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
80967
80968         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
80969         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
80970         pedantically.
80971         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
80972         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
80973
80974         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
80975         not "==".  Reported by Ralf Wildenhues.
80976
80977 2006-03-01  Karl Berry  <karl@gnu.org>
80978
80979         * doc/Copyright/request-*: new files, synced from gnuorg.
80980
80981 2006-03-01  Karl Berry  <karl@gnu.org>
80982
80983         * config/srclist.txt (Copyright/*): new entries.
80984
80985 2006-02-28  Simon Josefsson  <jas@extundo.com>
80986
80987         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
80988
80989 2006-02-27  Simon Josefsson  <jas@extundo.com>
80990
80991         * lib/base64.h: Indent #define's.  From Jim Meyering
80992         <jim@meyering.net>.
80993
80994 2006-02-27  Jim Meyering  <jim@meyering.net>
80995
80996         Revert the change of 2006-02-24, so these files can continue
80997         to be sync'd from gettext.
80998         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
80999         of `config.h'.
81000
81001 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
81002
81003         * modules/intprops: New file.
81004         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
81005         Add intprops.
81006         * modules/getloadavg (Files): Remove lib/intprops.h.
81007         (Depends-on): Add intprops.
81008         * modules/human: Likewise.
81009         * modules/inttostr: Likewise.
81010         * modules/openat: Likewise.
81011         * modules/sig2str: Likewise.
81012         * modules/userspec: Likewise.
81013         * modules/utimecmp: Likewise.
81014         * modules/xnanosleep: Likewise.
81015         * modules/xstrtol: Likewise.
81016
81017 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
81018
81019         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
81020         * modules/lock-tests (TESTS): Use $(EXEEXT).
81021         * modules/tls-tests: Likewise.
81022         * modules/argp-tests: Likewise.
81023         (check_PROGRAMS): New var, replacing...
81024         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
81025
81026 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81027
81028         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
81029         `config.h'.
81030
81031 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
81032
81033         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
81034
81035 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81036
81037         Sync from coreutils.
81038         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
81039         gl_CHDIR_SAFER.
81040
81041 2006-02-22  Jim Meyering  <jim@meyering.net>
81042
81043         Sync from coreutils.
81044         * m4/chdir-safer.m4: New file.
81045
81046 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
81047
81048         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
81049         AT_FDCWD exceeds INT_MAX.
81050         * lib/openat.h (AT_FDCWD): Likewise.
81051
81052 2006-02-17  Eric Blake  <address@hidden>
81053
81054         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
81055
81056 2006-02-16  Simon Josefsson  <jas@extundo.com>
81057
81058         * modules/getaddrinfo (Depends-on): Add sys_socket.
81059
81060 2006-02-15  Simon Josefsson  <jas@extundo.com>
81061
81062         * build-aux/maint.mk: Add dsyntax-check rule.
81063
81064 2006-02-15  Eric Blake  <ebb9@byu.net>
81065
81066         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
81067         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
81068         'present but cannot compile' warnings on cygwin.
81069         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
81070         use ws2tcpip.h if sys/socket.h works.
81071         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
81072         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
81073
81074 2006-02-14  Simon Josefsson  <jas@extundo.com>
81075
81076         * modules/maintainer-makefile (Files): Rename.
81077
81078         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
81079         and (the local) Makefile.cfg to maint-cfg.mk.
81080
81081         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
81082         to the latter.
81083
81084         * modules/maintainer-makefile: New module.
81085
81086         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
81087         severaly stripped to make it possible to build it up from scratch
81088         with reliable tests.
81089
81090         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
81091         fixes to permit overriding the default actions when configure and
81092         makefile are not available.
81093
81094 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
81095
81096         Sync from coreutils.
81097         * modules/lstat (Depends-on): Don't depend on xalloc.
81098         (License): Change from GPL to LGPL, since this is now simply a
81099         replacement for a libc function.
81100
81101 2006-02-14  Jim Meyering  <jim@meyering.net>
81102
81103         Sync from coreutils.
81104
81105         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
81106         failure on deficient systems, and simplify gnulib lgpl dependencies.
81107         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
81108         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
81109
81110         * lib/xalloc-die.c: Remove unused definition of N_.
81111
81112 2006-02-14  Jim Meyering  <jim@meyering.net>
81113
81114         Sync from coreutils.
81115         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
81116         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
81117         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
81118         double-quote uses of that variable, to accommodate the rare case in
81119         which getmntent is available in none of the libraries checked.  This
81120         happens at least on FreeBSD 5.0.
81121
81122 2006-02-13  Simon Josefsson  <jas@extundo.com>
81123
81124         * gnulib-tool (Usage): Fix --import, from
81125         karl@freefriends.org (Karl Berry).
81126
81127 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
81128
81129         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
81130
81131 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
81132
81133         * lib/argp-namefrob.h: Restore changes accidentally lost during the
81134         "autoupdate" on 2005-12-12.
81135
81136 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
81137
81138         * modules/closeout (Depends-on): Remove atexit.
81139
81140 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
81141
81142         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
81143         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
81144
81145 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
81146
81147         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
81148         __EXTENSIONS__ if this causes compilation to fail.  Problem
81149         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
81150         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
81151
81152 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
81153
81154         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
81155         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
81156         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
81157         All uses changed.
81158
81159 2006-01-26  Simon Josefsson  <jas@extundo.com>
81160
81161         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
81162         prototype is visible on mingw32.
81163
81164         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
81165         for mingw32.
81166
81167         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
81168         mingw32).
81169
81170 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
81171
81172         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
81173         attempt to open for write; this always fails, at least on POSIX
81174         hosts.  This reinstates the 2006-01-09 change, which was
81175         inadvertently removed.
81176
81177 2006-01-26  Bruno Haible  <bruno@clisp.org>
81178
81179         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
81180         Reported by Paul Eggert.
81181
81182 2006-01-26  Bruno Haible  <bruno@clisp.org>
81183             Paul Eggert  <eggert@cs.ucla.edu>
81184
81185         * lib/stdbool_.h (_Bool)
81186         [(! (defined __cplusplus || defined __BEOS__)
81187           && !defined __GNUC__
81188           && !(defined __HP_cc || defined __xlc__
81189                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
81190                || defined __sgi))]:
81191         #define to signed char in these cases too; this simplifies
81192         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
81193         etc., separately) and makes it more conservative.
81194
81195 2006-01-25  Simon Josefsson  <jas@extundo.com>
81196
81197         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
81198         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
81199         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
81200
81201 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
81202
81203         * lib/argp-namefrob.h: Bugfix. Remove stray #
81204
81205 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
81206
81207         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
81208         so that we test the test.
81209         Check for yet another HP-UX cc bug involving *bool |= bool.
81210
81211 2006-01-25  Karl Berry  <karl@gnu.org>
81212
81213         * config/srclist.txt (vasnprintf.c): sync lost.
81214
81215 2006-01-25  Jim Meyering  <jim@meyering.net>
81216
81217         Sync from the stable (b5) branch of coreutils:
81218
81219         * lib/fts.c (fts_children): Don't let close() clobber errno from
81220         failed fchdir().
81221
81222         * lib/fts.c (fts_stat): When following a symlink-to-directory,
81223         don't necessarily interpret stat-fails+lstat-succeeds as indicating
81224         a dangling symlink.  That can also happen at least for ELOOP.
81225         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
81226         FYI, this bug predates the inclusion of fts.c in coreutils.
81227
81228         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
81229         in their own block, so pre-c99 compilers don't object.
81230
81231         Avoid the double-free (first in fts_read, second in fts_close) that
81232         would occur when an `active' directory is made inaccessible (e.g.,
81233         via chmod a-x) during a traversal.
81234         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
81235         before returning.  Reproduce this failure by
81236         mkdir -p a/b; cd a; chmod a-x . b
81237         Reported by Stavros Passas.
81238
81239 2006-01-25  Jim Meyering  <jim@meyering.net>
81240
81241         * lib/fileblocks.c: Remove more useless parentheses.
81242         * lib/readutmp.h: Likewise.
81243
81244 2006-01-25  Bruno Haible  <bruno@clisp.org>
81245
81246         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
81247         warnings.
81248         Reported by Paul Eggert.
81249
81250 2006-01-25  Bruno Haible  <bruno@clisp.org>
81251
81252         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
81253         rid of a trap command. For Solaris sh.
81254         Reported by Mark D. Baushke <mdb@gnu.org>.
81255
81256 2006-01-24  Simon Josefsson  <jas@extundo.com>
81257
81258         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
81259         Bruno.
81260
81261 2006-01-24  Karl Berry  <karl@gnu.org>
81262
81263         * config/srclist.txt (argp-namefrob.h): sync lost.
81264
81265 2006-01-24  Jim Meyering  <jim@meyering.net>
81266
81267         * modules/openat (Files): Add lib/intprops.h.
81268         From Mark D. Baushke.
81269
81270 2006-01-24  Jim Meyering  <jim@meyering.net>
81271
81272         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
81273         Reported by Mark D. Baushke.
81274
81275 2006-01-24  Jim Meyering  <jim@meyering.net>
81276
81277         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
81278
81279 2006-01-24  Bruno Haible  <bruno@clisp.org>
81280
81281         * modules/strnlen (Maintainer): Change from glibc to all.
81282
81283 2006-01-24  Bruno Haible  <bruno@clisp.org>
81284
81285         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
81286         Patch by Paul Eggert.
81287
81288 2006-01-24  Bruno Haible  <bruno@clisp.org>
81289
81290         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
81291         already has it.
81292         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
81293         2005-11-26.
81294
81295         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
81296         'signed char' to avoid problems with the built-in _Bool type.
81297         Reported by Paul Eggert on 2005-11-26.
81298
81299 2006-01-24  Bruno Haible  <bruno@clisp.org>
81300
81301         * gnulib-tool (func_import): Avoid constructing complicated sed
81302         expressions inside backquote.
81303         Report and solution by Mark D. Baushke <mdb@gnu.org>.
81304
81305 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
81306
81307         These changes imported from libc.
81308         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
81309         test and two separate function calls.
81310         * lib/strndup.c (__strndup): Add libc_hidden_def.
81311
81312 2006-01-23  Simon Josefsson  <jas@extundo.com>
81313
81314         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
81315         Remove the test_*_SOURCES variable: automake infers it by default.
81316         * modules/tls-tests: Likewise.
81317
81318 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
81319
81320         Work around porting bugs reported by Dieter in
81321         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
81322         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
81323         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
81324         Include "getopt.h" first, to check interface.
81325         (getenv): Declare only if defined HAVE_DECL_GETENV &&
81326         !HAVE_DECL_GETENV.
81327         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
81328         (__strndup): Revert to K&R-style function dfns, the glibc style.
81329         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
81330         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
81331         Include strnlen.h first, to get prototype properly.
81332         (strnlen): Renamed from __strnlen.
81333         Remove weak alias.
81334
81335 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
81336
81337         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
81338
81339 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
81340
81341         * config/srclist.txt: Adjust to reflect glibc reorganization.
81342         This affects only comments.
81343
81344 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
81345
81346          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
81347          Reported by Bruce Korb <bkorb@gnu.org>.
81348
81349 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
81350
81351         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
81352         to pacify gcc -Wswitch-default.
81353
81354 2006-01-22  Bruno Haible  <bruno@clisp.org>
81355
81356         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
81357         temporary buffer for sprintf, take into account the precision also
81358         for 'd', 'i', 'u', 'o', 'x', 'X'.
81359
81360 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
81361
81362         * modules/argp-tests: New module
81363         * tests/test-argp.c: New file
81364         * tests/test-argp-2.sh: New file
81365
81366 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
81367
81368         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
81369         (__argp_base_name): Removed
81370         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
81371         typo.
81372         (__argp_base_name): Provide macro definition or extern declaration
81373         depending on the configuration
81374
81375 2006-01-20  Simon Josefsson  <jas@extundo.com>
81376
81377         * modules/inet_ntop (Depends-on): Depend on sys_socket.
81378
81379 2006-01-20  Simon Josefsson  <jas@extundo.com>
81380
81381         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
81382
81383 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
81384
81385         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
81386         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
81387         Suggested by Bruno Haible.
81388
81389 2006-01-20  Karl Berry  <karl@gnu.org>
81390
81391         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
81392         until changes propagate, I guess.
81393
81394 2006-01-19  Simon Josefsson  <jas@extundo.com>
81395
81396         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
81397
81398 2006-01-19  Simon Josefsson  <jas@extundo.com>
81399
81400         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
81401
81402 2006-01-19  Simon Josefsson  <jas@extundo.com>
81403
81404         * gnulib-tool: Set check_PROGRAMS.
81405
81406         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
81407         modules/des-tests, modules/gc-arcfour-tests,
81408         modules/gc-arctwo-tests, modules/gc-des-tests,
81409         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
81410         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
81411         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
81412         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
81413         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
81414         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
81415         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
81416         test_*_SOURCES.
81417
81418 2006-01-18  Simon Josefsson  <jas@extundo.com>
81419
81420         * modules/socklen (Depends-on): Depend on sys_socket.
81421
81422 2006-01-18  Simon Josefsson  <jas@extundo.com>
81423
81424         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
81425         modules/des-tests, modules/gc-arcfour-tests,
81426         modules/gc-arctwo-tests, modules/gc-des-tests,
81427         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
81428         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
81429         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
81430         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
81431         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
81432         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
81433         $(EXEEXT) to automake TESTS variable, for mingw32.
81434
81435 2006-01-17  Simon Josefsson  <jas@extundo.com>
81436
81437         * modules/socklen (Include): Need sys/socket.h.
81438
81439 2006-01-17  Bruno Haible  <bruno@clisp.org>
81440
81441         * modules/ssize_t (Include): Add <sys/types.h>.
81442
81443 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
81444
81445         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
81446         it's not portable and it doesn't work with cross-compiles.
81447         Problem reported by Bruno Haible.  Fix missing-$ typo in
81448         'test "gl_cv_ignore_unused_libraries" ...' that prevented
81449         -zignore from being used with Sun's C compiler.
81450
81451 2006-01-12  Simon Josefsson  <jas@extundo.com>
81452
81453         * lib/base64.c: Fix warning, reported by Bruno Haible
81454         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
81455
81456 2006-01-12  Bruno Haible  <bruno@clisp.org>
81457
81458         * modules/ldd: New file.
81459         * build-aux/ldd.sh.in: New file.
81460         * MODULES.html.sh (Support for building libraries and executables): Add
81461         ldd.
81462
81463 2006-01-12  Bruno Haible  <bruno@clisp.org>
81464
81465         * m4/ldd.m4: New file.
81466
81467 2006-01-12  Bruno Haible  <bruno@clisp.org>
81468
81469         * gnulib-tool (func_import, func_create_testdir): Don't go into an
81470         endless loop while replacing $auxdir with build-aux.
81471
81472 2006-01-11  Simon Josefsson  <jas@extundo.com>
81473
81474         * lib/stdint_.h (SIZE_MAX): Add missing (.
81475
81476 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
81477
81478         Sync from coreutils.
81479         * lib/md5.c: Fix commentary typos.
81480         (alignof, UNALIGNED_P): No need for a GCC-specific version.
81481         * lib/md5.h (__attribute__): Remove; unused.
81482         * lib/sha1.c: Fix commentary to match md5 better.
81483         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
81484         so that we don't need to worry about alignment.  All uses changed.
81485         This merges the 2005-10-28 md5 change into sha1.
81486
81487 2006-01-11  Jim Meyering  <jim@meyering.net>
81488
81489         Sync from coreutils.
81490         * lib/md5.c (OP): Fix spacing.
81491
81492 2006-01-11  Bruno Haible  <bruno@clisp.org>
81493
81494         Ensure automatic ordering between gl_LOCK and gl_ARGP.
81495         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
81496         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
81497
81498 2006-01-11  Bruno Haible  <bruno@clisp.org>
81499
81500         Ensure automatic ordering between gl_LOCK and gl_ARGP.
81501         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
81502         the "early" section as well.
81503
81504 2006-01-11  Bruno Haible  <bruno@clisp.org>
81505
81506         Avoid "ar: no archive members specified" error on MacOS X.
81507         * gnulib-tool (func_modules_add_dummy): New function.
81508         (func_import, func_create_testdir): Invoke it.
81509
81510 2006-01-11  Bruno Haible  <bruno@clisp.org>
81511
81512         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
81513         with $auxdir in AC_CONFIG_FILES statements.
81514
81515 2006-01-11  Bruno Haible  <bruno@clisp.org>
81516
81517         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
81518         Initialize also noinst_HEADERS to empty.
81519
81520 2006-01-11  Bruno Haible  <bruno@clisp.org>
81521
81522         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
81523         variables.
81524         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
81525         autoreconf.
81526
81527 2006-01-11  Bruno Haible  <bruno@clisp.org>
81528
81529         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
81530         overridable by the user.
81531         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81532
81533 2006-01-10  Simon Josefsson  <jas@extundo.com>
81534
81535         * modules/sys_socket: New file.
81536
81537 2006-01-10  Simon Josefsson  <jas@extundo.com>
81538
81539         * m4/sys_socket_h.m4: New file.
81540
81541 2006-01-10  Simon Josefsson  <jas@extundo.com>
81542
81543         * lib/socket_.h: New file.
81544
81545 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
81546
81547         * modules/readutmp (Maintainer): Add myself.
81548
81549 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
81550
81551         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
81552         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
81553         People who are still concerned with buggy memcmp implementations
81554         can invoke gl_FUNC_MEMCMP themselves.
81555
81556 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
81557
81558         * lib/regex_internal.h (BITSET_WORD_BITS):
81559         Work around a bug in 64-bit PGC (before version 6.1-2), where the
81560         preprocessor mishandles large unsigned values as if they were signed.
81561         Problem reported by Claudio Fontana in
81562         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
81563
81564 2006-01-10  Jim Meyering  <jim@meyering.net>
81565
81566         Avoid the double-free (first in fts_read, second in fts_close) that
81567         would occur when an `active' directory is made inaccessible (e.g.,
81568         via chmod a-x) during a traversal.
81569         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
81570         before returning.  Reproduce this failure by
81571         mkdir -p a/b; cd a; chmod a-x . b
81572         Reported by Stavros Passas.
81573
81574         Sync from coreutils.
81575         * lib/sha1.c: Tweak grammar in a comment.
81576
81577 2006-01-10  Jim Meyering  <jim@meyering.net>
81578
81579         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
81580         Patch by Joerg Sonnenberger.
81581
81582 2006-01-10  Bruno Haible  <bruno@clisp.org>
81583
81584         * modules/readutmp: Depend on module free.
81585         * modules/strtok_r: Depend on module restrict.
81586
81587 2006-01-10  Bruno Haible  <bruno@clisp.org>
81588
81589         * modules/gettext (configure.ac): Add an invocation of
81590         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
81591
81592 2006-01-10  Bruno Haible  <bruno@clisp.org>
81593
81594         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
81595         Reported by Werner Lemberg <wl@gnu.org>.
81596
81597 2006-01-10  Bruno Haible  <bruno@clisp.org>
81598
81599         * lib/localcharset.c: Update from GNU gettext.
81600
81601 2006-01-10  Bruno Haible  <bruno@clisp.org>
81602
81603         * lib/argp.h (__const): Remove macro. Use const instead.
81604         * lib/argp-fmtstream.h (__const): Likewise.
81605         * lib/glob_.h (__const): Remove macro.
81606         * lib/glob-libc.h: Use const instead of __const.
81607
81608 2006-01-10  Bruno Haible  <bruno@clisp.org>
81609
81610         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
81611         variable.
81612         Needed to avoid an automake error regarding the 'gettext' module.
81613
81614 2006-01-09  Simon Josefsson  <jas@extundo.com>
81615
81616         * modules/inet_ntop (Depends-on): Add restrict.
81617
81618 2006-01-09  Simon Josefsson  <jas@extundo.com>
81619
81620         * modules/gc-rijndael-tests (License): Put under LGPL.
81621
81622         * modules/gc-des-tests (License): Likewise.
81623
81624         * modules/gc-arcfour-tests (License): Likewise.
81625
81626         * modules/gc-arctwo-tests (License): Likewise.
81627
81628         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
81629
81630         * modules/gc-hmac-sha1-tests (Files): Likewise.
81631
81632         * modules/gc-hmac-md5-tests (License): Likewise.
81633
81634         * modules/gc-sha1-tests (License): Likewise.
81635
81636         * modules/gc-md5-tests (License): Likewise.
81637
81638         * modules/gc-md4-tests (License): Likewise.
81639
81640         * modules/gc-md2-tests (License): Likewise.
81641
81642         * modules/gc-tests (License): Likewise.
81643
81644         * modules/des-tests (License): Likewise.
81645
81646         * modules/md4-tests (License): Likewise.
81647
81648         * modules/md2-tests (License): Likewise.
81649
81650 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
81651
81652         Sync from coreutils:
81653
81654         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
81655         * modules/lib-ignore: New file.
81656         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
81657         chdir-safer.m4, lchmod.m4.
81658         * modules/openat: Add mkdirat.c, openat-priv.h.
81659
81660 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
81661
81662         Sync from coreutils.
81663         * m4/lib-ignore.m4: New file.
81664         * m4/lchmod.m4: New file.
81665
81666 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
81667
81668         Sync from coreutils.
81669         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
81670         for write access: POSIX says that must fail.
81671         * lib/fts.c (diropen): Likewise.
81672         * lib/save-cwd.c (save_cwd): Likewise.
81673         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
81674         well, for minor improvements on hosts that lack O_DIRECTORY.
81675         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
81676         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
81677         Fall back on chown if open failed with EACCES.
81678
81679         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
81680         Report an error at compile-time if only a 1-second nominal clock
81681         resolution is found.
81682
81683         * lib/lchmod.h: New file.
81684         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
81685         (make_dir_parents): Use lchown rather than chown, and
81686         lchmod rather than chmod.
81687
81688         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
81689         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
81690         "proc" reported by n0dalus.
81691
81692         * lib/mountlist.c: Include <limits.h>.
81693         (dev_from_mount_options)
81694         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
81695         New function.  It no longer assumes "dev=" has the System V meaning
81696         on Linux (since it doesn't).  It also parses "dev=" more carefully.
81697         (read_file_system_list)
81698         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
81699         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
81700         dev= in that case.
81701
81702         * lib/posixtm.h (PDS_PRE_2000): New macro.
81703         * lib/posixtm.c (year): Arg is now syntax_bits rather than
81704         allow_century.  All usages changed.  Reject dates outside the range
81705         1969-1999 if PDS_PRE_2000 is used.
81706
81707 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
81708
81709         Sync from coreutils.
81710         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
81711         (Time of day items): Mention the possibility of leap seconds.
81712         Problem reported by Dr. David Alan Gilbert.
81713
81714 2006-01-09  Jim Meyering  <jim@meyering.net>
81715
81716         Sync from coreutils.
81717
81718         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
81719
81720         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
81721
81722         * lib/modechange.c (mode_compile): Reject an invalid mode string
81723         that starts with an octal digit.  From Andreas Gruenbacher.
81724
81725         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
81726         and dup to open_safer and dup_safer, respectively.
81727         (openat_permissive): Fix typo in comment.
81728
81729         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
81730         "gettext.h"; either no longer needed or are guaranteed by openat.h.
81731         (_): Remove; no longer needed.
81732         (openat): Renamed from rpl_openat; no need for rpl_openat
81733         since openat.h renames openat for us.
81734         Replace most of the body with a call to openat_permissive,
81735         to avoid duplicate code.
81736         Port to (probably hypothetical) environments were mode_t is
81737         wider than int.
81738         (openat_permissive): Require mode arg, so that we can check
81739         types better.  Put it just after flags.  Change cwd failure
81740         indicator from pointer-to-bool to pointer-to-errno-value.
81741         All callers changed.
81742         Invoke openat_save_fail and/or openat_restore_fail if
81743         cwd_errno is null, so that openat can call us.
81744         (openat_permissive, fdopendir, fstatat, unlinkat):
81745         Simplify errno handling to avoid some duplicate code,
81746         as it's OK to set errno on success.
81747         * lib/openat.h: Revamp code so that function macros depend on
81748         __OPENAT_PREFIX only, not also on AT_FDCWD.
81749         (openat_ro): Remove.  Caller changed to use openat_permissive.
81750         (openat_permissive): Now a macro, if not a function.
81751         (openat_restore_fail, openat_save_fail): Now always functions,
81752         since mkdirat needs them even if __OPENAT_PREFIX is defined.
81753
81754         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
81755         and openat.c.
81756         * lib/mkdirat.c: Include openat-priv.h.
81757         Remove definitions of macros defined therein.
81758         * lib/openat.c: Likewise.
81759
81760         * lib/mkdirat.c (mkdirat): New file and function.
81761         * lib/openat.h (mkdirat): Declare.
81762
81763         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
81764
81765         * lib/openat.h (openat_permissive): Declare.
81766         (openat_ro): Define.
81767
81768         * lib/openat.c (EXPECTED_ERRNO): New macro.
81769         (openat_permissive): New function -- used in remove.c rewrite.
81770         (all functions): Set errno just before returning, only if there
81771         was an actual failure.
81772         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
81773
81774         Emulate openat-family functions using Linux's procfs, if possible.
81775         Idea and some code based on Ulrich Drepper's glibc changes.
81776
81777         * lib/openat.c: (BUILD_PROC_NAME): New macro.
81778         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
81779         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
81780         before falling back on save_cwd and restore_cwd.
81781         (fdopendir, fstatat, unlinkat): Likewise.
81782
81783         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
81784         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
81785
81786         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
81787         as second argument to va_arg.  Otherwise, some versions of gcc
81788         warn that `if this code is reached, the program will abort'.
81789
81790 2006-01-09  Jim Meyering  <jim@meyering.net>
81791
81792         Sync from coreutils.
81793         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
81794         Require openat-priv.h.
81795
81796 2006-01-09  Bruno Haible  <bruno@clisp.org>
81797
81798         * modules/strnlen (Include): Use strnlen.h.
81799
81800 2006-01-09  Bruno Haible  <bruno@clisp.org>
81801
81802         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
81803
81804 2006-01-09  Bruno Haible  <bruno@clisp.org>
81805
81806         * lib/sysexit_.h (EX_OK): New macro.
81807         Suggested by Martin Lambers <marlam@marlam.de>.
81808
81809 2006-01-09  Bruno Haible  <bruno@clisp.org>
81810
81811         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
81812         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
81813
81814 2006-01-09  Bruno Haible  <bruno@clisp.org>
81815
81816         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
81817         numbers.
81818
81819 2006-01-09  Bruno Haible  <bruno@clisp.org>
81820
81821         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
81822         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
81823         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
81824         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
81825
81826 2006-01-09  Bruno Haible  <bruno@clisp.org>
81827
81828         * build-aux/javacomp.sh.in: New file, moved from lib/.
81829         * modules/javacomp-script (Files): Update.
81830         (configure.ac): Add AC_CONFIG_FILES invocation.
81831         (EXTRA_DIST): Remove variable.
81832
81833         * build-aux/javaexec.sh.in: New file, moved from lib/.
81834         * modules/javaexec (Files): Update.
81835         (configure.ac): Add AC_CONFIG_FILES invocation.
81836         (EXTRA_DIST): Remove javaexec.sh.in.
81837
81838         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
81839         * modules/csharpcomp-script (Files): Update.
81840         (configure.ac): Add AC_CONFIG_FILES invocation.
81841         (EXTRA_DIST): Remove variable.
81842
81843         * build-aux/csharpexec.sh.in: New file, moved from lib/.
81844         * modules/csharpexec (Files): Update.
81845         (configure.ac): Add AC_CONFIG_FILES invocation.
81846         (EXTRA_DIST): Remove csharpexec.sh.in.
81847
81848 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
81849
81850         Sync from coreutils.
81851
81852         Add POSIX ACL support
81853         * lib/acl.h (copy_acl, set_acl): Add declarations.
81854         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
81855         systems other than Linux.
81856         (chmod_or_fchmod): New function: use fchmod when possible,
81857         and chmod otherwise.
81858         (file_has_acl): Add a POSIX ACL implementation, with a
81859         Linux-specific subcase.
81860         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
81861         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
81862         acls are unsupported.
81863         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
81864         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
81865         are unsupported.
81866
81867 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
81868
81869         Sync from coreutils.
81870         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
81871
81872 2006-01-07  Bruno Haible  <bruno@clisp.org>
81873
81874         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
81875         gl_EARLY.
81876
81877 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
81878
81879         * lib/strftime.c (tzname): Don't declare if it is already #defined.
81880         Problem reported for Mingw by Mark Junker.
81881
81882 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
81883
81884         * README: Gnulib normally doesn't generate a tarball.
81885
81886 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
81887
81888         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
81889         long int, not int, for nanosecond counts, so that people who are
81890         used to POSIX struct timespec won't be surprised.  Reported by Jim
81891         Meyering.
81892
81893 2005-12-28  Bruno Haible  <bruno@clisp.org>
81894
81895         * build-aux/config.rpath: Update from GNU gettext.
81896
81897 2005-12-16  Jim Meyering  <jim@meyering.net>
81898
81899         * modules/fprintftime: New module.
81900         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
81901
81902 2005-12-16  Jim Meyering  <jim@meyering.net>
81903
81904         * m4/fprintftime.m4: New file.
81905
81906 2005-12-16  Jim Meyering  <jim@meyering.net>
81907
81908         * lib/fprintftime.c, lib/fprintftime.h: New files.
81909
81910 2005-12-15  Simon Josefsson  <jas@extundo.com>
81911
81912         * modules/socklen (configure.ac): Fix M4 macro name, to align with
81913         new m4/socklen.m4.
81914
81915 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
81916
81917         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
81918         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
81919
81920 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
81921
81922         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
81923         * lib/argp-help.c (fill_in_uparams): Check if the constructed
81924         struct uparams is valid. Fall back to the default values if it is
81925         not.
81926
81927 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
81928
81929         * modules/argp (Files): Add argp-pin.c
81930         (Depends-on): dirname
81931         (lib_SOURCES): Add argp-pin.c
81932
81933 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
81934
81935         * m4/argp.m4:  Check if program_invocation_name and
81936         program_invocation_short_name are declared and define appropriate
81937         macros if they are not.
81938
81939 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
81940
81941         * lib/argp-help.c (__argp_base_name): New function
81942         (__argp_short_program_name): Rewrite using __argp_base_name
81943         * lib/argp-namefrob.h: Define program_invocation_name and
81944         program_invocation_short_name if requested
81945         (__argp_base_name): Add prototype
81946         * lib/argp-parse.c (argp_def): Use gettext wrappers
81947         (argp_default_parser): Use __argp_base_name
81948         * lib/argp-pin.c: New file. Defines program_invocation_name and
81949         program_invocation_short_name on systems that lack them.
81950
81951 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
81952
81953         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
81954         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
81955         porting problem reported by Georg Schwarz in
81956         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
81957
81958 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
81959
81960         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
81961         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
81962         porting problem reported by Georg Schwarz in
81963         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
81964
81965 2005-12-05  Bruno Haible  <bruno@clisp.org>
81966
81967         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
81968         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
81969         Reported by Mark Junker <mjscod@gmx.de>.
81970
81971 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
81972
81973         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
81974         Use implementation from Albert Chin, with some
81975         comments/corrections by Stepan Kasal and myself.
81976
81977 2005-12-02  Bruno Haible  <bruno@clisp.org>
81978
81979         * gnulib-tool (func_import): Accept GPLed build tool modules when
81980         --lgpl is given.
81981         * modules/csharpcomp-script: New file.
81982         * modules/csharpcomp: Depend on it.
81983         * modules/javacomp-script: New file.
81984         * modules/javacomp: Depend on it.
81985         Suggested by Simon Josefsson.
81986
81987 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
81988
81989         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
81990         statement, to work around an HP-UX 10.20 compiler bug reported by
81991         Peter O'Gorman.
81992
81993 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
81994
81995         * modules/savedir (Depends-on): Add openat.
81996
81997 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
81998
81999         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
82000         (uintmax_t) [defined uintmax_t]: Do not declare.
82001         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
82002         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
82003         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
82004         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
82005         sake of portability to weird hosts that C allows (though we don't
82006         know of any practical examples).
82007
82008         * lib/savedir.h (fdsavedir): New decl.
82009         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
82010         contains most of the former guts of savedir.
82011         (savedir): Use savedirstream.
82012         Include "openat.h".
82013
82014 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
82015
82016         * modules/obstack (Files): Add m4/ulonglong.m4.
82017         Problem reported by Davide Angelocola.
82018
82019 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
82020
82021         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
82022         coreutils no longer futzes with rounding modes.
82023
82024 2005-11-14  Jim Meyering  <jim@meyering.net>
82025
82026         * lib/mkstemp-safer.c: Include <config.h>, required for possible
82027         replacement of mkstemp.
82028
82029 2005-11-10  Simon Josefsson  <jas@extundo.com>
82030
82031         * lib/readline.c: Remove EOL.
82032
82033 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
82034
82035         * modules/gethrxtime (Depends-on): Add gettime.
82036
82037 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
82038
82039         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
82040         or gettimeofday; no longer needed.
82041
82042 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
82043
82044         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
82045         time business.
82046         (gethrxtime) [! (HAVE_NANOUPTIME
82047         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
82048         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
82049         our own approximation.
82050
82051 2005-11-08  Eric Blake  <ebb9@byu.net>
82052
82053         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
82054
82055 2005-11-08  Eric Blake  <ebb9@byu.net>
82056
82057         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
82058
82059 2005-11-04  Bruno Haible  <bruno@clisp.org>
82060
82061         * gnulib-tool: Implement --update mode.
82062
82063 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
82064
82065         Fix porting problem reported by Theodoros V. Kalamatianos.
82066         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
82067         Don't assume that futimes failing means we must fail.
82068
82069 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
82070
82071         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
82072         variables to suggest the intended function of the PATH_MAX check.
82073
82074 2005-10-30  Kean Johnston  <jkj@sco.com>
82075
82076         Trivial changes to support SCO systems.
82077         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
82078         as PATH_MAX.
82079         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
82080         where __ptr is null when no I/O is pending.
82081
82082 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
82083
82084         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
82085         leave errno alone.  Problem reported by Dmitry V. Levin.
82086
82087 2005-10-28  Simon Josefsson  <jas@extundo.com>
82088
82089         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
82090         Test more.
82091
82092         * tests/test-gc-md2.c, tests/test-md2.c: New files.
82093
82094         * modules/md2, modules/md2-tests: New files.
82095
82096 2005-10-28  Simon Josefsson  <jas@extundo.com>
82097
82098         * m4/inet_ntop.m4: More tests.
82099
82100         * m4/gc-md2.m4, md2.m4: New file.
82101
82102 2005-10-28  Simon Josefsson  <jas@extundo.com>
82103
82104         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
82105         "restrict" keywords, as per POSIX.  Protect the function
82106         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
82107         Don't use K&R prototypes.  Check the sprintf return values.
82108         Re-define EAFNOSUPPORT if not present.  Indent.
82109
82110         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
82111         suggested by Bruno Haible <bruno@clisp.org>.
82112
82113         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
82114
82115         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
82116
82117         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
82118         libgcrypt).
82119
82120         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
82121
82122         * lib/md2.h, lib/md2.c: New files.
82123
82124 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
82125
82126         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
82127         errno alone.  Problem reported by Frederic Jolliton.
82128
82129 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
82130
82131         * modules/verify (License): Change from GPL to LGPL.  This is a
82132         tiny module and there are apparently near-equivalents that are
82133         under the BSD license.
82134
82135 2005-10-24  Simon Josefsson  <jas@extundo.com>
82136
82137         * modules/sha1: Relicense to LGPL.
82138
82139 2005-10-24  Simon Josefsson  <jas@extundo.com>
82140
82141         * lib/md4.h: Shrink buffer size, now that we changed the type.
82142
82143 2005-10-23  Simon Josefsson  <jas@extundo.com>
82144
82145         * gnulib-tool (func_import): Fix --tests-base.
82146
82147 2005-10-22  Simon Josefsson  <jas@extundo.com>
82148
82149         * modules/arcfour (Depends-on): Need stdint.
82150
82151 2005-10-22  Simon Josefsson  <jas@extundo.com>
82152
82153         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
82154         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
82155
82156 2005-10-22  Simon Josefsson  <jas@extundo.com>
82157
82158         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
82159         suggested by Bruno Haible <bruno@clisp.org>.
82160
82161 2005-10-22  Simon Josefsson  <jas@extundo.com>
82162
82163         * lib/crc.h: Include stddef.h, for size_t.
82164
82165 2005-10-22  Simon Josefsson  <jas@extundo.com>
82166
82167         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
82168         arcfour_context struct (simplify test vector testing in GNU
82169         Shishi).
82170
82171 2005-10-21  Simon Josefsson  <jas@extundo.com>
82172
82173         * modules/des, modules/des-tests: New files.
82174
82175         * modules/gc-des, modules/gc-des-tests: New files.
82176
82177         * tests/test-des.c, tests/test-gc-des.c: New file.
82178
82179 2005-10-21  Simon Josefsson  <jas@extundo.com>
82180
82181         * modules/arctwo, modules/arctwo-tests: New files.
82182
82183         * tests/test-arctwo.c: New file.
82184
82185         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
82186
82187         * tests/test-gc-arctwo.c: New file.
82188
82189 2005-10-21  Simon Josefsson  <jas@extundo.com>
82190
82191         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
82192         Bruno Haible <bruno@clisp.org>.
82193
82194         * m4/gc-des.m4: New file.
82195
82196 2005-10-21  Simon Josefsson  <jas@extundo.com>
82197
82198         * m4/arctwo.m4: New file.
82199
82200         * m4/gc-arctwo.m4: New file.
82201
82202 2005-10-21  Simon Josefsson  <jas@extundo.com>
82203
82204         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
82205         block.
82206
82207 2005-10-21  Simon Josefsson  <jas@extundo.com>
82208
82209         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
82210         <bruno@clisp.org>.
82211
82212         * lib/hmac-sha1.c (hmac_sha1): Likewise.
82213
82214         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
82215         Bruno Haible <bruno@clisp.org>.
82216
82217         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
82218         <bruno@clisp.org>.
82219
82220 2005-10-21  Simon Josefsson  <jas@extundo.com>
82221
82222         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
82223
82224 2005-10-21  Simon Josefsson  <jas@extundo.com>
82225
82226         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
82227
82228 2005-10-21  Simon Josefsson  <jas@extundo.com>
82229
82230         * lib/des.h, lib/des.c: New files.
82231
82232         * lib/gc-gnulib.c: Support DES.c
82233
82234 2005-10-21  Simon Josefsson  <jas@extundo.com>
82235
82236         * lib/arctwo.h, lib/arctwo.c: New files.
82237
82238         * lib/gc-gnulib.c: Support ARCTWO.
82239
82240 2005-10-21  Simon Josefsson  <jas@extundo.com>
82241
82242         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
82243         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82244
82245 2005-10-21  Simon Josefsson  <jas@extundo.com>
82246
82247         * gnulib-tool (func_import, func_create_testdir): Define automake
82248         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
82249         Makefile.am snippet),
82250         suggested by Bruno Haible <bruno@clisp.org>.
82251
82252         * modules/gc (Makefile.am): Use it.
82253
82254 2005-10-21  Bruno Haible  <bruno@clisp.org>
82255
82256         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
82257         patch.
82258
82259 2005-10-19  Simon Josefsson  <jas@extundo.com>
82260
82261         * tests/test-gc-rijndael.c: New file.
82262
82263         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
82264
82265 2005-10-19  Simon Josefsson  <jas@extundo.com>
82266
82267         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
82268         interface too.
82269
82270 2005-10-19  Simon Josefsson  <jas@extundo.com>
82271
82272         * tests/test-gc-arcfour.c: New file.
82273
82274         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
82275
82276 2005-10-19  Simon Josefsson  <jas@extundo.com>
82277
82278         * modules/gc-md4, modules/gc-md4-tests: New file.
82279
82280         * tests/test-gc-md4.c: New file.
82281
82282 2005-10-19  Simon Josefsson  <jas@extundo.com>
82283
82284         * m4/gc-md4.m4: New file.
82285
82286 2005-10-19  Simon Josefsson  <jas@extundo.com>
82287
82288         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
82289         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
82290         <kasal@ucw.cz>.
82291
82292 2005-10-19  Simon Josefsson  <jas@extundo.com>
82293
82294         * m4/gc-arcfour.m4: New file.
82295
82296         * m4/gc-rijndael.m4: New file.
82297
82298 2005-10-19  Simon Josefsson  <jas@extundo.com>
82299
82300         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
82301
82302 2005-10-19  Simon Josefsson  <jas@extundo.com>
82303
82304         * lib/gc-gnulib.c: Support ARCFOUR.
82305
82306 2005-10-19  Simon Josefsson  <jas@extundo.com>
82307
82308         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
82309         support.
82310
82311         * lib/gc.h: Add ECB enum type.
82312
82313         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
82314
82315 2005-10-18  Simon Josefsson  <jas@extundo.com>
82316
82317         * tests/test-md5.c: New file.
82318
82319         * modules/md5-tests: New file.
82320
82321 2005-10-18  Simon Josefsson  <jas@extundo.com>
82322
82323         * tests/test-md4.c: New file.
82324
82325         * modules/md4, modules/md4-tests: New files.
82326
82327 2005-10-18  Simon Josefsson  <jas@extundo.com>
82328
82329         * m4/md4.m4: New file.
82330
82331 2005-10-18  Simon Josefsson  <jas@extundo.com>
82332
82333         * lib/md4.h, lib/md4.c: New files, based on md5.?.
82334
82335 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
82336
82337         * gnulib-tool (func_create_testdir): Omit the second check whether
82338         BUILT_SOURCES in nonempty.
82339
82340 2005-10-17  Simon Josefsson  <jas@extundo.com>
82341
82342         * tests/test-rijndael.c: New file.
82343
82344 2005-10-17  Simon Josefsson  <jas@extundo.com>
82345
82346         * modules/sha1: Depend on stdint instead of md5.
82347
82348         * modules/md5: Depend on stdint, remove uint32_t.
82349
82350 2005-10-17  Simon Josefsson  <jas@extundo.com>
82351
82352         * modules/gc-sha1-tests: New file.
82353
82354         * tests/test-gc-sha1.c: New file.
82355
82356 2005-10-17  Simon Josefsson  <jas@extundo.com>
82357
82358         * m4/md5.m4: Remove call to uint32_t.m4.
82359
82360 2005-10-17  Simon Josefsson  <jas@extundo.com>
82361
82362         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
82363
82364         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
82365         md5.h.
82366
82367         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
82368
82369         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
82370
82371 2005-10-17  Simon Josefsson  <jas@extundo.com>
82372
82373         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
82374
82375 2005-10-17  Simon Josefsson  <jas@extundo.com>
82376
82377         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
82378
82379 2005-10-17  Simon Josefsson  <jas@extundo.com>
82380
82381         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
82382
82383         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
82384
82385 2005-10-17  Bruno Haible  <bruno@clisp.org>
82386
82387         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
82388         that it can also be used in a test.
82389
82390 2005-10-16  Bruno Haible  <bruno@clisp.org>
82391
82392         * gnulib-tool (func_emit_tests_Makefile_am): Also define
82393         TESTS_ENVIRONMENT, so that individual tests can augment it.
82394
82395         * gnulib-tool (func_create_testdir): Use an intermediate target for
82396         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
82397         macros, like $(ALLOCA_H), which cannot be passed through the command
82398         line.
82399
82400 2005-10-15  Simon Josefsson  <jas@extundo.com>
82401
82402         * modules/rijndael-tests: New file.
82403
82404         * modules/rijndael: New file.
82405
82406 2005-10-15  Simon Josefsson  <jas@extundo.com>
82407
82408         * m4/rijndael.m4: New file.
82409
82410 2005-10-15  Simon Josefsson  <jas@extundo.com>
82411
82412         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
82413
82414         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
82415
82416 2005-10-14  Simon Josefsson  <jas@extundo.com>
82417
82418         * tests/test-arcfour.c: New file.
82419
82420         * modules/arcfour, modules/arcfour-tests: New files.
82421
82422 2005-10-14  Simon Josefsson  <jas@extundo.com>
82423
82424         * m4/arcfour.m4: New file.
82425
82426 2005-10-14  Simon Josefsson  <jas@extundo.com>
82427
82428         * lib/arcfour.h, lib/arcfour.c: New files.
82429
82430 2005-10-14  Roland McGrath  <roland@redhat.com>
82431
82432         Import from libc.  [BZ #1331]
82433         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
82434         macro argument.
82435         Reported by Matej Vela <vela@debian.org>.
82436
82437 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
82438
82439         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
82440         include <wchar.h>; no longer needed.
82441
82442 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
82443
82444         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
82445
82446 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
82447         and  Ulrich Drepper  <drepper@redhat.com>
82448
82449         Import from libc.
82450         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
82451         instead of inline stream orientation test and two separate
82452         function calls.  Pay no attention to USE_IN_LIBIO.
82453
82454 2005-10-13  Simon Josefsson  <jas@extundo.com>
82455
82456         * modules/gc-hmac-md5-tests: New file.
82457
82458         * tests/test-gc-hmac-sha1.c: New file.
82459
82460         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
82461
82462         * modules/gc-hmac-md5-tests: New file.
82463
82464         * tests/test-gc-md5.c: New file.
82465
82466         * modules/gc-md5-tests: New file.
82467
82468 2005-10-13  Simon Josefsson  <jas@extundo.com>
82469
82470         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
82471         Move memory allocation outside of loop.
82472
82473 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
82474
82475         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
82476         intermediate directory is in a read-only file system.  Problem
82477         reported by Eric Blake.
82478
82479 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
82480
82481         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
82482
82483 2005-10-12  Simon Josefsson  <jas@extundo.com>
82484
82485         * tests/test-hmac-sha1.c: New file.
82486
82487         * modules/hmac-sha1-tests: New file.
82488
82489         * modules/hmac-sha1: New file.
82490
82491 2005-10-12  Simon Josefsson  <jas@extundo.com>
82492
82493         * modules/gc-sha1: New file.
82494
82495 2005-10-12  Simon Josefsson  <jas@extundo.com>
82496
82497         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
82498
82499         * tests/test-gc-pbkdf2-sha1.c: New file.
82500
82501 2005-10-12  Simon Josefsson  <jas@extundo.com>
82502
82503         * modules/gc-md5, modules/gc-hmac-md5: New files.
82504
82505         * modules/gc (Files): Remove md5, memxor and hmac files.
82506
82507 2005-10-12  Simon Josefsson  <jas@extundo.com>
82508
82509         * m4/gc-pbkdf2-sha1.m4: New file.
82510
82511         * m4/gc-hmac-sha1.m4: New file.
82512
82513         * m4/gc-sha1: New file.
82514
82515         * m4/hmac-sha1.m4: New file.
82516
82517 2005-10-12  Simon Josefsson  <jas@extundo.com>
82518
82519         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
82520
82521         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
82522
82523 2005-10-12  Simon Josefsson  <jas@extundo.com>
82524
82525         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
82526         suggested by Bruno Haible <bruno@clisp.org>.
82527
82528 2005-10-12  Simon Josefsson  <jas@extundo.com>
82529
82530         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
82531
82532 2005-10-12  Simon Josefsson  <jas@extundo.com>
82533
82534         * lib/gc-pbkdf2-sha1.c: New file.
82535
82536         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
82537
82538 2005-10-12  Simon Josefsson  <jas@extundo.com>
82539
82540         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
82541
82542         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
82543
82544 2005-10-12  Simon Josefsson  <jas@extundo.com>
82545
82546         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
82547         GC_USE_HMAC_MD5, respectively.
82548
82549         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
82550         (gc_md5): Fix typo.
82551
82552         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
82553
82554         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
82555
82556         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
82557
82558 2005-10-12  Bruno Haible  <bruno@clisp.org>
82559
82560         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
82561         Reported by Stepan Kasal <kasal@ucw.cz>.
82562
82563 2005-10-11  Simon Josefsson  <jas@extundo.com>
82564
82565         * tests/test-crc.c: New file.
82566
82567         * modules/crc, modules/crc-tests: New files.
82568
82569 2005-10-11  Simon Josefsson  <jas@extundo.com>
82570
82571         * m4/crc.m4: New file.
82572
82573 2005-10-11  Simon Josefsson  <jas@extundo.com>
82574
82575         * lib/gc.h: Add gc_hash and gc_hash_buffer.
82576
82577         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
82578
82579         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
82580
82581 2005-10-11  Simon Josefsson  <jas@extundo.com>
82582
82583         * lib/crc.h, lib/crc.c: New files.
82584
82585         * lib/gc.h (gc_hash_buffer): Add doc.
82586
82587 2005-10-11  Bruno Haible  <bruno@clisp.org>
82588
82589         * modules/c-strcasestr: New file.
82590         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
82591
82592 2005-10-11  Bruno Haible  <bruno@clisp.org>
82593
82594         * modules/c-strcase: New file.
82595         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
82596
82597 2005-10-11  Bruno Haible  <bruno@clisp.org>
82598
82599         * lib/strcasecmp.c: Include limits.h.
82600         (strcasecmp): Avoid integer overflow on exotic platforms.
82601         * lib/strncasecmp.c: Include limits.h.
82602         (strncasecmp): Avoid integer overflow on exotic platforms.
82603         Reported by Paul Eggert.
82604
82605 2005-10-11  Bruno Haible  <bruno@clisp.org>
82606
82607         * lib/c-strcasestr.h: New file, from GNU gettext.
82608         * lib/c-strcasestr.c: New file, from GNU gettext.
82609
82610 2005-10-11  Bruno Haible  <bruno@clisp.org>
82611
82612         * lib/c-strcase.h: New file, from GNU gettext.
82613         * lib/c-strcasecmp.c: New file, from GNU gettext.
82614         * lib/c-strncasecmp.c: New file, from GNU gettext.
82615
82616 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
82617
82618         * modules/mempcpy (License): GPL -> LGPL.
82619         * modules/strchrnul (License): Likewise.
82620         * modules/sysexits (License): Likewise.
82621
82622 2005-10-08  Simon Josefsson  <jas@extundo.com>
82623
82624         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
82625
82626 2005-10-07  Simon Josefsson  <jas@extundo.com>
82627
82628         * m4/memxor.m4: Remove gl_C_RESTRICT call.
82629
82630 2005-10-06  Simon Josefsson  <jas@extundo.com>
82631
82632         * tests/test-hmac-md5.c: New file.
82633
82634         * modules/hmac-md5-tests: New file.
82635
82636         * modules/hmac-md5: New file.
82637
82638 2005-10-06  Simon Josefsson  <jas@extundo.com>
82639
82640         * m4/hmac-md5.m4: New file.
82641
82642         * m4/memxor.m4: Require gl_C_RESTRICT.
82643
82644 2005-10-06  Simon Josefsson  <jas@extundo.com>
82645
82646         * lib/memxor.c (memxor): Avoid casts and warnings.
82647
82648 2005-10-06  Simon Josefsson  <jas@extundo.com>
82649
82650         * lib/hmac-md5.c: New file.
82651
82652         * lib/hmac.h: New file.
82653
82654 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
82655
82656         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
82657         promotes to int, not unsigned int, to catch the AIX 5.3
82658         compiler bug.
82659
82660 2005-10-05  Simon Josefsson  <jas@extundo.com>
82661
82662         * modules/memxor: New file.
82663
82664         * modules/iconv (Files): Move config.rpath to havelib, it is used
82665         there.
82666
82667         * modules/havelib (Files): Add config.rpath.
82668
82669 2005-10-05  Simon Josefsson  <jas@extundo.com>
82670
82671         * m4/memxor.m4: New file.
82672
82673 2005-10-05  Simon Josefsson  <jas@extundo.com>
82674
82675         * lib/memxor.c (memxor): Fix compiler error.
82676
82677         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
82678         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
82679
82680         * lib/memxor.h, lib/memxor.c: New files.
82681
82682         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
82683         we assume all systems have it, suggested by Jim Meyering
82684         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
82685         any systems lack sys/socket.h; mingw32 is known to lack it, but we
82686         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
82687         same reasons.
82688
82689 2005-10-05  Simon Josefsson  <jas@extundo.com>
82690
82691         * config/srclist.txt: Add glibc bug 1423 for md5.h.
82692
82693 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
82694
82695         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
82696         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
82697         needed, since the source code now assumes these .h files.
82698
82699 2005-10-05  Derek Price  <derek@ximbiot.com>
82700
82701         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
82702
82703 2005-10-05  Bruno Haible  <bruno@clisp.org>
82704
82705         * modules/stdint (License): Change to LGPL.
82706
82707 2005-10-04  Simon Josefsson  <jas@extundo.com>
82708
82709         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
82710         D. Baushke" <mdb@gnu.org>.
82711
82712 2005-10-04  Bruno Haible  <bruno@clisp.org>
82713
82714         * lib/verify.h (verify_true): Provide alternative definition for C++.
82715
82716 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
82717
82718         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
82719         (SSIZE_MAX): New macro, if not already defined.
82720         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
82721         than 2 GiB.
82722
82723 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
82724
82725         Sync from coreutils.
82726         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
82727         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
82728         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
82729         ULLONG_MAX doesn't work with 2.7.2.1.
82730
82731 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
82732
82733         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
82734         From Ben Pfaff.
82735
82736         * modules/exclude (Depends-on): Depend on verify.
82737         * modules/strtoimax (Depends-on): Likewise.
82738         * modules/utimecmp (Depends-on): Likewise.
82739
82740 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
82741
82742         * lib/exclude.c: Include verify.h.
82743         (verify): Remove.  All callers changed to use verify.h's version.
82744         * lib/strtoimax.c: Likewise.
82745         * lib/utimecmp.c: Likewis.e
82746
82747         Sync from coreutils.
82748         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
82749         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
82750         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
82751         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
82752         bother returning ENOSYS if settimeofday or stime fails; just let
82753         them return whatever errno they want to return.
82754         * lib/utimens.c: Include unistd.h, for dup2.
82755         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
82756         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
82757
82758 2005-10-02  Jim Meyering  <jim@meyering.net>
82759
82760         Sync from coreutils.
82761         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
82762         from glibc-2.2.5 that fails for read-only files.
82763
82764 2005-10-02  Jim Meyering  <jim@meyering.net>
82765
82766         Sync from coreutils.
82767         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
82768         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
82769         `#if HAVE_CONFIG_H'.
82770         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
82771         Remove AT_FDCWD test.
82772         Do not consume the fd unless successful.
82773         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
82774         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
82775         block, so that we don't even try to compile it if settimeofday is
82776         available.  This works around a compilation failure on OSF1 V5.1,
82777         due to stime requiring a `long int*' while tv_sec is `int'.
82778
82779 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
82780
82781         Sync from coreutils.
82782         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
82783         against `yes', rather than just testing for nonempty.
82784
82785 2005-10-01  Simon Josefsson  <jas@extundo.com>
82786
82787         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
82788         and Darwin.
82789
82790         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
82791         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
82792         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
82793         freeaddrinfo and gai_strerror are declared by the POSIX headers.
82794         Check if struct addrinfo is declared.
82795
82796 2005-10-01  Simon Josefsson  <jas@extundo.com>
82797
82798         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
82799         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
82800         AI_* and EAI_* definitions.  Protect function declarations.
82801
82802 2005-10-01  Jim Meyering  <jim@meyering.net>
82803
82804         Sync from coreutils.
82805
82806         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
82807         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
82808         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
82809         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
82810         in the inet and nsl libraries.  Required on Solaris 5.7.
82811
82812 2005-10-01  Jim Meyering  <jim@meyering.net>
82813
82814         Sync from coreutils.
82815         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
82816         in the inet and nsl libraries.  Required on Solaris 5.7.
82817
82818 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
82819
82820         * lib/getdelim.c (getdelim): Remove unused variables.
82821
82822 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
82823
82824         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
82825         so that the code works even with ancient cpp.  Portability problem
82826         with GCC 2.7.2.1 reported by Thomas M.Ott.
82827
82828 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
82829
82830         * modules/regex (Depends-on): Add strcase.
82831
82832         * modules/gethostname (Licence): Change from GPL to LGPL, since
82833         gethostname.c is a trivial implementation of a standard library
82834         function.
82835         * modules/poll (License): Change from GPL to LGPL, since it's
82836         derived from LGPL code.
82837
82838 2005-09-27  Jim Meyering  <jim@meyering.net>
82839
82840         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
82841         HAVE_CONFIG_H.
82842
82843         * lib/intprops.h (signed_type_or_expr__): Define.
82844         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
82845         for unsigned types.
82846
82847 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
82848
82849         * lib/verify.h (verify_expr): Remove, replacing with:
82850         (verify_true): New macro that returns true instead of void.
82851         (verify_type__): Remove.
82852         (verify): Use verify_true rather than verify_type__.
82853
82854 2005-09-26  Bruno Haible  <bruno@clisp.org>
82855
82856         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
82857         is necessary.
82858         (lib_SOURCES): Remove mbchar.c.
82859         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
82860         (Files): Add m4/mbrtowc.m4.
82861         * modules/mbiter: Likewise.
82862         * modules/mbuiter: Likewise.
82863
82864 2005-09-26  Bruno Haible  <bruno@clisp.org>
82865
82866         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
82867         compile mbchar.c if they are not both present.
82868         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
82869         * m4/mbiter.m4 (gl_MBITER): Likewise.
82870         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
82871         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
82872         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
82873
82874 2005-09-25  Jim Meyering  <jim@meyering.net>
82875
82876         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
82877         also uses socklen_t.
82878
82879 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
82880
82881         * lib/utimens.c (ENOSYS): Define if not already defined.
82882         (futimens): Support having a null PATH if the file descriptor
82883         is nonnegative.
82884
82885         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
82886         Remove.
82887         (__attribute): Define to empty unless GCC 3.1 or later.
82888         This works around a core dump on OpenBSD 3.4, which has GCC
82889         2.95.3, which dumps core when given __attribute__(()).  It also
82890         simplifies other tests, since we really don't want to bother with
82891         worrying about which ancient version of GCC supported what.
82892         Original problem reported by Yoann Vandoorselaere, with part of
82893         the fix suggested by Derek Price.
82894
82895 2005-09-24  Jim Meyering  <jim@meyering.net>
82896
82897         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
82898         so we can once again use a positive bitfield width of 1 -- now we
82899         don't have to explain why we were using a bitfield width of 2.
82900
82901 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
82902
82903         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
82904         and similarly for the other external symbols.  Problem reported
82905         by James Gallager.
82906
82907         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
82908         bug reported by Jim Meyering.
82909
82910         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
82911         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
82912         not needed, since socklen is a prerequisite module.
82913
82914 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
82915
82916         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
82917         Problem reported by Eric Blake.
82918         (getaddrinfo): Initialize se so that it's not garbage.
82919         Redo internal storage allocation so that it doesn't make unportable
82920         assumptions about alignment.
82921         Fix a memory leak.
82922
82923         * lib/utimens.c (futimens): Use futimesat if available.
82924         Prefer it to futimes since it doesn't have the futimes bug.
82925
82926         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
82927         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
82928         Instead, declare a function that returns a pointer to an array,
82929         and use verify_type__ to declare the size of the array.
82930         Problem and germ of a solution reported by Bruno Haible.
82931         (verify_type__): Use 2, not 1, for bitfield size, to avoid
82932         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
82933
82934 2005-09-23  Jim Meyering  <jim@meyering.net>
82935
82936         Sync from coreutils.
82937         Correct build failure (socklen_t not defined) on at least
82938         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
82939         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
82940
82941 2005-09-23  Jim Meyering  <jim@meyering.net>
82942
82943         * modules/getaddrinfo (Depends-on): Add socklen.
82944
82945 2005-09-23  Bruno Haible  <bruno@clisp.org>
82946
82947         * tests/test-verify.c: New file.
82948
82949 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
82950
82951         Sync from coreutils.
82952
82953         * modules/argmatch (Depends-on): Add verify.
82954         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
82955         unistd-safer.
82956         * modules/save-cwd (Depends-on): Likewise.
82957
82958         * modules/openat (Files): Add lib/openat-die.c.
82959         (Depends-on): Remove error, exitfail.
82960         Add dirname.
82961
82962         * modules/verify: New file.
82963         * MODULES.html.sh (Diagnostics <assert.h>): New section,
82964         with "verify" module.
82965
82966 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
82967
82968         Sync from coreutils.
82969
82970         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
82971         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
82972         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
82973         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
82974         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
82975         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
82976         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
82977         Don't bother checking for string.h, stdlib.h, unistd.h.
82978         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
82979         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
82980         module's job.
82981         * m4/jm-macros.m4 (gl_MACROS): Likewise.
82982         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
82983
82984         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
82985         (gl_GETDATE): Use it.
82986
82987         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
82988
82989 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
82990
82991         Sync from coreutils.
82992
82993         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
82994         stat-time.h.
82995         * lib/argmatch.h: Include verify.h
82996         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
82997         (ARGMATCH_ASSERT): Remove; unused.
82998         * lib/canonicalize.c: Assume STDC_HEADERS.
82999         * lib/exclude.c: Include "strcase.h".
83000         * lib/regex_internal.h [!defined _LIBC]: Likewise.
83001         * lib/getusershell.c: Include stdio--.h rather than stdio.h
83002         and stdio-safer.h.
83003         (getusershell): Call fopen, not fopen_safer.
83004         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
83005         Do not include unistd-safer.h.
83006         (save_cwd): Don't call fd_safer; no longer needed
83007         now that we include fcntl--.h.
83008
83009         * lib/getdate.y (relative_time): New type.
83010         (RELATIVE_TIME_0): New constant.
83011         (parser_control): Use relative_time instead of doing it ourselves.
83012         (%union): Add new relative_time rel member.
83013         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
83014         Now typeless.
83015         (relunit, relunit_snumber): Now of type rel.
83016         (zone, rel, relunit, get_date): Adjust to above changes.
83017
83018         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
83019         Do not include unistd-safer.h.
83020         (getloadavg): Don't call fd_safer; no longer needed
83021         now that we include fcntl--.h.
83022
83023         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
83024         (make_dir_parents): Treat ENOSYS like EEXIST.
83025
83026         Improve quality of diagnostics on restore_cwd failure.
83027         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
83028         (make_dir_parents): Last arg is now int * (for errno), not bool *.
83029         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
83030         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
83031         each time through the loop.  Do not diagnose restore_cwd failure;
83032         that is the caller's job (and perhaps the caller does not care).
83033
83034         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
83035         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
83036         If the file already exists but is not a directory, don't bother
83037         to try to make its parents.
83038         Close potential file descriptor leak if we can't chdir("/") (!).
83039         Don't always return true if chdir($PWD) fails; return true only
83040         if the requested action was done successfully (except for the
83041         chdir($PWD)).
83042         Don't log final directory unless we actually made it.
83043         Refactor to avoid duplicate code to fix up permissions.
83044         Don't attempt to fix up parent permissions if chdir($PWD) fails.
83045
83046         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
83047         to make it a bit faster and (I hope) clearer.
83048         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
83049         Fix bug in formats like %2N.
83050
83051         * lib/verify.h: New file.
83052
83053 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
83054
83055         Sync from coreutils.
83056         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
83057
83058 2005-09-22  Jim Meyering  <jim@meyering.net>
83059
83060         Sync from coreutils.
83061
83062         * m4/lstat.m4 (gl_FUNC_LSTAT):
83063         Use AC_LIBSOURCES to require lstat.c and lstat.h.
83064         Remove obsolete comment.
83065         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
83066         * m4/xstrtod.m4: Likewise.
83067
83068         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
83069
83070 2005-09-22  Jim Meyering  <jim@meyering.net>
83071
83072         Sync from coreutils.
83073
83074         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
83075
83076         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
83077         the .tm_year member, since otherwise gcc-4.0 would now warn about
83078         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
83079
83080         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
83081         order to avoid an unsuppressible warning from gcc on 64-bit systems.
83082
83083         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
83084         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
83085         when run in a time zone for which daylight savings time is in effect
83086         for the starting date.
83087
83088         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
83089         stop us from restricting permissions of just-created absolute-named
83090         directories.
83091         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
83092         to restore initial working directory.
83093         * lib/mkdir-p.c (make_dir_parents): New parameter:
83094         different_working_dir, to tell caller if/when we change the working
83095         directory and are unable to return to the initial one.
83096         * lib/mkdir-p.h (make_dir_parents): Update prototype.
83097         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
83098         `return false'.  This fixes a bug introduced on 2004-07-30.
83099
83100         * lib/openat.c (fdopendir): Be sure to close the supplied
83101         file descriptor before returning.  This makes our replacement
83102         implementation a little closer to Solaris's, where fdopendir
83103         ties the file descriptor to the returned DIR* pointer.
83104         * lib/openat.c (unlinkat): New function.
83105         * lib/openat.h (unlinkat): Add prototype.
83106         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
83107         (openat_restore_fail): Rename from openat_restore_die.
83108         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
83109
83110         Provide an alternative to exiting immediately upon save_cwd or
83111         restore_cwd failure.  Now, an application can arrange e.g.,
83112         to perform a longjump in that case.
83113         * lib/openat.c: Include dirname.h.
83114         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
83115         (rpl_openat, fdopendir, fstatat): Call openat_save_die
83116         and openat_restore_die rather than calling error directly.
83117         Don't include "error.h" or "exitfail.h"; they're no longer needed.
83118
83119         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
83120         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
83121         define.
83122
83123         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
83124         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
83125                             int utc, int nanoseconds);
83126         Background:
83127         date should not have to allocate a megabyte of virtual memory to
83128         handle a format argument like +%1048575T.  When implemented with
83129         strftime, it must allocate such a buffer, use strftime to fill it
83130         in, print it, then free it.
83131         With fprintftime, it simply prints everything and exits.
83132         With no need for memory allocation, that's one fewer way to fail.
83133         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
83134         optional field width, not before, so we accept %9:z, not %:9z.
83135         (my_strftime): Be sure to use L_('x') for literals.
83136
83137         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
83138         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
83139         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
83140         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
83141         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
83142         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
83143         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
83144         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
83145         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
83146         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
83147         * lib/xgethostname.c, lib/xreadlink.c:
83148         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
83149
83150         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
83151         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
83152         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
83153         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
83154         and don't include <sys/file.h>).
83155
83156 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
83157
83158         Sync from coreutils.
83159
83160         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
83161         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
83162         [!LDAV_DONE]: Avoid unused variable warning.
83163
83164 2005-09-21  Bruno Haible  <bruno@clisp.org>
83165
83166         * lib/unicodeio.h (unicode_to_mb): New declaration.
83167
83168 2005-09-20  Derek Price  <derek@ximbiot.com>
83169
83170         * lib/getaddrinfo.c: Don't include <netdb.h> included from
83171         getaddrinfo.h.
83172
83173 2005-09-20  Bruno Haible  <bruno@clisp.org>
83174
83175         * gnulib-tool: Remove trailing slashes from the values specified for
83176         --source-base, --m4-base, --tests-base, --aux-dir.
83177         Suggested by Simon Josefsson <jas@extundo.com>.
83178
83179 2005-09-20  Bruno Haible  <bruno@clisp.org>
83180
83181         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
83182         func_modules_to_filelist, func_import, func_create_testdir): Make all
83183         sorting results locale-independent, so that gnulib-cache.m4 doesn't
83184         change when gnulib-tool is invoked in a different locale.
83185
83186 2005-09-19  Simon Josefsson  <jas@extundo.com>
83187
83188         * m4/socklen.m4: Fix typo.
83189
83190 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83191
83192         Use a consistent style for including <config.h>.
83193         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
83194         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
83195         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
83196         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
83197         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
83198         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
83199         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
83200         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
83201         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
83202         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
83203         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
83204         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
83205         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
83206         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
83207         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
83208         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
83209         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
83210         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
83211         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
83212         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
83213         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
83214         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
83215         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
83216         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
83217         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
83218         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
83219         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
83220         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
83221         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
83222         lib/xstrtoumax.c, lib/yesno.c:
83223         Standardize inclusion of config.h.
83224         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
83225         lib/inttostr.h:  Removed inclusion of config.h from header files.
83226         * lib/inttostr.c:  Adjusted in-tree users.
83227         * lib/timespec.h: Remove superfluous warning to include config.h.
83228         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
83229         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
83230         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
83231         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
83232         config.h with HAVE_CONFIG_H.
83233
83234 2005-09-19  Jim Meyering  <jim@meyering.net>
83235
83236         * modules/pathmax (License): Change to LGPL.
83237
83238 2005-09-19  Derek Price  <derek@ximbiot.com>
83239
83240         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
83241
83242 2005-09-19  Bruno Haible  <bruno@clisp.org>
83243
83244         * gnulib-tool (import): Provide default for --tests-base.
83245
83246 2005-09-19  Bruno Haible  <bruno@clisp.org>
83247
83248         * doc/quote.texi: New file, extracted from gnulib.texi.
83249         * doc/ctime.texi: New file, extracted from gnulib.texi.
83250         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
83251         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
83252         * doc/gnulib.texi: Include them.
83253
83254 2005-09-18  Bruno Haible  <bruno@clisp.org>
83255
83256         Portability fix.
83257         * gnulib-tool (func_readlink): New function.
83258         (func_ln_if_changed): Use it.
83259
83260 2005-09-18  Bruno Haible  <bruno@clisp.org>
83261
83262         * gnulib-tool: Support --with-tests also with --import.
83263         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
83264         (func_import): Use variables $testsbase and $inctests. Emit a
83265         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
83266         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
83267         SUBDIRS += $testsdir.
83268         (func_create_testdir): Update.
83269
83270 2005-09-18  Bruno Haible  <bruno@clisp.org>
83271
83272         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
83273         instead of $dry_run.
83274         (func_cp_if_changed, func_mv_if_changed): Remove functions.
83275         (func_ln_if_changed): Don't handle dry-run here.
83276         (func_import): In dry-run mode, detect more precisely which actions
83277         would be performed, and don't use "...ing" verbs.
83278
83279 2005-09-18  Bruno Haible  <bruno@clisp.org>
83280
83281         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
83282         (func_import): Use join on two temporary files instead of three nested
83283         loops, in order to determine which files are new or old.
83284
83285 2005-09-18  Bruno Haible  <bruno@clisp.org>
83286
83287         * gnulib-tool (func_import): Comment out code that spits out the
83288         new files with --dry-run.
83289
83290 2005-09-18  Bruno Haible  <bruno@clisp.org>
83291
83292         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
83293
83294 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
83295
83296         * lib/stat-time.h: New file.
83297         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
83298         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
83299         in a different way.
83300         (timespec_cmp): New function.
83301         * lib/utimecmp.c: Include stat-time.h.
83302         (SYSCALL_RESOLUTION): Depend on whether various struct stat
83303         members exist, not on the obsolescent ST_MTIM_NSEC.
83304         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
83305
83306 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
83307
83308         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
83309
83310 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
83311
83312         * MODULES.html.sh (File system functions): Add stat-time.
83313         * modules/stat-time: New file.
83314         * modules/timespec (Files): Remove m4/st_mtim.m4; this
83315         is now done in a different way, by the stat-time module.
83316         * modules/utimecmp (Depends-on): Add stat-time.
83317
83318 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
83319
83320         * m4/st_mtim.m4: Remove.  Superseded by...
83321         * m4/stat-time.m4: New file.
83322         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
83323         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
83324
83325 2005-09-15  Derek Price  <derek@ximbiot.com>
83326
83327         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
83328
83329 2005-09-15  Derek Price  <derek@ximbiot.com>
83330
83331         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
83332         * lib/regex_internal.c: Ditto, using this...
83333         (__GNUC_PREREQ): ...new macro.
83334         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
83335         using...
83336         (__GNUC_PREREQ): ...this new macro.
83337
83338         * lib/strstr.h: Include string.h. Define strstr as a macro here.
83339
83340 2005-09-15  Derek Price  <derek@ximbiot.com>
83341             Paul Eggert  <eggert@cs.ucla.edu>
83342
83343         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
83344         changes, consolidating in...
83345         * lib/regex_internal.h: ...this file.
83346
83347 2005-09-13  Jim Meyering  <jim@meyering.net>
83348
83349         * lib/canon-host.c: Filter through gnu indent and reword comments
83350         slightly.
83351         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
83352
83353 2005-09-13  Derek Price  <derek@ximbiot.com>
83354
83355         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
83356         failure.
83357         Reported by Jim Meyering  <jim@meyering.net>.
83358
83359 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
83360
83361         * lib/base64.c: Typo.
83362         (base64_encode): Put b64str in initialized data section.
83363
83364 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
83365
83366         Merge glibc and coreutils changes into gnulib, plus a few
83367         extra fixes.
83368         * lib/md5.c: Use #error rather than a string.
83369         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
83370         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
83371         (__attribute__): Define to empty for non recent-GCC.
83372         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
83373         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
83374         Renamed from their non-__ counterparts, with new macros replacing
83375         them if not _LIBC.  Add __THROW attribute.
83376         (rol): Remove.
83377         (struct md5_ctx): Align buffer if using GCC.
83378         * lib/sha1.h (struct sha1_ctx): Likewise.
83379         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
83380         The old name was backwards.
83381         (NOTSWAP): Remove; not used.
83382         (rol): New macro, moved here from md5.h.
83383         (sha1_process_block): Remove a FIXME that doesn't make sense.
83384
83385 2005-09-12  Derek Price  <derek@ximbiot.com>
83386
83387         Return usable errors from canon-host.
83388         * lib/canon-host.h: New file.
83389         * lib/canon-host.c (canon_host): Wrap...
83390         (canon_host_r): ...this new function, which now relies exclusively on
83391         getaddrinfo.
83392         (ch_strerror): New function.
83393         (last_cherror): New global.
83394         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
83395         interface.
83396         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
83397         void *.
83398         (freeaddrinfo): Free ai->ai_canonname when set.
83399
83400 2005-09-12  Derek Price  <derek@ximbiot.com>
83401
83402         Make canon-host require getaddrinfo.
83403         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
83404         AC_LIBSOURCE canon-host.h.  Call...
83405         (gl_PREREQ_CANON_HOST): ...this new function, which requires
83406         gl_GETADDRINFO.
83407         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
83408
83409 2005-09-12  Derek Price  <derek@ximbiot.com>
83410
83411         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
83412         LGPL.
83413         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
83414
83415 2005-09-12  Derek Price  <derek@ximbiot.com>
83416
83417         * lib/gai_strerror.c: Include config.h when available.  Include
83418         getaddrinfo.h before other headers to test interface.
83419         Reported by Larry Jones <lawrence.jones@ugs.com>.
83420
83421 2005-09-12  Derek Price  <derek@ximbiot.com>
83422             Paul Eggert  <eggert@cs.ucla.edu>
83423
83424         * modules/glob (Files): Add glob-libc.h.
83425
83426 2005-09-12  Derek Price  <derek@ximbiot.com>
83427             Paul Eggert  <eggert@cs.ucla.edu>
83428
83429         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
83430         glob_.h, glob-libc.h.
83431         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
83432
83433 2005-09-12  Derek Price  <derek@ximbiot.com>
83434             Paul Eggert  <eggert@cs.ucla.edu>
83435
83436         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
83437         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
83438         protecting things that should be done only in gnulib contexts.
83439         * lib/glob_.h: New file, containing only the glob things needed for
83440         gnulib.
83441         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
83442         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
83443         (glob, globfree, glob_pattern_p): Now defined simply in terms of
83444         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
83445         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
83446         and to respect the namespace rules better.
83447
83448 2005-09-08  Simon Josefsson  <jas@extundo.com>
83449
83450         * modules/socklen: New file.
83451
83452 2005-09-08  Simon Josefsson  <jas@extundo.com>
83453
83454         * m4/socklen.m4: New file.
83455
83456 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
83457
83458         * modules/utimens (Files): Add m4/utimbuf.m4, since
83459         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
83460         Reported by Sergey Poznyakoff.
83461
83462 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
83463
83464         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
83465         definitions, since that's the preferred style in glibc.
83466         Fix a minor spacing issue, and update copyright notice to match
83467         glibc's.
83468
83469 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
83470
83471         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
83472
83473 2005-09-06  Simon Josefsson  <jas@extundo.com>
83474
83475         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
83476         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
83477
83478 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
83479
83480         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
83481         warning.
83482
83483 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
83484
83485         * config/srclist.txt: Add glibc bug 1302.
83486
83487 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
83488
83489         Change bitset word type from unsigned int to unsigned long int,
83490         as this has better performance on typical 64-bit hosts.
83491         Port bitset code to hosts with unusual word sizes.
83492         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
83493         (build_collating_symbol):
83494         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
83495         argument is a bitset.  This is merely a style issue, but it makes
83496         it clearer that an entire array is expected.
83497         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
83498         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
83499         Port to the case where bitset_word is not the same as unsigned int.
83500         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
83501         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
83502         Likewise.
83503         * lib/regexec.c (check_dst_limits_calc_pos_1,
83504         check_subexp_matching_top):
83505         (build_trtable, group_nodes_into_DFAstates):
83506         Likewise.
83507         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
83508         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
83509         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
83510         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
83511         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
83512         * lib/regcomp.c (optimize_subexps, lower_subexp):
83513         Work even if bitset_word has holes in its bitwise representation.
83514         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
83515         * lib/regexec.c (check_dst_limits_calc_pos_1,
83516         check_subexp_matching_top):
83517         Likewise.
83518         * lib/regex_internal.c (re_string_reconstruct):
83519         Don't assume UCHAR_MAX == 255.
83520         * lib/regex_internal.h (bitset_set_all): Likewise.
83521         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
83522         All uses changed.
83523         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
83524         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
83525         All uses changed.
83526         (BITSET_WORD_MAX): New macro.
83527         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
83528         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
83529         (bitset_empty, bitset_copy):
83530         Prefer sizeof (bitset) to multiplying it out ourselves.
83531         (bitset_not_merge): Remove; unused.
83532         (bitset_contain): Return bool, not unsigned int with one bit on.
83533         All callers changed.
83534         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
83535         alignment than re_node_set; do this by defining a new internal
83536         type struct dests_alloc and using it to allocate memory.
83537
83538 2005-09-05  Bruno Haible  <bruno@clisp.org>
83539
83540         * gnulib-tool (func_import): Fix comparison in handling of symbolic
83541         links.
83542
83543 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
83544
83545         * modules/size_max (Makefile.am): Add size_max.h
83546
83547 2005-09-04  Derek Price  <derek@ximbiot.com>
83548
83549         * gnulib-tool (func_import): Fix reversed $symbolic logic.
83550
83551 2005-09-03  Simon Josefsson  <jas@extundo.com>
83552
83553         * gnulib-tool: Fix typo.
83554
83555 2005-09-03  Simon Josefsson  <jas@extundo.com>
83556
83557         * config/srclist.txt: Add glibc bug 1293.
83558
83559 2005-09-03  Derek Price  <derek@ximbiot.com>
83560
83561         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
83562         From Larry Jones <lawrence.jones@ugs.com>.
83563
83564 2005-09-02  Simon Josefsson  <jas@extundo.com>
83565
83566         * modules/socklen: New file.
83567
83568 2005-09-02  Simon Josefsson  <jas@extundo.com>
83569
83570         * modules/havelib: New module.
83571
83572         * modules/gettext, modules/iconv, modules/lock, modules/readline:
83573         Use havelib.
83574
83575 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
83576
83577         Check for arithmetic overflow when calculating sizes, to prevent
83578         some buffer-overflow issues.  These patches are conservative, in the
83579         sense that when I couldn't determine whether an overflow was possible,
83580         I inserted a run-time check.
83581         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
83582         macros.
83583         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
83584         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
83585         (re_xnrealloc, re_x2nrealloc): New inline functions.
83586         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
83587         parse_bracket_exp):
83588         (build_equiv_class, build_charclass): Check for arithmetic overflow
83589         in size expression calculations.
83590         * lib/regex_internal.c (re_string_realloc_buffers):
83591         (build_wcs_upper_buffer, re_node_set_add_intersect):
83592         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
83593         (re_dfa_add_node, register_state): Likewise.
83594         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
83595         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
83596         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
83597         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
83598
83599 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
83600
83601         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
83602         m4/ulonglong.m4.  Problem reported by Martin Lambers.
83603
83604 2005-09-02  Bruno Haible  <bruno@clisp.org>
83605
83606         Support for lib vs. lib64 distinction on biarch platforms.
83607         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
83608         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
83609         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
83610
83611 2005-09-02  Bruno Haible  <bruno@clisp.org>
83612
83613         * gnulib-tool (import): In the other first-use case, provide defaults
83614         as well.
83615
83616 2005-09-02  Bruno Haible  <bruno@clisp.org>
83617
83618         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
83619         patches not yet found in the latest gettext release.
83620
83621 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
83622
83623         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
83624         to avoid a collision with bits/local_lim.h in glibc.
83625         All uses changed.  Problem reported by Dmitry V. Levin in
83626         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
83627
83628         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
83629         bugs in int versus size_t comparisons.
83630         (re_string_context_at): Fix bug where the code assumed that
83631         Idx is signed.
83632
83633         Use bool where appropriate.
83634         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
83635         All callers changed.
83636         (calc_eclosure_iter): Likewise, for ROOT arg.
83637         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
83638         (build_charclass_op): Likewise, for NON_MATCH arg.
83639         * lib/regex_internal.c (re_string_allocate, re_string_construct):
83640         (re_string_construct_common): Likewise, for ICASE arg.
83641         * lib/regexec.c (re_search_2_stub, re_search_stub):
83642         Likewise, for RET_LEN arg.
83643         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
83644         (set_regs): Likewise, for FL_BACKTRACK arg.
83645         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
83646         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
83647         (calc_eclosure_iter, parse_bracket_exp):
83648         Use bool for internal variables that are booleans.
83649         * lib/regexec.c (re_search_internal, check_matching,
83650         proceed_next_node):
83651         (set_regs, build_sifted_states, sift_states_bkref):
83652         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
83653         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
83654         (find_collation_sequence_value):
83655         Likewise.
83656         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
83657         (re_node_set_compare):
83658         Return bool, not int. All callers changed.
83659         * lib/regexec.c (check_halt_node_context, check_dst_limits):
83660         (build_trtable, check_node_accept): Likewise.
83661         * lib/regex_internal.h: Include stdbool.h.
83662
83663         Fix bugs uncovered when converting to bool.
83664         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
83665         failure instead of charging ahead blindly.
83666         * lib/regex_internal.c (register_state): Likewise.
83667         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
83668         for freeing internal storage.
83669         (group_nodes_into_DFA_states): Use unsigned int, not int, for
83670         bitset pieces used as boolean, to avoid undefined behavior
83671         on hosts that do int overflow checking.
83672
83673 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
83674
83675         * config/srclist.txt: Add glibc bugs 1285-1287.
83676
83677 2005-09-01  Jim Meyering  <jim@meyering.net>
83678
83679         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
83680         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
83681         Require gl_STAT_MACROS, too.
83682
83683 2005-09-01  Bruno Haible  <bruno@clisp.org>
83684
83685         * gnulib-tool (import): In the first-use case, provide defaults.
83686
83687 2005-09-01  Bruno Haible  <bruno@clisp.org>
83688
83689         * gnulib-tool (func_import): Remove the .tmp files.
83690
83691 2005-09-01  Bruno Haible  <bruno@clisp.org>
83692
83693         * gnulib-tool (func_import): Fix handling of symbolic links.
83694
83695 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
83696
83697         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
83698         old glibc regex code mishandles strings longer than 2**31 bytes.
83699         This patch fixes this when the regex code is used in gnulib
83700         (i.e., outside glibc).
83701
83702         This patch should not affect the use of the regex code inside
83703         glibc.  No doubt this problem also needs to be handled for glibc
83704         as well, but the result will be an incompatible change to the
83705         glibc ABI, and the old ABI will have to be supported too.  That
83706         can be the the subject for another patch.
83707
83708         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
83709         governing whether the rest of this patch is active.  By default,
83710         the macro is disabled and the patch has no effect.
83711         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
83712         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
83713         (struct re_pattern_buffer, re_search, re_search_2, re_match):
83714         (re_match_2, re_set_registers): Use the new types.
83715         * lib/regex_internal.h (Idx, re_hashval_t): New types.
83716         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
83717         New macros.
83718         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
83719         (re_string_context_at, bin_tree_t, re_dfastate_t):
83720         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
83721         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
83722         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
83723         (re_string_char_size_at, re_string_wchar_at):
83724         (re_string_elem_size_at):
83725         Use the new types and macros to port to 64-bit hosts.
83726         Use unsigned types for internal values, so that the code
83727         mostly works even for arrays larger than SSIZE_MAX.
83728         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
83729         (search_duplicated_node, calc_eclosure_iter, fetch_number):
83730         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
83731         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
83732         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
83733         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
83734         (calc_inveclosure, parse_dup_op, build_range_exp):
83735         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
83736         (fetch_number, create_token_tree, mark_opt_subexp):
83737         Likewise.
83738         * lib/regex_internal.c (re_string_construct_common,
83739         create_ci_newstate):
83740         (create_cd_newstate, re_string_allocate, re_string_construct):
83741         (re_string_realloc_buffers, build_wcs_upper_buffer):
83742         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
83743         (re_string_reconstruct, re_string_peek_byte_case):
83744         (re_string_fetch_byte_case, re_string_context_at):
83745         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
83746         (re_node_set_init_copy, re_node_set_add_intersect):
83747         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
83748         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
83749         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
83750         (re_acquire_state, re_acquire_state_context, register_state):
83751         Likewise.
83752         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
83753         search_cur_bkref_entry):
83754         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
83755         (re_search_internal, re_search_2_stub, re_search_stub)
83756         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
83757         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
83758         (update_cur_sifted_state, check_dst_limits):
83759         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
83760         (check_subexp_limits, sift_states_bkref, merge_state_array):
83761         (check_subexp_matching_top, get_subexp, get_subexp_sub):
83762         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
83763         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
83764         (expand_bkref_cache, check_node_accept_bytes):
83765         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
83766         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
83767         (acquire_init_state_context, check_halt_node_context):
83768         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
83769         (sift_states_backward, clean_state_log_if_needed):
83770         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
83771         (find_recover_state, transit_state_sb, transit_state_mb):
83772         (transit_state_bkref, build_trtable, match_ctx_clean):
83773         Likewise.
83774         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
83775         to work around an assumption that REG_MISSING is negative.
83776
83777         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
83778         (seek_collating_symbol_entry) [defined _LIBC]:
83779         (lookup_collation_sequence_value) [defined _LIBC]:
83780         (build_range_exp, build_collating_symbol) [defined _LIBC]:
83781         Use prototypes rather than old-style function definitions.
83782         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
83783         (transit_state_sb) [0]:
83784         (find_collation_sequence_value) [defined _LIBC]: Likewise.
83785
83786         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
83787         rm_eo.
83788
83789         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
83790         (optimize_subexps, lower_subexp):
83791         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
83792         since the signed shift might overflow.  Use 1u<<31 instead.
83793         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
83794         Likewise.
83795         * lib/regexec.c (check_dst_limits_calc_pos_1,
83796         check_subexp_matching_top): Likewise.
83797
83798         * lib/regcomp.c (optimize_subexps, lower_subexp):
83799         Use CHAR_BIT rather than 8, for clarity.
83800         * lib/regexec.c (check_dst_limits_calc_pos_1):
83801         (check_subexp_matching_top): Likewise.
83802         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
83803         have to worry about portability issues when shifting it left.
83804         Remove no-longer-needed test for table_size > 0.
83805         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
83806         in a word, as the resulting behavior is undefined.
83807         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
83808         in one case, a <= should have been an <, and in another case the
83809         whole test was missing.
83810         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
83811         the standard name CHAR_BIT.
83812         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
83813         this is not true on one's complement and signed-magnitude hosts.
83814
83815         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
83816         next_last_offset.
83817         (struct re_dfa_t): Remove unused member states_alloc.
83818         * lib/regcomp.c (init_dfa): Don't initialize unused members.
83819
83820 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
83821
83822         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
83823         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
83824         and large-file glibc and in 32-bit large-file Solaris.
83825
83826 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
83827
83828         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
83829         lengths fit in regoff_t; this isn't true if regoff_t is the same
83830         width as size_t.
83831         * lib/regex.c (re_search_internal): 5th arg is LAST_START
83832         (= START + RANGE) instead of RANGE.  This avoids overflow
83833         problems when regoff_t is the same width as size_t.
83834         All callers changed.
83835         (re_search_2_stub): Check for overflow when adding the
83836         sizes of the two strings.
83837         (re_search_stub): Check for overflow when adding START
83838         to RANGE; if it occurs, substitute the extreme value.
83839
83840 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
83841
83842         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
83843
83844 2005-08-31  Jim Meyering  <jim@meyering.net>
83845
83846         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
83847         a pointer-to-const.
83848         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
83849         (register_state): Likewise.
83850         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
83851         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
83852         (group_nodes_into_DFAstates): Likewise.
83853
83854 2005-08-31  Jim Meyering  <jim@meyering.net>
83855
83856         * check-module: Add a FIXME comment.
83857
83858 2005-08-31  Eric Blake  <ebb9@byu.net>
83859
83860         * modules/unistd-safer (Files): Add unistd--.h.
83861         * modules/stdio-safer (Files): Add stdio--.h.
83862
83863 2005-08-31  Derek Price  <derek@ximbiot.com>
83864
83865         * lib/getdelim.c (getdelim): Return EOF on EOF.
83866         Reported by Larry Jones <lawrence.jones@ugs.com>.
83867
83868 2005-08-31  Bruno Haible  <bruno@clisp.org>
83869
83870         Avoid unnecessary diffs in the generated lib/Makefile.am.
83871         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
83872         the generated files.
83873         (func_import): Don't set cmd.
83874
83875 2005-08-31  Bruno Haible  <bruno@clisp.org>
83876
83877         * lib/strstr.c: Include <stddef.h>, for NULL.
83878         * lib/strcasestr.c: Likewise.
83879         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
83880
83881 2005-08-31  Bruno Haible  <bruno@clisp.org>
83882
83883         * gnulib-tool: New option --macro-prefix.
83884         (func_import): Use macro_prefix.
83885         (import): Handle option --macro-prefix.
83886
83887 2005-08-31  Bruno Haible  <bruno@clisp.org>
83888
83889         * gnulib-tool (import): Rename most ac_* variables to cached_*.
83890         Also use new variables cached_lgpl, cached_libtool.
83891
83892 2005-08-31  Bruno Haible  <bruno@clisp.org>
83893
83894         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
83895         always instantiating them.
83896
83897 2005-08-31  Bruno Haible  <bruno@clisp.org>
83898
83899         * gnulib-tool (func_import): Read the previous cached settings
83900         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
83901         earlier added by gnulib but are now dropped. Warn when a gnulib file
83902         overwrites a non-gnulib file.
83903
83904 2005-08-31  Bruno Haible  <bruno@clisp.org>
83905
83906         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
83907         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
83908         projects that don't keep autogenerated files in CVS. Put into
83909         actioncmd only the specified modules, not the transitive closure.
83910
83911 2005-08-31  Bruno Haible  <bruno@clisp.org>
83912
83913         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
83914         Create directories that shall be filled.
83915         (import): Don't look for gl_* macros in configure.ac. Recurse across
83916         all directories containing a gnulib-cache.m4 files, if meaningful.
83917
83918 2005-08-31  Bruno Haible  <bruno@clisp.org>
83919
83920         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
83921         (import): Set seen_libtool when we see gl_LIBTOOL.
83922
83923 2005-08-31  Bruno Haible  <bruno@clisp.org>
83924
83925         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
83926         declaration macro definitions from generated gnulib.m4.
83927
83928 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
83929
83930         * lib/iconvme.h: Add prototype for iconv_alloc.
83931
83932 2005-08-29  Simon Josefsson  <jas@extundo.com>
83933
83934         * lib/iconvme.c: Fix errno.
83935
83936 2005-08-29  Bruno Haible  <bruno@clisp.org>
83937
83938         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
83939         that it works when the directory contains spaces.
83940
83941 2005-08-29  Bruno Haible  <bruno@clisp.org>
83942
83943         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
83944
83945 2005-08-29  Bruno Haible  <bruno@clisp.org>
83946
83947         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
83948         Emit more advice.
83949
83950 2005-08-29  Bruno Haible  <bruno@clisp.org>
83951         and Stepan Kasal  <kasal@ucw.cz>
83952
83953         * check-module: If more parameters are given, check each of them
83954         separately; add more exceptions, as noted by Jim Meyering.
83955         (check_module): New procedure.
83956         (%exempt_header): Now contains all exceptions.
83957
83958 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
83959
83960         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
83961
83962 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
83963
83964         * lib/iconvme.c: Split iconv_string into iconv_alloc.
83965
83966 2005-08-28  Bruno Haible  <bruno@clisp.org>
83967
83968         * m4/gnulib-tool.m4: New file.
83969
83970 2005-08-27  Jim Meyering  <jim@meyering.net>
83971
83972         * modules/unistd-safer (Files): Add pipe-safer.c.
83973         * modules/fcntl-safer (Files): Add creat-safer.c.
83974
83975 2005-08-27  Jim Meyering  <jim@meyering.net>
83976
83977         * m4/stdlib-safer.m4: New file.  From coreutils.
83978         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
83979         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
83980         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
83981         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
83982         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
83983
83984 2005-08-27  Jim Meyering  <jim@meyering.net>
83985
83986         * lib/fopen-safer.c: Merge minor changes from coreutils.
83987         * lib/dup-safer.c: Likewise.
83988         * lib/fd-safer.c: Likewise.
83989
83990         Merge from coreutils.
83991         * lib/stdio--.h: New file.
83992         * lib/stdlib--.h: New file.
83993         * lib/mkstemp-safer.c: New file.
83994
83995         GNU tar needs these.
83996         * lib/pipe-safer.c: New file.
83997         * lib/creat-safer.c: New file.
83998         * lib/fcntl--.h (creat): Define to creat_safer.
83999         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
84000         * lib/unistd--.h (pipe): Define to pipe_safer.
84001         * lib/unistd-safer.h: Declare pipe_safer.
84002
84003 2005-08-26  Simon Josefsson  <jas@extundo.com>
84004
84005         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
84006         Haible <bruno@clisp.org>.
84007
84008 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
84009
84010         * lib/regex_internal.h: Remove all references to
84011         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
84012         or better.
84013         (bitset_not, bitset_merge, bitset_not_merge):
84014         (bitset_mask, re_string_allocate, re_string_construct):
84015         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
84016         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
84017         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
84018         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
84019         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
84020         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
84021         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
84022         (re_acquire_state_context):
84023         Remove unnecessary forward decls.
84024         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
84025         Put __attribute at function definition,
84026         now that the function decl has been removed.
84027         * lib/regex_internal.c (re_string_peek_byte_case):
84028         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
84029         Likewise.
84030
84031 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
84032
84033         * m4/regex.m4: Add AC_PREREQ(2.50).
84034         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
84035
84036 2005-08-25  Simon Josefsson  <jas@extundo.com>
84037
84038         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
84039         __fsetlocking.
84040
84041 2005-08-25  Simon Josefsson  <jas@extundo.com>
84042
84043         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
84044         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
84045         GLIBC specific code.
84046
84047 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
84048
84049         Make regex safe for g++.  This fixes one real bug (an "err"
84050         that should have been "*err").  g++ problem reported by
84051         Sam Steingold.
84052         * lib/regex_internal.h (re_calloc): New macro, consistent with
84053         re_malloc etc.  All callers of calloc changed to use re_calloc.
84054         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
84055         not int.  All callers changed.
84056         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
84057         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
84058         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
84059         (find_recover_state): Change "err" to "*err"; this fixes what
84060         appears to be a real bug.
84061         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
84062         versus int.
84063
84064 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
84065
84066         * modules/regex (Depends-on): Add malloc, since the code
84067         assumes that !malloc(0) means failure.
84068
84069 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
84070
84071         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
84072
84073         alloca modernization/simplification for regex.
84074         * lib/regex.c: Remove portability cruft for alloca.  This no longer
84075         needs to be at the start of the file, and can be moved into
84076         regex_internal.h and simplified.
84077         * lib/regex_internal.h: Include <alloca.h>.
84078         (__libc_use_alloca) [!defined _LIBC]: New macro.
84079         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
84080         now works outside glibc.
84081
84082 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
84083
84084         * config/srclist.txt: Add glibc bugs 1241, 1245.
84085
84086 2005-08-25  Jim Meyering  <jim@meyering.net>
84087
84088         * lib/open-safer.c: Include <config.h>.
84089         Otherwise, we'd lose LARGEFILE support in any file using
84090         e.g. "fcntl--.h"
84091
84092 2005-08-25  Bruno Haible  <bruno@clisp.org>
84093
84094         * m4/minmax.m4: Require autoconf 2.52.
84095         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
84096         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
84097         alternatives of translit over the alphabet.
84098         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
84099
84100 2005-08-24  Simon Josefsson  <jas@extundo.com>
84101
84102         * tests/test-getpass.c: New file.
84103
84104 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
84105
84106         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
84107         for GNU regex features.
84108
84109 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
84110
84111         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
84112         * lib/regex.h (regerror): Likewise.
84113
84114         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
84115         requires this.  (The code never needed it.)
84116
84117         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
84118         All uses of recently-renamed identifiers changed to use the new,
84119         POSIX-compliant names.  The code will build and run just fine
84120         without these changes, but it's better to eat our own dog food
84121         and use the standard-conforming names.
84122
84123         * lib/regex.h: Fix a multitude of POSIX name space violations.
84124         These changes have an effect only for programs that define
84125         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
84126         do not change anything for programs compiled in the normal way.
84127         Also, there is no effect on the ABI.
84128
84129         (_REGEX_SOURCE): New macro.
84130         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
84131         defined and _GNU_SOURCE is not; this fixes a name space violation.
84132
84133         Rename the following macros to obey POSIX requirements.
84134         The old names are still visible as macros if _REGEX_SOURCE is defined.
84135         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
84136         RE_BACKSLASH_ESCAPE_IN_LISTS.
84137         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
84138         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
84139         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
84140         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
84141         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
84142         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
84143         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
84144         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
84145         (REG_INTERVALS): renamed from RE_INTERVALS.
84146         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
84147         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
84148         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
84149         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
84150         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
84151         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
84152         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
84153         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
84154         RE_UNMATCHED_RIGHT_PAREN_ORD.
84155         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
84156         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
84157         (REG_DEBUG): renamed from RE_DEBUG.
84158         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
84159         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
84160         unusual, since we can't clash with the POSIX REG_ICASE.
84161         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
84162         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
84163         (REG_NO_SUB): renamed from RE_NO_SUB.
84164         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
84165         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
84166         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
84167         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
84168         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
84169         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
84170         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
84171         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
84172         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
84173         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
84174         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
84175         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
84176         RE_SYNTAX_POSIX_MINIMAL_BASIC.
84177         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
84178         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
84179         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
84180         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
84181         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
84182         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
84183         (REG_FIXED): Renamed from REGS_FIXED.
84184         (REG_NREGS): Renamed from RE_NREGS.
84185
84186         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
84187         of other REG_* macros, since POSIX says the user is allowed to
84188         #undef these macros selectively.
84189
84190         (reg_errcode_t): Update comment stating what other tables need
84191         to be consistent.
84192
84193         Rename the following enum values to obey POSIX requirements.
84194         The old names are still visible as macros.
84195         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
84196         is not defined, since GNU is supposed to be a superset of POSIX as
84197         much as possible, and since we want reg_errcode_t to be a signed
84198         type for implementation consistency.
84199         (_REG_NOERROR): Renamed from REG_NOERROR.
84200         (_REG_NOMATCH): Renamed from REG_NOMATCH.
84201         (_REG_BADPAT): Renamed from REG_BADPAT.
84202         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
84203         (_REG_ECTYPE): Renamed from REG_ECTYPE.
84204         (_REG_EESCAPE): Renamed from REG_EESCAPE.
84205         (_REG_ESUBREG): Renamed from REG_ESUBREG.
84206         (_REG_EBRACK): Renamed from REG_EBRACK.
84207         (_REG_EPAREN): Renamed from REG_EPAREN.
84208         (_REG_EBRACE): Renamed from REG_EBRACE.
84209         (_REG_BADBR): Renamed from REG_BADBR.
84210         (_REG_ERANGE): Renamed from REG_ERANGE.
84211         (_REG_ESPACE): Renamed from REG_ESPACE.
84212         (_REG_BADRPT): Renamed from REG_BADRPT.
84213         (_REG_EEND): Renamed from REG_EEND.
84214         (_REG_ESIZE): Renamed from REG_ESIZE.
84215         (_REG_ERPAREN): Renamed from REG_ERPAREN.
84216         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
84217         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
84218         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
84219         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
84220
84221         (_REG_RE_NAME, _REG_RM_NAME): New macros.
84222         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
84223         changed.  But support the old name if the new one is not defined
84224         and if _REGEX_SOURCE.
84225
84226         Change the following member names in struct re_pattern_buffer.
84227         The old names are still supported if !_REGEX_SOURCE.
84228         The new names are always supported, regardless of _REGEX_SOURCE.
84229         (re_buffer): Renamed from buffer.
84230         (re_allocated): Renamed from allocated.
84231         (re_used): Renamed from used.
84232         (re_syntax): Renamed from syntax.
84233         (re_fastmap): Renamed from fastmap.
84234         (re_translate): Renamed from translate.
84235         (re_can_be_null): Renamed from can_be_null.
84236         (re_regs_allocated): Renamed from regs_allocated.
84237         (re_fastmap_accurate): Renamed from fastmap_accurate.
84238         (re_no_sub): Renamed from no_sub.
84239         (re_not_bol): Renamed from not_bol.
84240         (re_not_eol): Renamed from not_eol.
84241         (re_newline_anchor): Renamed from newline_anchor.
84242
84243         Change the following member names in struct re_registers.
84244         The old names are still supported if !_REGEX_SOURCE.
84245         The new names are always supported, regardless of _REGEX_SOURCE.
84246         (rm_num_regs): Renamed from num_regs.
84247         (rm_start): Renamed from start.
84248         (rm_end): Renamed from end.
84249
84250         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
84251         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
84252         Prepend __ to parameter names.
84253
84254         Undo yesterday's changes.
84255
84256 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
84257
84258         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
84259         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
84260         lib/regex.c.
84261
84262 2005-08-24  Jim Meyering  <jim@meyering.net>
84263
84264         Sync from coreutils.
84265         * m4/fcntl-safer.m4: New file.
84266
84267         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
84268         and object files for this module.
84269
84270 2005-08-24  Jim Meyering  <jim@meyering.net>
84271
84272         Sync from coreutils.
84273         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
84274
84275 2005-08-24  Jim Meyering  <jim@meyering.net>
84276
84277         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
84278         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
84279
84280 2005-08-24  Jim Meyering  <jim@meyering.net>
84281
84282         * modules/fcntl-safer: New module.
84283         * modules/fts (Depends-on): Add fcntl-safer.
84284         * MODULES.html.sh (File descriptor based Input/Output):
84285         Add fcntl-safer.
84286
84287 2005-08-24  Bruno Haible  <bruno@clisp.org>
84288
84289         Support for unit test modules.
84290         * modules/README: Mention tests modules.
84291         * modules/TEMPLATE-TESTS: New file.
84292         * gnulib-tool: New options --extract-tests-module, --with-tests and
84293         --tests-base (unused for the moment).
84294         (testsbase, inctests): New variables.
84295         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
84296         (func_verify_module): Exclude TEMPLATE-TESTS.
84297         (func_verify_nontests_module, func_verify_tests_module): New functions.
84298         (func_get_dependencies): Add implicit dependency for tests modules.
84299         (func_get_tests_module): New function.
84300         (func_modules_transitive_closure): When --with-tests was specified,
84301         include the unit tests as well, unless explicitly avoided.
84302         (func_emit_lib_Makefile_am): Ignore the tests modules here.
84303         (func_emit_tests_Makefile_am): New function.
84304         (func_create_testdir): When --with-tests was specified, emit a
84305         tests/ directory.
84306         * MODULES.html.sh (Future developments): Update.
84307
84308 2005-08-24  Bruno Haible  <bruno@clisp.org>
84309
84310         * modules/tls-tests: New file.
84311         * tests/test-tls.c: New file, from GNU gettext.
84312
84313 2005-08-24  Bruno Haible  <bruno@clisp.org>
84314
84315         * modules/lock-tests: New file.
84316         * tests/test-lock.c: New file, from GNU gettext.
84317
84318 2005-08-24  Bruno Haible  <bruno@clisp.org>
84319
84320         * lib/lock.h: Add multiple inclusion guard.
84321         * lib/tls.h: Add multiple inclusion guard.
84322
84323 2005-08-24  Bruno Haible  <bruno@clisp.org>
84324
84325         * gnulib-tool: Add support for the --aux-dir option to
84326         --create-testdir, --create-megatestdir, --test, --megatest.
84327         (func_create_testdir, func_create_megatestdir): Optionally emit a
84328         AC_CONFIG_AUX_DIR directive.
84329         (create-testdir, create-megatestdir, test, megatest): Provide a
84330         default value for $auxdir.
84331
84332 2005-08-24  Bruno Haible  <bruno@clisp.org>
84333
84334         * gnulib-tool (import): Use compound statement instead of subshell
84335         where possible.
84336
84337 2005-08-24  Bruno Haible  <bruno@clisp.org>
84338
84339         * gnulib-tool (import): Change --aux-dir default to "build-aux".
84340
84341 2005-08-24  Bruno Haible  <bruno@clisp.org>
84342
84343         * gnulib-tool (func_version): Update.
84344
84345 2005-08-24  Bruno Haible  <bruno@clisp.org>
84346
84347         * gnulib-tool (func_import, func_create_testdir,
84348         func_create_megatestdir): Quote all autoconf macro arguments.
84349
84350 2005-08-24  Bruno Haible  <bruno@clisp.org>
84351
84352         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
84353         option --force, because --force causes the aclocal.m4 of each
84354         subdirectory to be newer than the corresponding config.h.in.
84355
84356 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
84357
84358         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
84359         All contents moved to gl_REGEX.
84360         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
84361         assume that it does.
84362
84363 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
84364
84365         * lib/regex.h (REG_NOSYS)
84366         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
84367         Define, since POSIX requires it as of 2001.
84368         (_REG_ENOSYS)
84369         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
84370         New private symbol, used to keep the enum signed in all cases.
84371         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
84372         Youngman in
84373         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
84374
84375         * lib/regex_internal.c (re_string_skip_chars, register_state):
84376         (calc_state_hash):
84377         Remove forward decls; no longer needed now that we use prototypes.
84378         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
84379         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
84380         (clean_state_log_if_needed): Likewise.
84381
84382 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
84383
84384         * config/srclist.txt: Add glibc bugs 1231-1233.
84385
84386 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
84387
84388         Fix problems reported by Sam Steingold in
84389         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
84390         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
84391         assumed that reg_errcode_t is a signed type, which is not
84392         necessarily true if _XOPEN_SOURCE is not defined.
84393         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
84394         since some compilers warn about it otherwise.
84395
84396 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
84397
84398         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
84399         (init_word_char, create_initial_state, duplicate_node_closure):
84400         (fetch_token, peek_token_bracket, build_range_exp):
84401         (build_collating_symbol): Remove forward decls; no longer needed
84402         now that we use prototypes.
84403
84404         * lib/regcomp.c:
84405         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
84406         (re_compile_fastmap_iter, regcomp, regerror, regfree):
84407         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
84408         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
84409         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
84410         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
84411         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
84412         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
84413         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
84414         (build_range_exp, build_collating_symbol, parse_bracket_exp):
84415         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
84416         (build_charclass, build_charclass_op, fetch_number, create_tree):
84417         (create_token_tree, mark_opt_subexp, duplicate_tree):
84418         Use prototypes rather than old-style definitions.
84419
84420         * lib/regex_internal.c:
84421         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
84422         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
84423         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
84424         (re_string_reconstruct, re_string_peek_byte_case):
84425         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
84426         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
84427         (re_node_set_init_copy, re_node_set_add_intersect):
84428         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
84429         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
84430         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
84431         (re_acquire_state, re_acquire_state_context, register_state):
84432         (create_ci_newstate, create_cd_newstate, free_state):
84433         Likewise.
84434         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
84435         re_search_2):
84436         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
84437         (re_search_internal, prune_impossible_nodes):
84438         (acquire_init_state_context, check_matching, static):
84439         (check_halt_node_context, check_halt_state_context, proceed_next_node):
84440         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
84441         (update_regs, sift_states_backward, build_sifted_states):
84442         (clean_state_log_if_needed, merge_state_array):
84443         (update_cur_sifted_state, add_epsilon_src_nodes):
84444         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
84445         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
84446         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
84447         (find_recover_state, check_subexp_matching_top, transit_state_mb):
84448         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
84449         (check_arrival, check_arrival_add_next_nodes):
84450         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
84451         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
84452         (check_node_accept_bytes, check_node_accept, extend_buffers):
84453         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
84454         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
84455         (sift_ctx_init):
84456         Likewise.
84457
84458         * lib/regex_internal.h:
84459         (re_string_allocate, re_string_construct, re_string_reconstruct):
84460         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
84461         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
84462         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
84463         (re_string_context_at, re_string_peek_byte_case):
84464         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
84465         is defined, since we now use prototypes always.
84466
84467         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
84468         C89 or better.  All uses removed.
84469
84470 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
84471
84472         * config/srclist.txt: Add glibc bugs 1220-1227.
84473
84474 2005-08-20  Jim Meyering  <jim@meyering.net>
84475
84476         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
84477         of unused local, dfa.
84478
84479 2005-08-20  Bruno Haible  <bruno@clisp.org>
84480
84481         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
84482
84483 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84484
84485         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
84486         (re_node_set_insert_last, re_dfa_add_node):
84487         Rename local variables to avoid GCC shadowing warnings.
84488
84489 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84490
84491         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
84492         [defined lint]: Suppress bogus uninitialized-variable warnings.
84493
84494         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
84495         and let the caller return REG_ESPACE if out of space.  This
84496         removes an uninitialied-variable warning with GCC 4.0.1, and also
84497         avoids taking the address of a local variable.  All callers
84498         changed.
84499
84500 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84501
84502         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
84503         $LIBCSRC/posix/regexec.c.
84504         Add glibc bug 1217 for regcomp.c.
84505
84506 2005-08-19  Jim Meyering  <jim@meyering.net>
84507
84508         * lib/regexec.c (proceed_next_node): Redo local variables to
84509         avoid GCC shadowing warnings.
84510
84511 2005-08-18  Bruno Haible  <bruno@clisp.org>
84512
84513         * lib/strstr.c (strstr): Fix return value in multibyte case.
84514         * lib/strcasestr.c (strcasestr): Likewise.
84515
84516 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
84517
84518         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
84519
84520 2005-08-17  Jim Meyering  <jim@meyering.net>
84521
84522         Make the %s format (seconds since the epoch) work for a negative
84523         number and when used with a zero-padded field width, e.g. %015s.
84524
84525         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
84526         label so that it precedes the code to set `digits'.  Otherwise,
84527         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
84528         print `00-22'.  Now, it prints `-0022', as it should.
84529
84530 2005-08-17  Bruno Haible  <bruno@clisp.org>
84531
84532         * modules/strstr (Files): Add m4/mbrtowc.m4.
84533         (Depends-on): Add mbuiter.
84534
84535 2005-08-17  Bruno Haible  <bruno@clisp.org>
84536
84537         * modules/strcasestr: New file.
84538         * MODULES.html.sh (String handling, based on ANSI C 89): Add
84539         strcasestr.
84540
84541 2005-08-17  Bruno Haible  <bruno@clisp.org>
84542
84543         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
84544
84545 2005-08-17  Bruno Haible  <bruno@clisp.org>
84546
84547         * modules/mbuiter: New file.
84548         * MODULES.html.sh (Extended multibyte and wide character utilities):
84549         Add mbuiter.
84550
84551 2005-08-17  Bruno Haible  <bruno@clisp.org>
84552
84553         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
84554         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
84555
84556 2005-08-17  Bruno Haible  <bruno@clisp.org>
84557
84558         * m4/strcasestr.m4: New file.
84559
84560 2005-08-17  Bruno Haible  <bruno@clisp.org>
84561
84562         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
84563         * lib/strstr.c: Completely rewritten, with multibyte locale support.
84564
84565 2005-08-17  Bruno Haible  <bruno@clisp.org>
84566
84567         * lib/strcasestr.h: New file.
84568         * lib/strcasestr.c: New file.
84569
84570 2005-08-17  Bruno Haible  <bruno@clisp.org>
84571
84572         * lib/strcasecmp.c: Use mbuiter.h.
84573
84574 2005-08-17  Bruno Haible  <bruno@clisp.org>
84575
84576         * lib/mbuiter.h: New file.
84577
84578 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
84579
84580         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
84581         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
84582         and gl_GETOPT are both invoked via different paths (as happens
84583         with GNU tar CVS because it uses both argp and getopt), the former
84584         wins.
84585
84586 2005-08-16  Bruno Haible  <bruno@clisp.org>
84587
84588         * modules/tls: New file.
84589         * MODULES.html.sh (Multithreading): Add tls.
84590
84591 2005-08-16  Bruno Haible  <bruno@clisp.org>
84592
84593         * modules/strnlen1: New file.
84594         * MODULES.html.sh (String handling): Add strnlen1.
84595
84596 2005-08-16  Bruno Haible  <bruno@clisp.org>
84597
84598         * modules/strcase (Files): Add m4/mbrtowc.m4.
84599         (Depends-on): Add strnlen1, mbchar.
84600
84601 2005-08-16  Bruno Haible  <bruno@clisp.org>
84602
84603         * modules/mbiter: New file.
84604         * MODULES.html.sh (Extended multibyte and wide character utilities):
84605         Add mbiter.
84606
84607 2005-08-16  Bruno Haible  <bruno@clisp.org>
84608
84609         * modules/mbfile: New file.
84610         * MODULES.html.sh (Extended multibyte and wide character utilities):
84611         Add mbfile.
84612
84613 2005-08-16  Bruno Haible  <bruno@clisp.org>
84614
84615         * modules/mbchar: New file.
84616         * MODULES.html.sh (Extended multibyte and wide character utilities):
84617         New section.
84618
84619 2005-08-16  Bruno Haible  <bruno@clisp.org>
84620
84621         * m4/tls.m4: New file, from GNU gettext.
84622
84623 2005-08-16  Bruno Haible  <bruno@clisp.org>
84624
84625         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
84626         always.
84627         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
84628
84629 2005-08-16  Bruno Haible  <bruno@clisp.org>
84630
84631         * m4/mbiter.m4: New file.
84632
84633 2005-08-16  Bruno Haible  <bruno@clisp.org>
84634
84635         * m4/mbfile.m4: New file.
84636
84637 2005-08-16  Bruno Haible  <bruno@clisp.org>
84638
84639         * m4/mbchar.m4: New file.
84640
84641 2005-08-16  Bruno Haible  <bruno@clisp.org>
84642
84643         * lib/tls.h: New file, from GNU gettext.
84644         * lib/tls.c: New file, from GNU gettext.
84645
84646 2005-08-16  Bruno Haible  <bruno@clisp.org>
84647
84648         * lib/strnlen1.h: New file.
84649         * lib/strnlen1.c: New file.
84650
84651 2005-08-16  Bruno Haible  <bruno@clisp.org>
84652
84653         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
84654         (mbi_init): Update.
84655         (mbi_avail, mbi_advance): Let the iteration end before the terminating
84656         NUL byte, not after it.
84657
84658 2005-08-16  Bruno Haible  <bruno@clisp.org>
84659
84660         * lib/strcase.h (strcasecmp): Add note in comments.
84661         * lib/strncasecmp.c: Use code from strcasecmp.c.
84662         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
84663         (strcasecmp): Work correctly in multibyte locales.
84664
84665 2005-08-16  Bruno Haible  <bruno@clisp.org>
84666
84667         * lib/mbiter.h: New file.
84668
84669 2005-08-16  Bruno Haible  <bruno@clisp.org>
84670
84671         * lib/mbfile.h: New file.
84672
84673 2005-08-16  Bruno Haible  <bruno@clisp.org>
84674
84675         * lib/mbchar.h: New file.
84676         * lib/mbchar.c: New file.
84677
84678 2005-08-16  Bruno Haible  <bruno@clisp.org>
84679
84680         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
84681         the valid ones. Makes the comparison operations transitive:
84682         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
84683         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
84684
84685 2005-08-15  Simon Josefsson  <jas@extundo.com>
84686
84687         * modules/ssize_t (License): Change to 'unlimited'.
84688
84689         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
84690
84691 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
84692
84693         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
84694         Add comments for each pending glibc patch.
84695
84696 2005-08-15  Bruno Haible  <bruno@clisp.org>
84697
84698         * lib/regex.h (__restrict_arr): Don't define to __restrict if
84699         __cplusplus is defined.
84700
84701 2005-08-14  Jim Meyering  <jim@meyering.net>
84702
84703         Sync from coreutils.
84704
84705         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
84706         Use the hash-table-based cycle-detection code not just when
84707         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
84708         Reported by James Youngman in
84709         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
84710         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
84711         FTS_TIGHT_CYCLE_CHECK.
84712         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
84713         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
84714         once again.
84715         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
84716         * lib/fts.c (fd_safer): Remove decl.
84717         Include fcntl--.h rather than unistd-safer.h
84718         (fts_safe_changedir): Don't call fd_safer; no longer needed
84719         now that we include fcntl--.h.
84720
84721 2005-08-12  Simon Josefsson  <jas@extundo.com>
84722
84723         * modules/getndelim2: Use ssize_t module.
84724         * modules/getnline: Likewise.
84725         * modules/safe-read: Likewise.
84726         * modules/xreadlink: Likewise.
84727
84728         * modules/ssize_t: New file.
84729
84730 2005-08-12  Simon Josefsson  <jas@extundo.com>
84731
84732         * m4/readline.m4: Look for termcap, curses or ncurses if required.
84733
84734 2005-08-12  Simon Josefsson  <jas@extundo.com>
84735
84736         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84737         ssize_t.
84738
84739 2005-08-12  Simon Josefsson  <jas@extundo.com>
84740
84741         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
84742         readline, getdelim and check_version.
84743         (Support for systems lacking ISO C 99: Sizes of integer types):
84744         Add size_max.
84745
84746 2005-08-12  Bruno Haible  <bruno@clisp.org>
84747
84748         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
84749
84750 2005-08-11  Simon Josefsson  <jas@extundo.com>
84751
84752         * modules/readline: New file.
84753
84754         * modules/strnlen (Files): Add strnlen.h.
84755
84756 2005-08-11  Simon Josefsson  <jas@extundo.com>
84757
84758         * m4/readline.m4: New file.
84759
84760 2005-08-11  Simon Josefsson  <jas@extundo.com>
84761
84762         * lib/readline.h, readline.c: New file.
84763
84764 2005-08-11  Simon Josefsson  <jas@extundo.com>
84765
84766         * doc/gnulib.texi (Initial import, Finishing touches): Mention
84767         gl_AVOID.
84768
84769 2005-08-11  Bruno Haible  <bruno@clisp.org>
84770
84771         * lib/strnlen.h (strnlen): Change parameter name to match comment.
84772
84773 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
84774
84775         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
84776
84777 2005-08-10  Simon Josefsson  <jas@extundo.com>
84778
84779         * tests/test-iconvme.c: New file.
84780
84781 2005-08-10  Simon Josefsson  <jas@extundo.com>
84782
84783         * m4/strnlen.m4: New file.
84784
84785         * m4/strndup.m4: Don't check for strnlen declaration, done in
84786         strnlen.m4.
84787
84788 2005-08-10  Simon Josefsson  <jas@extundo.com>
84789
84790         * lib/strndup.c: Use strnlen.h.
84791
84792         * lib/strnlen.h: New file.
84793
84794 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
84795
84796         * README: Typos.
84797
84798 2005-08-02  Simon Josefsson  <jas@extundo.com>
84799
84800         * modules/readline: New file.
84801
84802 2005-08-02  Simon Josefsson  <jas@extundo.com>
84803
84804         * modules/getdelim: New file.
84805
84806         * modules/getline: Rewrite, don't use getndelim2.
84807
84808 2005-08-02  Simon Josefsson  <jas@extundo.com>
84809
84810         * m4/getline.m4: Separate out getdelim stuff into separate module.
84811
84812         * m4/getdelim.m4: New file.
84813
84814 2005-08-02  Simon Josefsson  <jas@extundo.com>
84815
84816         * lib/getline.h, getline.c: Rewrite.
84817
84818         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
84819
84820 2005-07-31  Bruno Haible  <bruno@clisp.org>
84821
84822         * lib/lock.h (gl_lock_initializer): New macro.
84823         (gl_lock_define_initialized): Use it.
84824         (gl_rwlock_initializer): New macro.
84825         (gl_rwlock_define_initialized): Use it.
84826         (gl_recursive_lock_initializer): New macro.
84827         (gl_recursive_lock_define_initialized): Use it.
84828
84829 2005-07-30  Karl Berry  <karl@gnu.org>
84830
84831         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
84832         Report from Ben Pfaff, regarding getopt.
84833
84834 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
84835
84836         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
84837         normal way.
84838         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
84839         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
84840         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
84841         (gl_GETOPT): Use the new macros.  Most of the implementation
84842         is moved to the new macros.  This is for programs like Emacs
84843         that don't want all the functionality of gl_GETOPT.
84844
84845 2005-07-26  Bruno Haible  <bruno@clisp.org>
84846
84847         * m4/lock.m4: Update from GNU gettext.
84848
84849 2005-07-26  Bruno Haible  <bruno@clisp.org>
84850
84851         * lib/lock.h: Update from GNU gettext.
84852         * lib/lock.c: Update from GNU gettext.
84853
84854 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
84855
84856         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
84857         obsolescent AC_TRY_RUN.  Include the default includes files, for
84858         'exit'.
84859
84860 2005-07-24  Bruno Haible  <bruno@clisp.org>
84861
84862         * modules/visibility: New file.
84863         * MODULES.html.sh (Misc): Add visibility.
84864
84865 2005-07-24  Bruno Haible  <bruno@clisp.org>
84866
84867         * m4/visibility.m4: New file.
84868
84869 2005-07-24  Bruno Haible  <bruno@clisp.org>
84870
84871         * doc/visibility.texi: New file.
84872
84873 2005-07-22  Bruno Haible  <bruno@clisp.org>
84874
84875         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
84876         $(ALLOCA_H), redundant through BUILT_SOURCES.
84877         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
84878         redundant through BUILT_SOURCES.
84879         * modules/byteswap (Makefile.am): Remove explicit dependency on
84880         $(BYTESWAP_H), redundant through BUILT_SOURCES.
84881         * modules/fnmatch (Makefile.am): Remove explicit dependency on
84882         $(FNMATCH_H), redundant through BUILT_SOURCES.
84883         * modules/getopt (Makefile.am): Remove explicit dependency on
84884         $(GETOPT_H), redundant through BUILT_SOURCES.
84885         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
84886         redundant through BUILT_SOURCES.
84887         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
84888         redundant through BUILT_SOURCES.
84889         * modules/stdbool (Makefile.am): Remove explicit dependency on
84890         $(STDBOOL_H), redundant through BUILT_SOURCES.
84891         * modules/stdint (Makefile.am): Remove explicit dependency on
84892         $(STDINT_H), redundant through BUILT_SOURCES.
84893         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
84894         Remove explicit dependency on $(SYSEXITS_H).
84895         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
84896
84897 2005-07-18  Simon Josefsson  <jas@extundo.com>
84898
84899         * lib/check-version.c (check_version): Accept identical versions too.
84900
84901 2005-07-18  Bruno Haible  <bruno@clisp.org>
84902
84903         * modules/lock: New file.
84904         * MODULES.html.sh (Multithreading): New section.
84905
84906 2005-07-18  Bruno Haible  <bruno@clisp.org>
84907
84908         * m4/lock.m4: New file, from GNU gettext.
84909
84910 2005-07-18  Bruno Haible  <bruno@clisp.org>
84911
84912         * lib/lock.h: New file, from GNU gettext.
84913         * lib/lock.c: New file, from GNU gettext.
84914
84915 2005-07-18  Bruno Haible  <bruno@clisp.org>
84916
84917         * lib/lock.h (gl_once_t): New type.
84918         (gl_once_define, gl_once): New macros.
84919         * lib/lock.c (fresh_once): New variable.
84920         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
84921         functions.
84922
84923 2005-07-16  Simon Josefsson  <jas@extundo.com>
84924
84925         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
84926         workaround, suggested by Bruno.
84927
84928 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
84929
84930         * modules/xalloc (Depends-on): Add xalloc-die.
84931         * modules/xvasprintf (Depends-on): Add xalloc-die.
84932
84933 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
84934
84935         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
84936         with a minor change.
84937
84938 2005-07-15  Bruno Haible  <bruno@clisp.org>
84939
84940         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
84941         When using lib/poll.c, define poll as rpl_poll.
84942
84943 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
84944
84945         * modules/argp (Depends-on): Remove unlocked-io.
84946
84947 2005-07-14  Derek Price  <derek@ximbiot.com>
84948
84949         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
84950         for glob symlink bug.
84951
84952 2005-07-14  Bruno Haible  <bruno@clisp.org>
84953
84954         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
84955         Instead, test for *_unlocked function declarations directly.
84956
84957 2005-07-11  Simon Josefsson  <jas@extundo.com>
84958
84959         * modules/size_max: New file.
84960
84961         * modules/xsize: Depend on size_max module for size_max.m4.
84962
84963 2005-07-11  Simon Josefsson  <jas@extundo.com>
84964
84965         * lib/size_max.h: New file.
84966
84967 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
84968
84969         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
84970         copyright symbol and the year.
84971         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
84972         (version_etc_va): Use parameterized copyright notice.
84973         Reword to conform to the current GNU coding standards.
84974
84975 2005-07-11  Karl Berry  <karl@gnu.org>
84976
84977         * doc/gnulib.texi (Quoting): new node.
84978         (Initial import): more info, from Patrice.
84979
84980 2005-07-11  Bruno Haible  <bruno@clisp.org>
84981
84982         * gnulib-tool (func_usage): Document option --avoid.
84983         (Command line options): Handle --avoid.
84984         (func_acceptable): New function.
84985         (func_modules_transitive_closure): Use it.
84986
84987 2005-07-11  Bruno Haible  <bruno@clisp.org>
84988
84989         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
84990         Reported by Jim Meyering.
84991
84992 2005-07-10  Bruno Haible  <bruno@clisp.org>
84993
84994         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
84995         Needed when size_t is smaller than 'unsigned int'.
84996         Reported by Paul Eggert.
84997
84998 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
84999
85000         * modules/argp (Depends-on): Add unlocked-io
85001
85002 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
85003
85004         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
85005         block of defines.
85006
85007 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
85008
85009         * config/srclist.txt: Comment out regcomp.c, since we have a porting
85010         fix now.
85011
85012 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
85013         and Paul Eggert  <eggert@cs.ucla.edu>
85014
85015         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
85016         in wint_t, not wchar_t.  Remove now-unnecessary cast.
85017
85018 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
85019
85020         * modules/regex (Files): Add lib/regex_internal.c,
85021         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
85022         (Depends-on): Add extensions.
85023         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
85024
85025 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
85026
85027         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
85028         pathconf.
85029         * m4/same.m4 (gl_SAME): Likewise.
85030         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
85031
85032         * m4/regex.m4: Adjust to new libc regex implementation.
85033         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
85034         all the .c and .h parts of (the new) regex.
85035         Quote the m4 stuff better.
85036         Check for RE_ICASE bug of old gnulib.
85037         Check for REG_STARTEND of recent libc.
85038         Rename local variables from jm_* to gl_*.
85039         Quote operand of "test -f".
85040         Say "recent enough" version of libc, not "version 2".
85041         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
85042         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
85043         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
85044         Remove check for btowc, isascii.
85045         Require AM_LANGINFO_CODESET.
85046
85047 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
85048
85049         * lib/regex.c, regex.h: Sync from libc.
85050         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
85051         * lib/regexec.c:
85052         New files, synced from libc, except that regex_internal.h
85053         currently has a small porting fix.
85054
85055 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
85056
85057         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
85058         regex_internal.c, regexec.c.
85059         Add regex_internal.h too, but as a comment, since the libc version
85060         is currently broken in gnulib mode.
85061
85062 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
85063
85064         Support programs like Emacs that use gnulib but not gettext.
85065         * MODULES.html.sh (Internationalization functions): Add gettext-h.
85066         * modules/gettext-h: New file.
85067         * modules/gettext (Files): Remove lib/gettext.h.
85068         (Depends-on): Add gettext-h.
85069         (Makefile.am): Remove lib_SOURCES.
85070         * modules/argmatch, modules/c-stack, modules/closeout:
85071         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
85072         * modules/execute, modules/file-type, modules/getaddrinfo:
85073         * modules/getopt, modules/human, modules/javacomp:
85074         * modules/javaexec, modules/mkdir-p, modules/obstack:
85075         * modules/openat, modules/pagealign_alloc, modules/pipe:
85076         * modules/quotearg, modules/regex, modules/rpmatch:
85077         * modules/unicodeio, modules/userspec, modules/version-etc:
85078         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
85079         * modules/xsetenv:
85080         Depend on gettext-h, not gettext.
85081
85082 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
85083
85084         * gnulib-tool (func_import): Add support for 'public domain' license.
85085         * modules/alloca, modules/atexit, modules/memmove:
85086         Now public domain, not GPL.
85087         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
85088         * modules/realloc, modules/strerror, modules/strtod:
85089         Now LGPL, not GPL.
85090
85091 2005-07-05  Bruno Haible  <bruno@clisp.org>
85092
85093         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
85094         autoconf CVS. Needed for mingw.
85095
85096 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
85097
85098         Remove the dependency of the strftime module on the tzset module.
85099         * modules/strftime (Depends-on): Remove dependency on tzset.
85100
85101 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
85102
85103         Remove the dependency of the strftime module on the tzset module.
85104         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
85105         gl_FUNC_TZSET_CLOBBER.
85106
85107 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
85108
85109         Remove the dependency of the strftime module on the tzset module.
85110         * lib/strftime.c (my_strftime)
85111         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
85112         Copy the input structure, to work around some of the bug with
85113         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
85114         Solaris releases, you should also use the tzset module, but we won't
85115         require it as a dependency any more since we don't want LGPLed code
85116         to depend on GPLed code.
85117
85118 2005-07-02  Jim Meyering  <jim@meyering.net>
85119
85120         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
85121         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
85122         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
85123         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
85124
85125 2005-07-02  Jim Meyering  <jim@meyering.net>
85126
85127         * lib/backupfile.c (backup_args): Change a `0' to NULL.
85128
85129 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
85130
85131         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
85132         declares only 'struct timespec;' (!).
85133
85134 2005-07-01  Jim Meyering  <jim@meyering.net>
85135
85136         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
85137         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
85138         * lib/save-cwd.c, tempname.c:
85139         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
85140         and don't include <sys/file.h>).
85141
85142 2005-06-29  Jim Meyering  <jim@meyering.net>
85143
85144         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
85145         type name.  Use the variable name instead.
85146         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
85147         Likewise.
85148
85149 2005-06-28  Simon Josefsson  <jas@extundo.com>
85150
85151         * modules/check-version (Files): Add check-version.m4.
85152
85153 2005-06-28  Simon Josefsson  <jas@extundo.com>
85154
85155         * m4/check-version.m4: New file, suggested by Jim Meyering
85156         <jim@meyering.net>.
85157
85158 2005-06-28  Simon Josefsson  <jas@extundo.com>
85159
85160         * lib/check-version.h, lib/check-version.c: New files.
85161
85162 2005-06-28  Simon Josefsson  <jas@extundo.com>
85163
85164         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
85165         collision with global variable.  Better indentation.  Don't
85166         increment buffer pointer beyond buffer end.  Based on comments
85167         from Paul Eggert <eggert@cs.ucla.edu>.
85168
85169         * lib/base64.h: Indent.
85170
85171 2005-06-28  Simon Josefsson  <jas@extundo.com>
85172
85173         * doc/gnulib.texi (Library version handling): New section.
85174
85175 2005-06-28  Jim Meyering  <jim@meyering.net>
85176
85177         * check-module (find_included_lib_files): Hard-code another
85178         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
85179         but modules/fts-lgpl (correctly) does not list those files.
85180
85181         * modules/canonicalize (Files): Add lib/pathmax.h.
85182
85183 2005-06-25  Simon Josefsson  <jas@extundo.com>
85184
85185         * modules/check-version: New file.
85186
85187 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
85188
85189         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
85190         initializer of struct addrinfo, as an indication that we don't
85191         care how many members the structure has.
85192
85193 2005-06-24  Derek Price  <derek@ximbiot.com>
85194         and Bruno Haible  <bruno@clisp.org>
85195
85196         Remove stat module & update lstat.
85197         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
85198         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
85199         * m4/stat.m4: Remove this file.
85200
85201 2005-06-24  Derek Price  <derek@ximbiot.com>
85202         and Bruno Haible  <bruno@clisp.org>
85203
85204         Remove stat module & update lstat.
85205         * lib/stat.c: Remove this file...
85206         (slash_aware_lstat): ...moving this content and its support...
85207         * lib/lstat.c (rpl_lstat): ...into here.
85208         * lib/lstat.h: New file.
85209
85210 2005-06-24  Derek Price  <derek@ximbiot.com>
85211         and Bruno Haible  <bruno@clisp.org>
85212
85213         Remove stat module & update lstat.
85214         * config/srclist.txt (libc sources): Remove stat.
85215
85216 2005-06-24  Derek Price  <derek@ximbiot.com>
85217         and Bruno Haible  <bruno@clisp.org>
85218
85219         Remove stat module & update lstat.
85220         * MODULES.html.sh (stat): Remove.
85221         * MODULES.html: Regenerated.
85222         * modules/lstat (Description): Correct function name.
85223         (Files): Add "lstat.h".
85224         (Depends-on): Remove stat, add xalloc, stat-macros.
85225         * modules/stat: Remove this file.
85226         (Include): Add "lstat.h", remove <sys/stat.h>.
85227
85228 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
85229
85230         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
85231         (ranged_convert): Don't save conversion in a temporary struct.
85232         This causes a warning with GCC 4.0.0, and anyway in the typical
85233         case it's not worth the extra 100 bytes or so of code.
85234         (ranged_convert, __mktime_internal): When calling a function via a
85235         pointer P, use P () rather than (*P) (), as we now assume C89 or
85236         better.
85237
85238 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85239
85240         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
85241         "who -r" failed to give output.  Problem reported by Tim Waugh.
85242
85243         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
85244         (xcalloc): Use it to avoid needless tests.
85245         Problem reported by Jim Meyering.
85246
85247 2005-06-20  Derek Price  <derek@ximbiot.com>
85248
85249         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
85250         unnecessary for Autoconfs > 2.59c.
85251
85252 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85253
85254         * lib/argp.h (__option_is_short): Check upper limit of
85255         __key. Isprint() requires its argument to have the value
85256         of an unsigned char or EOF.
85257
85258 2005-06-16  Jim Meyering  <jim@meyering.net>
85259
85260         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
85261         when either N or S is zero.
85262
85263 2005-06-16  Derek Price  <derek@ximbiot.com>
85264
85265         * m4/bison.m4: Declare YACC & YFLAGS precious.
85266
85267 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
85268
85269         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
85270         multibyte string or pattern, fall back on unibyte matching.
85271         Problem reported by James Youngman.
85272
85273 2005-06-08  Bruno Haible  <bruno@clisp.org>
85274
85275         * modules/csharpcomp: New file.
85276         * MODULES.html.sh (C#): Add csharpcomp.
85277
85278 2005-06-08  Bruno Haible  <bruno@clisp.org>
85279
85280         * m4/csharpcomp.m4: New file, from GNU gettext.
85281
85282 2005-06-08  Bruno Haible  <bruno@clisp.org>
85283
85284         * lib/csharpcomp.h: New file, from GNU gettext.
85285         * lib/csharpcomp.c: New file, from GNU gettext.
85286         * lib/csharpcomp.sh.in: New file, from GNU gettext.
85287
85288 2005-06-08  Bruno Haible  <bruno@clisp.org>
85289
85290         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
85291         warning on mingw.
85292
85293 2005-06-07  Derek Price  <derek@ximbiot.com>
85294
85295         Sync from CVS.
85296         * lib/glob_.h: Indent nested #ifdef.
85297
85298 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
85299
85300         Sync from coreutils.
85301         Use "file name" when talking about file names, instead of "filename"
85302         or "path", as per the GNU coding standards.
85303         * lib/mkdir-p.c: Renamed from makepath.c.
85304         (make_dir_parents): Renamed from make_path.  All callers changed.
85305         * lib/mkdir-p.h: Likewise.  All includers changed.
85306         * lib/filenamecat.c: Renamed from path-concat.c.
85307         (file_name_concat): Renamed from path_concat.  All callers changed.
85308         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
85309         * lib/filenamecat.h: Likewise.  All includers changed.
85310         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
85311         in comments or local variable names.
85312         * lib/basename.c: Likewise.
85313         * lib/canonicalize.c, canonicalize.h: Likewise.
85314         * lib/dirname.c, dirname.h: Likewise.
85315         * lib/euidaccess.c: Likewise.
85316         * lib/exclude.c: Likewise
85317         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
85318         * lib/fsusage.c, fsuage.h: Likewise.
85319         * lib/fts.c, fts_.h: Likewise.
85320         * lib/getcwd.c: Likewise.
85321         * lib/getloadavg.c: Likewise.
85322         * lib/mkstemp.c: Likewise.
85323         * lib/mountlist.c, mountlist.h: Likewise.
85324         * lib/openat.c, openat.h: Likewise.
85325         * lib/readlink-stub.c: Likewise.
85326         * lib/readutmp.c, readutmp.h: Likewise.
85327         * lib/rename.c: Likewise.
85328         * lib/rmdir.c: Likewise.
85329         * lib/same.c: Likewise.
85330         * lib/savedir.c: Likewise.
85331         * lib/stripslash.c: Likewise.
85332         * lib/tempname.c: Likewise.
85333         * lib/xreadlink.c: Likewise.
85334         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
85335         All uses changed.
85336         * lib/exclude.h: Likewise.
85337
85338         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
85339         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
85340         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
85341         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
85342         * lib/pathmax.h: Include <limits.h> unconditionally, since other
85343         files have been getting away with it for years (MORE/BSD 4.3
85344         is extinct now).
85345         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
85346         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
85347
85348         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
85349         Define to 256, not 255, as per modern POSIX.
85350
85351 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
85352
85353         Sync from coreutils.
85354         Use "file name" when talking about file names, instead of "filename"
85355         or "path", as per the GNU coding standards.
85356         * MODULES.html.sh: mkdir-p renamed from makepath.
85357         filenamecat renamed from path-concat.
85358         * modules/filenamecat: Renamed from modules/path-concat.
85359         (Files): filenamecat.h and filenamecat.c renamed from
85360         path-concat.h and path-concat.c.
85361         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
85362         (Include): filenamecat.h, not path-concat.h.
85363         * modules/mkdir-p: Renamed from modules/makepath.
85364         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
85365         makepath.c.
85366         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
85367         (Include): mkdir-p.h, not makepath.h.
85368
85369 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
85370
85371         Sync from coreutils.
85372         * m4/mkdir-p.m4: Renamed from makepath.m4.
85373         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
85374         Rename files from makepath.c to mkdir-p.c, and from
85375         makepath.h to mkdir-p.h.
85376         * m4/filenamecat.m4: Renamed from path-concat.m4.
85377         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
85378         Rename files from path-concat.c to filenamecat.c,
85379         and from path-concat.h to filenamecat.h.
85380         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
85381         "file name" in local variables or comments.
85382         * m4/rename.m4: Likewise.
85383
85384 2005-06-01  Bruno Haible  <bruno@clisp.org>
85385
85386         * modules/csharpexec: New file.
85387         * MODULES.html.sh (C#): New section.
85388
85389 2005-06-01  Bruno Haible  <bruno@clisp.org>
85390
85391         * m4/csharp.m4: New file, from GNU gettext.
85392         * m4/csharpexec.m4: New file, from GNU gettext.
85393
85394 2005-06-01  Bruno Haible  <bruno@clisp.org>
85395
85396         * lib/csharpexec.h: New file, from GNU gettext.
85397         * lib/csharpexec.c: New file, from GNU gettext.
85398         * lib/csharpexec.sh.in: New file, from GNU gettext.
85399
85400 2005-05-31  Derek Price  <derek@ximbiot.com>
85401             Paul Eggert  <eggert@cs.ucla.edu>
85402
85403         Sync from cvs.
85404         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
85405
85406 2005-05-31  Derek Price  <derek@ximbiot.com>
85407             Paul Eggert  <eggert@cs.ucla.edu>
85408
85409         Sync from cvs.
85410         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
85411
85412 2005-05-29  Derek Price  <derek@ximbiot.com>
85413
85414         * config/srclist.txt (glob_.h, glob.c): Add these files.
85415
85416 2005-05-29  Derek Price  <derek@ximbiot.com>
85417
85418         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
85419         * modules/glob: New file.
85420         * modules/getlogin_r: Add link to POSIX spec in description.
85421
85422 2005-05-29  Derek Price  <derek@ximbiot.com>
85423             Paul Eggert  <eggert@cs.ucla.edu>
85424
85425         * m4/glob.m4: New file.
85426
85427 2005-05-29  Derek Price  <derek@ximbiot.com>
85428             Paul Eggert  <eggert@cs.ucla.edu>
85429
85430         * lib/glob_.h, lib/glob.c: New files.
85431
85432 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
85433
85434         * modules/fts (Files): Remove m4/inttypes-pri.m4.
85435         * modules/fts-lgpl (Depends-on): Remove gettext.
85436
85437 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
85438
85439         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
85440         and don't require gt_INTTYPES_PRI.
85441
85442 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
85443
85444         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
85445
85446         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
85447         the configuration hassle isn't worth it.
85448         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
85449         (LONGEST_MODIFIER, PRIuMAX): Remove.
85450
85451 2005-05-27  Bruno Haible  <bruno@clisp.org>
85452
85453         * lib/getlogin_r.h: Remove second include of <stddef.h>.
85454
85455 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
85456
85457         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
85458         _POSIX_PTHREAD_SEMANTICS for Solaris.
85459
85460 2005-05-25  Derek Price  <derek@ximbiot.com>
85461
85462         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
85463
85464 2005-05-25  Derek Price  <derek@ximbiot.com>
85465             Paul Eggert  <eggert@cs.ucla.edu>
85466
85467         * modules/getlogin_r, m4/getlogin_r.m4: New files.
85468         * lib/getlogin_r.c, getlogin_r.h: New files.
85469
85470 2005-05-25  Bruno Haible  <bruno@clisp.org>
85471             Derek Price  <derek@ximbiot.com>
85472
85473         * lib/getlogin_r.h: Simplify API documentation.
85474
85475 2005-05-23  Derek Price  <derek@ximbiot.com>
85476
85477         * modules/minmax (Files): Add m4/minmax.m4.
85478         (configure.ac): Add gl_MINMAX.
85479
85480 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
85481
85482         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
85483         so that unistd-safer.h (GPL'ed code) need not be included.
85484
85485 2005-05-22  Bruno Haible  <bruno@clisp.org>
85486
85487         * m4/minmax.m4: New file.
85488         Based on a patch by Derek Price <derek@ximbiot.com>.
85489
85490 2005-05-22  Bruno Haible  <bruno@clisp.org>
85491
85492         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
85493         (INT64_MIN): Fix definition.
85494         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
85495
85496         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
85497         NEED_SIGNED_INT_TYPES.
85498
85499         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
85500         HAVE_SYSTEM_INTTYPES.
85501
85502 2005-05-22  Bruno Haible  <bruno@clisp.org>
85503
85504         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
85505         Also include <sys/param.h> if it defines MIN, MAX.
85506         Based on a patch by Derek Price <derek@ximbiot.com>.
85507
85508 2005-05-21  Jim Meyering  <jim@meyering.net>
85509
85510         * modules/fts (Files): Add m4/inttypes-pri.m4.
85511         (Depends-on): Add lstat and remove gettext.  Alphabetize.
85512
85513 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
85514
85515         New fts module.
85516         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
85517         (setup_dir, free_dir): New functions.
85518         (enter_dir, leave_dir): Define trivial
85519         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
85520         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
85521         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
85522         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
85523         Move to fts-cycle.c.
85524         (fts_open): Use setup_dir.
85525         (fts_close): Use free_dir.
85526         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
85527         This adds a label and some gotos, but the alternatives were messier.
85528         Check for memory allocation failure when entering a dir.
85529         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
85530         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
85531         (FTS): New member fts_cycle, that is a union that contains the
85532         old active_dir_ht and cycle_state.  All uses changed to mention
85533         fts_cycle.ht and fts_cycle.state.
85534         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
85535         fts.c, with the following changes:
85536         (setup_dir, free_dir): New functions.
85537         (enter_dir): Now returns bool.  Return true if successful, false
85538         if memory exhausted.  All callers changed.
85539         Do not bother partly cleaning up on
85540         memory allocation failure; that is free_dir's job.
85541         However, free ad if hash_insert fails, to avoid memory leak.
85542         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
85543         fts->fts_options to see which union member to use.
85544
85545 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
85546
85547         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
85548         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
85549
85550 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
85551
85552         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
85553
85554 2005-05-20  Jim Meyering  <jim@meyering.net>
85555
85556         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
85557         Now a macro, to pacify GCC.
85558
85559 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
85560
85561         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
85562         of -1.
85563
85564 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
85565
85566         * lib/chown.c (rpl_chown): Return -1 on failure.
85567
85568 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
85569
85570         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
85571         Don't check for stddef.h.
85572         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
85573         don't use its results.
85574         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
85575         since we include them unconditionally.  Don't require
85576         AM_STDBOOL_H, since stdbool is a prerequisite.
85577         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
85578         since we assume C89 or better.
85579         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
85580         as we don't use their results.
85581         Don't check for fchdir, memmove, memset, strrchr, as we use
85582         them unconditionally.
85583         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
85584         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
85585
85586 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
85587
85588         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
85589         Include <stddef.h> unconditionally, since we assume C89 now.
85590         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
85591         * lib/fts.c: Include fts_.h first, to check interface.
85592         Do not include intprops.h; no longer needed.
85593         Include cycle-check.h and hash.h, since fts_.h no longer does.
85594         Remove unnecessary casts of closedir to void.
85595         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
85596         decide whether to decrement nlinks.
85597         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
85598         (FTS): Use struct hash_table * instead of Hash_table, so that
85599         we no longer need to include hash.h here.
85600
85601 2005-05-18  Jim Meyering  <jim@meyering.net>
85602
85603         * modules/dirfd (License): Change to LGPL.  Most of the code
85604         is already in the public domain.
85605
85606 2005-05-18  Jim Meyering  <jim@meyering.net>
85607
85608         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
85609         Reported by Yoann Vandoorselaere.
85610
85611 2005-05-17  Jim Meyering  <jim@meyering.net>
85612
85613         * m4/fts.m4: New file, from coreutils.
85614
85615 2005-05-17  Jim Meyering  <jim@meyering.net>
85616
85617         * lib/fts.c, lib/fts_.h: New files, from coreutils.
85618
85619 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
85620
85621         Sync from coreutils.
85622         * m4/unlinkdir.m4: New file.
85623
85624 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
85625
85626         Sync from coreutils.
85627         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
85628         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
85629         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
85630         White space changes only.
85631         * lib/makepath.c (make_path): Port to hosts where leading "//" is
85632         special.
85633         * lib/yesno.c: Include getline.h, not ctype.h.
85634         (yesno): Don't remove leading white space; POSIX doesn't allow it.
85635         Use getline to remove arbitrary restriction on response length.
85636
85637 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
85638
85639         * config/srclist-update: Spell out "Street" in FSF postal
85640         mail address; this is the style the FSF seems to prefer.
85641
85642         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
85643         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
85644         this updates FSF postal mail address.
85645
85646         Sync from coreutils.
85647         * modules/unlinkdir: New file.
85648         * modules/yesno (Depends-on): Add getline.
85649         * MODULES.html.sh (File system functions): Add unlinkdir.
85650
85651 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
85652
85653         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
85654         lib/strsep.h:
85655         Change the initial comment to refer to GPL, not LGPL.
85656         gnulib-tool will change it to LGPL as needed.
85657
85658         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
85659         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
85660         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
85661         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
85662         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
85663         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
85664         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
85665         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
85666         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
85667         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
85668         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
85669         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
85670         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
85671         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
85672         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
85673         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
85674         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
85675         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
85676         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
85677         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
85678         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
85679         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
85680         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
85681         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
85682         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
85683         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
85684         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
85685         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
85686         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
85687         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
85688         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
85689         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
85690         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
85691         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
85692         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
85693         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
85694         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
85695         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
85696         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
85697         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
85698         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
85699         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
85700         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
85701         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
85702         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
85703         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
85704         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
85705         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
85706         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
85707         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
85708         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
85709         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
85710         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
85711         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
85712         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
85713         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
85714         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
85715         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
85716         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
85717         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
85718         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
85719         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
85720         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
85721         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
85722         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
85723         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
85724         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
85725         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
85726         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
85727         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
85728         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
85729         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
85730         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
85731         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
85732         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
85733         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
85734         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
85735         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
85736         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
85737         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
85738         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
85739         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
85740         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
85741         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
85742         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
85743         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
85744         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
85745         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
85746         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
85747         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
85748         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
85749         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
85750         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
85751         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
85752         lib/yesno.c, lib/yesno.h:
85753         Update FSF postal mail address.
85754
85755 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
85756
85757         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
85758         tests/test-memmem.c, tests/test-stpncpy.c:
85759         Update FSF postal mail address.
85760
85761 2005-05-13  Bruno Haible  <bruno@clisp.org>
85762
85763         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
85764         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
85765         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
85766         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
85767         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
85768         Add support for 64-bit integers in the MSVC compiler.
85769
85770 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85771
85772         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
85773
85774 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
85775
85776         * gnulib-tool (func_import): Sort and uniquify recommended includes.
85777
85778 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
85779
85780         * doc/getdate.texi (General date syntax): Don't say that date
85781         date --iso-8601=ns generates acceptable dates; it doesn't yet.
85782         Problem reported by Nic Ferrier.
85783
85784 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
85785
85786         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
85787         specified in ai_socktype. Fix invalid ai_protocol
85788         check. ai_protocol is usually set to 0 or depending on
85789         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
85790         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
85791         ai_socktype / ai_protocol in the returned addrinfo structure.
85792
85793 2005-05-10  Simon Josefsson  <jas@extundo.com>
85794
85795         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
85796         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
85797
85798 2005-05-10  Karl Berry  <karl@gnu.org>
85799
85800         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
85801         (from http://www.gnu.org/licenses).
85802         * doc/COPYING.LIB: also rename to COPYING.LESSER.
85803         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
85804         fdl.texi suffices.
85805
85806 2005-05-10  Karl Berry  <karl@gnu.org>
85807
85808         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
85809         (COPYING.DOC): remove.
85810
85811         * config/srclist-update: new FSF address.
85812
85813 2005-05-10  Derek Price  <derek@ximbiot.com>
85814
85815         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
85816         possible.
85817
85818 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
85819             Bruno Haible  <bruno@clisp.org>
85820
85821         * modules/inet_ntop: New file.
85822         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85823         inet_ntop.
85824
85825 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
85826             Bruno Haible  <bruno@clisp.org>
85827
85828         * m4/inet_ntop.m4: New file.
85829
85830 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
85831             Bruno Haible  <bruno@clisp.org>
85832
85833         * lib/inet_ntop.h: New file.
85834         * lib/inet_ntop.c: New file, from glibc with modifications.
85835
85836 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
85837
85838         * modules/time_r (License): Change to LGPL.
85839         * modules/extensions (License): Change to LGPL.  Actually,
85840         the license is more permissive than that, but currently gnulib-tool
85841         doesn't know how to handle more-permissive licenses.
85842
85843         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
85844         Problem reported by Dave Love.
85845
85846 2005-05-08  Jim Meyering  <jim@meyering.net>
85847
85848         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
85849         blank.
85850
85851 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
85852
85853         * modules/argmatch (Depends-on): Add stdbool.
85854         * modules/backupfile (Depends-on): Likewise.
85855         * modules/chdir-long (Depends-on): Likewise.
85856         * modules/closeout (Depends-on): Likewise.
85857         * modules/cycle-check (Depends-on): Likewise.
85858         * modules/dirname (Depends-on): Likewise.
85859         * modules/fnmatch (Depends-on): Likewise.
85860         * modules/fsusage (Depends-on): Likewise.
85861         * modules/fwriteerror (Depends-on): Likewise.
85862         * modules/getcwd (Depends-on): Likewise.
85863         * modules/getloadavg (Depends-on): Likewise.
85864         * modules/hard-locale (Depends-on): Likewise.
85865         * modules/makepath (Depends-on): Likewise.
85866         * modules/mountlist (Depends-on): Likewise.
85867         * modules/nanosleep (Depends-on): Likewise.
85868         * modules/posixtm (Depends-on): Likewise.
85869         * modules/quotearg (Depends-on): Likewise.
85870         * modules/readtokens (Depends-on): Likewise.
85871         * modules/readtokens0 (Depends-on): Likewise.
85872         * modules/readutmp (Depends-on): Likewise.
85873         * modules/save-cwd (Depends-on): Likewise.
85874         * modules/strftime (Depends-on): Likewise.
85875         * modules/userspec (Depends-on): Likewise.
85876         * modules/utimecmp (Depends-on): Likewise.
85877         * modules/xgetcwd (Depends-on): Likewise.
85878         * modules/xnanosleep (Depends-on): Likewise.
85879         * modules/xstrtod (Depends-on): Likewise.
85880         * modules/yesno (Depends-on): Likewise.
85881
85882 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
85883
85884         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
85885         needless checks.
85886
85887 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
85888
85889         Merge from coreutils.  Among other things,
85890         add bulletproofing for cases where stdin, stdout, or stderr are closed.
85891         * lib/fd-safer.c: New file.
85892         * lib/fcntl-safer.h, open-safer.c: Remove.
85893         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
85894         * lib/dup-safer.c: Include unistd-safer.h first.
85895         Don't include errno.h.
85896         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
85897         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
85898         * lib/file-type.c: Rely on file-type.h change.
85899         * lib/getloadavg.c: Include unistd-safer.h.
85900         (getloadavg): Use safer open.
85901         * lib/getusershell.c: Include "stdio-safer.h".
85902         (getusershell): Use safer fopen.
85903         * lib/long-options.c (long_options): Use NULL rather than 0.
85904         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
85905         'free'.
85906         * lib/modechange.c: Likewise.
85907         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
85908         (MODE_DONE): New constant.
85909         (struct mode_change): Remove 'next' member.
85910         (make_node_op_equals): New function; like the old one of the
85911         same name, except it allocates an array.
85912         (mode_compile, mode_create_from_ref): Use it.
85913         (mode_compile): Allocate result as an array, not a linked list.
85914         Parse octal string ourself, so that we catch mistakes like "+0".
85915         (mode_adjust): Arg is an array, not a linked list.
85916         * lib/modechange.c: Include stat-macros.h, xalloc.h.
85917         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
85918         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
85919         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
85920         Remove.  This is now stat-macros.h's job.
85921         (talloc): Remove.  All callers replaced by xalloc, so that
85922         our invokers don't have to worry about reporting memory failures.
85923         (make_node_op_equals): Remove.
85924         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
85925         New constants.
85926         (struct mode_change): Moved here from modechange.h.
85927         (mode_append_entry): Remove.
85928         (mode_compile): Remove MASKED_OPS arg, since it encouraged
85929         apps to have incorrect behavior.  Use simpler algorithm for head
85930         and tail.  Don't futz with umask; that's now the job of mode_adjust.
85931         Detect more invalid usages rather than having somewhat-random behavior.
85932         Don't insert an "a=" action, as that leads to incorrect behavior.
85933         (mode_compile, mode_create_from_ref): Return NULL on error instead
85934         of an enum, since now there's only one way to have an error.  All
85935         callers changed.
85936         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
85937         at the correct time.  Simplify calculation of "+u" and its ilk.
85938         Don't mishandle "+X".
85939         (mode_free): Remove "register" and localize decls.
85940         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
85941         (struct mode_change): Move to modechange.c; callers don't
85942         need to see this stuff.
85943         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
85944         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
85945         (mode_change, mode_adjust): Reflect the new signatures noted above.
85946         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
85947         that might redefine system include files.
85948         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
85949         (my_usleep): Use NULL rather than (void *) 0.
85950         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
85951         Use siginterrupt to specify that system calls should be interrupted.
85952         (rpl_nanosleep): Move initialization of suspended closer to call of
85953         my_usleep.
85954         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
85955         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
85956         (desirable_utmp_entry): New function.
85957         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
85958         using x2nrealloc, to simplify logic.
85959         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
85960         size calculation.  Do not assume utmp file is a regular file.
85961         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
85962         (READ_UTMP_CHECK_PIDS): New constant.
85963         * lib/save-cwd.c: Include unistd-safer.h.
85964         (save_cwd): Use fd_safer.
85965         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
85966         [!_LIBC] Include "stat-macros.h" instead.
85967         * lib/unistd-safer.h (fd_safer): New decl.
85968
85969 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
85970
85971         * modules/getloadavg (Depends-on): Add unistd-safer.
85972         * modules/getusershell (Depends-on): Add stdio-safer.
85973         * modules/lstat (Depends-on): Remove xalloc.
85974         * modules/mkstemp (Depends-on): Add stat-macros.
85975         * modules/modechange (Depends-on): Remove xstrtol.
85976         Add stat-macros, xalloc.
85977         * modules/save-cwd (Depends-on): Add unistd-safer.
85978         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
85979         * modules/unistd-safer (Files): Add lib/fd-safer.c
85980         (Makefile.am): Remove lib_SOURCES.
85981
85982         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
85983         Remove fcntl-safer; unistd-safer supersedes it.
85984
85985 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
85986
85987         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
85988         AC_HEADER_STAT.
85989         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
85990         (gl_PREREQ_CHOWN): Remove.
85991         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
85992         it.  Don't require AC_HEADER_STAT.
85993         (gl_PREREQ_LSTAT): Remove.
85994         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
85995         Don't require AC_HEADER_STAT.
85996         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
85997         (gl_PREREQ_RMDIR): Remove.
85998         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
85999         mention stat-macros.h or AC_HEADER_STAT, since we'll make
86000         the stat-macros module a prerequisite.
86001         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
86002         * m4/filemode.m4 (gl_FILEMODE): Likewise.
86003         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
86004         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
86005         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
86006         variable names.
86007         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
86008         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
86009         variable prefixes.
86010         * m4/fcntl-safer.m4: Remove.
86011         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
86012         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
86013         Invoke gl_PREREQ_FD_SAFER.
86014         (gl_PREREQ_FD_SAFER): New macro.
86015         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
86016         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
86017         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
86018         Remove duplicate call to AC_LIBOBJ(readutmp).
86019         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
86020
86021         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
86022         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
86023
86024 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
86025
86026         * MODULES.html.sh (Misc): Add byteswap.
86027
86028 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
86029
86030         * modules/getcwd (Depends-on): Add extensions.
86031         * modules/openat (Depends-on): Likewise.
86032
86033 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
86034
86035         * modules/byteswap: New file.
86036
86037 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
86038
86039         * m4/byteswap.m4: New file.
86040
86041 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
86042
86043         * lib/byteswap_.h: New file.
86044
86045 2005-04-25  Karl Berry  <karl@gnu.org>
86046
86047         * m4/gettext.m4: Update from GNU gettext 0.14.4.
86048
86049 2005-04-25  Albert Chin  <china@thewrittenword.com>
86050
86051         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
86052         Toolkit C bug.
86053
86054 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
86055
86056         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
86057         (func_ln_if_changed): Remove forcibly for no error message
86058         in case file does not exist.
86059
86060 2005-04-19  Simon Josefsson  <jas@extundo.com>
86061
86062         * gnulib-tool (Options): Make --symlink mean --symbolic.
86063
86064 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
86065
86066         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
86067
86068 2005-04-16  Simon Josefsson  <jas@extundo.com>
86069
86070         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
86071
86072 2005-04-15  Simon Josefsson  <jas@extundo.com>
86073
86074         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
86075
86076 2005-04-15  Simon Josefsson  <jas@extundo.com>
86077
86078         * gnulib-tool: Rename --symlink to --symbolic.
86079
86080 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
86081
86082         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
86083         symbolic links to files instead of copying/moving.  Add --aux-dir,
86084         specifying directory relative --dir where auxiliary build tools
86085         are placed.
86086
86087 2005-04-14  Bruno Haible  <bruno@clisp.org>
86088
86089         * modules/allocsa (License): Change to LGPL.
86090         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
86091
86092 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
86093
86094         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
86095         that "UTC +1 second" continues to work.  Problem reported
86096         by Dmitry V. Levin.
86097         (relunit_snumber): New rule.
86098         (relunit): Use it.
86099
86100 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
86101
86102         * lib/getdate.y (universal_time_zone_table): New constant.
86103         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
86104         universal_time_zone_table.
86105         (lookup_zone): Prefer universal_time_zone_table to
86106         local_time_zone_table, so that "GMT" time stamps are allowed in
86107         London during the summer.  Problem reported by Ian Abbott.
86108
86109 2005-04-12  Jim Meyering  <jim@meyering.net>
86110
86111         * lib/human.c (humblock): Set *options even when returning due to
86112         xstrtoumax conversion failure.  Thanks to a used-uninitialized
86113         warning from gcc-4.
86114
86115 2005-04-09  Jim Meyering  <jim@meyering.net>
86116
86117         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
86118         -Wuninitialized: initialize tm0.tm_year.
86119
86120 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
86121
86122         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
86123         count, since there's no maximum.  All uses changed.
86124         Add member dsts_seen.
86125         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
86126         not being INT_MAX.
86127         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
86128         Use pc_rels_seen to decide whether a date is absolute.
86129
86130         * lib/getdate.y (number): Don't overwrite year.
86131         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
86132         check.
86133
86134 2005-04-02  Simon Josefsson  <jas@extundo.com>
86135
86136         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
86137         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
86138
86139 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
86140
86141         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
86142         where no absolute path name can be longer than PATH_MAX.
86143
86144 2005-03-27  Jim Meyering  <jim@meyering.net>
86145
86146         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
86147
86148 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
86149
86150         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
86151         "one's complement" -> "ones' complement" in comment, as per Knuth.
86152         "value of type" -> "type or expression" in comment.
86153         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
86154
86155 2005-03-26  Jim Meyering  <jim@meyering.net>
86156
86157         Comment nits.
86158         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
86159         Correct typos: s/or/of/.
86160
86161 2005-03-26  Jim Meyering  <jim@meyering.net>
86162
86163         * modules/check-include-files: Move to ../ and rename to...
86164         * check-module: ...this.
86165
86166 2005-03-25  Jim Meyering  <jim@meyering.net>
86167
86168         * modules/xvasprintf (Files): Add xalloc.h.
86169
86170 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
86171
86172         * modules/gettext (Files): config/config.rpath ->
86173         build-aux/config.rpath
86174         * modules/iconv (Files): Likewise.
86175         Problem reported by Oskar Liljeblad.
86176
86177 2005-03-23  Jim Meyering  <jim@meyering.net>
86178
86179         * modules/check-include-files: New script to check for
86180         missing dependencies, multiple includes, etc.
86181
86182         * modules/c-strtold (Depends-on): Add xalloc.
86183         * modules/c-strtod (Depends-on): Add xalloc.
86184         * modules/hash (Depends-on): Add xalloc.
86185         (Files): Remove lib/xalloc.h.
86186
86187         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
86188         * modules/userspec (Files): Add lib/inttostr.h.
86189
86190 2005-03-23  Jim Meyering  <jim@meyering.net>
86191
86192         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
86193
86194 2005-03-22  Jim Meyering  <jim@meyering.net>
86195
86196         * modules/stat-macros: New module.
86197         * modules/canonicalize, modules/euidaccess, modules/file-type,
86198         * modules/filemode, modules/lchown, modules/makepath,
86199         * modules/rmdir, modules/stat: Depend on new stat-macros module
86200         rather than listing lib/stat-macros.h manually.
86201         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
86202
86203 2005-03-22  Jim Meyering  <jim@meyering.net>
86204
86205         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
86206
86207 2005-03-22  Bruno Haible  <bruno@clisp.org>
86208
86209         * config/srclist.txt: Replace target directory 'config' with
86210         'build-aux'.
86211         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
86212         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
86213         ../build-aux/.
86214
86215 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
86216
86217         * modules/chdir-long (Depends-on): Add mempcpy.
86218
86219         * modules/acl, modules/backupfile, modules/c-strtod,
86220         modules/c-strtold, modules/canon-host, modules/canonicalize,
86221         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
86222         modules/exclude, modules/exitfail, modules/file-type,
86223         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
86224         modules/getdate, modules/getline, modules/getpagesize,
86225         modules/getpass, modules/getugroups, modules/group-member,
86226         modules/hard-locale, modules/hash, modules/human, modules/idcache,
86227         modules/inttostr, modules/long-options, modules/makepath,
86228         modules/md5, modules/memcasecmp, modules/memcoll,
86229         modules/modechange, modules/mountlist, modules/path-concat,
86230         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
86231         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
86232         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
86233         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
86234         modules/strftime, modules/strndup, modules/strverscmp,
86235         modules/timespec, modules/unlocked-io, modules/userspec,
86236         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
86237         modules/yesno:
86238         Remove lib_SOURCES line from Makefile.am section, as this is now
86239         done automatically by the corresponding Autoconf macro.
86240
86241 2005-03-21  Jim Meyering  <jim@meyering.net>
86242
86243         Changes imported from coreutils.
86244
86245         * lib/cycle-check.c: Don't include xalloc.h.
86246
86247         * lib/path-concat.c: Don't include assert.h.
86248         (path_concat): Remove assertion that would have triggered
86249         for ABASE starting with more than one slash.
86250         Reported by Andreas Schwab.
86251
86252         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
86253         properly when ABASE is an absolute file name.
86254         Correct the description of this function.
86255         Include <assert.h>.
86256         Add an assertion and a test driver.
86257         This fixes a bug introduced on 2004-07-02.
86258         Andreas Schwab reported the resulting failure of cp --parents:
86259         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
86260
86261 2005-03-21  Jim Meyering  <jim@meyering.net>
86262
86263         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
86264         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
86265
86266 2005-03-21  Jim Meyering  <jim@meyering.net>
86267         and  Paul Eggert  <eggert@cs.ucla.edu>
86268
86269         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
86270         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
86271         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
86272         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
86273         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
86274         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
86275         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
86276         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
86277         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
86278         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
86279         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
86280         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
86281         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
86282         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
86283         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
86284         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
86285         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
86286         for these modules.
86287
86288 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
86289
86290         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
86291         (which shouldn't happen), generate nothing instead of returning 0
86292         immediately, so that nstrftime (NULL, ...) doesn't return 0.
86293
86294 2005-03-16  Bruno Haible  <bruno@clisp.org>
86295
86296         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
86297         HAVE_LONGLONG_64BIT.
86298
86299 2005-03-16  Bruno Haible  <bruno@clisp.org>
86300
86301         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
86302         HAVE_LONGLONG_64BIT.
86303
86304 2005-03-16  Bruno Haible  <bruno@clisp.org>
86305
86306         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
86307         HAVE_LONGLONG_64BIT.
86308
86309 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
86310
86311         * lib/strftime.c (my_strftime): Prepend space to format so that we can
86312         reliably distinguish strftime failure from empty output on POSIX
86313         hosts.
86314
86315 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
86316
86317         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
86318         (iconv_string): Don't guess a size-zero buffer, as that might cause
86319         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
86320         result would be 'too large', where 'too large' is (heuristically)
86321         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
86322         overflow concerns.  This will prevent some unwanted malloc failures
86323         when the inputs are very large.
86324
86325 2005-03-15  Karl Berry  <karl@gnu.org>
86326
86327         * config/srclist.txt (config.rpath): from gettext.
86328         * config/config.rpath: update.
86329
86330 2005-03-15  Bruno Haible  <bruno@clisp.org>
86331
86332         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
86333         to 'negate'.
86334
86335         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
86336         variable.
86337
86338         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
86339         results.
86340
86341 2005-03-14  Simon Josefsson  <jas@extundo.com>
86342
86343         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
86344         <fx@gnu.org>.
86345
86346 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
86347
86348         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
86349         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
86350         intprops.h.
86351         * lib/strtol.c: Likewise.
86352
86353 2005-03-14  Jim Meyering  <jim@meyering.net>
86354
86355         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
86356         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
86357         to be nonzero so that we (and caller) can detect the difference
86358         between a valid zero-length expansion and an error return, even
86359         when the underlying strftime fails before writing anything into
86360         that location.
86361
86362 2005-03-14  Bruno Haible  <bruno@clisp.org>
86363
86364         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
86365         Update from GNU gettext 0.14.3.
86366
86367 2005-03-10  Jim Meyering  <jim@meyering.net>
86368
86369         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
86370
86371 2005-03-10  Jim Meyering  <jim@meyering.net>
86372
86373         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
86374         so that this module works on systems without fchdir.
86375
86376 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
86377
86378         Factor int-properties macros into a single file, except for
86379         glibc-related files.
86380         * lib/intprops.h: New file.
86381         * lib/getloadavg.c: Include it instead of limits.h.
86382         (INT_STRLEN_BOUND): Remove.
86383         * lib/human.c: Include intprops.h.
86384         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
86385         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
86386         302/1000.
86387         * lib/inttostr.h: Include intprops.h instead of limits.h.
86388         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
86389         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
86390         for consistency with intprops.h.
86391         (time_t_is_integer, twos_complement_arithmetic): Use them.
86392         * lib/sig2str.h: Include <signal.h>, intprops.h.
86393         (INT_STRLEN_BOUND): Remove.
86394         * lib/strftime.c (TYPE_SIGNED): Remove.
86395         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
86396         * lib/strtol.c: Adjust comments to match intprops.h.
86397         * lib/userspec.c: Include intprops.h.
86398         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
86399         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
86400         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
86401         instead of rolling our own expressions.
86402         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
86403
86404         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
86405         instead of int.
86406         (my_strftime): Do not mishandle years close to INT_MAX, by doing
86407         the right thing even if adding 1900 would overflow.  Similarly
86408         for tm_mon + 1 and tm_yday + 1.
86409         Make %Y always equivalent to %C%y, and similarly for %G and %g.
86410         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
86411         (DO_SIGNED_NUMBER): New macro.
86412         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
86413
86414 2005-03-07  Bruno Haible  <bruno@clisp.org>
86415
86416         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
86417
86418 2005-03-07  Bruno Haible  <bruno@clisp.org>
86419
86420         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
86421
86422 2005-03-04  Derek R. Price  <derek@ximbiot.com>
86423
86424         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
86425         (func_import): Only replace files via --import when they have actually
86426         changed.
86427
86428 2005-03-03  Derek R. Price  <derek@ximbiot.com>
86429
86430         * m4/mmap-anon.m4: New file.
86431         * m4/pagealign_alloc.m4: New file.
86432
86433 2005-03-03  Derek R. Price  <derek@ximbiot.com>
86434             Bruno Haible  <bruno@clisp.org>
86435
86436         * modules/pagealign_alloc: New file.
86437         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
86438
86439 2005-03-03  Derek R. Price  <derek@ximbiot.com>
86440             Bruno Haible  <bruno@clisp.org>
86441
86442         * lib/pagealign_alloc.h: New file.
86443         * lib/pagealign_alloc.c: New file.
86444
86445 2005-03-03  Bruno Haible  <bruno@clisp.org>
86446
86447         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
86448         Use an all-permissive copyright notice, recommended by RMS.
86449
86450 2005-03-02  Bruno Haible  <bruno@clisp.org>
86451
86452         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
86453         of AIX, the replacement has to be done only after <string.h> is
86454         included, therefore not in config.h. stpncpy.h does the replacement,
86455         and stpncpy.c uses it.
86456
86457 2005-03-02  Bruno Haible  <bruno@clisp.org>
86458
86459         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
86460         stpncpy.c uses it.
86461
86462 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
86463
86464         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
86465         The workaround isn't strictly needed for POSIX conformance, and
86466         it's too much of a pain to configure and maintain.  We'll ask
86467         people to fix their kernels instead.
86468         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
86469         (NANOSLEEP_BUG_WORKAROUND): Remove.
86470         (xnanosleep): Remove the workaround.
86471
86472 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
86473
86474         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
86475         Reported by Derek Price.
86476         (Include): Add "timespec.h".
86477
86478         * modules/xnanosleep (Depends-on): Remove gethrxtime.
86479
86480 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
86481
86482         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
86483         to detect nanosleep bug.
86484
86485 2005-03-01  Bruno Haible  <bruno@clisp.org>
86486
86487         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
86488
86489 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
86490
86491         * modules/gethrxtime: New file.
86492         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
86493         (Depends-on): Add gethrxtime.
86494         (configure.ac): Add gl_XNANOSLEEP.
86495         (Makefile.am): Remove lib_SOURCES line.
86496
86497 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
86498
86499         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
86500         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
86501
86502 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
86503
86504         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
86505         * lib/timespec.h (gettime): Return void, since it always
86506         succeeds now.  All uses changed.
86507         * lib/gettime.c (gettime): Likewise.
86508         [HAVE_NANOTIME]: Prefer nanotime.
86509         Assume gettimeofday succeeds, as POSIX requires.
86510         Assime time () succeeds, since other code already does.
86511         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
86512         (timespec_subtract): Remove.
86513         (NANOSLEEP_BUG_WORKAROUND): New constant.
86514         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
86515         things considerably.  Use it only on GNU/Linux hosts, since the
86516         workaround shouldn't be needed elsewhere.
86517
86518 2005-02-24  Bruno Haible  <bruno@clisp.org>
86519
86520         * modules/gettext (Files): Add m4/glibc2.m4.
86521
86522 2005-02-24  Bruno Haible  <bruno@clisp.org>
86523
86524         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
86525         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
86526         * m4/progtest.m4:
86527         Update from GNU gettext 0.14.2.
86528         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
86529
86530 2005-02-24  Bruno Haible  <bruno@clisp.org>
86531
86532         * lib/localcharset.c: Update from GNU gettext 0.14.2.
86533         * lib/config.charset: Update from GNU gettext 0.14.2.
86534
86535 2005-02-24  Bruno Haible  <bruno@clisp.org>
86536
86537         * lib/gettext.h: Update from GNU gettext 0.14.2.
86538
86539 2005-02-23  Simon Josefsson  <jas@extundo.com>
86540
86541         * m4/iconvme.m4: New file.
86542
86543 2005-02-23  Jim Meyering  <jim@meyering.net>
86544
86545         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
86546         change.
86547         Thanks to Bruno Haible for catching it.
86548
86549 2005-02-22  Simon Josefsson  <jas@extundo.com>
86550
86551         * modules/iconvme: New file.
86552
86553         * MODULES.html.sh: Add iconvme.
86554
86555 2005-02-22  Simon Josefsson  <jas@extundo.com>
86556
86557         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
86558
86559 2005-02-22  Simon Josefsson  <jas@extundo.com>
86560
86561         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
86562
86563 2005-02-22  Jim Meyering  <jim@meyering.net>
86564
86565         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
86566         s/ifndef/ifdef/.
86567
86568 2005-02-20  Neil Conway  <neilc@samurai.com>
86569
86570         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
86571         returned by OSX/Darwin if the specified buffer is not large
86572         enough for the hostname.
86573
86574 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86575
86576         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
86577         pass it to _help, otherwise the latter coredumps trying to
86578         dereference state.root_argp.
86579
86580 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
86581
86582         * modules/chdir-long (Depends-on): Add memrchr.
86583         * modules/memrchr (Files): Add lib/memrchr.h.
86584         (Include): "memrchr.h".
86585
86586 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
86587
86588         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
86589
86590 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
86591
86592         * lib/memrchr.h: New file.
86593         * lib/chdir-long.c: Include it.
86594         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
86595         Don't bother including stddef.h.
86596
86597 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
86598
86599         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
86600         inclusion.
86601         Include <sys/types.h>, for dev_t.
86602         (ME_DUMMY, ME_REMOTE): Move from here....
86603         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
86604         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
86605         Dmitry V. Levin.
86606         Include mountlist.h first, to test the interface.
86607
86608 2005-01-29  Bruno Haible  <bruno@clisp.org>
86609
86610         * lib/progname.c (program_name): Initialize.
86611         Needed when linking statically on MacOS X.
86612
86613 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
86614
86615         Sync from coreutils.
86616         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
86617         (Depends-on): Add c-strtod.
86618         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
86619
86620 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
86621
86622         Sync from coreutils.
86623         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
86624
86625         Remove files that are specific to coreutils.
86626         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
86627
86628 2005-01-28  Bruno Haible  <bruno@clisp.org>
86629
86630         * modules/javacomp: New file.
86631         * MODULES.html.sh (Java): Add javacomp.
86632
86633 2005-01-28  Bruno Haible  <bruno@clisp.org>
86634
86635         * m4/javacomp.m4: New file, from GNU gettext.
86636
86637 2005-01-28  Bruno Haible  <bruno@clisp.org>
86638
86639         * lib/javacomp.sh.in: New file, from GNU gettext.
86640         * lib/javacomp.h: New file, from GNU gettext.
86641         * lib/javacomp.c: New file, from GNU gettext.
86642
86643 2005-01-26  Simon Josefsson  <jas@extundo.com>
86644
86645         * lib/gai_strerror.c: Use GPL in header.
86646
86647 2005-01-26  Bruno Haible  <bruno@clisp.org>
86648
86649         * modules/javaexec: New file.
86650         * MODULES.html.sh (Java): Add javaexec.
86651
86652 2005-01-26  Bruno Haible  <bruno@clisp.org>
86653
86654         * m4/javaexec.m4: New file, from GNU gettext.
86655
86656 2005-01-26  Bruno Haible  <bruno@clisp.org>
86657
86658         * lib/javaexec.sh.in: New file, from GNU gettext.
86659         * lib/javaexec.h: New file, from GNU gettext.
86660         * lib/javaexec.c: New file, from GNU gettext.
86661
86662 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86663
86664         * modules/lchown (Depends-on): Remove lchown.h
86665
86666 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86667
86668         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
86669         must be defined if the header file was not found, in order
86670         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
86671
86672 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86673
86674         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
86675         initializers for struct pentry_state.
86676         (__argp_error): Check return value of __asprintf
86677         (__argp_failure): Translate error message
86678
86679         * lib/argp-parse.c: Removed braces around the expansion of N_()
86680
86681 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
86682
86683         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
86684         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
86685         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
86686         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
86687         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
86688         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
86689         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
86690         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
86691         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
86692         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
86693         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
86694         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
86695         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
86696         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
86697         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
86698         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
86699         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
86700         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
86701         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
86702         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
86703         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
86704         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
86705         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
86706         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
86707         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
86708         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
86709         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
86710         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
86711         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
86712         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
86713         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
86714         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
86715         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
86716         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
86717         xstrtol.m4, xstrtoumax.m4, yesno.m4:
86718         Use an all-permissive copyright notice, recommended by RMS.
86719
86720 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
86721
86722         * modules/chdir-long (Depends-on): Remove mempcpy.
86723
86724 2005-01-21  Jim Meyering  <jim@meyering.net>
86725
86726         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
86727         same value as for Solaris 9.
86728
86729         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
86730         component length.  This included changing the parameter to be
86731         of type `char *' rather than `char const *'.
86732         * lib/chdir-long.h (chdir_long): Update prototype.
86733
86734         * lib/openat.c (fdopendir, fstatat): New functions.
86735         * lib/openat.h: Include headers required for use of DIR and struct
86736         stat.
86737         [AT_SYMLINK_NOFOLLOW]: Define.
86738         (fdopendir, fstatat): Add prototypes.
86739
86740 2005-01-21  Bruno Haible  <bruno@clisp.org>
86741
86742         * modules/classpath: New file.
86743         * MODULES.html.sh (Java): Add classpath.
86744
86745 2005-01-21  Bruno Haible  <bruno@clisp.org>
86746
86747         * lib/classpath.h: New file, from GNU gettext.
86748         * lib/classpath.c: New file, from GNU gettext.
86749
86750 2005-01-20  Simon Josefsson  <jas@extundo.com>
86751
86752         * modules/version-etc-fsf: New file.
86753
86754 2005-01-20  Simon Josefsson  <jas@extundo.com>
86755
86756         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
86757         * lib/version-etc.c: Remove version_etc_copyright.
86758         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
86759         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
86760
86761 2005-01-20  Simon Josefsson  <jas@extundo.com>
86762
86763         * lib/base64.h (isbase64): Add.
86764
86765         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
86766         using a unsigned prototype, don't inline.
86767         (base64_decode): Use it.
86768
86769 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
86770
86771         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
86772         it.
86773
86774 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
86775
86776         * lib/save-cwd.c (save_cwd): Remove code to support the case
86777         where fchdir is missing or flaky.
86778
86779 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
86780
86781         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
86782
86783 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
86784
86785         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
86786         AC_LIBSOURCES now does this.
86787         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
86788         with new ullong_max module.
86789
86790 2005-01-19  Bruno Haible  <bruno@clisp.org>
86791
86792         * modules/sh-quote: New file.
86793         * MODULES.html.sh (Executing programs): Add sh-quote.
86794
86795 2005-01-19  Bruno Haible  <bruno@clisp.org>
86796
86797         * lib/sh-quote.h: New file, from GNU gettext.
86798         * lib/sh-quote.c: New file, from GNU gettext.
86799
86800 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
86801
86802         Merge from coreutils.
86803         * m4/ullong_max.m4: New file.
86804         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
86805         (gl_MACROS): Assume localeconv exists.
86806
86807 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
86808
86809         Merge changes from coreutils, as described below in several
86810         changelogs dated today.
86811
86812         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
86813         (O_DIRECTORY): Remove; not needed here, since "." must be
86814         a directory.  All uses removed.
86815         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
86816         universal on Suns, and we also need to test for IRIX.
86817         Revamp code to use 'if' rather than '#if'.
86818         Avoid unnecessary comparison of cwd->desc to 0.
86819
86820         * lib/utimens.c (futimens): Robustify the previous patch, by checking
86821         for known valid error numbers rather than observed invalid ones.
86822
86823 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
86824
86825         * modules/ullong_max: New file.
86826
86827         * modules/chdir-long, modules/openat: New files.
86828         * modules/save-cwd (Depends-on): Depend on chdir-long.
86829         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
86830
86831 2005-01-18  Jim Meyering  <jim@meyering.net>
86832
86833         Merge from coreutils.
86834         * m4/chdir-long.m4, m4/openat.m4: New files.
86835         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
86836         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
86837         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
86838         is sane and DOES follow symlinks.  Besides, testing 20 different
86839         systems found no broken chown implementations.
86840         Prompted by a change in rsync's copy of this macro.
86841         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
86842
86843         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
86844
86845         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
86846         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
86847         NULL-means-set-to-current-time semantics.
86848         Remove temporary file immediately, rather than waiting
86849         for configure's at-exit trap code to do it.
86850
86851 2005-01-18  Jim Meyering  <jim@meyering.net>
86852
86853         * lib/version-etc.c (version_etc_copyright): Update copyright date.
86854
86855         * lib/utimens.c (futimens): Account for the fact that futimes
86856         can also fail with errno == ENOSYS or errno == ENOENT.
86857         Patch from Dmitry V. Levin.
86858
86859         Change the name of the robust chdir function from chdir to chdir_long.
86860         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
86861         (restore_cwd): Use chdir_long, not chdir.
86862         * lib/chdir-long.c: Renamed from chdir.c.
86863         * lib/chdir-long.h: Renamed from chdir.h.
86864         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
86865         Hurd.
86866
86867 2005-01-18  Bruno Haible  <bruno@clisp.org>
86868
86869         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
86870         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
86871         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
86872         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
86873         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
86874         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
86875         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
86876         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
86877         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
86878         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
86879         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
86880         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
86881         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
86882         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
86883         Use an all-permissive copyright notice, recommended by RMS.
86884
86885 2005-01-18  Bob Proulx  <bob@proulx.com>
86886
86887         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
86888         simplify offsetof() macro construct to avoid compile failure with
86889         native HP-UX 11.0 ANSI C compiler.
86890
86891 2005-01-17  Bruno Haible  <bruno@clisp.org>
86892
86893         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
86894         redundant because stpncpy.m4 takes care of it.
86895
86896 2005-01-17  Bruno Haible  <bruno@clisp.org>
86897
86898         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
86899
86900 2005-01-17  Bruno Haible  <bruno@clisp.org>
86901
86902         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
86903         used.
86904
86905 2005-01-17  Bruno Haible  <bruno@clisp.org>
86906
86907         * lib/fwriteerror.h (fwriteerror): Change specification to include
86908         fclose.
86909         * lib/fwriteerror.c: Include <stdbool.h>.
86910         (fwriteerror): At the end, close the file stream. Record whether
86911         stdout was already closed.
86912
86913 2005-01-17  Bruno Haible  <bruno@clisp.org>
86914
86915         * lib/execute.c (environ): Declare if needed.
86916         * lib/pipe.c (environ): Likewise.
86917         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
86918
86919 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86920
86921         * modules/argp: Depend on vsnprintf
86922
86923 2005-01-10  Jim Meyering  <jim@meyering.net>
86924
86925         * modules/closeout (Depends-on): Add atexit.
86926
86927 2005-01-06  Bruno Haible  <bruno@clisp.org>
86928
86929         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
86930
86931 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
86932
86933         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
86934         definitions to be after all include files, to avoid collisions.
86935         Problem reported by Bob Proulx.
86936
86937 2005-01-04  Jim Meyering  <jim@meyering.net>
86938
86939         Changes imported from coreutils.
86940         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
86941         as the mkstemp template, use a temporary directory and an
86942         8.3-friendly template to avoid trouble on systems like DJGPP.
86943         Reported by Juan M. Guerrero via Stepan Kasal.
86944         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
86945         close. Remove the temporary directory right away, rather than waiting
86946         for configure's at-exit trap code to do it.
86947         Suggestion from Stepan Kasal.
86948
86949 2005-01-01  Simon Josefsson  <jas@extundo.com>
86950
86951         * gnulib-tool: Print #include directives when --import'ing.
86952
86953 2004-12-28  Simon Josefsson  <jas@extundo.com>
86954
86955         * tests/test-base64.c: Include required header files.  Remove
86956         unused variables.
86957
86958 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
86959
86960         * modules/error (Depends-on): Remove gettext.
86961
86962 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
86963
86964         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
86965         not needed.  This removes a dependency on the gettext module.
86966         [defined _LIBC]: Do not include <libintl.h>; not needed.
86967
86968 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
86969
86970         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
86971         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
86972
86973 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
86974
86975         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
86976         HAVE_DECL_STRTOLD.
86977
86978 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
86979
86980         * modules/getdate (Depends-on): Remove alloca-opt.
86981
86982 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
86983
86984         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
86985
86986 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
86987
86988         * lib/argp-parse.c: Include <stddef.h>.
86989         (alignof, alignto): New macros.
86990         (parser_init): Don't assume that void * is aligned sufficiently
86991         for struct option.
86992
86993         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
86994         need to extend the stack.
86995         (YYINITDEPTH): New macro, so that the initial stack isn't overly
86996         large.
86997
86998 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86999
87000         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
87001
87002 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
87003
87004         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
87005         (2004-10-24) change.  Apparently this was a false alarm.
87006
87007         * modules/getdate: Depend on alloca-opt, not alloca.
87008
87009 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
87010
87011         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
87012         Remove now-obsolete comment about AIX.
87013         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
87014         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
87015         (YYMAXDEPTH): New macro.
87016
87017 2004-12-18  Simon Josefsson  <jas@extundo.com>
87018
87019         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
87020
87021 2004-12-18  Bruno Haible  <bruno@clisp.org>
87022
87023         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
87024
87025 2004-12-18  Bruno Haible  <bruno@clisp.org>
87026
87027         * lib/fatal-signal.c (fatal_signals): Make non-const.
87028         (init_fatal_signals): New function.
87029         (uninstall_handlers, install_handlers): Ignore signals that were set to
87030         SIG_IGN.
87031         (at_fatal_signal): Call init_fatal_signals.
87032         (init_fatal_signal_set): Likewise. Ignore signals that were set to
87033         SIG_IGN.
87034         Reported by Paul Eggert.
87035
87036 2004-12-18  Bruno Haible  <bruno@clisp.org>
87037
87038         * doc/alloca.texi: New file.
87039         * doc/alloca-opt.texi: New file.
87040
87041 2004-12-17  Jim Meyering  <jim@meyering.net>
87042
87043         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
87044         Otherwise, install-sh could exit with improper exit status when
87045         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
87046
87047 2004-12-16  Simon Josefsson  <jas@extundo.com>
87048
87049         * tests/test-base64.c: Add license.
87050
87051 2004-12-15  Stepan Kasal  <address@hidden>
87052
87053         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
87054
87055 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
87056
87057         * modules/getcwd (Files): Add m4/d-ino.m4.
87058         Suggested by Mark D. Baushke.
87059
87060 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
87061
87062         * lib/getdate.y (textint): New member "negative".
87063         (time_zone_hhmm): New function.
87064         Expect 14 shift-reduce conflicts, not 13.
87065         (o_colon_minutes): New rule.
87066         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
87067         (yylex): Set the "negative" member of signed numbers.
87068
87069 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
87070
87071         * doc/getdate.texi (Time of day items, Time zone items):
87072         Describe new formats +00:00, UTC+00:00.
87073
87074 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
87075
87076         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
87077         spurious "-l"s.  Problem reported by Stepan Kasal.
87078
87079 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
87080
87081         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
87082         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
87083
87084 2004-12-04  Simon Josefsson  <jas@extundo.com>
87085
87086         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
87087         Vandoorselaere <yoann@prelude-ids.org>.
87088
87089 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
87090
87091         Changes imported from coreutils.
87092         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
87093         exist.
87094         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
87095
87096 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
87097
87098         Changes imported from coreutils.
87099         * lib/hard-locale.c: Assume <locale.h> exists.
87100         Include "strdup.h".
87101         (GLIBC_VERSION): New macro.
87102         (hard_locale): Assume setlocale exists.
87103         Rewrite to avoid #ifdef.
87104         Use strdup rather than malloc + strcpy.
87105         * lib/human.c: Assume <locale.h> exists.
87106         (human_readable): Assume localeconv exists.
87107
87108 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
87109
87110         * modules/hard-locale (Depends-on): Add strdup.
87111
87112 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
87113
87114         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
87115         convert T2, not T.  (Imported from libc.)
87116
87117 2004-11-30  Simon Josefsson  <jas@extundo.com>
87118
87119         * modules/restrict (License): Change to LGPL.
87120
87121 2004-11-30  Simon Josefsson  <jas@extundo.com>
87122
87123         * m4/restrict.m4: Add copyright and copying conditions.
87124
87125 2004-11-30  Simon Josefsson  <jas@extundo.com>
87126
87127         * m4/base64.m4: New file.
87128
87129 2004-11-30  Simon Josefsson  <jas@extundo.com>
87130
87131         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
87132         base64.
87133
87134         * tests/test-base64.c: New file.
87135
87136         * modules/base64: New file.
87137
87138 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
87139
87140         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
87141         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
87142
87143         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
87144
87145 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
87146
87147         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
87148         (__getcwd.c): Don't restore errno; glibc doesn't.
87149         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
87150         first, falling back to our code only if its results look suspicious.
87151         Ensure that the resulting buffer is only as large as necessary.
87152
87153         * lib/readutmp.c: Include readutmp.h first.
87154         Include <errno.h>, since readutmp.h no longer does that.
87155         * lib/readutmp.h: Don't include <errno.h>,
87156         <sys/param.h>, <time.h>; not needed to establish interface.
87157         (errno): Remove decl.
87158         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
87159         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
87160         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
87161
87162 2004-11-28  Simon Josefsson  <jas@extundo.com>
87163
87164         * lib/base64.h, base64.c: New file.
87165
87166 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
87167
87168         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
87169
87170 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
87171
87172         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
87173         (Depends-on): Remove pathmax, same.  Add mempcpy.
87174         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
87175         (Makefile.am): Append getcwd.h to lib_SOURCES.
87176         (Include): Add getcwd.h.
87177         (Maintainer): Change from Jim Meyering to "all, glibc",
87178         since getdate now uses intended-for-glibc code.
87179         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
87180         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
87181
87182 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
87183
87184         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
87185         HP's ANSI C compiler.
87186         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
87187         Declaring int functions causes warnings on some modern systems and
87188         shouldn't be needed to compile on ancient ones.
87189         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
87190         defined.
87191
87192         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
87193         with the following changes.
87194         (__set_errno): Parenthesize properly.
87195         Include <stdbool.h>.
87196         (MIN, MAX, MATCHING_INO): New macros.
87197         (__getcwd): Define with prototype, not K&R form.
87198         Use heuristics to allocate default buffer on stack if possible.
87199         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
87200         behavior, and to avoid the PATH_MAX limit when computing
87201         ../../../../...
87202         Use MATCHING_INO to compare inode number to file.
87203         Check for arithmetic overflow in size calculations.
87204         Fix bug in reallocation of dot array that caused getcwd to fail
87205         on directories nested deeper than 75.
87206         Be more careful about saving errno on error.
87207         Do not use realloc; use only free+malloc, as this is a bit
87208         more flexible and avoids a needless copy operation.
87209         Do not inspect st_dev and st_ino for symbolic links; POSIX
87210         doesn't specify the latter.
87211         Check for closedir errors.
87212         Avoid needless casts.
87213         Use "#ifdef weak_alias" around weak_alias, to be like other
87214         glibc code.
87215         The following changes to getcwd.c have effect only when used in
87216         gnulib; they have no effect inside glibc proper.
87217         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
87218         as alloca isn't used.
87219         (alloca, __alloca): Likewise.
87220         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
87221         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
87222         unconditionally, as gnulib assumes C89 or better.
87223         Do not include <sys/param.h>.
87224         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
87225         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
87226         better.
87227         (NULL) [!defined NULL]: Remove; we assume C89 or better.
87228         Include <dirent.h> in a way that is compatible with modern Autoconf.
87229         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
87230         New macros, if not already defined.
87231         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
87232         Use "_LIBC", not "defined _LIBC", for consistency.
87233         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
87234         a mempcpy module.
87235         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
87236         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
87237         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
87238         credit only to Jim Meyering and adjust the copyright dates.
87239         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
87240         <stdlib.h>, <unistd.h>, "pathmax.h".
87241         Instead, include "xgetcwd.h" (first) and "getcwd.h".
87242         (INITIAL_BUFFER_SIZE): Remove.
87243         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
87244
87245 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
87246
87247         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
87248         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
87249         Use the _ONCE methods, for efficiency.
87250         Check for fcntl.h.  In test program, include <errno.h>
87251         and <fcntl.h> if available.  Remove old K&R cruft from
87252         test program.  Check for common errors in GNU/Linux,
87253         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
87254         don't do AC_LIBOBJ, as that's getcwd.m4's job.
87255         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
87256         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
87257         name accordingly.
87258         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
87259         accommodate new getcwd.c.
87260         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
87261         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
87262         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
87263         that's all we need now.
87264
87265 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87266
87267         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
87268         argp-parse.c depends on getopt internals, that means we should
87269         always use our getopt, to be on the safe side.
87270         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
87271         order not to spoil the result of an eventual previous invocation
87272         of gl_GETOPT_SUBSTITUTE.
87273
87274 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87275
87276         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
87277         redefinition warnings. To avoid them, include the defines
87278         in `#if !defined __need_getopt ... #endif'. The only place
87279         where __getopt_argv_const is used is in definitions
87280         of getopt_long and getopt_long_only below, which are as well
87281         protected by `#ifndef __need_getopt'.
87282         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
87283         __need_getopt after including <stdio.h> and <unistd.h> These
87284         headers might have defined it.
87285
87286 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
87287
87288         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
87289
87290 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
87291
87292         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
87293         (futimens): New function, which uses futimes if available.
87294         (futimens, utimens): Support timespec==NULL, with same semantics
87295         as utime and utimens.
87296         * lib/utimens.h (futimens): New decl.
87297
87298 2004-11-23  Jim Meyering  <jim@meyering.net>
87299
87300         * lib/getopt_.h: Remove trailing blanks.
87301
87302 2004-11-23  Jim Meyering  <jim@meyering.net>
87303
87304         * lib/__fpending.c: Add comment.
87305
87306 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
87307
87308         * modules/canonicalize (Depends-on): Add xreadlink.
87309         Problem reported by James Youngman.
87310
87311 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
87312
87313         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
87314         New macros.
87315         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
87316         optopt): Use them instead of invoking ## directly; otherwise, the
87317         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
87318
87319 2004-11-19  Bruno Haible  <bruno@clisp.org>
87320
87321         * lib/strtok_r.c: Move comments from here...
87322         * lib/strtok_r.h: ... to here.
87323
87324 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
87325
87326         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
87327         implementations that mishandle size_t overflow.
87328
87329 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
87330
87331         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
87332         might fail.  Problem reported by Yoann Vandoorselaere.
87333         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
87334         implementations that mishandle size_t overflow.
87335
87336 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
87337
87338         * modules/canon-host (Depends-on): Add strdup.
87339
87340 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
87341
87342         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
87343
87344 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
87345
87346         * lib/canon-host.c: Include "strdup.h".
87347         (canon_host): Use getaddrinfo if available, so that IPv6 works.
87348         Use strdup instead of malloc/strcpy to duplicate strings.
87349
87350         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
87351         (human_space_before_unit): New constant.
87352         * lib/human.c (human_readable): Support it.
87353
87354         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
87355         (xgetcwd): Set errno correctly when failing.
87356         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
87357         the failure is actually due to a PATH_MAX problem.
87358
87359         Further getopt changes to make it more likely that glibc will
87360         buy the changes back.
87361         * lib/getopt.c (POSIXLY_CORRECT): New constant.
87362         (getopt): Use it, so to preserve glibc semantic
87363         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
87364         when compiling for libc.
87365         * lib/getopt_.h (__getopt_argv_const): Bring it back.
87366         (getopt_long, getopt_long_only): Use it.
87367
87368         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
87369         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
87370         (getopt): Argv is now char * const *, as per standard.
87371         (_getopt_internal_r, _getopt_internal): Argv is now char **,
87372         not char *__getopt_argv_const *.
87373         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
87374         _getopt_long_only_r): Likewise.
87375         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
87376         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
87377         _getopt_long_r, _getopt_long_only_r): Likewise.
87378         * lib/getopt_.h (__getopt_argv_const): Remove.
87379         (getopt): Argv is now char * const *, as per standard.
87380
87381         * lib/getdate.y (tORDINAL): New token.
87382         (day, relunit): Allow it for relative times.
87383         (relative_time_table): Use tORDINAL for ordinals.
87384
87385 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
87386
87387         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
87388         Document that "second" isn't allowed as an ordinal number.
87389
87390 2004-11-16  Jim Meyering  <jim@meyering.net>
87391
87392         * modules/closeout (Depends-on): Add fpending.
87393
87394 2004-11-15  Jim Meyering  <jim@meyering.net>
87395
87396         * lib/closeout.c: Include "__fpending.h" once again.
87397         Include <stdbool.h>.
87398         (close_stdout): Don't fail just because stdout was closed initially,
87399         since some programs don't write to stdout in the normal course of
87400         operation (other than --version and --help), and we don't want this
87401         function to make e.g. `touch file >&-' fail.
87402         But do fail if it was closed and someone has tried to write to it.
87403         E.g., `printf foo >&-' must fail.
87404
87405 2004-11-13  Jim Meyering  <jim@meyering.net>
87406
87407         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
87408
87409 2004-11-12  Simon Josefsson  <jas@extundo.com>
87410
87411         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
87412         small doc fix is still pending.
87413
87414 2004-11-11  Simon Josefsson  <jas@extundo.com>
87415
87416         * modules/strtok_r: New file.
87417
87418         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
87419         strtok_r.
87420
87421 2004-11-11  Simon Josefsson  <jas@extundo.com>
87422
87423         * m4/strtok_r.m4: New file.
87424
87425         * m4/getopt.m4: Replace opterr.
87426
87427 2004-11-11  Simon Josefsson  <jas@extundo.com>
87428
87429         * lib/strtok_r.h, strtok_r.c: New file.
87430
87431 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
87432
87433         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
87434         of replacing opterr, getopt, etc.  This should handle the
87435         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
87436
87437 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
87438
87439         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
87440         we can stop lying to compilers about the constness of argv when we
87441         are compiled outside glibc.
87442         (getopt, getopt_long, getopt_long_only): Use it.
87443         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
87444         _getopt_internal, getopt): Likewise.
87445         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
87446         _getopt_long_only_r): Likewise.
87447         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
87448         _getopt_long_r, _getopt_long_only_r): Likewise.
87449
87450         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
87451         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
87452         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
87453         the other external symbols.
87454         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
87455         declaration, since the above renaming now works around collisions.
87456
87457 2004-11-11  Jim Meyering  <jim@meyering.net>
87458
87459         * lib/linebreak.c: Remove trailing blanks.
87460         * lib/alloca_.h: Likewise.
87461         * lib/acosl.c: Likewise.
87462         * lib/euidaccess.c: Likewise.
87463         * lib/allocsa.h: Likewise.
87464
87465 2004-11-10  Simon Josefsson  <jas@extundo.com>
87466
87467         * m4/getaddrinfo.m4: New file.
87468
87469 2004-11-10  Simon Josefsson  <jas@extundo.com>
87470
87471         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
87472
87473 2004-11-10  Simon Josefsson  <jas@extundo.com>
87474
87475         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
87476         getaddrinfo.
87477
87478         * modules/getaddrinfo: New file.
87479
87480 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
87481
87482         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
87483
87484 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
87485
87486         * lib/mktime.c (SHR): New macro, which is a portable
87487         substitute for >> that should work even on Crays.
87488         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
87489         Problem reported by Mark D. Baushke in
87490         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
87491         * lib/getdate.y (SHR): Likewise.
87492         (tm_diff): Use it.
87493         * lib/strftime.c (SHR): Likewise.
87494         (tm_diff): Use it.
87495         * lib/quotearg.c (struct quoting_options): Use unsigned int for
87496         quote_these_too, so that right shifts are well defined.  All uses
87497         changed.
87498
87499 2004-11-10  Jim Meyering  <jim@meyering.net>
87500
87501         Ensure that no close failure goes unreported.
87502         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
87503         return early when it seems there's nothing to flush.
87504         Don't include __fpending.h.
87505
87506 2004-11-10  Jim Meyering  <jim@meyering.net>
87507
87508         * modules/closeout (Depends-on): Remove fpending.
87509
87510 2004-11-10  Jim Meyering  <jim@meyering.net>
87511
87512         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
87513
87514 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
87515
87516         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
87517         gl_FUNC_STRFTIME.
87518         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
87519         and AC_REQUIRE when possible, to avoid duplicate checks.
87520         Check for <wchar.h>.
87521
87522 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
87523
87524         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
87525
87526 2004-11-09  Bruno Haible  <bruno@clisp.org>
87527
87528         * m4/sockpfaf.m4: New file.
87529
87530 2004-11-05  Bruno Haible  <bruno@clisp.org>
87531
87532         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
87533         Reported by Mark D. Baushke <mdb@cvshome.org>.
87534
87535 2004-11-04  Bruno Haible  <bruno@clisp.org>
87536
87537         2004-09-11  Bruno Haible  <bruno@clisp.org>
87538                 * allocsa.valgrind: New file.
87539         2004-02-06  Bruno Haible  <bruno@clisp.org>
87540                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
87541                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
87542                 Reported by Christopher Seip <chris.seip@hp.com>.
87543
87544 2004-11-04  Bruno Haible  <bruno@clisp.org>
87545
87546         * modules/allocsa (Files): Add lib/allocsa.valgrind.
87547         (Makefile.am): Distribute it.
87548
87549 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
87550
87551         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
87552         with errno == ERANGE if the buffer is too small.
87553         Problem reported by Mark D. Baushke.
87554
87555 2004-11-03  Albert Chin  <china@thewrittenword.com>
87556             Paul Eggert  <eggert@cs.ucla.edu>
87557
87558         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
87559         equivalent, substitute $ac_type for equivalent type rather than
87560         blindly using uint32_t *always* which won't work if uint32_t is not
87561         available.  Define _UINT32_T to work around typedef of uint32_t if
87562         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
87563         2.5.1.
87564
87565 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
87566
87567         * m4/jm-macros.m4: Sync from coreutils.
87568         (gl_MACROS): Check for mbrlen, for pathchk.
87569         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
87570
87571 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
87572
87573         * lib/xreadlink.c (MAXSIZE): New macro.
87574         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
87575         size does not exceed MAXSIZE.  Avoid cast.
87576         As suggested by Mark D. Baushke in
87577         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
87578         if readlink fails with buffer size just under MAXSIZE, try again
87579         with MAXSIZE.
87580
87581 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
87582
87583         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
87584
87585 2004-11-02  Derek R. Price  <derek@ximbiot.com>
87586         and  Paul Eggert  <eggert@cs.ucla.edu>
87587
87588         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
87589         (get_date): Overparenthesize to avoid GCC warning.
87590
87591 2004-11-02  Bruno Haible  <bruno@clisp.org>
87592
87593         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
87594         returns void.
87595
87596 2004-11-02  Bruno Haible  <bruno@clisp.org>
87597
87598         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
87599         function returns void.
87600
87601 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
87602
87603         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
87604         fflush_unlocked, flockfile, funlockfile, funlockfile,
87605         fputs_unlocked, putc_unlocked.
87606
87607 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
87608
87609         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
87610         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
87611         already declared.
87612
87613 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
87614
87615         * modules/getdate (Files): Add doc/getdate.texi.
87616         (Depends-on): Add setenv, xalloc.
87617
87618 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
87619
87620         * lib/getdate.y: Add support for TZ="foo" within a date string.
87621         Fix some bugs near time_t boundaries.  Reject dates with
87622         out-of-range components, e.g., "Sept 31".
87623         Include <stdlib.h>, "setenv.h", "xalloc.h".
87624         (ISDIGIT_LOCALE): Remove; unused.
87625         Note that the TZ and time functions used here are not reentrant.
87626         (mktime_ok, get_tz): New functions.
87627         (TZBUFSIZE): New constant.
87628         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
87629         This requires that we sometimes generate our own TZ="XXX..." setting.
87630
87631 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
87632
87633         * doc/getdate.texi: New file, from coreutils with modifications for
87634         the new TZ parsing.
87635
87636 2004-10-27  Derek R. Price  <derek@ximbiot.com>
87637
87638         * lib/mktime.c (not_equal_tm): Remove redundant check.
87639
87640 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
87641
87642         * modules/regex (lib_SOURCES): Add regex.c.
87643         Reported by James Youngman in
87644         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
87645
87646 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
87647
87648         * lib/getdate.y: Use Bison 1.875 features, and some minor
87649         code cleanups.  This change does not affect semantics.
87650         Don't include <stdlib.h>; no longer needed.
87651         Don't include unlocked-io.h; only the "#if TEST" code uses
87652         stdio, and performance isn't crucial there.
87653         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
87654         Bison 1.875 features as described below.
87655         All uses of "PC." replaced by "pc->".
87656         (YYSTYPE): Add a forward declaration.
87657         (yylex, yyerror): Use full prototypes in forward decls.
87658         Use "%pure-parser" rather than obsolescent "%pure_parser".
87659         Use %parse-param and %lex-param instead of obsolescent
87660         YYPARSE_PARAM and YYLEX_PARAM.
87661         (meridian_table, month_and_day_table, time_units_table,
87662         relative_time_table, time_zone_table, military_table,
87663         lookup_zone, lookup_word, get_date):
87664         Use NULL instead of 0 where appropriate.
87665         (to_hour): Avoid abort (), to avoid a dependency on
87666         stdlib.h.
87667         (yyerror, yylex): Now accepts parser_control * arg.
87668         (main) [TEST]: Use '\0' rather than 0 for char.
87669
87670 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
87671
87672         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
87673
87674 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
87675
87676         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
87677         It's now the caller's responsibility to handle the case where
87678         !HAVE_GETPAGESIZE && !defined getpagesize.
87679
87680         * lib/mktime.c (leapyear): Arg is long int, not int.
87681
87682 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
87683
87684         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
87685
87686 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
87687
87688         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
87689         missing.  Problem reported by James Youngman.
87690
87691 2004-10-16  Simon Josefsson  <jas@extundo.com>
87692
87693         * gnulib-tool: Fix comments.  Fix parse problem.
87694         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
87695
87696 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
87697
87698         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
87699         implementation of getopt_long.  Problem reported by Alexander Taler in:
87700         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
87701
87702 2004-10-15  Bruno Haible  <bruno@clisp.org>
87703
87704         * gnulib-tool: Untabify. Initialize supplied_libname.
87705         (func_usage): More homogenous output.
87706         (func_modules_transitive_closure, func_modules_to_filelist,
87707         func_emit_lib_Makefile_am): New functions.
87708         (func_import): New function, extracted from big case statement. Use
87709         func_get_license, func_modules_transitive_closure,
87710         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
87711         opt_lgpl. Don't use test -a, as it's not portable.
87712         (func_create_testdir): Use func_modules_transitive_closure,
87713         func_modules_to_filelist, func_emit_lib_Makefile_am.
87714
87715 2004-10-15  Bruno Haible  <bruno@clisp.org>
87716
87717         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
87718
87719 2004-10-15  Bruno Haible  <bruno@clisp.org>
87720
87721         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
87722         the portions belonging to each module.
87723         Suggested by Derek Robert Price <derek@ximbiot.com>.
87724
87725 2004-10-12  Simon Josefsson  <jas@extundo.com>
87726
87727         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
87728         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
87729         to real functions.
87730
87731 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
87732
87733         * modules/vsnprintf: New file.
87734
87735 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
87736
87737         * m4/vsnprintf.m4: New file.
87738
87739 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
87740
87741         * lib/vsnprintf.h: New file.
87742         * lib/vsnprintf.c: New file.
87743
87744 2004-10-11  Bruno Haible  <bruno@clisp.org>
87745
87746         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
87747         vsnprintf.
87748
87749 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
87750
87751         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
87752
87753 2004-10-07  Bruno Haible  <bruno@clisp.org>
87754
87755         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
87756         fits into the provided buffer.
87757
87758 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
87759
87760         * lib/diacrit.c, diacrit.h: Add GPL notice.
87761
87762         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
87763         notice.
87764         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
87765         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
87766         This avoids a potential constant-folding bug.
87767
87768 2004-10-05  Bruno Haible  <bruno@clisp.org>
87769
87770         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
87771         for the declaration of strsep.
87772
87773 2004-10-05  Bruno Haible  <bruno@clisp.org>
87774
87775         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
87776
87777 2004-10-04  Simon Josefsson  <jas@extundo.com>
87778
87779         * modules/memmem: New file.
87780         * tests/test-memmem.c: New file.
87781         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
87782
87783 2004-10-04  Simon Josefsson  <jas@extundo.com>
87784
87785         * m4/memmem.m4: New file.
87786
87787 2004-10-04  Simon Josefsson  <jas@extundo.com>
87788
87789         * lib/memmem.h: New file.
87790         * lib/memmem.c: New file, taken from glibc.
87791
87792 2004-10-04  Simon Josefsson  <jas@extundo.com>
87793
87794         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
87795         '#ifdef USE_UNLOCKED_IO'.
87796
87797 2004-10-04  Simon Josefsson  <jas@extundo.com>
87798
87799         * config/srclist.txt: Add memmem from glibc.
87800
87801 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
87802
87803         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
87804
87805         * modules/argmatch, modules/argp, modules/closeout, modules/error,
87806         modules/exclude, modules/getdate, modules/getline,
87807         modules/getndelim2, modules/getpass, modules/getpass-gnu,
87808         modules/getusershell, modules/linebuffer, modules/md5,
87809         modules/mountlist, modules/posixtm, modules/readtokens,
87810         modules/readutmp, modules/regex, modules/sha1,
87811         modules/version-etc, modules/yesno:
87812         Remove dependency on unlocked-io.
87813
87814 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
87815
87816         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
87817
87818         * m4/unlocked-io.m4: Add copyright notice.
87819         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
87820
87821 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
87822
87823         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
87824         * lib/xmalloc.c (xmemdup): Likewise.
87825         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
87826         XFREE): Remove these long-obsolescent macros.
87827         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
87828         * lib/xstrdup.c: Remove.
87829
87830         * lib/regex.c (re_comp): Cast gettext return value to char *,
87831         Problem reported by Martin Neitzel via Mark D. Baushke.
87832
87833 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
87834
87835         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
87836         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
87837         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
87838         regex.c, sha1.c, version-etc.c, yesno.c:
87839         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
87840         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
87841         the includer's responsibility.
87842
87843         Sync from coreutils.
87844
87845         * lib/modechange.c (mode_compile): Don't decrement a pointer that
87846         points to the start of a string, as the C Standard says the
87847         resulting behavior is undefined.
87848
87849         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
87850         simple -> simple_backups, numbered_existing ->
87851         numbered_existing_backups, numbered -> numbered_backups
87852         to avoid shadowing problems.  All uses changed.
87853         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
87854         * lib/backupfile.c (check_extension, numbered_backup):
87855         Rename locals to avoid shadowing 'basename'.
87856         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
87857         once.
87858
87859         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
87860         * lib/.cvsignore: Add getopt.h.
87861
87862 2004-10-04  Bruno Haible  <bruno@clisp.org>
87863
87864         * modules/README: New file.
87865         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
87866         not a module.
87867
87868 2004-10-02  Jim Meyering  <jim@meyering.net>
87869
87870         * lib/dirfd.h, getpagesize.h: Add copyright notice.
87871
87872 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
87873
87874         * modules/strsep: New file.
87875
87876 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
87877
87878         * m4/strsep.m4: New file.
87879
87880 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
87881
87882         * lib/strsep.h: New file.
87883         * lib/strsep.c: New file.
87884
87885 2004-10-01  Simon Josefsson  <jas@extundo.com>
87886
87887         * lib/snprintf.c (snprintf): Handle size==0.
87888
87889 2004-10-01  Simon Josefsson  <jas@extundo.com>
87890             Bruno Haible  <bruno@clisp.org>
87891
87892         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
87893         (snprintf): Declare 'args'.
87894
87895 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
87896
87897         * lib/snprintf.c: Remove comments as to why each header is needed.
87898
87899 2004-10-01  Bruno Haible  <bruno@clisp.org>
87900
87901         * MODULES.html.sh: Add strsep.
87902
87903 2004-09-30  Simon Josefsson  <jas@extundo.com>
87904
87905         * modules/snprintf: New file.
87906
87907 2004-09-30  Simon Josefsson  <jas@extundo.com>
87908
87909         * m4/snprintf.m4: New file.
87910
87911 2004-09-30  Simon Josefsson  <jas@extundo.com>
87912
87913         * lib/snprintf.h, lib/snprintf.c: New files.
87914
87915 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87916
87917         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
87918         (hol_entry_help): Never translate an empty string.
87919         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
87920         * lib/argp.h (OPTION_NO_TRANS): New option.
87921
87922 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
87923
87924         * modules/argp (Maintainer): Replace Simon Josefsson
87925         by Sergey Poznyakoff.
87926
87927 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
87928
87929         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
87930         changes merged back into glibc.
87931
87932 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
87933
87934         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
87935
87936 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
87937
87938         * lib/xvasprintf.c: Include xalloc.h.
87939         (xvasprintf): Use xalloc_die, not xmalloc_die.
87940
87941 2004-09-29  Bruno Haible  <bruno@clisp.org>
87942
87943         * modules/alloca-opt: New file, derived from modules/alloca.
87944         * modules/allocsa: Depend on alloca-opt instead of alloca.
87945         * modules/setenv: Likewise.
87946         * modules/vasnprintf: Likewise.
87947         * MODULES.html.sh: Add alloca-opt.
87948
87949 2004-09-28  Simon Josefsson  <jas@extundo.com>
87950
87951         * gnulib-tool: New parameter --lgpl, to asseert that modules are
87952         LGPL, and to replace license template from GPL to LGPL.
87953
87954 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
87955
87956         * modules/dummy: Change license to LGPL.
87957
87958 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
87959
87960         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
87961
87962 2004-09-24  Simon Josefsson  <jas@extundo.com>
87963
87964         * modules/minmax (License): Change from GPL to LGPL.
87965
87966 2004-09-23  Simon Josefsson  <jas@extundo.com>
87967
87968         * gnulib-tool (--import): Typo.
87969
87970 2004-09-23  Simon Josefsson  <jas@extundo.com>
87971
87972         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
87973
87974 2004-09-22  Bruno Haible  <bruno@clisp.org>
87975
87976         * modules/*: Add 'License' field.
87977         * gnulib-tool: Accept --extract-license option.
87978         (func_get_license): New function.
87979
87980 2004-09-21  Bruno Haible  <bruno@clisp.org>
87981
87982         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
87983         Reported by Simon Josefsson.
87984
87985 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
87986
87987         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
87988         gl_AC_TYPE_LONG_LONG.
87989
87990 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
87991
87992         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
87993
87994 2004-09-18  Simon Josefsson  <jas@extundo.com>
87995         and  Paul Eggert  <eggert@cs.ucla.edu>
87996
87997         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
87998         calls with autoreconf.  Define GL_LIB.
87999
88000 2004-09-14  Karl Berry  <karl@gnu.org>
88001
88002         * config/srclist.txt: unsync setenv.c, sigh.
88003
88004 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
88005
88006         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
88007         Problem reported by Bruno Haible in:
88008         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
88009
88010 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
88011
88012         * config/srclist.txt: Comment out argp-pvh.c.
88013
88014 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
88015
88016         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
88017         in case some system header has #define'd it.  Problem reported by
88018         Soeren D. Schulze in
88019         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
88020
88021 2004-09-09  Karl Berry  <karl@gnu.org>
88022
88023         * regex.[ch]: delete from the root.  These were supposed to be
88024                 synced with emacs cvs, but this has not happened for about
88025                 a year, and anyway nothing else uses emacs regex.[ch].
88026                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
88027                 lib/regex[.ch] is untouched.
88028
88029 2004-09-09  Bruno Haible  <bruno@clisp.org>
88030
88031         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
88032
88033 2004-09-09  Bruno Haible  <bruno@clisp.org>
88034
88035         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
88036         modifications.
88037         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
88038
88039 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
88040
88041         * modules/xvasprintf: New file.
88042         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
88043
88044 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
88045
88046         * lib/xvasprintf.h: New file.
88047         * lib/xvasprintf.c: New file.
88048         * lib/xasprintf.c: New file.
88049
88050 2004-09-08  Bruno Haible  <bruno@clisp.org>
88051
88052         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
88053
88054 2004-09-08  Bruno Haible  <bruno@clisp.org>
88055
88056         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
88057         length is > INT_MAX.
88058         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
88059         more.
88060
88061 2004-09-08  Bruno Haible  <bruno@clisp.org>
88062
88063         * lib/stdint_.h: New file, taken from GNU clisp.
88064
88065 2004-09-08  Bruno Haible  <bruno@clisp.org>
88066             Oskar Liljeblad  <oskar@osk.mine.nu>
88067
88068         * modules/stdint: New file.
88069         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
88070
88071 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
88072
88073         Import from coreutils.
88074         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
88075         strings on unbounded length.  alloca's performance benefits aren't
88076         that important here.
88077         (V_STRDUP): Remove.
88078         (parse_with_separator): New function, with most of the internals
88079         of the old parse_user_spec.  Allow user to omit both user and group,
88080         for compatibility with FreeBSD.
88081         Clone only the user name, not the entire spec.
88082         Do not set *uid, *gid unless entirely successful.
88083         Avoid memory leak in some failing cases.
88084         Fix regression for USER.GROUP reported by Dmitry V. Levin in
88085         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
88086         (parse_user_spec): Rewrite to use parse_with_separator.
88087
88088 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
88089
88090         * modules/userspec: Don't depend on alloca.
88091
88092 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
88093
88094         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
88095
88096 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
88097
88098         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
88099         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
88100         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
88101
88102 2004-08-16  Simon Josefsson  <jas@extundo.com>
88103
88104         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
88105         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
88106         Add --dry-run for --import.
88107         Let user provided command line parameters override configure.ac
88108         settings.
88109
88110 2004-08-12  Simon Josefsson  <jas@extundo.com>
88111
88112         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
88113         as discussed with Paul Eggert in threads rooted at
88114         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
88115         and
88116         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
88117         Before, the test was empty, and relied on ELIDE_CODE in source
88118         code.)
88119         (gl_PREREQ_GETOPT): New macro.
88120         (gl_GETOPT): Use them.
88121
88122 2004-08-12  Simon Josefsson  <jas@extundo.com>
88123
88124         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
88125         * lib/getopt_.h: Renamed from getopt.h.
88126
88127 2004-08-12  Simon Josefsson  <jas@extundo.com>
88128
88129         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
88130         Change default library name from libfoo to libgnu.
88131         Now, if you have a configure.ac that says:
88132                 gl_SOURCE_BASE(gl)
88133                 gl_M4_BASE(gl/m4)
88134                 gl_MODULES(error getopt etcetera)
88135                 gl_INIT
88136         you can import all you need by running:
88137                 ../gnulib/gnulib-tool --import
88138
88139         * modules/getopt (Files): Rename getopt.h to getopt_.h.
88140         (Makefile.am): Rewrite, use logic from argz.
88141         (Include): Use <getopt.h> instead of "getopt.h".
88142
88143 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
88144
88145         * modules/argp (Files): Add m4/unlocked-io.m4.
88146         (Depends-on): Add extensions.
88147
88148 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
88149
88150         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
88151         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
88152         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
88153         Check for program_invocation_name, program_invocation_short_name,
88154         flockfile, funlockfile, features.h, _getopt_long_only_r.
88155
88156 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
88157
88158         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
88159         its complicated substitute.
88160         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
88161         and program_invocation_name.
88162         (__argp_basename) [!_LIBC]: Remove; the only use was
88163         replaced by its body.
88164         (__argp_short_program_name): Change condition from
88165         !defined __argp_short_program_name to
88166         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
88167         to match argp-namefrob.h.
88168         (__argp_failure): Don't assume strerror_r returns char *.
88169         * lib/argp-parse.c (N_): Define unconditionally.
88170         (argp_default_options): Fill out initializers with 0 to avoid
88171         gcc warnings.
88172
88173 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
88174
88175         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
88176         getopt1.c.
88177
88178 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
88179
88180         Merge from coreutils.
88181
88182         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
88183
88184         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
88185         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
88186
88187 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
88188
88189         Merge from coreutils.
88190
88191         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
88192         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
88193         for Reliant Unix 5.43.
88194
88195         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
88196         (union fooround): Use uintmax_t, not long int.
88197         The rest is a merge from libc:
88198         [defined _LIBC]: Include <shlib-compat.h>.
88199         (_obstack) [defined _LIBC]: Remove after 2.3.4.
88200
88201         * lib/settime.c (settime): Recode to avoid warning with
88202         Sun Forte C 6U2.
88203
88204         * lib/strverscmp.c: Convert to UTF-8.
88205
88206 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
88207
88208         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
88209         m4/uintmax_t.m4.
88210
88211 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
88212
88213         * modules/xalloc-die: New file.
88214         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
88215
88216         * modules/md5 (Files): Add m4/uint32_t.m4.
88217         * modules/sha1: Renamed from modules/sha.
88218         (Files):
88219         Rename lib/sha.h to lib/sha1.h.
88220         Rename lib/sha.c to lib/sha1.c.
88221         Rename m4/sha.m4 to m4/sha1.m4.
88222         (lib_SOURCES): Likewise.
88223         (configure.ac): Rename gl_SHA to gl_SHA1.
88224         (Include): sha.h -> sha1.h.
88225
88226 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
88227
88228         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
88229         * m4/sha1.m4: Renamed from sha.m4.
88230         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
88231
88232 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
88233
88234         * lib/obstack.h (obstack_empty_p):
88235         Don't assume that chunk->contents is suitably aligned.
88236         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
88237         Likewise. Problem reported by Benno in
88238         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
88239
88240         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
88241         readable.  This could be improved further but it'd take some work.
88242
88243 2004-08-08  Simon Josefsson  <jas@extundo.com>
88244
88245         * modules/xgethostname (Depends-on): Remove exit and error (not
88246         used).
88247
88248         * modules/getpass-gnu: Add getpass.h.
88249         (Depends-on): Add stdbool.
88250         * modules/getpass: Add getpass.h.
88251
88252 2004-08-08  Simon Josefsson  <jas@extundo.com>
88253
88254         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
88255         Check getpass declaration.
88256
88257 2004-08-08  Simon Josefsson  <jas@extundo.com>
88258
88259         * lib/xgethostname.c: Don't include error.h (not used).
88260
88261         * lib/getpass.h: Add.
88262         * lib/getpass.c: Include getpass.h first.
88263
88264 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
88265
88266         * lib/xalloc-die.c: New file.
88267         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
88268         All uses removed.
88269         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
88270         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
88271         xalloc-die.c.
88272         (_, N_, xalloc_die): Move to xalloc-die.c.
88273         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
88274         so that we needn't mess with xalloc_msg_memory_exhausted.
88275
88276         * lib/sha1.h: Renamed from sha.h.
88277         (SHA1_H): Renamed from _SHA_H.
88278         (sha1_ctx): Renamed from sha_ctx.
88279         (sha1_init_ctx): Renamed from sha_init_ctx.
88280         (sha1_process_block): Renamed from sha_process_block.
88281         (sha1_process_bytes): Renamed from sha_process_bytes.
88282         (sha1_finish_ctx): Renamed from sha_finish_ctx.
88283         (sha1_read_ctx): Renamed from sha_read_ctx.
88284         (sha1_stream): Renamed from sha_stream.
88285         (sha1_buffer): Renamed from sha_buffer.
88286         * lib/sha1.c: Likewise; renamed from sha.c.
88287         Do not include <sys/types.h>.
88288         Include <stddef.h> rather than <stdlib.h>.
88289
88290 2004-08-08  Bruno Haible  <bruno@clisp.org>
88291
88292         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
88293         FILESYSTEM_PREFIX_LEN.
88294         * lib/progreloc.c: Likewise.
88295         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
88296
88297 2004-08-06  Simon Josefsson  <jas@extundo.com>
88298
88299         * modules/progname (Depends-on): Don't depend on stdbool.
88300
88301 2004-08-06  Simon Josefsson  <jas@extundo.com>
88302
88303         * modules/getsubopt: New file.
88304         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
88305         getsubopt.
88306
88307 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
88308
88309         More merge from coreutils.
88310
88311         * m4/utimens.m4, m4/utimecmp.m4: New files.
88312         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
88313         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
88314         prereq.m4, sha.m4: Import changes from coreutils.
88315
88316 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
88317
88318         More merge from coreutils.
88319         * modules/raise, modules/readtokens0, modules/utimens:
88320         * modules/utimecmp, module/xnanosleep: New files.
88321         * modules/strftime: Add lib/strftime.h.
88322         Change include from <time.h> to "strftime.h".
88323         * modules/yesno: Add lib/yesno.h.
88324         * modules/backupfile: Remove lib/addext.c.
88325         * modules/euidaccess: Add stat-macros.h.
88326         * modules/canonicalize, modules/euidaccess,
88327         modules/filemode, modules/lchown, modules/makepath,
88328         modules/rmdir, modules/stat: Likewise.
88329
88330 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
88331
88332         Merge from tar.
88333         * lib/argp-help.c (make_hol, hol_append): Don't assume that
88334         SIZE_MAX is a valid preprocessor constant.
88335         (__argp_basename): Change from "#ifndef _LIBC"
88336         to "#ifndef __argp_short_program_name", so that
88337         we don't compile these functions for tar.
88338
88339         More merges from coreutils.
88340         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
88341         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
88342         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
88343         * lib/addext.c: Remove; no longer needed.
88344         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
88345         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
88346         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
88347         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
88348         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
88349         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
88350         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
88351         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
88352         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
88353         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
88354         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
88355         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
88356         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
88357         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
88358         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
88359         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
88360         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
88361         Import changes from coreutils.
88362
88363 2004-08-05  Simon Josefsson  <jas@extundo.com>
88364
88365         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
88366
88367 2004-08-05  Simon Josefsson  <jas@extundo.com>
88368
88369         * m4/getsubopt.m4: New file.
88370
88371 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
88372
88373         Merge from coreutils.
88374
88375         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
88376         * m4/getcwd-path-max.m4: New files.
88377
88378         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
88379         FILESYSTEM_PREFIX_LEN ->
88380         FILE_SYSTEM_PREFIX_LEN.
88381         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
88382         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
88383         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
88384         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
88385
88386         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
88387         prerequisite modules now handle the DOS stuff.
88388         Don't check for unistd.h.
88389
88390 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
88391
88392         Merge from coreutils.
88393
88394         * lib/.gdb-history: Remove; this doesn't belong here.
88395
88396         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
88397         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
88398         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
88399         * lib/getcwd.c: New files.
88400
88401         * lib/dirname.h: Include <stdbool.h>.
88402         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
88403         for consistency with POSIX terminology.  All uses changed.
88404         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
88405         (strip_trailing_slashes): Use bool for booleans.
88406         * lib/stripslash.c (strip_trailing_slashes): Likewise.
88407
88408         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
88409         sometimes returns a positive errno value even when it succeeds.
88410         (print_errno_message) [!LIBC]: Fall back on strerror if
88411         __strerror_r fails.
88412
88413         * lib/path-concat.c (mempcpy): Don't define if a system header defines
88414         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
88415         (longest_relative_suffix): New function.
88416         (path_concat): Use it.  Assume first argument is not NULL.
88417         Port to DOS.  Omit redundant separators.
88418         Report an error instead of returning NULL.
88419         Use mempcpy instead of memcpy.
88420         (xpath_concat): Remove: not declared or used.
88421
88422         * lib/same.h: Include <stdbool.h>
88423         (same_name): Return bool, not int.
88424         * lib/same.c (same_name): Likewise.
88425         (errno): Don't declare; we assume C89 or better now.
88426
88427         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
88428         if not already defined.
88429
88430         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
88431         * lib/dup-safer.c (errno): Likewise.
88432
88433 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
88434
88435         Merge from coreutils.
88436         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
88437         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
88438         * modules/path-concat: Don't depend on strdup.
88439
88440 2004-08-03  Simon Josefsson  <jas@extundo.com>
88441
88442         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
88443         * lib/progname.h: Don't include stdbool.h.
88444
88445 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
88446
88447         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
88448         * MODULES.html.sh (func_all_modules): Remove fatal.
88449
88450 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
88451
88452         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
88453
88454 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
88455
88456         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
88457         working.
88458
88459 2004-08-02  Simon Josefsson  <jas@extundo.com>
88460
88461         * lib/getsubopt.h: New file, with comments from Bruno Haible.
88462         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
88463         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
88464
88465 2004-08-01  Simon Josefsson  <jas@extundo.com>
88466
88467         * lib/xgetdomainname.c: Include stdlib.h, for free().
88468
88469 2004-07-19  Bruno Haible  <bruno@clisp.org>
88470
88471         * MODULES.html.sh (func_all_modules): Add dummy.
88472
88473 2004-07-16  Simon Josefsson  <jas@extundo.com>
88474
88475         * modules/dummy: New file.
88476
88477 2004-07-16  Simon Josefsson  <jas@extundo.com>
88478
88479         * lib/dummy.c: New file.
88480
88481 2004-07-16  Bruno Haible  <bruno@clisp.org>
88482
88483         * lib/backupfile.h: Add extern "C" for C++.
88484         * lib/closeout.h: Likewise.
88485         * lib/copy-file.h: Likewise.
88486         * lib/findprog.h: Likewise.
88487         * lib/full-write.h: Likewise.
88488         * lib/pathname.h: Likewise.
88489         * lib/progname.h: Likewise.
88490         * lib/stpcpy.h: Likewise.
88491         * lib/stpncpy.h: Likewise.
88492         * lib/strcase.h: Likewise.
88493         * lib/strstr.h: Likewise.
88494         * lib/xalloc.h: Likewise.
88495
88496         * lib/mbswidth.h: Add extern "C" for C++.
88497         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
88498
88499 2004-07-13  Robert Millan  <robertmh@gnu.org>
88500
88501         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
88502
88503 2004-07-09  Simon Josefsson  <jas@extundo.com>
88504
88505         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
88506         failed without this.)
88507
88508 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
88509
88510         * modules/chown (Files): Add lib/fchown-stub.c, since
88511         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
88512
88513 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
88514
88515         * lib/fchown-stub.c: New file.
88516
88517 2004-06-24  Jim Meyering  <jim@meyering.net>
88518
88519         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
88520
88521 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
88522
88523         * modules/argz: Omit "#include".
88524
88525         * MODULES.html.sh (func_all_modules): Add calloc, to match
88526         2004-06-01 addition of calloc module.
88527
88528 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
88529
88530         * m4/argz.m4: New file, which is autoupdated from libtool.
88531
88532 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
88533
88534         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
88535         libtool.
88536
88537 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
88538
88539         * config/srclist-update: Don't insist on "USA." before the
88540         close-comment, as libtool omits the period and puts the */ on a
88541         separate line.
88542         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
88543         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
88544
88545 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
88546
88547         * modules/argz: New file.
88548         * MODULES.html.sh (func_all_modules): Add argz.
88549
88550 2004-06-12  Jim Meyering  <jim@meyering.net>
88551         and  Paul Eggert  <eggert@cs.ucla.edu>
88552
88553         * modules/hash (Files): Add lib/xalloc.h.
88554         * modules/pipe (Depends-on): Add wait-process.
88555         * modules/stat (Depends-on): Add xalloc.
88556         * modules/userspec (Files): Add lib/userspec.h.
88557         * modules/xstrto
88558
88559         Upgrade from gettext-0.13.
88560         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
88561         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
88562         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
88563
88564 2004-06-10  Jim Meyering  <jim@meyering.net>
88565
88566         * lib/calloc.c: New file.
88567
88568 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
88569
88570         * lib/getdate.y (yylex): Allow space between sign and number.
88571         Problem reported by Dan Jacobson.
88572
88573 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
88574
88575         Merge from coreutils CVS.
88576
88577         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
88578         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
88579         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
88580         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
88581         xstrtol.m4: Fix copyright date and/or serial number.
88582
88583         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
88584         See if we need an fchown replacement.
88585         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
88586         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
88587         and use the replacement function if we detect either defect.
88588
88589         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
88590         gl_UTIMECMP.
88591
88592 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
88593         and  Jim Meyering  <jim@meyering.net>
88594
88595         Merge from coreutils CVS.
88596
88597         * lib/stat-macros.h: New file, with contents from file-type.h
88598         and coreutils' system.h.
88599         * lib/file-type.c: Include "stat-macros.h".
88600         * lib/file-type.h (file_type): Move all macro definitions to new file,
88601         stat-macros.h.
88602
88603         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
88604         Wrap old code with this conditional.
88605         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
88606         function that does not dereference symlinks.
88607         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
88608
88609         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
88610         dependency problems.
88611         (xreadlink): Accept new arg SIZE, for efficiency.
88612         All decls and uses changed.
88613         * lib/xreadlink.h: Include <stddef.h>, for size_t.
88614
88615         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
88616         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
88617
88618         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
88619         sysexits.h.
88620
88621 2004-06-01  Jim Meyering  <jim@meyering.net>
88622
88623         * m4/calloc.m4: New file.
88624
88625 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
88626
88627         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
88628         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
88629         Also, fix a typo in a diagnostic.
88630
88631 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
88632
88633         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
88634         or AC_FUNC_REALLOC.
88635
88636 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
88637
88638         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
88639         macros to be defined.
88640         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
88641         the allocator returns NULL because the requested size is zero.
88642
88643 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
88644
88645         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
88646         var.  Add comment explaining why libc still defines it.  This
88647         merges the following patch from glibc:
88648         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
88649
88650 2004-05-20  Andreas Schwab  <schwab@suse.de>
88651
88652         * m4/free.m4: Replace free if it not known to work, not the other
88653         way round.
88654
88655 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
88656
88657         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
88658         present in glibc since revision 1.1 of this file.
88659         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
88660         obstack_alignment_mask, obstack_alloc, obstack_base,
88661         obstack_blank, obstack_blank_fast, obstack_chunk_size,
88662         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
88663         obstack_grow0, obstack_init, obstack_int_grow,
88664         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
88665         obstack_next_free, obstack_object_size, obstack_ptr_grow,
88666         obstack_ptr_grow_fast, obstack_room): Remove declarations of
88667         nonexistent functions.
88668
88669 2004-05-18  Karl Berry  <karl@gnu.org>
88670
88671         * config/srclist.txt: break link for vasnprintf.c.
88672
88673 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
88674
88675         Port obstack to the AS/400, where pointers are 16 bytes wide and
88676         you cannot cast an integer to a valid pointer.  This patch is
88677         currently waiting to be integrated into glibc; see
88678         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
88679
88680         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
88681         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
88682         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
88683         (struct obstack): temp member is now a union of a pointer and
88684         an integer, instead of an integer.  All integer uses changed.
88685         This does not affect the physical layout of struct obstack,
88686         except on hosts (like the AS/400) where the size or alignment of
88687         void * is greater than that of ptrdiff_t.
88688         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
88689         __STDC__)]: Store temporary in pointer member of union, not
88690         integer member.
88691         * lib/obstack.c: Include <stddef.h>, for offsetof.
88692         (struct fooalign): Remove; it doesn't need a name.
88693         (union fooround): Change double to long double, and add void *.
88694         (DEFAULT_ALIGNMENT): Use offsetof to compute.
88695         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
88696         not a macro.  Hence the values are always int; so remove all
88697         casts-to-int in uses.
88698
88699 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
88700
88701         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
88702         we can get this patch merged into glibc.
88703
88704 2004-05-17  Derek R. Price  <derek@ximbiot.com>
88705             Paul Eggert  <eggert@cs.ucla.edu>
88706
88707         * m4/argp: Depend on alloca.
88708
88709 2004-05-17  Derek R. Price  <derek@ximbiot.com>
88710             Paul Eggert  <eggert@cs.ucla.edu>
88711
88712         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
88713         freecoding.
88714
88715 2004-05-17  Bruno Haible  <bruno@clisp.org>
88716
88717         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
88718         precision that consists of a '.' followed by an empty digit string.
88719         Patch by Tor Lillqvist <tml@iki.fi>.
88720
88721 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
88722
88723         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
88724         for backward compatibility with older code.  We need our own
88725         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
88726         it under some other name, and our alloca.h will define it.
88727
88728 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
88729             Derek Price  <derek@ximbiot.com>
88730
88731         * lib/alloca.c: Include <alloca.h>, to get our interface.
88732         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
88733         include <alloca.h> first.  Use C89 prototype for alloca; this
88734         requires including <stddef.h> for size_t.  Use extern "C" if C++.
88735         Use #elif for simplicity, since we can assume C89 now.
88736         Don't try to source the system alloca.h since it will not be found
88737         and to prevent recursively including its replacement.
88738         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
88739         * lib/regex.c: Likewise.
88740
88741 2004-05-16  Derek Price  <derek@ximbiot.com>
88742             Paul Eggert  <eggert@cs.ucla.edu>
88743
88744         getline cleanup.  This changes the getndelim2 API: both order of
88745         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
88746         no delimiter).
88747
88748         * lib/getline.c: Don't include stddef.h or stdio.h, since our
88749         interface does that.
88750         (getline): Always use getdelim, so that we don't have two
88751         copies of this code.
88752         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
88753         if available.
88754         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
88755         (GETNDELIM2_MAXIMUM): New macro.
88756         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
88757         instead of the old practice of delim2==0.  All callers changed.
88758         Return -1 on overflow, instead of returning junk.
88759         Do not set *linesize unless allocation succeeds.
88760         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
88761         that we include sys/types.h.
88762         * lib/getnline.h: Likewise.
88763         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
88764         (getndelim2): Reorder arguments.
88765         * lib/getnline.c (getnline, getndelim):
88766         Don't discard the NMAX argument.
88767         (getnline): Invoke getndelim, to avoid code duplication.
88768         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
88769         of (size_t) -1 by callers of the getnline family.
88770
88771 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
88772
88773         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
88774         Check for gettimeofday.
88775         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
88776         Check for settimeofday, stime.
88777
88778 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
88779
88780         * lib/nanosleep.c (suspended): Change its type from int to
88781         sig_atomic_t volatile.
88782         (first_call): Make it private to rpl_nanosleep, and have it
88783         be zero initially as that's a bit faster.
88784         (my_usleep): Round up fractional times instead of truncating them,
88785         as this is the usual meaning for 'sleep'.
88786
88787         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
88788         doesn't work.
88789         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
88790         (ENOSYS): Define if not defined.
88791         (settime): Fall back on stime if it exists and settimeofday fails.
88792         But don't bother with fallbacks if a method fails with errno == EPERM.
88793
88794 2004-05-11  Jim Meyering  <jim@meyering.net>
88795
88796         Prior to this change, the save_cwd caller required read access to the
88797         current directory on most systems (ones with the fchdir function).
88798
88799         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
88800         fails, try write-only, and finally, resort to using xgetcwd.
88801
88802 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
88803
88804         * lib/obstack.c, obstack.h: Import changes from libc.
88805
88806 2004-04-28  Bruno Haible  <bruno@clisp.org>
88807
88808         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
88809         also implicitly appends .exe to executables.
88810         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
88811         accepts Windows pathnames.
88812         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
88813         Treat Cygwin like Windows, since it now accepts Windows pathnames.
88814         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
88815         Treat Cygwin like Windows, since it now accepts Windows pathnames.
88816         Reported by Derek Robert Price <derek@ximbiot.com>.
88817
88818 2004-04-21  Karl Berry  <karl@gnu.org>
88819
88820         * config/srclist.txt (localcharset.c): break sync.
88821
88822 2004-04-20  Paul Eggert  <eggert@twinsun.com>
88823
88824         * m4/host-os.m4: Add a copyright notice.
88825
88826 2004-04-20  Jim Meyering  <jim@meyering.net>
88827
88828         Change UTILS_ to gl_ in AC_DEFINE'd names.
88829         Change utils_- and jm_-prefixed variables, too.
88830         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
88831         UTILS_FUNC_MKDIR_TRAILING_SLASH.
88832         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
88833
88834         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
88835         Don't emit trailing blanks.
88836         Also rename jm_-prefixed variables to have gl_ prefix.
88837
88838         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
88839         Also rename jm_-prefixed variables to have gl_ prefix.
88840
88841         * m4/jm-macros.m4: Reflect the renamings.
88842         * m4/prereq.m4: Likewise.
88843
88844 2004-04-20  Jim Meyering  <jim@meyering.net>
88845
88846         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
88847         memory.
88848
88849 2004-04-20  Jim Meyering  <jim@meyering.net>
88850             Bruno Haible  <bruno@clisp.org>
88851
88852         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
88853         memory when realloc fails.
88854
88855 2004-04-19  Jim Meyering  <jim@meyering.net>
88856
88857         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
88858         now that readutmp.c may call `free (0)'.
88859
88860 2004-04-19  Bruno Haible  <bruno@clisp.org>
88861
88862         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
88863         * m4/inttypes_h.m4: Likewise.
88864         * m4/stdint_h.m4: Likewise.
88865         * m4/intmax_t.m4: Likewise.
88866         * m4/uintmax_t.m4: Likewise.
88867
88868 2004-04-18  Jim Meyering  <jim@meyering.net>
88869
88870         * m4/prereq.m4: Don't forbid jm_ prefix.
88871
88872         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
88873         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
88874         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
88875         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
88876         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
88877         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
88878         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
88879         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
88880         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
88881         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
88882         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
88883         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
88884         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
88885         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
88886         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
88887         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
88888         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
88889         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
88890         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
88891
88892 2004-04-18  Jim Meyering  <jim@meyering.net>
88893
88894         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
88895         failure, don't leak memory and do call END_UTMP_ENT.
88896
88897 2004-04-16  Jim Meyering  <jim@meyering.net>
88898
88899         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
88900         coreutils' stat program.
88901         (gl_PREREQ): Don't require jm_PREREQ_STAT.
88902
88903 2004-04-11  Paul Eggert  <eggert@twinsun.com>
88904
88905         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
88906         C89.
88907         (CHAR_BIT): Remove, since we assume C89.
88908         Include <stdint.h> if available, as per current Autoconf CVS advice.
88909
88910 2004-03-31  Jim Meyering  <jim@meyering.net>
88911
88912         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
88913         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
88914         * m4/xalloc.m4: Likewise.
88915
88916 2004-03-30  Paul Eggert  <eggert@twinsun.com>
88917
88918         Merge from coreutils.
88919
88920         * m4/inttostr.m4: New file.
88921         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
88922         Require AM_STDBOOL_H and gl_TIMESPEC instead.
88923         Require gl_CLOCK_TIME.
88924         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
88925
88926 2004-03-30  Paul Eggert  <eggert@twinsun.com>
88927
88928         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
88929         not bool, to be more consistent with Unix conventions.
88930         Suggested by Bruno Haible.
88931
88932         Merge from coreutils.
88933
88934         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
88935         * lib/umaxtostr.c: New files.
88936
88937         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
88938         the usual <time.h> dance.
88939         (get_date): Change signature to support fractional time stamps.
88940         All callers changed.
88941         * lib/getdate.y: Include "getdate.h" first, as we can now
88942         assume C89 and don't need to worry about 'const'.
88943         Similarly, include "unlocked-io.h" near start, not in middle.
88944         Include <limits.h>.
88945         (textint.value): Use long int rather than int.
88946         (textint.digits): Use size_t rather than int.
88947         (BILLION, LOG10_BILLION): New constants.
88948         (parser_control): New member rel_ns.  Members day_ordinal,
88949         time_zone, month, day, hour, minutes, rel_year, rel_month,
88950         rel_day, rel_hour, rel_minutes, rel_seconds
88951         are now long int, not int.  Member seconds is now struct timespec,
88952         not int.  New member timespec_seen.  Members dates_seen, days_seen,
88953         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
88954         not int.
88955         (%union.intval): Now long int, not int.
88956         New member timespec.
88957         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
88958         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
88959         (spec): Now is a timespec or an item list.
88960         (timespec, items): New nonterminals.
88961         (time, rel, relunit, number, get_date):
88962         Add support for fractional seconds.
88963         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
88964         (gmtime, localtime, mktime): Remove decls; not needed with C89.
88965         (to_hour): First arg is now long int, not int.
88966         (to_year): Returns long int, not int.
88967         Don't treat year -70 like 70.
88968         (tm_diff): Returns long int, not int.
88969         (lookup_word): Use bool instead of int when appropriate.
88970         (yylex): Use size_t for count, not int.
88971         Detect overflow when parsing large integer constants.
88972         Add support for fractions.
88973         (get_date): Make pointers 'const' if possible.
88974         Use more-portable code to detect integer overflow.
88975         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
88976         Don't use ctime; it's not reliable if the year has >4 digits.
88977
88978         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
88979         This is for compatibility with BSD.
88980
88981         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
88982         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
88983         From coreutils' system.h.
88984
88985         * lib/userspec.c: Don't include "posixver.h".
88986         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
88987         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
88988         compatible extension.  Simplify code by removing a boolean int
88989         that was always nonzero if a string was nonnull.
88990
88991 2004-03-30  Jim Meyering  <jim@meyering.net>
88992
88993         Merge from coreutils.
88994
88995         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
88996         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
88997         on some systems one must include <grp.h> before it.
88998         Reported by Christian Krackowizer.
88999
89000 2004-03-30  Jim Meyering  <jim@meyering.net>
89001
89002         Merge from coreutils.
89003
89004         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
89005
89006         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
89007         an empty input stream.
89008
89009         * lib/readtokens.c: Include <stdbool.h>.
89010         (readtoken): Use `size_t' rather than int/long.
89011         All callers adjusted.
89012         Use `bool' rather than `int' where appropriate.
89013         Use memset rather than an explicit loop.
89014         Use x2nrealloc rather than xrealloc.
89015         Allow the use of `\0' as a delimiter.
89016         (readtokens): Likewise.
89017         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
89018
89019 2004-03-30  Jim Meyering  <jim@meyering.net>
89020
89021         * m4/realloc.m4: Remove file, since now it does no more than
89022         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
89023         the `configure.ac' section of module/realloc.
89024         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
89025
89026 2004-03-30  Bruno Haible  <bruno@clisp.org>
89027
89028         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
89029         nonnull.
89030
89031 2004-03-29  Paul Eggert  <eggert@twinsun.com>
89032
89033         Merge changes to getloadavg.c from coreutils and Emacs.
89034
89035         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
89036         Define to an expression, not to the empty string.
89037         Include cloexec.h and xalloc.h.
89038         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
89039         Use set_cloexec_flag rather than rolling our own.
89040         * lib/cloexec.c, lib/cloexec.h: New files.
89041
89042 2004-03-29  Paul Eggert  <eggert@twinsun.com>
89043
89044         * m4/cloexec.m4: New file.
89045
89046 2004-03-18  Paul Eggert  <eggert@twinsun.com>
89047
89048         * lib/getopt.h: Sync with libc CVS.
89049
89050 2004-03-18  Paul Eggert  <eggert@twinsun.com>
89051             Bruno Haible  <bruno@clisp.org>
89052
89053         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
89054         mbswidth.
89055
89056 2004-03-18  Paul Eggert  <eggert@twinsun.com>
89057             Bruno Haible  <bruno@clisp.org>
89058
89059         * lib/mbswidth.h: Include <wchar.h> only if
89060         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
89061         <wchar.h>.
89062         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
89063
89064 2004-03-09  Paul Eggert  <eggert@twinsun.com>
89065
89066         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
89067         Sync with libc CVS.
89068         * lib/getopt_int.h: New file, also synced from libc.
89069
89070 2004-03-09  Paul Eggert  <eggert@twinsun.com>
89071
89072         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
89073         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
89074         Bring back getopt.c, getopt.h, getopt1.c.
89075
89076 2004-03-07  Paul Eggert  <eggert@twinsun.com>
89077
89078         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
89079         All uses changed.  Check for sa_sigaction member; this fixes
89080         a bug first reported by Jason Andrade in
89081         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
89082
89083 2004-03-07  Paul Eggert  <eggert@twinsun.com>
89084
89085         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
89086         '#if' expressions.  Unlike the code it replaces, it does not
89087         depend on (defined _SC_PAGESIZE).  However, it does depend on
89088         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
89089         first reported by Jason Andrade in
89090         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
89091
89092 2004-02-25  Simon Josefsson  <jas@extundo.com>
89093
89094         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
89095
89096 2004-02-25  Simon Josefsson  <jas@extundo.com>
89097
89098         * lib/strdup.h: New file.
89099         * lib/strdup.c: Include it.
89100         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
89101         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
89102
89103 2004-02-23  Karl Berry  <karl@gnu.org>
89104
89105         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
89106         (from fencepost.gnu.org:/gd/gnuorg).
89107
89108 2004-02-23  Karl Berry  <karl@gnu.org>
89109
89110         * config/srclistvars.sh (GNUORG) [karl]: redefine.
89111         * config/srclist.txt: add maintain/standards documents.
89112
89113 2004-02-18  Bruno Haible  <bruno@clisp.org>
89114
89115         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
89116         Reported by Derek Robert Price <derek@ximbiot.com>.
89117
89118 2004-02-16  Karl Berry  <karl@gnu.org>
89119
89120         * config/mkinstalldirs, install-sh: update from automake.
89121
89122 2004-02-06  Karl Berry  <karl@gnu.org>
89123
89124         * m4/po.m4: update from gettext 0.14.1.
89125
89126 2004-02-06  Karl Berry  <karl@gnu.org>
89127
89128         * lib/config.charset: update from gettext 0.14.1.
89129
89130 2004-02-05  Paul Eggert  <eggert@twinsun.com>
89131
89132         Add comments and code, prompted by suggestions from Bruno Haible
89133         for sh-quote.
89134         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
89135         describing the enum quoting_style values.
89136         * lib/quotearg.c (quotearg_alloc): New function.
89137         (quotearg_buffer_restyled): Treat lone { and } as special.
89138         Treat = as special.  Work around bug with older shells
89139         that "see" a '\' that is really the 2nd byte of a multibyte char.
89140         Quote empty string with shell_quoting_style.
89141
89142 2004-02-03  Bruno Haible  <bruno@clisp.org>
89143
89144         * m4/pipe.m4: New file, from GNU gettext.
89145
89146 2004-02-03  Bruno Haible  <bruno@clisp.org>
89147
89148         * lib/pipe.h: New file, from GNU gettext.
89149         * lib/pipe.c: New file, from GNU gettext.
89150
89151 2004-01-27  Bruno Haible  <bruno@clisp.org>
89152
89153         * m4/execute.m4: New file, from GNU gettext.
89154
89155 2004-01-27  Bruno Haible  <bruno@clisp.org>
89156
89157         * lib/execute.h: New file, from GNU gettext.
89158         * lib/execute.c: New file, from GNU gettext.
89159         * lib/w32spawn.h: New file, from GNU gettext.
89160
89161 2004-01-24  Paul Eggert  <eggert@twinsun.com>
89162
89163         Merge from diffutils.
89164
89165         * lib/file-type.c (file_type): Add typed memory objects.
89166         * lib/file-type.h (S_TYPEISTMO): New macro.
89167
89168         * lib/c-stack.h (c_stack_action): Remove argv argument.
89169         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
89170         (die): Don't calculate message unless segv_action returns.
89171         (get_stack_location, min_address_from_argv, max_address_from_argv,
89172         volatile stack_base, volatile_stack_size): Remove.
89173         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
89174         that every segmentation violation is a stack overflow.  (Ouch!)
89175         See Debian bug 136249 (still outstanding) for more info about why
89176         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
89177
89178 2004-01-24  Paul Eggert  <eggert@twinsun.com>
89179
89180         Exit-status fix from coreutils.
89181
89182         Use exit_failure consistently in place of EXIT_FAILURE,
89183         so that program exit statuses are consistent on failure.
89184
89185         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
89186         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
89187         * lib/argmatch.h: Comment fix to match the above.
89188         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
89189         Now a macro referring to exit_failure, instead of a separate
89190         variable.  Include "exitfail.h" to get it.
89191         * lib/xstrtol.h: Include "exitfail.h".
89192         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
89193
89194         * lib/long-options.c (parse_long_options): Use prototype
89195         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
89196         for clarity.
89197
89198 2004-01-21  Jim Meyering  <jim@meyering.net>
89199
89200         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
89201         so as not to conflict with a different-sized __mktime_internal
89202         function in GNU libc.
89203         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
89204         Problem building statically-linked `ls' reported by Michael Brunnbauer.
89205
89206 2004-01-20  Karl Berry  <karl@gnu.org>
89207
89208         * config/config.guess: update from config.
89209
89210         * config/srclistvars.sh: GNUWWWLICENSES for karl.
89211
89212 2004-01-20  Bruno Haible  <bruno@clisp.org>
89213
89214         Safer stack allocation.
89215         * lib/setenv.c: Include allocsa.h.
89216         (alloca): Remove fallback definition.
89217         (freea): Remove macro.
89218         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
89219         instead of freea.
89220
89221 2004-01-20  Bruno Haible  <bruno@clisp.org>
89222
89223         * m4/eealloc.m4: New file, from GNU gettext.
89224
89225 2004-01-20  Bruno Haible  <bruno@clisp.org>
89226
89227         * m4/allocsa.m4: New file, from GNU gettext.
89228
89229 2004-01-20  Bruno Haible  <bruno@clisp.org>
89230
89231         * lib/xallocsa.h: New file, from GNU gettext.
89232         * lib/xallocsa.c: New file, from GNU gettext.
89233
89234 2004-01-20  Bruno Haible  <bruno@clisp.org>
89235
89236         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
89237
89238 2004-01-20  Bruno Haible  <bruno@clisp.org>
89239
89240         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
89241         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
89242         specially.
89243
89244 2004-01-20  Bruno Haible  <bruno@clisp.org>
89245
89246         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
89247         patch.
89248
89249 2004-01-20  Bruno Haible  <bruno@clisp.org>
89250
89251         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
89252
89253 2004-01-20  Bruno Haible  <bruno@clisp.org>
89254
89255         * lib/eealloc.h: New file.
89256
89257 2004-01-20  Bruno Haible  <bruno@clisp.org>
89258
89259         * lib/binary-io.h: Avoid warnings on Cygwin.
89260
89261 2004-01-20  Bruno Haible  <bruno@clisp.org>
89262
89263         * lib/allocsa.h: New file, from GNU gettext.
89264         * lib/allocsa.c: New file, from GNU gettext.
89265
89266 2004-01-18  Karl Berry  <karl@gnu.org>
89267
89268         * doc/gpl.texi, doc/lgpl.texi: new files.
89269
89270 2004-01-18  Karl Berry  <karl@gnu.org>
89271
89272         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
89273         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
89274
89275 2004-01-15  Paul Eggert  <eggert@twinsun.com>
89276
89277         Merge from coreutils.
89278
89279         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
89280         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
89281         (gl_DEFAULT_POSIX2_VERSION): Move
89282         the documentation from 'configure' into 'config.hin',
89283         so that 'configure --help' isn't burdened by it and
89284         we don't have to worry about its formatting there.
89285         Reword the documentation so that it's more succinct
89286         and can be run together into a single paragraph.
89287         * m4/same.m4 (gl_SAME): Check for pathconf.
89288
89289 2004-01-15  Paul Eggert  <eggert@twinsun.com>
89290
89291         Merge from coreutils.
89292
89293         * lib/posixver.c: Include posixver.h.
89294
89295         * lib/same.c: Include <stdbool.h>, <limits.h>.
89296         (_POSIX_NAME_MAX): Define if not defined.
89297         (MIN): New macro.
89298         (same_name): If file names are silently truncated, report
89299         that the file names are the same if they are the same after
89300         the silent truncation.
89301
89302         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
89303         conversion function.
89304         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
89305         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
89306         longer needed.
89307
89308 2004-01-15  Jim Meyering  <jim@meyering.net>
89309
89310         Merge from coreutils.
89311
89312         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
89313         if no library is required.
89314         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
89315         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
89316         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
89317         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
89318         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
89319         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
89320         value, $ac_cv_search_crypt, if it's "none required".
89321         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
89322         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
89323         not gl_FUNC_GETLOADAVG.
89324         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
89325         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
89326
89327 2004-01-15  Jim Meyering  <jim@meyering.net>
89328
89329         Merge from coreutils.
89330
89331         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
89332         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
89333         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
89334
89335         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
89336         optional configure-time default.
89337
89338         * lib/version-etc.c (version_etc_copyright): Update copyright date.
89339
89340         * lib/xreadlink.c (xreadlink): Correct outdated comment.
89341
89342 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
89343
89344         Merge from coreutils.
89345
89346         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
89347         value, $ac_cv_search_nanosleep, if it's "none required".
89348
89349 2004-01-14  Paul Eggert  <eggert@twinsun.com>
89350
89351         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
89352         with like-named macro in fnmatch.c.
89353         (EXT): Use an internal constant instead.
89354
89355         Merge fnmatch patches from glibc.
89356         * lib/fnmatch.c (mbsinit): Remove define.
89357         Add libc_hidden_ver (__fnmatch, fnmatch).
89358         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
89359         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
89360
89361 2004-01-14  Karl Berry  <karl@gnu.org>
89362
89363         * config/install-sh: update from automake.
89364
89365 2004-01-13  Karl Berry  <karl@gnu.org>
89366
89367         * config/install-sh: update from automake.
89368
89369 2004-01-09  Karl Berry  <karl@gnu.org>
89370
89371         * config/install-sh: update from automake.
89372
89373 2004-01-05  Karl Berry  <karl@gnu.org>
89374
89375         * config/config.{sub,guess}: update from config.
89376
89377 2003-12-31  Karl Berry  <karl@gnu.org>
89378
89379         * config/depcomp: update from automake.
89380
89381 2003-12-14  Karl Berry  <karl@gnu.org>
89382
89383         * lib/config.charset: update from gettext-runtime.
89384
89385 2003-12-03  Paul Eggert  <eggert@twinsun.com>
89386
89387         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
89388         Bug reported by Alfred M. Szmidt.
89389
89390 2003-12-03  Bruno Haible  <bruno@clisp.org>
89391
89392         * m4/gettext.m4: Upgrade from gettext-0.13.
89393         * m4/po.m4: Upgrade from gettext-0.13.
89394         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
89395         * m4/intmax.m4: New file, from gettext-0.13.
89396         * m4/printf-posix.m4: New file, from gettext-0.13.
89397
89398 2003-11-29  Karl Berry  <karl@gnu.org>
89399
89400         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
89401
89402 2003-11-25  Paul Eggert  <eggert@twinsun.com>
89403             Bruno Haible  <bruno@clisp.org>
89404
89405         * lib/printf-parse.h: Don't include sys/types.h.
89406         (ARG_NONE): New macro.
89407         (char_directive): Change type of *arg_index fields to size_t.
89408         * lib/printf-parse.c: Don't include sys/types.h.
89409         (SSIZE_MAX): Remove macro.
89410         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
89411         Remove unnecessary overflow check.
89412         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
89413         fields.
89414
89415 2003-11-25  Bruno Haible  <bruno@clisp.org>
89416
89417         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
89418
89419 2003-11-25  Bruno Haible  <bruno@clisp.org>
89420
89421         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
89422         gt_TYPE_SSIZE_T.
89423
89424 2003-11-24  Paul Eggert  <eggert@twinsun.com>
89425
89426         * modules/alloca: Remove dependency on xalloc.
89427
89428 2003-11-24  Paul Eggert  <eggert@twinsun.com>
89429
89430         * lib/alloca.c: Remove dependency on xalloc module.
89431         (xalloc_die): Remove.
89432         (memory_full) [!defined emacs]: New macro.
89433         [!defined emacs]: Don't include xalloc.h.
89434         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
89435         address arithmetic overflows.  Change datatypes a bit to avoid
89436         unnecessary casts.
89437
89438 2003-11-22  Jim Meyering  <jim@meyering.net>
89439
89440         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
89441         s/size/size_t/.
89442
89443 2003-11-21  Karl Berry  <karl@gnu.org>
89444
89445         * config/config.{sub,guess}: update from config.
89446
89447 2003-11-18  Karl Berry  <karl@gnu.org>
89448
89449         * config/config.{sub,guess}: update from config.
89450
89451         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
89452
89453 2003-11-17  Paul Eggert  <eggert@twinsun.com>
89454
89455         * README: Mention that S+T cannot overflow if S is the size of
89456         an existing object and T is sufficiently small.
89457
89458 2003-11-17  Jim Meyering  <jim@meyering.net>
89459
89460         On systems without utime and without a utimes function capable of
89461         dealing with a NULL struct utimbuf* argument, this utime replacement
89462         could -- in unusual circumstances -- leak a file descriptor.
89463         * lib/utime.c: Include <unistd.h> and <errno.h>.
89464         (utime_null): Be sure to close `fd' and to preserve errno.
89465         Reported by Geoff Collyer via Arnold Robbins.
89466
89467 2003-11-17  Bruno Haible  <bruno@clisp.org>
89468
89469         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
89470         (Depends-on): Add xsize.
89471
89472 2003-11-17  Bruno Haible  <bruno@clisp.org>
89473
89474         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
89475
89476 2003-11-17  Bruno Haible  <bruno@clisp.org>
89477
89478         * lib/vasnprintf.c (alloca): Remove fallback definition.
89479         (freea): Remove definition.
89480         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
89481         Reported by Paul Eggert.
89482
89483 2003-11-16  Paul Eggert  <eggert@twinsun.com>
89484             Bruno Haible  <bruno@clisp.org>
89485
89486         Protect against address arithmetic overflow.
89487         * lib/printf-args.h: Include stddef.h.
89488         (arguments): Change type of field 'count' to size_t.
89489         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
89490         'unsigned int' where appropriate.
89491         * lib/printf-parse.h: Include sys/types.h.
89492         (char_directive): Change type of *arg_index fields to ssize_t.
89493         (char_directives): Change type of fields 'count', max_*_length to
89494         size_t.
89495         * lib/printf-parse.c: Include sys/types.h and xsize.h.
89496         (SSIZE_MAX): Define fallback value.
89497         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
89498         instead of 'int' where appropriate. Check a_allocated, d_allocated
89499         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
89500         * lib/vasnprintf.c: Include xsize.h.
89501         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
89502         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
89503         overflow. Avoid wraparound when converting a width or precision from
89504         decimal to binary.
89505
89506 2003-11-16  Bruno Haible  <bruno@clisp.org>
89507
89508         Update from GNU gettext.
89509         * lib/printf-parse.c: Generalize to it can be compiled for wide
89510         strings.
89511         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
89512         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
89513         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
89514         SNPRINTF): New macros.
89515         Don't include <alloca.h> if the file is used inside libintl.
89516         (local_wcslen): New function, for Solaris 2.5.1.
89517         (VASNPRINTF): Use it instead of wcslen.
89518
89519 2003-11-16  Bruno Haible  <bruno@clisp.org>
89520
89521         * lib/xsize.h (xmax): New function.
89522         (xsum, xsum3, xsum4): Declare as "pure" functions.
89523
89524 2003-11-12  Paul Eggert  <eggert@twinsun.com>
89525
89526         * modules/xalloc (Files): Undo latest change, since xalloc.h
89527         no longer needs SIZE_MAX or PTRDIFF_MAX.
89528
89529 2003-11-12  Paul Eggert  <eggert@twinsun.com>
89530
89531         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
89532         gl_PTRDIFF_MAX.
89533
89534 2003-11-12  Paul Eggert  <eggert@twinsun.com>
89535
89536         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
89537         "return", to pacify some unknown compiler.  Problem reported
89538         by Joerg Schilling.
89539
89540 2003-11-12  Paul Eggert  <eggert@twinsun.com>
89541
89542         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
89543         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
89544         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
89545         heuristic is just as accurate as far as we know, and it removes a
89546         dependency on size_max.m4 and ptrdiff_max.m4.
89547
89548 2003-11-11  Bruno Haible  <bruno@clisp.org>
89549
89550         * modules/xsize (Files): Add m4/size_max.m4.
89551         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
89552
89553 2003-11-11  Bruno Haible  <bruno@clisp.org>
89554
89555         * m4/size_max.m4: New file.
89556         * m4/ptrdiff_max.m4: New file.
89557         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
89558         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
89559         (gl_XALLOC): Invoke it.
89560
89561 2003-11-11  Bruno Haible  <bruno@clisp.org>
89562
89563         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
89564         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
89565         defined.
89566
89567 2003-11-10  Paul Eggert  <eggert@twinsun.com>
89568
89569         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
89570         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
89571         rejected some allocations of exactly SIZE_MAX - 2 bytes.
89572         From Bruno Haible.
89573         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
89574         not (size_t) -1, since it's defined here.
89575
89576 2003-11-09  Karl Berry  <karl@gnu.org>
89577
89578         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
89579
89580 2003-11-06  Paul Eggert  <eggert@twinsun.com>
89581
89582         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
89583         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
89584         Reject sizes of exactly SIZE_MAX bytes.
89585         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
89586         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
89587
89588 2003-11-05  Bruno Haible  <bruno@clisp.org>
89589
89590         * lib/xsize.h: Include limits.h, to avoid a possible collision with
89591         SIZE_MAX defined in <limits.h> on Solaris.
89592
89593 2003-11-04  Jim Meyering  <jim@meyering.net>
89594
89595         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
89596         variable names, rather than @VAR@.
89597         * modules/poll: Likewise.
89598
89599 2003-11-04  Bruno Haible  <bruno@clisp.org>
89600
89601         * modules/xsize: New file.
89602         * modules/linebreak: Depend on xsize.
89603         * MODULES.html.sh (func_all_modules): Add xsize.
89604
89605 2003-11-04  Bruno Haible  <bruno@clisp.org>
89606
89607         * m4/xsize.m4: New file.
89608
89609 2003-11-04  Bruno Haible  <bruno@clisp.org>
89610
89611         * lib/xsize.h: New file.
89612         * lib/linebreak.c: Include xsize.h.
89613         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
89614         argument for overflow.
89615         Suggested by Paul Eggert.
89616
89617 2003-11-03  Karl Berry  <karl@gnu.org>
89618
89619         * config/config.{guess,sub}: update from config.
89620
89621 2003-11-03  Jim Meyering  <jim@meyering.net>
89622
89623         * modules/userspec (lib_SOURCES): Add userspec.h.
89624         (Include): Add "userspec.h".
89625         Improve description.
89626
89627 2003-11-03  Jim Meyering  <jim@meyering.net>
89628
89629         * lib/userspec.c: Include "userspec.h".
89630         * lib/userspec.h: New file.
89631
89632 2003-11-03  Bruno Haible  <bruno@clisp.org>
89633
89634         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
89635
89636 2003-11-03  Bruno Haible  <bruno@clisp.org>
89637
89638         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
89639         available, to avoid (extremely rare) race condition.
89640         Suggested by Paul Eggert.
89641
89642 2003-11-02  Karl Berry  <karl@gnu.org>
89643
89644         * config/srclist.txt (vasprintf.c): sync broken, sigh.
89645
89646 2003-10-31  Paul Eggert  <eggert@twinsun.com>
89647
89648         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
89649         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
89650         (read_filesystem_list): Set and use me_type_malloced.
89651         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
89652         whatever the type happens to be), for brevity and consistency.
89653         Check for size calculation overflow on Alphas running OSF/1.
89654
89655 2003-10-31  Jim Meyering  <jim@meyering.net>
89656
89657         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
89658
89659         * lib/linebuffer.c: Include <string.h> for declaration of memset.
89660
89661 2003-10-30  Paul Eggert  <eggert@twinsun.com>
89662             Bruno Haible  <bruno@clisp.org>
89663
89664         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
89665         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
89666
89667 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
89668
89669         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
89670         netbsd*-gnu*.  Suggested by Robert Millan.
89671
89672 2003-10-29  Paul Eggert  <eggert@twinsun.com>
89673
89674         * modules/group-member: Depend on stdbool.
89675
89676 2003-10-29  Paul Eggert  <eggert@twinsun.com>
89677
89678         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
89679
89680 2003-10-29  Paul Eggert  <eggert@twinsun.com>
89681
89682         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
89683         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
89684         after the 'gnu' in these cases.  This fixes some bugs in the
89685         previous change, and is based on suggestions by Robert Millan.
89686
89687 2003-10-29  Paul Eggert  <eggert@twinsun.com>
89688
89689         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
89690         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
89691         no longer needed.
89692         * lib/quotearg.c (quotearg_n_options): Use it.
89693         * lib/group-member.c: Include <stdbool.h>.
89694         (free_group_info): Arg is now const *; don't free arg.
89695         (get_group_info): Now returns bool and accepts struct group_info *,
89696         rather than returning a malloc'ed struct group_info *.
89697         All uses changed.  Check for overflow in internal size calculation.
89698
89699         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
89700         rather than xmalloc/xrealloc.
89701         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
89702         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
89703         conformance bug: the old code used a pointer after freeing the
89704         storage that it addressed.
89705         * lib/hash.c (hash_initialize): Simplify the code by using
89706         xalloc_oversized rather than doing it by hand.
89707         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
89708         the buffer preserved.  Use free and xmalloc instead.
89709         * lib/quotearg.c (quotearg_n_options): Likewise.
89710         Use a simpler test for size overflow.  Don't use xalloc_oversized
89711         because unsigned int might be wider than size_t (!); this suggests
89712         that we should switch from unsigned int to size_t for slot numbers.
89713
89714 2003-10-28  Paul Eggert  <eggert@twinsun.com>
89715
89716         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
89717         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
89718         NetBSD kernels.  Requested by Richard Stallman.
89719
89720 2003-10-27  Paul Eggert  <eggert@twinsun.com>
89721
89722         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
89723         to allocate the returned structure.  Do not allocate a subarray,
89724         as x2nrealloc will do that.
89725         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
89726         instead of xnrealloc.
89727         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
89728
89729 2003-10-27  Bruno Haible  <bruno@clisp.org>
89730
89731         * lib/stdbool_.h: Better support for BeOS.
89732
89733 2003-10-26  Paul Eggert  <eggert@twinsun.com>
89734
89735         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
89736         now uses inline.
89737
89738 2003-10-26  Paul Eggert  <eggert@twinsun.com>
89739
89740         * lib/xalloc.h (xalloc_oversized): New static inline function, for
89741         callers that want to do their own size-overflow checking.  Include
89742         <stdbool.h>, since xalloc_oversized returns bool.
89743         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
89744         to use xalloc_oversized.
89745
89746         Add two functions x2realloc, x2nrealloc, for programs that grow
89747         arrays dynamically by doubling their sizes.
89748         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
89749         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
89750         New functions.
89751
89752         Port to C99 semantics for 'inline' of external functions.
89753         Bug reported by Bruno Haible.
89754         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
89755         with the old contents of xnmalloc.
89756         (xnmalloc, xmalloc): Use it.
89757         (xnrealloc_inline): New static inline function,
89758         with the old contents of xnrealloc.
89759         (xnrealloc, xrealloc): Use it.
89760
89761         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
89762         that.
89763
89764 2003-10-26  Karl Berry  <karl@gnu.org>
89765
89766         * config/srclist.txt (COPYING.DOC): no longer available from
89767         /gd/gnuorg; don't know where the ultimate source is.
89768
89769 2003-10-25  Paul Eggert  <eggert@twinsun.com>
89770
89771         Fix several address-calculation bugs in the hash modules,
89772         plus some minor code cleanup.
89773
89774         * lib/hash.h: Include <stdbool.h>, for bool.
89775         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
89776         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
89777         hash_get_n_entries, hash_get_max_bucket_length,
89778         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
89779         hash_rehash): Use size_t rather than unsigned.
89780         * lib/hash.c (struct hash_table, hash_get_n_buckets,
89781         hash_get_n_buckets_used, hash_get_n_entries,
89782         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
89783         hash_get_entries, hash_do_for_each, hash_string, is_prime,
89784         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
89785         Likewise.
89786         (SIZE_MAX): Define if not defined.
89787         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
89788         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
89789         hash_print):
89790         Use const * when possible.
89791         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
89792         (check_tuning): Fix bug: if tuning parameters were very close to
89793         0 or 1, rounding errors could have caused subscript violations.
89794         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
89795         (hash_initialize): Add 'fail:' label
89796         to free table and return NULL, and use it to simplify code.
89797         Use calloc rather than clearing the storage ourself.
89798         (hash_initialize, hash_rehash): Check for arithmetic overflow in
89799         buffer size calculations.
89800         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
89801         Include <stddef.h>, for size_t.
89802         * lib/hash-pjw.c (hash_pjw): Likewise.
89803         Switch to method described by Bruno Haible.
89804         Include <limits.h>, for CHAR_BIT.
89805         (SIZE_BITS): New macro.
89806
89807 2003-10-23  Paul Eggert  <eggert@twinsun.com>
89808
89809         * m4/getline.m4 (AM_FUNC_GETLINE):
89810         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
89811         hosts.  Problem reported by Derek Robert Price in
89812         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
89813         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
89814         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
89815
89816 2003-10-21  Paul Eggert  <eggert@twinsun.com>
89817
89818         * lib/getndelim2.c (getndelim2): When size calculation overflows,
89819         ceiling the allocation at NMAX bytes rather than silently
89820         discarding input bytes before NMAX is reached.  This makes
89821         a difference only if NMAX exceeds SIZE_MAX / 2.
89822
89823         * lib/obstack.c: Merge from glibc.
89824         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
89825         Add libc_hidden_def (_obstack_newchunk).
89826         (_obstack_free) [! defined _LIBC]: Remove.
89827         [defined _LIBC]: Make a strong alias from obstack_free, rather than
89828         a clone of the function body.
89829         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
89830         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
89831
89832         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
89833         glibc.
89834         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
89835         arg to memcpy.
89836
89837         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
89838         (obstack_ptr_grow_fast, obstack_int_grow_fast):
89839         Don't use lvalue casts, as GCC plans to remove support for them
89840         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
89841         was also present in the non-GCC version, indicating that this
89842         code had always been buggy and had never been widely used.
89843         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
89844         Use the fast variant of each macro, rather than copying the
89845         definiens of the fast variant; that way, we'll be more likely to
89846         catch future bugs in the fast variants.
89847
89848 2003-10-20  Bruno Haible  <bruno@clisp.org>
89849
89850         * modules/wait-process: New file.
89851         * MODULES.html.sh (func_all_modules): Add wait-process.
89852
89853 2003-10-20  Bruno Haible  <bruno@clisp.org>
89854
89855         * m4/wait-process.m4: New file.
89856
89857 2003-10-20  Bruno Haible  <bruno@clisp.org>
89858
89859         * lib/wait-process.h: New file, from GNU gettext.
89860         * lib/wait-process.c: New file, from GNU gettext.
89861
89862 2003-10-19  Jim Meyering  <jim@meyering.net>
89863
89864         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
89865         HPUX 10.20.
89866
89867 2003-10-18  Karl Berry  <karl@gnu.org>
89868
89869         * config/config.guess: update from config.
89870
89871 2003-10-16  Paul Eggert  <eggert@twinsun.com>
89872
89873         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
89874         (getgroups): First arg is int, not size_t.
89875         Don't let 'free' mangle errno.
89876
89877 2003-10-16  Paul Eggert  <eggert@twinsun.com>
89878
89879         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
89880
89881 2003-10-16  Karl Berry  <karl@gnu.org>
89882
89883         * config/config.{guess,sub}: update from config.
89884
89885 2003-10-16  Jim Meyering  <jim@meyering.net>
89886
89887         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
89888         memcpy.
89889
89890 2003-10-15  Paul Eggert  <eggert@twinsun.com>
89891
89892         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
89893         (SIZE_MAX): Remove.
89894         (new_exclude, add_exclude_file): Initial size no longer needs to
89895         be a power of 2.
89896         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
89897         our own address arithmetic overflow checking.
89898
89899         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
89900         (fnmatch): Do not alloca more than 2000 wide characters;
89901         instead, use malloc for large buffers.
89902         Check for address arithmetic overflow, and return -1
89903         with errno set to ENOMEM in that case.
89904         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
89905         (NEW_PATTERN): Do not alloca more than 8000 bytes;
89906         instead, return -1.  Check for address arithmetic overflow.
89907
89908 2003-10-14  Paul Eggert  <eggert@twinsun.com>
89909
89910         Handle invalid suffixes and overflow independently, so that
89911         callers can treat them independently as needed.  Fix some bugs in
89912         suffix handling, e.g., "100k@" was not diagnosed as an invalid
89913         suffix for a human-readable blocksize.  The major caller-visible
89914         change is the addition of a new
89915         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
89916         that both overflow and suffix chars were found.
89917
89918         * lib/human.c (humblock): Don't check separately for invalid suffix
89919         char; that is xstrtoumax's job (now that its bug is fixed).
89920         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
89921         INTMAX_MAX]: New macros.
89922         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
89923         TYPE_MAXIMUM): New macros.
89924         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
89925         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
89926         if overflow occurs, as it's what __strtol does and it's more useful
89927         in practice.
89928         (__xstrtol): If __strtol reports some error other than ERANGE,
89929         reflect it to the caller as LONGINT_INVALID.  If it reports
89930         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
89931         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
89932         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
89933         value.
89934         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
89935         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
89936         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
89937         [defined UINTMAX_MAX]: New macros.
89938
89939 2003-10-14  Bruno Haible  <bruno@clisp.org>
89940
89941         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
89942
89943 2003-10-14  Bruno Haible  <bruno@clisp.org>
89944
89945         * m4/sig_atomic_t: New file, from GNU gettext.
89946         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
89947
89948 2003-10-14  Bruno Haible  <bruno@clisp.org>
89949
89950         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
89951         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
89952         Also use volatile where needed.
89953
89954 2003-10-12  Paul Eggert  <eggert@twinsun.com>
89955
89956         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
89957         Change maintainer from Bruno Haible to 'all'.
89958
89959 2003-10-12  Paul Eggert  <eggert@twinsun.com>
89960
89961         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
89962
89963 2003-10-12  Paul Eggert  <eggert@twinsun.com>
89964
89965         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
89966         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
89967         and define in terms of the other primitives.
89968         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
89969         (SIZE_MAX): Define if not already defined.
89970         (array_size_overflow): New function.
89971         (xalloc_die): Abort instead of exiting if 'error' returns.
89972         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
89973         (xmalloc, xrealloc): Use them.
89974         (xcalloc): Check for address arithmetic overflow.
89975         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
89976         a bit faster than strcpy.
89977
89978 2003-10-10  Simon Josefsson  <jas@extundo.com>
89979
89980         * modules/argp (Depends-on): Add restrict and strcase.
89981
89982 2003-10-10  Simon Josefsson  <jas@extundo.com>
89983
89984         * m4/argp.m4: Add AC_C_INLINE.
89985
89986 2003-10-08  Paul Eggert  <eggert@twinsun.com>
89987
89988         Merge getpass from libc, plus a few fixes.
89989
89990         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
89991         Include <stdbool.h>.
89992         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
89993         __fsetlocking to empty.
89994         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
89995         do include <bits/libc-lock.h>.
89996         Do not include <fcntl.h>; not needed.
89997         [_LIBC]: Include <wchar.h>.
89998         (NOTCANCEL_MODE): New macro.
89999         (flockfile, funlockfile) [_LIBC]: New macros.
90000         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
90001         [!_LIBC]: New macros.
90002         (call_fclose): New function.
90003         (getpass): Use it.  Save tty stream separately; this simplifies the
90004         code and makes it more reliable if stdin happens to equal stdout.
90005         Invoke __fsetlocking on tty.
90006         Handle thread cancellation if needed.
90007         Namespace cleanup (use __tcgetattr, __getline).
90008         Use bool for Booleans.
90009         [USE_IN_LIBIO]: Handle wide streams.
90010         [!_LIBC]: Unconditionally do the fseek, since we don't know what
90011         stream might go where.
90012
90013         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
90014         doesn't have to include <stdio.h> before us.
90015         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
90016         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
90017         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
90018         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
90019         if not declared, so that we can use getpass.c code from libc without
90020         rewriting it.
90021         (flockfile, ftrylockfile, funlockfile): New macros.
90022
90023 2003-10-08  Paul Eggert  <eggert@twinsun.com>
90024
90025         * modules/getpass: Depend on stdbool.
90026
90027 2003-10-08  Paul Eggert  <eggert@twinsun.com>
90028
90029         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
90030
90031 2003-10-07  Karl Berry  <karl@gnu.org>
90032
90033         * config/config.{guess,sub}: update from config.
90034
90035 2003-10-06  Jim Meyering  <jim@meyering.net>
90036             Bruno Haible  <bruno@clisp.org>
90037
90038         This lets translators provide better translations for the
90039         "Written by ..." part of --version output.
90040         * lib/version-etc.h: Include stdarg.h.
90041         (version_etc_copyright): Declare as readonly.
90042         (version_etc): Make this function variadic with a NULL-terminated list
90043         of author name strings.
90044         (version_etc_va): New declaration.
90045         * lib/version-etc.c: Include stdarg.h, stdlib.h.
90046         (version_etc_copyright): Declare as readonly.
90047         (version_etc_va): New function. Provide a different translatable string
90048         for each possible number of authors < 10. Abbreviate when there are 10
90049         authors or more.
90050         (version_etc): Make this function variadic. Call version_etc_va.
90051         Suggestion from Gary V. Vaughan.
90052
90053         * lib/long-options.h (parse_long_options): Change prototype: the
90054         authors string is moved to the end and becomes variadic.
90055         * lib/long-options.c: Include stdarg.h.
90056         (parse_long_options): Make this function variadic, too.
90057         Call version_etc_va, not version_etc.
90058
90059 2003-10-06  Bruno Haible  <bruno@clisp.org>
90060
90061         * modules/version-etc-2: Remove file.
90062         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
90063
90064 2003-10-06  Bruno Haible  <bruno@clisp.org>
90065
90066         * modules/fatal-signal: New file.
90067         * MODULES.html.sh (func_all_modules): Add fatal-signal.
90068
90069 2003-10-06  Bruno Haible  <bruno@clisp.org>
90070
90071         * m4/fatal-signal.m4: New file.
90072         * m4/signalblocking.m4: New file, from GNU gettext.
90073
90074 2003-10-06  Bruno Haible  <bruno@clisp.org>
90075
90076         * lib/version-etc-2.h: Remove file.
90077         * lib/version-etc-2.c: Remove file.
90078
90079 2003-10-06  Bruno Haible  <bruno@clisp.org>
90080
90081         * lib/fatal-signal.h: New file, from GNU gettext.
90082         * lib/fatal-signal.c: New file, from GNU gettext.
90083
90084 2003-10-05  Paul Eggert  <eggert@twinsun.com>
90085
90086         * README: Rework advice for preventing empty .o files.
90087         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
90088         not <sys/types.h>.
90089
90090 2003-10-04  Karl Berry  <karl@gnu.org>
90091
90092         * lib/argp*: update from libc.
90093
90094 2003-10-04  Karl Berry  <karl@gnu.org>
90095
90096         * config/config.{guess,sub}: update from config.
90097
90098 2003-10-02  Bruno Haible  <bruno@clisp.org>
90099
90100         * modules/lchown (Include): Add lchown.h.
90101         * modules/time_r (Include): Use "..." syntax.
90102         * modules/xgetdomainname (Include): Add xgetdomainname.h.
90103
90104 2003-10-01  Simon Josefsson  <jas@extundo.com>
90105
90106         * MODULES.html.sh (func_all_modules): Move gethostname from section
90107         'based on' to section 'lacking' POSIX:2001.
90108
90109 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
90110
90111         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
90112         to output mode on the same stream.
90113
90114 2003-09-29  Paul Eggert  <eggert@twinsun.com>
90115
90116         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
90117         Fix arg typo in previous patch.
90118
90119 2003-09-28  Jim Meyering  <jim@meyering.net>
90120
90121         * lib/error.c: Correct cpp indentation.
90122
90123 2003-09-27  Paul Eggert  <eggert@twinsun.com>
90124
90125         * modules/free: New file.
90126
90127 2003-09-27  Paul Eggert  <eggert@twinsun.com>
90128
90129         * m4/free.m4: New file.
90130
90131 2003-09-27  Paul Eggert  <eggert@twinsun.com>
90132
90133         * lib/minmax.h (MIN, MAX)
90134         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
90135         Omit the special code that used __typeof__, since we worry that
90136         it could be more trouble than it's worth.  See:
90137         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
90138         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
90139
90140         * lib/free.c: New file.
90141
90142 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
90143
90144         Trivial fixes to Makefile.am parts of module listings.
90145         * modules/strstr: Append strstr.h to lib_SOURCES.
90146         * modules/strcase: Likewise, for strcase.h.
90147
90148 2003-09-27  Karl Berry  <karl@gnu.org>
90149
90150         * config/mkinstalldirs: update from automake.
90151
90152 2003-09-26  Paul Eggert  <eggert@twinsun.com>
90153
90154         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
90155         (error_tail): Do not loop, reallocating temporary buffer, since
90156         the output cannot contain more wide characters than the input
90157         contains bytes, the size must be big enough already.  This avoids
90158         one potential size overflow calculation.  Check for size overflow
90159         when calculating temporary buffer size.  Free temporary buffer
90160         when done, if it was allocated with malloc; this plugs a memory
90161         leak.  Remove casts from void * to pointers, that are no longer
90162         needed now that we're assuming C89 or better.
90163
90164         Merge error changes from glibc.
90165
90166         * lib/error.c, error.h: Update copyright notice header to match glibc.
90167         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
90168         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
90169         Disable cancellation while printing error.
90170         * lib/error.h: Prepend __ to parameter names.
90171
90172 2003-09-26  Jim Meyering  <jim@meyering.net>
90173
90174         * lib/error.c (error_tail): Move some declarations
90175         into inner scope where the local variables are used.
90176
90177 2003-09-26  Bruno Haible  <bruno@clisp.org>
90178
90179         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
90180         stpncpy().
90181         Don't define stpncpy through config.h; it's now done through stpncpy.h.
90182
90183 2003-09-26  Bruno Haible  <bruno@clisp.org>
90184
90185         * lib/stpncpy.h (gnu_stpncpy): New declaration.
90186         (stpncpy): Define as alias for gnu_stpncpy.
90187         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
90188
90189 2003-09-25  Simon Josefsson  <jas@extundo.com>
90190
90191         * lib/xgetdomainname.h: New file.
90192         * lib/xgetdomainname.c: New file.
90193
90194 2003-09-25  Simon Josefsson  <jas@extundo.com>
90195             Bruno Haible  <bruno@clisp.org>
90196
90197         * modules/getdomainname: New file.
90198         * modules/xgetdomainname: New file.
90199         * MODULES.html.sh (func_all_modules): Add getdomainname,
90200         xgetdomainname.
90201
90202 2003-09-25  Simon Josefsson  <jas@extundo.com>
90203             Bruno Haible  <bruno@clisp.org>
90204
90205         * m4/getdomainname.m4: New file.
90206
90207 2003-09-25  Simon Josefsson  <jas@extundo.com>
90208             Bruno Haible  <bruno@clisp.org>
90209
90210         * lib/getdomainname.h: New file.
90211         * lib/getdomainname.c: New file.
90212
90213 2003-09-25  Karl Berry  <karl@gnu.org>
90214
90215         * lib/argp-fmtstream.c, argp-help.c: update from libc.
90216
90217 2003-09-25  Karl Berry  <karl@gnu.org>
90218
90219         * config/install-sh: update from automake.
90220
90221 2003-09-25  Bruno Haible  <bruno@clisp.org>
90222
90223         * modules/version-etc-2: New file, from modules/version-etc with
90224         modifications.
90225         * MODULES.html.sh (func_all_modules): Add version-etc-2.
90226
90227 2003-09-25  Bruno Haible  <bruno@clisp.org>
90228
90229         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
90230         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
90231
90232 2003-09-24  Simon Josefsson  <jas@extundo.com>
90233
90234         * modules/xgethostname: Add xgethostname.h.
90235
90236 2003-09-24  Paul Eggert  <eggert@twinsun.com>
90237
90238         * lib/linebuffer.c (freebuffer): Don't free the argument, just
90239         the buffer associated with the argument.  Bug reported by
90240         Simon Josefsson.
90241
90242 2003-09-24  Paul Eggert  <eggert@twinsun.com>
90243
90244         * README: Document assumptions that 'int' is at least 32 bits
90245         wide, that integer arithmetic is 2's complement without overflow,
90246         that there are no holes in integer values, that adding sizes of
90247         two nonoverlapping objects can't overflow, and that all-bits-zero
90248         yields scalar zero.  Fix spelling and capitalization typos.
90249
90250 2003-09-19  Karl Berry  <karl@gnu.org>
90251
90252         * lib/argp.h: update from libc.
90253
90254 2003-09-17  Paul Eggert  <eggert@twinsun.com>
90255
90256         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
90257         to avoid spurious warnings like "AC_RUN_IFELSE was called before
90258         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
90259
90260 2003-09-17  Paul Eggert  <eggert@twinsun.com>
90261
90262         * gnulib-tool: Use "test -h", not "test -L", for portability
90263         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
90264         (tags_regexp): Remove, since \| doesn't conform to POSIX.
90265         (sed_extract_prog): Issue s commands one-by-one, rather than
90266         using \| in one s command.
90267
90268 2003-09-16  Paul Eggert  <eggert@twinsun.com>
90269
90270         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
90271         input error, instead of returning NULL the next time we are called
90272         (and therefore losing track of errno).
90273
90274 2003-09-16  Bruno Haible  <bruno@clisp.org>
90275
90276         * gnulib-tool (func_create_testdir): Warn about duplicated
90277         dependencies.
90278
90279 2003-09-15  Paul Eggert  <eggert@twinsun.com>
90280
90281         * modules/argmatch, modules/fatal, modules/obstack,
90282         modules/xalloc, modules/xgethostname: Sort dependencies by
90283         importance, not alphabetically.
90284
90285 2003-09-15  Paul Eggert  <eggert@twinsun.com>
90286
90287         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
90288         fails, so that the caller gets the proper errno.
90289
90290         * lib/readutmp.c (read_utmp): Likewise.
90291         Check for fstat error.  Close stream and free storage
90292         when failing.
90293
90294 2003-09-14  Karl Berry  <karl@gnu.org>
90295
90296         * config/srclist.txt (strdup.c): disable for c89 changes.
90297
90298 2003-09-14  Jim Meyering  <jim@meyering.net>
90299
90300         * lib/getloadavg.c: Correct cpp indentation.
90301         * lib/strdup.c: Likewise.
90302         * lib/vasnprintf.c: Likewise.
90303
90304 2003-09-14  Bruno Haible  <bruno@clisp.org>
90305
90306         * modules/fwriteerror: New file.
90307         * MODULES.html.sh (func_all_modules): Add fwriteerror.
90308
90309 2003-09-14  Bruno Haible  <bruno@clisp.org>
90310
90311         * lib/fwriteerror.h: New file.
90312         * lib/fwriteerror.c: New file.
90313
90314 2003-09-12  Paul Eggert  <eggert@twinsun.com>
90315
90316         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
90317         modules/xgethostname, modules/xalloc: Depend on exit.
90318
90319 2003-09-12  Paul Eggert  <eggert@twinsun.com>
90320
90321         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
90322
90323         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
90324         and AC_MINIX, too, so that their extensions are available.
90325
90326         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
90327         This macro has been superseded by gl_BACKUPFILE.
90328
90329         More patches to assume C89 or better.
90330
90331         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
90332
90333         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
90334         unconditionally.
90335         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
90336         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
90337         Include <string.h>, <stdlib.h> unconditionally.
90338         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
90339         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
90340         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
90341         headers or for string.h.
90342         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
90343         or strtoul.
90344
90345         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
90346         headers.
90347         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
90348         * m4/userspec.m4 (gl_USERSPEC): Likewise.
90349         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
90350         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
90351         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
90352         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
90353         memcpy, memset.
90354         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
90355         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
90356         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
90357         strtol.
90358         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
90359         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
90360         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
90361         strtoul.
90362
90363 2003-09-12  Paul Eggert  <eggert@twinsun.com>
90364
90365         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
90366         * lib/obstack.c [!defined _LIBC]: Likewise.
90367         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
90368         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
90369         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
90370
90371         More changes to assume C89 or better.
90372
90373         * lib/error.c (error_tail): Assume vprintf.
90374
90375         * lib/argmatch.c (getenv): Remove decl.
90376         * lib/progreloc.c (get_full_program_name): Define via prototype.
90377         * lib/setenv.c (clearenv): Likewise.
90378         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
90379         needed.
90380         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
90381         (malloc, memcpy): Remove decls.
90382         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
90383         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
90384         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
90385         (memcpy): Remove macro.
90386         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
90387         (__P): Remove.  All uses removed.
90388         (PTR): Remove.  All uses changed to void *.
90389         (CHAR_BIT, NULL): Remove.
90390         (spaces, zeros, memset_space, memset_zero)
90391         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
90392         Remove.
90393         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
90394         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
90395         Define with prototype.
90396         Remove now-unnecessary prototype decl.
90397         (extra_args_spec): Assume ANSI C.  All uses changed.
90398         (extra_args_spec_iso): Remove.
90399         (my_strftime, emacs_strftimeu): Define via prototype.
90400         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
90401         unconditionally.
90402         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
90403         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
90404         (strtoul, strtol): Remove decls.
90405         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
90406         LONG_MAX): Remove.
90407         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
90408         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
90409         (LOCALE_PARAM_PROTO): New macro.
90410         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
90411         (INTERNAL (strtol), strtol): Define with a prototype.
90412         (PARAMS): Remove.  All uses removed.
90413         * lib/tempname.c: Include <string.h> unconditionally.
90414         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
90415         * lib/xgethostname.c (main): Define with a prototype.
90416         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
90417         Include <stdlib.h> unconditionally.
90418         (calloc, malloc, realloc, free): Remove decls.
90419         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
90420         Include <stdlib.h> unconditionally.  Sort include file names.
90421         (strtod): Remove.
90422         (xstrtod): Define with a prototype.
90423         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
90424         (strtol, strtoul): Remove decls.
90425
90426 2003-09-11  Paul Eggert  <eggert@twinsun.com>
90427
90428         More patches to assume C89 or better.
90429         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
90430         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
90431         string.h, memchr, STDC_HEADERS.
90432
90433 2003-09-11  Paul Eggert  <eggert@twinsun.com>
90434
90435         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
90436         Include <stdlib.h>, <string.h> unconditionally.
90437         Remove now-unnecessary cast to char *.
90438         * lib/strnlen.c: Include <string.h> unconditionally.
90439         * lib/yesno.c (yesno): Define with a prototype.
90440
90441 2003-09-11  Bruno Haible  <bruno@clisp.org>
90442
90443         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
90444
90445 2003-09-10  Jim Meyering  <jim@meyering.net>
90446
90447         * lib/error.c: Correct indentation of cpp directives.
90448
90449 2003-09-10  Bruno Haible  <bruno@clisp.org>
90450
90451         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
90452         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
90453         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
90454         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
90455         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
90456         <stdlib.h> and <string.h> checks.
90457         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
90458         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
90459
90460 2003-09-10  Bruno Haible  <bruno@clisp.org>
90461
90462         * lib/strcspn.c: Include <string.h> unconditionally.
90463         * lib/strpbrk.c: Include <string.h> unconditionally.
90464         * lib/strstr.c: Include <string.h> unconditionally.
90465         * lib/unicodeio.c: Include <string.h> unconditionally.
90466         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
90467         * lib/unsetenv.c: Likewise.
90468         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
90469         * lib/yesno.c: Include <stdlib.h> unconditionally.
90470         (rpmatch): Add prototype.
90471
90472 2003-09-09  Paul Eggert  <eggert@twinsun.com>
90473
90474         More patches to assume C89 or better.
90475         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
90476         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
90477         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
90478         or for string.h.
90479         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
90480         stdlib.h.
90481         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
90482         C headers.
90483         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
90484         string.h.
90485         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
90486         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
90487         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
90488         or for string.h.
90489         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
90490         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
90491         C headers.
90492         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
90493         memcpy.
90494         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
90495         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
90496         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
90497         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
90498         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
90499         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
90500         string.h, free.
90501         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
90502         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
90503         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
90504         C headers, or for string.h.
90505         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
90506         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
90507         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
90508         headers, memory.h, stdlib.h, string.h, strings.h.
90509         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
90510         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
90511         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
90512         strchr.
90513         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
90514         headers, memory.h, string.h.
90515         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
90516         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
90517         free.
90518         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
90519         headers.
90520         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
90521         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
90522         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
90523         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
90524         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
90525
90526 2003-09-09  Paul Eggert  <eggert@twinsun.com>
90527
90528         More K&R removal.
90529
90530         * lib/acosl.c (main): Use a prototype.
90531         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
90532         tanl.c: Likewise.
90533
90534         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
90535
90536         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
90537         (getopt, etopt_long, getopt_long_only, _getopt_internal)
90538         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
90539         with a prototype.
90540         * lib/getopt.c (const): Remove macro.
90541         Include <string.h> unconditionally.
90542         (my_index): Remove; all uses changed to strchr.
90543         (strlen): Remove decl.
90544         (exchange): Remove forward decl; no longer needed.
90545         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
90546         Define with prototype.
90547         * lib/getopt1.c (const): Remove macro.
90548         (getopt_long, getopt_long_only, main): Define with prototype.
90549
90550         * lib/getugroups.c: Include <string.h> unconditionally.
90551
90552         * lib/getusershell.c: Include <stdlib.h> unconditionally.
90553         (getusershell, setusershell, endusershell, readname, main):
90554         Define with prototypes.
90555
90556         * lib/group-member.c: Include group-member.h first.
90557         Include <stdlib.h> unconditionally.
90558
90559         * lib/hard-locale.c: Include hard-locale.h first.
90560         Include <stdlib.h>, <string.h> unconditionally.
90561
90562         * lib/hash.c (free, malloc): Remove decls.
90563         Include <stdlib.h> unconditionally.
90564
90565         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
90566         (getenv): Do not declare.
90567
90568         * lib/idcache.c: Include <string.h> unconditionally.
90569
90570         * lib/long-options.c: Include long-options.h first, to test interface.
90571         Include <stdlib.h> unconditionally.
90572
90573         * lib/makepath.c: Include makepath.h first, to test interface.
90574         Include <stdlib.h> and <string.h> unconditionally.
90575
90576         * lib/linebuffer.c: Include <stdlib.h>.
90577         (free): Remove decl.
90578
90579         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
90580         stddef.h. rpl_malloc returns void *, not char *.
90581         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
90582         prototype.
90583
90584         * lib/md5.h: Include <limits.h> unconditionally.
90585         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
90586         (__P): Remove; all uses removed.
90587         * lib/md5.c: Include "md5.h" first.
90588         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
90589         md5_buffer, md5_process_bytes, md5_process_block):
90590         Define with prototypes.
90591         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
90592         * lib/sha.c: Include "sha.h" first.
90593         Include <stdlib.h>, <string.h> unconditionally.
90594
90595         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
90596         * lib/memcmp.c (__ptr_t): Likewise.
90597         * lib/memrchr.c (__ptr_t): Likewise.
90598         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
90599         Include <string.h> unconditionally.
90600         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
90601         * lib/memchr.c: Include <stdlib.h> unconditionally.
90602         * lib/memchr.c (LONG_MAX): Remove.
90603         * lib/memrchr.c (LONG_MAX): Likewise.
90604         * lib/memchr.c (__memchr): Define via a prototype.
90605         * lib/memrchr.c (__memrchr): Likewise.
90606         * lib/memcmp.c (__P): Remove, and remove all uses.
90607         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
90608         Remove forward decls; no longer needed.
90609         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
90610         Use types required by C89 in prototype.
90611
90612         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
90613         * lib/savedir.c: Likewise.
90614         * lib/mkdir.c (free): Remove decl.
90615         * lib/rmdir.c (rmdir): Define with a prototype.
90616         * lib/savedir.c: Include savedir.h first, to test interface.
90617
90618         * lib/mktime.c (STDC_HEADERS): Remove.
90619         Include <stdlib.h>, <string.h> unconditionally.
90620
90621         * lib/modechange.c: Include <stdlib.h> unconditionally.
90622         (malloc): Remove decl.
90623
90624         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
90625         (free): Remove decl.
90626
90627         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
90628         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
90629         (This type really should be intptr_t, but that's a C99ism.)
90630         (_obstack_memcpy): Remove: all uses changed to memcpy.
90631         Include <string.h> unconditionally.
90632         (struct obstack): Assume __STDC__ for types of members
90633         chunkfun, freefun, extra_arg.
90634         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
90635         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
90636         obstack_begin, obstack_specify_allocation,
90637         obstack_specify_allocation_with_arg, obstack_chunkfun,
90638         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
90639         Remove unprototyped decls and the macros that use them.
90640         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
90641         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
90642         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
90643         (defined __STDC__ && __STDC__)]:
90644         Remove nonprototyped code.
90645         Include <stdlib.h> unconditionally.
90646         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
90647         _obstack_allocated_p, _obstack_free, obstack_free,
90648         _obstack_memory_used, print_and_abort):
90649         Define using prototypes.
90650         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
90651         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
90652         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
90653         obstack_next_free, obstack_object_size, obstack_room) [0]:
90654         Remove unused, unprototyped code.
90655
90656         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
90657
90658         * lib/physmem.c (physmem_total, physmem_available, main): Define
90659         with prototypes.
90660
90661         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
90662         (main): Define with a prototype.
90663
90664         * lib/posixver.c (getenv): Remove decl.
90665
90666         * lib/putenv.c (malloc): Returns void *, not char *.
90667         Include <string.h> unconditionally.
90668         (strchr, memcpy, NULL): Do not define.
90669
90670         * lib/readtokens.c: Include readtokens.h first, to test interface.
90671         Include <stdlib.h>, <string.h> unconditionally.
90672         (init_tokenbuffer): Define with a prototype.
90673
90674         * lib/regex.c (PARAMS): Remove.  All uses removed.
90675         All uses of _RE_ARGS removed, too.
90676         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
90677         unconditionally.
90678         (bzero): Assume memset exists.
90679         (memcmp, memcpy, NULL): Remove.
90680         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
90681         char, or assignments to local vars of type signed char.
90682         (init_syntax_once, PREFIX(extract_number_and_incr),
90683         PREFIX(print_partial_compiled_pattern),
90684         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
90685         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
90686         PREFIX(regex_grow_registers), PREFIX(regex_compile),
90687         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
90688         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
90689         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
90690         wcs_compile_range, byte_compile_range, truncate_wchar,
90691         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
90692         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
90693         count_mbs_length, wcs_re_match_2_internal,
90694         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
90695         PREFIX(alt_match_null_string_p),
90696         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
90697         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
90698         regfree, PREFIX(extract_number)): Define with prototype.  Remove
90699         now-unnecessary declaration, if any.
90700         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
90701         regcomp, regexec):
90702         Remove now-unnecessary casts among pointer types.
90703         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
90704
90705         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
90706         (free): Remove decl.
90707
90708         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
90709
90710         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
90711         (free): Remove decl.
90712
90713         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
90714         * lib/xgetcwd.c: Likewise.
90715
90716         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
90717         (free): Remove decl.
90718
90719         * lib/strchrnul.c (strchrnul): Define with a prototype.
90720         Fix bug: c_in was not converted to char before searching.
90721
90722         The following changes are not K&R related:
90723
90724         * lib/group-member.h: Include <sys/types.h>, so that this file is
90725         self-contained.
90726         * lib/makepath.h: Likewise.
90727
90728         * lib/getusershell.c (readname, default_index, line_size, readname):
90729         Use size_t, not int, for sizes.
90730         (readname): If the size overflows, report an error instead of
90731         looping forever.
90732
90733 2003-09-09  Paul Eggert  <eggert@twinsun.com>
90734
90735         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
90736         libc.
90737
90738 2003-09-09  Paul Eggert  <eggert@twinsun.com>
90739
90740         * README: New section: portability guidelines.
90741
90742 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
90743
90744         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
90745         C89 spec.
90746
90747 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
90748
90749         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
90750
90751 2003-09-08  Paul Eggert  <eggert@twinsun.com>
90752
90753         Assume C89 or better; remove K&R cruft.
90754         A few of these changes were first proposed by Derek Robert Price
90755         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
90756
90757         * lib/addext.c: Include <string.h> unconditionally.
90758         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
90759         Don't declare getenv or malloc.
90760
90761         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
90762         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
90763         (NULL): Remove.
90764         (find_stack_direction, alloca): Use prototypes.
90765
90766         * lib/atexit.c (atexit): Define using a prototype.
90767
90768         * lib/basename.c, dirname.c, stripslash.c:
90769         Include <string.h> unconditionally.
90770
90771         * lib/bcopy.c: Include <stddef.h>.
90772         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
90773
90774         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
90775
90776         * lib/error.h (error, error_at_line, error_print_progname)
90777         [! (defined (__STDC__) && __STDC__)]: Remove decls.
90778         * lib/error.c: Include error.h first, to check interface.
90779         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
90780         (VA_START): Remove; all uses changeed to va_start.
90781         (exit, strerror): Remove decls.
90782         (error_print_progname): Prototype uncondionally.
90783         Don't include <errno.h>; no longer needed.
90784         (private_strerror): Remove.
90785         (error_tail): Always define.
90786         (error, error_at_line): Assume C89 or better; always use prototypes.
90787         * lib/fatal.c: Include "fatal.h" first, to test interface.
90788         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
90789         (VA_START): Remove; all uses changed to va_start.
90790         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
90791         this case.
90792         (exit): Remove decl.
90793         (fatal): Prototype unconditionally.  Assume va_start works.
90794         Abort at end, to pacify gcc.
90795
90796         * lib/euidaccess.c (main): Define with a prototype.
90797
90798         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
90799
90800         * lib/exitfail.c: Include <stdlib.h> unconditionally.
90801
90802         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
90803         prototypes.
90804         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
90805         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
90806         (getenv): Remove decl.
90807         (fnmatch): Define using a prototype.
90808         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
90809         (FCT): Define using a prototype.
90810
90811         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
90812
90813         * lib/gethostname.c: Include <stddef.h>.
90814         (gethostname): Define with prototype.  Length is size_t, not int.
90815
90816 2003-09-08  Paul Eggert  <eggert@twinsun.com>
90817
90818         Assume C89 or better; remove K&R cruft.
90819         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
90820         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
90821         string.h, getenv, malloc.
90822         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
90823         headers.
90824         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
90825         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
90826         do not check for strerror.
90827         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
90828         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
90829         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
90830         do not check for doprnt or vprintf.
90831         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
90832         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
90833
90834 2003-09-08  Paul Eggert  <eggert@twinsun.com>
90835
90836         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
90837         getversion.c should have been removed then, but was accidentally
90838         preserved.
90839
90840         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
90841         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
90842
90843 2003-09-08  Karl Berry  <karl@gnu.org>
90844
90845         * config/config.sub, config.guess, srclistvars.sh: update from savannah
90846                 config, forget about prep.
90847
90848         * config/depcomp, missing: update from automake.
90849
90850 2003-09-07  Paul Eggert  <eggert@twinsun.com>
90851
90852         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
90853         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
90854
90855 2003-09-07  Paul Eggert  <eggert@twinsun.com>
90856
90857         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
90858         copy_tm_result.  Bug reported by Simon Josefsson in
90859         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
90860
90861 2003-09-06  Paul Eggert  <eggert@twinsun.com>
90862
90863         * m4/time_r.m4: New file.
90864         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
90865         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
90866         is. Check for timegm declaration.
90867         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
90868         Do not check for gmtime_r.
90869         Replace mktime if __mktime_internal does not exist and if mktime
90870         hasn't been replaced already.
90871
90872 2003-09-06  Paul Eggert  <eggert@twinsun.com>
90873
90874         * lib/time_r.c, lib/time_r.h: New files.
90875
90876         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
90877         __localtime_r.
90878         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
90879         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
90880
90881         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
90882         __gmtime_r.
90883         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
90884         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
90885         Include <time_r.h>.
90886
90887         * lib/timegm.c: Switch to glibc implementation, with the following
90888         changes:
90889         [defined HAVE_CONFIG_H]: Include <config.h>.
90890         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
90891         (__mktime_internal) [!defined _LIBC]: New decl.
90892         (__gmtime_r) [!defined _LIBC]: New macro and function.
90893         (timegm): Use a prototype, since gnulib assumes C89.
90894         Do not bother declaring tmp to be const, as it's not really usefu.
90895         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
90896         (timegm): Declare only if HAVE_DECL_TIMEGM.
90897
90898 2003-09-06  Paul Eggert  <eggert@twinsun.com>
90899
90900         * MODULES.html.sh (func_all_modules): Add time_r.
90901         * modules/time_r: New file.
90902         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
90903         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
90904
90905 2003-09-03  Paul Eggert  <eggert@twinsun.com>
90906
90907         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
90908         Bug reported by Lute Kamstra in
90909         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
90910
90911         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
90912         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
90913         course with correspondingly smaller numbers for tomorrow and
90914         yesterday.  From Tadayoshi Funaba.  Originally installed into
90915         sh-utils on 1999-08-07, but the patch got lost (I guess during the
90916         coreutils merge?).
90917
90918 2003-08-31  Simon Josefsson  <jas@extundo.com>
90919
90920         * modules/timegm: New file.
90921         * MODULES.html.sh (func_all_modules): Add timegm.
90922
90923 2003-08-31  Simon Josefsson  <jas@extundo.com>
90924
90925         * m4/timegm.m4: New file.
90926
90927 2003-08-31  Simon Josefsson  <jas@extundo.com>
90928
90929         * lib/timegm.h: New file.
90930         * lib/timegm.c: New file.  Based on
90931         wget-1.8.2/src/http.c:mktime_from_utc.
90932
90933 2003-08-31  Karl Berry  <karl@gnu.org>
90934
90935         * lib/argp.h: update from libc.
90936
90937 2003-08-28  Bruno Haible  <bruno@clisp.org>
90938
90939         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
90940         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
90941         followed by '#define fnmatch fnmatch_posix' gives an error.
90942
90943 2003-08-28  Bruno Haible  <bruno@clisp.org>
90944
90945         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
90946         warning on QNX, which defines O_BINARY to 000000.
90947
90948 2003-08-27  Jim Meyering  <jim@meyering.net>
90949
90950         * m4/mkstemp.m4: Require that the system mkstemp be able to create
90951         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
90952         would fail after 32.  Reported by Danny Levinson.  Details here:
90953         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
90954
90955 2003-08-24  Bruno Haible  <bruno@clisp.org>
90956
90957         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
90958         MSVC7 <stdio.h> is included later.
90959
90960 2003-08-22  Simon Josefsson  <jas@extundo.com>
90961
90962         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
90963
90964 2003-08-20  Karl Berry  <karl@gnu.org>
90965
90966         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
90967
90968 2003-08-20  Bruno Haible  <bruno@clisp.org>
90969
90970         * modules/progname: New file.
90971         * MODULES.html.sh (func_all_modules): Add progname.
90972
90973 2003-08-20  Bruno Haible  <bruno@clisp.org>
90974
90975         * lib/progname.h: New file, from GNU gettext.
90976         * lib/progname.c: New file, from GNU gettext.
90977         * lib/progreloc.c: New file, from GNU gettext.
90978
90979 2003-08-19  Jim Meyering  <jim@meyering.net>
90980
90981         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
90982         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
90983
90984 2003-08-19  Bruno Haible  <bruno@clisp.org>
90985
90986         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
90987         more.
90988
90989 2003-08-19  Bruno Haible  <bruno@clisp.org>
90990
90991         * lib/xstrdup.c: Assume <string.h> exists.
90992
90993 2003-08-18  Paul Eggert  <eggert@twinsun.com>
90994
90995         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
90996         in makefile rules.
90997
90998 2003-08-18  Jim Meyering  <jim@meyering.net>
90999
91000         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
91001         * m4/lib-ld.m4: Likewise.
91002
91003 2003-08-18  Jim Meyering  <jim@meyering.net>
91004
91005         * lib/setenv.h: Indent nested cpp directive.
91006         * lib/vasnprintf.c: Remove trailing blanks.
91007
91008 2003-08-17  Simon Josefsson  <jas@extundo.com>
91009
91010         * modules/xstrndup: New file.
91011         * MODULES.html.sh (func_all_modules): Add xstrndup.
91012
91013 2003-08-17  Simon Josefsson  <jas@extundo.com>
91014
91015         * modules/argp: Fix autoconf macro name. Add more dependencies.
91016
91017 2003-08-17  Simon Josefsson  <jas@extundo.com>
91018
91019         * m4/xstrndup.m4: New file.
91020
91021 2003-08-17  Simon Josefsson  <jas@extundo.com>
91022
91023         * m4/argp.m4: New file.
91024
91025 2003-08-17  Simon Josefsson  <jas@extundo.com>
91026             Bruno Haible  <bruno@clisp.org>
91027
91028         * lib/xstrndup.h: New file.
91029         * lib/xstrndup.c: New file.
91030
91031 2003-08-17  Bruno Haible  <bruno@clisp.org>
91032
91033         * modules/strndup (Files, Include): Add lib/strndup.h.
91034
91035 2003-08-17  Bruno Haible  <bruno@clisp.org>
91036
91037         * modules/euidaccess (Files): Add lib/euidaccess.h.
91038
91039 2003-08-17  Bruno Haible  <bruno@clisp.org>
91040
91041         * lib/strndup.h: New file.
91042
91043 2003-08-17  Bruno Haible  <bruno@clisp.org>
91044
91045         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
91046         like AC_GNU_SOURCE.
91047         * modules/extensions (configure.ac): Comment out the invocation of
91048         gl_USE_SYSTEM_EXTENSIONS.
91049
91050 2003-08-16  Paul Eggert  <eggert@twinsun.com>
91051
91052         Merges from coreutils, etc.
91053         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
91054         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
91055         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
91056         fixing a typo.
91057         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
91058         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
91059
91060 2003-08-16  Paul Eggert  <eggert@twinsun.com>
91061
91062         Document merge from coreutils.
91063         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
91064         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
91065         * modules/utime: Add m4/utimes-null.m4.
91066
91067 2003-08-16  Paul Eggert  <eggert@twinsun.com>
91068
91069         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
91070         space, undoing this 2003-08-12 change:
91071         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
91072
91073 2003-08-16  Paul Eggert  <eggert@twinsun.com>
91074
91075         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
91076         strtoul.c from libc, undoing this 2003-08-12 change:
91077         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
91078
91079 2003-08-16  Jim Meyering  <jim@meyering.net>
91080
91081         Merges from coreutils.
91082         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
91083         prefix.  Adjust cache variables similarly.  Create 500 rather than
91084         just 300 files, to exercise bug on Darwin6.5, too.
91085         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
91086         $missing_dir.
91087         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
91088         AM_SYS_POSIX_TERMIOS.
91089         Reported by mkc@mathdogs.com.
91090         Also change use of $am_cv_sys_posix_termios
91091         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
91092         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
91093         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
91094         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
91095         in /proc/mounts until it finds one with matching device number.  This
91096         is unnecessary when the FILE argument *is* a mount point.  No stat call
91097         is necessary in that case.  So, disable the statvfs-testing code on
91098         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
91099         as RedHat bug# 84846.
91100         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
91101         to 1MB, so as not to render systems with no stack size limit (e.g.,
91102         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
91103         Include <unistd.h>.  On some systems,
91104         it is required for the definition of _SC_PAGESIZE.
91105
91106 2003-08-16  Jim Meyering  <jim@meyering.net>
91107
91108         Merge from coreutils.
91109         * lib/xstrtoimax.c: #else #if -> #elif.
91110         * lib/xstrtoumax.c: Likewise.
91111
91112 2003-08-16  Jim Meyering  <jim@meyering.net>
91113
91114         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
91115         * m4/utimes.m4: Removed.
91116         * m4/utimes-null.m4: Renamed from utimes.m4.
91117
91118         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
91119         to 1MB, so as not to render systems with no stack size limit (e.g.,
91120         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
91121         Include <unistd.h>.  On some systems,
91122         it is required for the definition of _SC_PAGESIZE.
91123
91124 2003-08-16  Jim Meyering  <jim@meyering.net>
91125         and Paul Eggert  <eggert@cs.ucla.edu>
91126
91127         Merges from coreutils, etc.
91128
91129         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
91130         using the latest version from cvs.  This avoids problems with #line
91131         directives using a vendor (Sun) compiler.
91132         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
91133         Don't set GETGROUPS_LIB here; now it's
91134         done via getgroups.m4's wrapper function.
91135         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
91136         rather than just in sh-util/configure.in, so that the
91137         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
91138         same.
91139         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
91140         AC_FUNC_GETLOADAVG where to find getloadavg.c.
91141         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
91142         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
91143         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
91144         Remove code that is now done by the newly-required macros.
91145         Append $(EXEEXT) to DF_PROG.
91146         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
91147         Do not invoke or require the following here,
91148         since prereq.m4 or some gnulib .m4 now does this for us:
91149         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
91150         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
91151         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
91152         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
91153         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
91154         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
91155         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
91156         AC_FUNC_OBSTACK.
91157         Do not replace the following functions, as this is now the job
91158         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
91159         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
91160         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
91161         atexit getpass, strdup, getpagesize.
91162         Replace 'raise'.
91163         Do not check for the following functions, as this is now the job
91164         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
91165         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
91166         setregid.
91167         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
91168         Check for sys/sysctl.h.
91169         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
91170         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
91171         of checking for ssize_t ourselves.
91172
91173         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
91174         Require every macro that gnulib/modules/* suggests for us.
91175         (jm_PREREQ_ADDEXT): New macro.
91176         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
91177         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
91178
91179         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
91180         (gl_PHYSMEM): Use it.
91181         Also check for `table' function.
91182         Check for new headers and functions.
91183         Add check for sys/sysmp.h.
91184         With suggestions from Kaveh Ghazi.
91185         Ignore headers that are present but cannot be compiled.  This
91186         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
91187         C 5.4.
91188
91189 2003-08-15  Paul Eggert  <eggert@twinsun.com>
91190
91191         Document merge from coreutils.
91192         * modules/userspec: Depend on posixver.
91193         * modules/strftime: Depend on tzset.
91194
91195 2003-08-15  Paul Eggert  <eggert@twinsun.com>
91196
91197         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
91198         rather than tab, after '#' in shell-script copyright notices.
91199         Suggested by Bruno Haible.
91200
91201 2003-08-15  Paul Eggert  <eggert@twinsun.com>
91202
91203         * config/srclist-update: Use three spaces, rather than tab, after '#'
91204         in shell-script copyright notices.  Suggested by Bruno Haible.
91205         Remove unnecessary parenthesization in regular expression.
91206
91207 2003-08-15  Jim Meyering  <jim@meyering.net>
91208
91209         Merge from coreutils.
91210         * lib/xgethostname.c: Include <stdlib.h>.
91211         (xghostname): Don't exit for anything other than memory-related
91212         failure; just return NULL.
91213         * lib/userspec.c: Include "posixver.h".
91214         (parse_user_spec): Accept `.' as a separator only
91215         in pre-POSIX-200112 mode.
91216         * lib/strtoimax.c: Use #elif rather than #else #if.
91217         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
91218         Remove function, now that we can rely on a working tzset function.
91219         [!_LIBC]: Ensure that the required autoconf test has been run.
91220         [!defined _NL_CURRENT && HAVE_STRFTIME]:
91221         Use underlying_strftime for %r.
91222         * lib/sha.c: Merge in some clean-up and optimization changes from
91223         glibc.
91224         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
91225         Ensure that it is a multiple of 64.
91226         Rearrange loop exit tests so as to avoid performing an
91227         additional fread after encountering an error or EOF.
91228         * lib/realloc.c: Update copyright date.
91229
91230 2003-08-15  Jim Meyering  <jim@meyering.net>
91231         and Paul Eggert  <eggert@twinsun.com>
91232
91233         Merge from coreutils.
91234         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
91235         member but strut utmpx does not.  Needed for AIX 4.3.3.
91236         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
91237
91238 2003-08-15  Jim Meyering  <jim@meyering.net>
91239         and Paul Eggert  <eggert@cs.ucla.edu>
91240
91241         Merges from coreutils, etc.
91242         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
91243         Require gl_FUNC_TZSET_CLOBBER.
91244         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
91245         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
91246         members.
91247
91248 2003-08-14  Paul Eggert  <eggert@twinsun.com>
91249
91250         Help the merge from coreutils.
91251         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
91252         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
91253         * m4/tzset.m4: Use it too.
91254
91255 2003-08-14  Paul Eggert  <eggert@twinsun.com>
91256
91257         * modules/tzset: New file.
91258
91259 2003-08-14  Jim Meyering  <jim@meyering.net>
91260
91261         Merges from coreutils.
91262         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
91263         variable names, rather than @FNMATCH_H@.
91264         * modules/alloca: Likewise for $(ALLOCA_H).
91265
91266         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
91267         the three copies of the literal target, `fnmatch.h'.
91268         * modules/alloca (alloca.h): Likewise.
91269
91270 2003-08-14  Jim Meyering  <jim@meyering.net>
91271
91272         Merge from coreutils.
91273         * m4/tzset.m4: New file.
91274         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
91275         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
91276         otherwise, AIX 5.1 systems would end up using the latter.
91277         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
91278         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
91279         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
91280         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
91281
91282 2003-08-14  Jim Meyering  <jim@meyering.net>
91283
91284         Merge from coreutils.
91285         * lib/obstack.h: Whitespace changes.
91286         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
91287         and xcalloc return values.
91288         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
91289         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
91290         hang on OSF/1 5.1 for DIR on both local and remote file systems.
91291         Reported by (and fix confirmed by) Nelson H. F. Beebe.
91292         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
91293         error from mntctl.
91294         Use mntctl's return value to drive the entry-processing loop, since
91295         we can't rely on the value of the vmt_length member in the last
91296         entry.  On some systems doing so could result in exhausting
91297         virtual memory.  Based in part on a patch from Mike Jetzer.
91298
91299 2003-08-14  Jim Meyering  <jim@meyering.net>
91300         and Paul Eggert  <eggert@twinsun.com>
91301
91302         Merges from coreutils, plus other fixes.
91303         * lib/physmem.c: Merge in portability changes from gcc/libiberty
91304         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
91305         for credits and details.  Thanks to Kaveh Ghazi for helping
91306         to keep these files in sync.
91307         (ARRAY_SIZE): Define it.
91308         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
91309         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
91310         (memcasecmp): Don't assume size_t fits in unsigned int.
91311         Remove casts and duplicate code.
91312         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
91313         (memcpy): Remove definition.
91314         Merge in some clean-up and optimization changes from glibc.
91315         [BLOCKSIZE]: Move definition to top of file.
91316         Ensure that it is a multiple of 64.
91317         Rearrange loop exit tests so as to avoid performing an
91318         additional fread after encountering an error or EOF.
91319         * lib/md5.h (md5_uintptr): Define.
91320         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
91321         return to the initial working directory.  Preserve errno
91322         for caller.
91323         * lib/idcache.c: Include "xalloc.h".
91324         (xmalloc, xrealloc): Remove decls.
91325         (getuser): Remove casts no longer required in C89.
91326         * lib/human.c: Include stdio.h, for sprintf.
91327         * lib/group-member.c: Include "xalloc.h".
91328         (xmalloc, xrealloc): Remove decls.
91329         (get_group_info): Remove casts no longer required in C89.
91330         * lib/getusershell.c (readname): Remove casts no longer required in
91331         C89.
91332         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
91333         * lib/getline.c: Whitespace fix, from coreutils.
91334
91335 2003-08-13  Paul Eggert  <eggert@twinsun.com>
91336
91337         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
91338         Check for isascii.
91339
91340         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
91341         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
91342         Undo previous (whitespace-only) change.
91343
91344 2003-08-13  Paul Eggert  <eggert@twinsun.com>
91345
91346         * lib/exclude.c: Include <ctype.h>
91347         (IN_CTYPE_DOMAIN): New macro.
91348         (is_space): New fn.
91349         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
91350         and empty lines.
91351
91352         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
91353         Undo previous (whitespace-only) change.
91354
91355 2003-08-13  Paul Eggert  <eggert@twinsun.com>
91356
91357         * config/srclist-update: Change update back to the old behavior,
91358         leaving whitespace alone.  Use one 'sed' command rather than a
91359         pipeline.
91360         (fixlicense): Now a variable, not a function.
91361         (remove_trailing_blanks): Remove.
91362         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
91363         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
91364         Undo previous (whitespace-only) change.
91365
91366 2003-08-12  Paul Eggert  <eggert@twinsun.com>
91367
91368         Merge from coreutils.
91369         * modules/euidaccess: Add lib_SOURCES, include for new
91370         file euidaccess.h
91371
91372 2003-08-12  Paul Eggert  <eggert@twinsun.com>
91373
91374         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
91375         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
91376         Normalize leading white space and remove trailing white space.
91377
91378         Merge from coreutils
91379         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
91380
91381         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
91382         0.12.1.  These files are now being upgraded automatically by
91383         ../config/srclist-update.
91384
91385 2003-08-12  Paul Eggert  <eggert@twinsun.com>
91386
91387         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
91388         Normalize leading white space and remove trailing white space.
91389         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
91390         notice, as per ../config/srclist-update.
91391
91392         Merge from coreutils.
91393         * lib/euidaccess.h: New file.
91394         * lib/euidaccess.c: Include it.
91395         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
91396         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
91397         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
91398
91399 2003-08-12  Paul Eggert  <eggert@twinsun.com>
91400
91401         * config/srclist-update: Add copyright notice.
91402         (remove_id_lines, remove_trailing_blanks): New constants.
91403         (fixfile): Use them to normalize spacing a bit in copied files.
91404         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
91405         Normalize leading white space and remove trailing white space.
91406
91407         * config/texinfo.tex: Sync with texinfo.
91408
91409         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
91410         strtoul.c from libc, to merge coreutils whitespace changes.
91411
91412         * config/srclist.txt: Get the following m4 files from gettext:
91413         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
91414         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
91415         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
91416         wint_t.m4.
91417
91418 2003-08-12  Karl Berry  <karl@gnu.org>
91419
91420         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
91421         been made.
91422
91423 2003-08-11  Paul Eggert  <eggert@twinsun.com>
91424
91425         * modules/gnu-source, m4/gnu-source.m4:
91426         Remove; we're assuming Autoconf 2.54 or later now.
91427         Suggested by Bruno Haible.
91428         * MODULES.html.sh (func_all_modules): Remove gnu-source.
91429
91430 2003-08-11  Bruno Haible  <bruno@clisp.org>
91431
91432         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
91433
91434 2003-08-11  Bruno Haible  <bruno@clisp.org>
91435
91436         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
91437         (vasnprintf): Use it instead of wcslen.
91438
91439 2003-08-11  Bruno Haible  <bruno@clisp.org>
91440
91441         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
91442         value to ensure that _Bool promotes to int. Use #define for _Bool when
91443         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
91444
91445 2003-08-10  Karl Berry  <karl@gnu.org>
91446
91447         * lib/regex.h: update from libc (whitespace fix).
91448
91449 2003-08-09  Paul Eggert  <eggert@twinsun.com>
91450
91451         Merge some files from coreutils.  These changes were
91452         originally made by Jim Meyering.
91453         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
91454         many older Unixes require this.
91455         * lib/alloca.c (alloca): Remove cast to argument of free;
91456         no longer needed in C89.
91457         * lib/alloca_.h, regex.h: Fix white space to match
91458         what GNU indent does.
91459
91460 2003-08-09  Paul Eggert  <eggert@twinsun.com>
91461
91462         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
91463         apparently Emacs's Unicode mode got confused before my 2003-08-05
91464         checkin.
91465
91466 2003-08-08  Paul Eggert  <eggert@twinsun.com>
91467
91468         * m4/extensions.m4: New file.
91469         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
91470         Require gl_USE_SYSTEM_EXTENSIONS.
91471         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
91472         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
91473
91474 2003-08-08  Paul Eggert  <eggert@twinsun.com>
91475
91476         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
91477         * modules/extensions, modules/gnu-source: New files.
91478         * modules/timespec, modules/unlocked-io: Depend on extensions.
91479
91480 2003-08-07  Paul Eggert  <eggert@twinsun.com>
91481
91482         * modules/restrict: New file.
91483         * MODULES.html.sh (func_all_modules): Add restrict.
91484         * modules/regex: Depend on restrict.
91485
91486 2003-08-07  Paul Eggert  <eggert@twinsun.com>
91487
91488         * m4/restrict.m4: New file.
91489         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
91490
91491 2003-08-07  Bruno Haible  <bruno@clisp.org>
91492
91493         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
91494         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
91495
91496 2003-08-07  Bruno Haible  <bruno@clisp.org>
91497
91498         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
91499         makes the module 'getndelim2' compatible with the module 'getline'.
91500
91501 2003-08-05  Paul Eggert  <eggert@twinsun.com>
91502
91503         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
91504         byte with "\201" to avoid glitches when editing that source file
91505         with multi-gnome-terminal.
91506
91507 2003-08-05  Paul Eggert  <eggert@twinsun.com>
91508
91509         * lib/bumpalloc.h: Remove.
91510
91511 2003-08-05  Paul Eggert  <eggert@twinsun.com>
91512
91513         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
91514         * modules/bumpalloc: Remove.
91515
91516 2003-08-04  Paul Eggert  <eggert@twinsun.com>
91517
91518         * lib/getloadavg.c: Change copyright notice and spacing to conform to
91519         GNU coding style.
91520
91521         Merge from coreutils.
91522         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
91523         1. From glibc.
91524         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
91525         from Karl Berry, implemented by Jim Meyering.
91526         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
91527         from Dmitry V. Levin.
91528         Remove anachronistic cast of xrealloc.
91529         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
91530         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
91531         type. Otherwise, it wouldn't compile with at least /bin/cc on
91532         ymp-cray-unicos9.0.2.X.
91533         Combine two mostly-identical uses of alloca into one.
91534         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
91535
91536 2003-08-04  Dave Love  <d.love@dl.ac.uk>
91537
91538         [From Emacs.]
91539
91540         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
91541         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
91542         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
91543         obsolete NLIST_NAME_UNION.
91544         [__GNU__]: Undef BSD and FSCALE.
91545         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
91546
91547 2003-08-03  Paul Eggert  <eggert@twinsun.com>
91548
91549         * lib/stdbool_.h (_Bool): Make it signed char, instead of
91550         an enum type, so that it's guaranteed to promote to int.  See:
91551         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
91552
91553 2003-08-03  Karl Berry  <karl@gnu.org>
91554
91555         * config/depcomp: update from automake.
91556
91557 2003-07-31  Paul Eggert  <eggert@twinsun.com>
91558
91559         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
91560         (strerror): Don't assume that a printable int fits in 14 bytes.
91561
91562 2003-07-31  Bruno Haible  <bruno@clisp.org>
91563
91564         * modules/getpass-gnu: New file.
91565         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
91566
91567 2003-07-31  Bruno Haible  <bruno@clisp.org>
91568
91569         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
91570
91571 2003-07-24  Karl Berry  <karl@gnu.org>
91572
91573         * config/missing: update from automake.
91574
91575 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
91576             Bruno Haible  <bruno@clisp.org>
91577
91578         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
91579         * lib/getline.c (getline, getdelim): Likewise.
91580         Remove _GNU_SOURCE define; now it's defined in config.h through
91581         m4/getline.m4.
91582
91583 2003-07-23  Karl Berry  <karl@gnu.org>
91584
91585         * config/config.sub: update from prep.
91586
91587 2003-07-22  Paul Eggert  <eggert@twinsun.com>
91588
91589         * modules/xalloc (Depends-on): Add exitfail.
91590         * modules/xmemcoll: Likewise.
91591
91592 2003-07-22  Paul Eggert  <eggert@twinsun.com>
91593
91594         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
91595         over-parenthesization in macros.
91596
91597         Sync with coreutils.
91598
91599         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
91600         required by C99.
91601
91602         Use `exit_failure' for xalloc and xmemcoll instead of their own
91603         private exit-failure variables.
91604         * lib/xalloc.h (xalloc_exit_failure): Remove.
91605         * lib/xmalloc.c: Likewise.  Include exitfail.h.
91606         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
91607         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
91608         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
91609         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
91610
91611 2003-07-20  Jim Meyering  <jim@meyering.net>
91612
91613         * modules/closeout (Depends-on): Add exitfail.
91614         Suggestion from Bruno Haible.
91615
91616 2003-07-19  Karl Berry  <karl@gnu.org>
91617
91618         * config/config.sub: update from prep.
91619
91620 2003-07-18  Paul Eggert  <eggert@twinsun.com>
91621
91622         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
91623         Remove.
91624         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
91625         to test that it can stand by itself.  Include "exitfail.h".
91626         Clients should set exit_failure instead.
91627         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
91628
91629 2003-07-18  Bruno Haible  <bruno@clisp.org>
91630
91631         * modules/getndelim2: New file.
91632         * modules/getline: Share files with module getndelim2.
91633         * modules/getnline: Depend on getndelim2 instead of sharing files with
91634         it. Add getnline.c to lib_SOURCES.
91635         * MODULES.html.sh (func_all_modules): Add getndelim2.
91636
91637 2003-07-18  Bruno Haible  <bruno@clisp.org>
91638
91639         * m4/getndelim2.m4: New file.
91640         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
91641         invoke gl_PREREQ_GETNDELIM2.
91642         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
91643         gl_PREREQ_GETNDELIM2.
91644         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
91645         gl_GETNDELIM2.
91646
91647 2003-07-18  Bruno Haible  <bruno@clisp.org>
91648
91649         * lib/getndelim2.h: New file.
91650         * lib/getndelim2.c: Make into a module of its own. Include config.h,
91651         getndelim2.h.
91652         (getndelim2): Make non-static. Change return type to ssize_t.
91653         * lib/getline.h: Change argument names.
91654         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
91655         * lib/getnline.c: Include getndelim2.h.
91656
91657 2003-07-18  Andreas Schwab  <schwab@suse.de>
91658
91659         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
91660
91661 2003-07-17  Karl Berry  <karl@gnu.org>
91662
91663         * config/config.sub: update from prep.
91664
91665 2003-07-17  Bruno Haible  <bruno@clisp.org>
91666
91667         * modules/getnline: New file.
91668         * modules/getline: Add lib/getndelim2.c to source file list.
91669         * MODULES.html.sh (func_all_modules): Add getnline.
91670
91671 2003-07-17  Bruno Haible  <bruno@clisp.org>
91672
91673         * m4/getnline.m4: New file.
91674
91675 2003-07-17  Bruno Haible  <bruno@clisp.org>
91676
91677         * m4/Makefile.am.in: Remove file.
91678         * m4/Makefile.am: Remove file.
91679         * m4/Makefile.in: Remove file.
91680
91681 2003-07-17  Bruno Haible  <bruno@clisp.org>
91682
91683         * lib/getnline.h: New file.
91684         * lib/getnline.c: New file.
91685         * lib/getndelim2.c: New file, extracted from getline.c.
91686         (getndelim2): Renamed from getdelim2, with added nmax argument.
91687         * lib/getline.c: Include getndelim2.c.
91688         (getdelim2): Moved out to getndelim2.c.
91689         (getline, getdelim): Update.
91690
91691 2003-07-17  Bruno Haible  <bruno@clisp.org>
91692
91693         * lib/Makefile.am: Remove file.
91694         * lib/Makefile.in: Remove file.
91695
91696 2003-07-17  Bruno Haible  <bruno@clisp.org>
91697
91698         * configure.in: Remove file.
91699         * Makefile.in: Remove file.
91700
91701 2003-07-17  Bruno Haible  <bruno@clisp.org>
91702
91703         * MODULES.html.sh: Put the </BODY> right before </HTML>.
91704
91705 2003-07-16  Karl Berry  <karl@gnu.org>
91706
91707         * config/srclist-update: was running fixlicense twice, which caused
91708                 texinfo.tex to be nullified for some reason.  Simplify,
91709                 $gplsrc is no longer needed as far as I can see?
91710
91711 2003-07-16  Jim Meyering  <jim@meyering.net>
91712
91713         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
91714
91715 2003-07-15  Paul Eggert  <eggert@twinsun.com>
91716
91717         * config/srclist.txt: Get the following files from gettext-runtime/intl
91718         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
91719         ref-del.sin.  From Bruno Haible.
91720         * config/srclist-update (fixfile): Change grep pattern again, since the
91721         previous fix didn't work (there was another trailing $).  Use
91722         '[$]' to escape the $s.
91723
91724 2003-07-15  Karl Berry  <karl@gnu.org>
91725
91726         * lib/vasnprintf.c: update from gettext.
91727
91728 2003-07-15  Karl Berry  <karl@gnu.org>
91729
91730         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
91731         gets expanded when surrounded by '$'.
91732
91733 2003-07-15  Jim Meyering  <jim@meyering.net>
91734
91735         * modules/save-cwd: Don't depend on error.  From Derek Price.
91736
91737 2003-07-15  Jim Meyering  <jim@meyering.net>
91738
91739         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
91740
91741 2003-07-14  Simon Josefsson  <jas@extundo.com>
91742
91743         * modules/mempcpy: New file.
91744         * MODULES.html.sh (func_all_modules): Add mempcpy.
91745
91746 2003-07-14  Simon Josefsson  <jas@extundo.com>
91747
91748         * m4/mempcpy.m4: New file.
91749
91750 2003-07-14  Simon Josefsson  <jas@extundo.com>
91751
91752         * lib/mempcpy.h: New file.
91753         * lib/mempcpy.c: New file.
91754
91755 2003-07-14  Paul Eggert  <eggert@twinsun.com>
91756
91757         * modules/getdate, modules/posixtm: Depend on mktime.
91758
91759 2003-07-14  Paul Eggert  <eggert@twinsun.com>
91760
91761         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
91762         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
91763         unicodeio.c, unicodeio.h, unlocked-io.h:
91764         Switch from LGPL to GPL.
91765
91766 2003-07-14  Paul Eggert  <eggert@twinsun.com>
91767
91768         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
91769         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
91770         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
91771         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
91772         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
91773         updated automatically by ../config/srclist-update.  This changes
91774         their license from LPGL to GPL.
91775
91776 2003-07-14  Paul Eggert  <eggert@twinsun.com>
91777
91778         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
91779         assumed to refer to the root of the most recent stable gettext version.
91780         * config/srclistvars.sh: Add defaults for eggert.
91781         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
91782         Match "This program" as well as "The program".  This is needed
91783         for gettext.
91784
91785 2003-07-14  Jim Meyering  <jim@meyering.net>
91786
91787         Don't emit diagnostics.  Let callers do that.
91788         * lib/save-cwd.c: Don't include "error.h".
91789         (save_cwd): Don't call error.  Ensure that errno is valid
91790         when returning nonzero.
91791
91792         * lib/save-cwd.h (restore_cwd): Update prototype.
91793         * lib/save-cwd.c (restore_cwd): Remove two parameters.
91794         Simplify.  Don't call error upon failure.  Let callers do that.
91795         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
91796         when auditing is enabled.  But don't bother updating the #if.
91797
91798 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
91799
91800         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
91801         it breaks C++ compilation.
91802         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
91803
91804 2003-07-10  Simon Josefsson  <jas@extundo.com>
91805
91806         * modules/strchrnul (Makefile.am): Add strchrnul.h.
91807
91808 2003-07-10  Jim Meyering  <jim@meyering.net>
91809
91810         * m4/clock_time.m4: Remove trailing blank.
91811         * m4/intmax_t.m4: Likewise.
91812
91813 2003-07-10  Jim Meyering  <jim@meyering.net>
91814
91815         * lib/vasnprintf.c: Remove trailing blanks.
91816         Make cpp indentation consistent.
91817
91818 2003-07-09  Paul Eggert  <eggert@twinsun.com>
91819
91820         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
91821         posixver.c, strftime.c, strnlen.c, strverscmp.c:
91822         Switch from LGPL to GPL.
91823
91824 2003-07-09  Paul Eggert  <eggert@twinsun.com>
91825
91826         * config/srclist.txt: Sort sublists.  Add
91827         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
91828         that differ from gnulib for one reason or another; we'd like this list
91829         to be smaller but for now let's document what we have.
91830
91831 2003-07-08  Paul Eggert  <eggert@twinsun.com>
91832
91833         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
91834         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
91835         and sweeter "eval x=$x".
91836         * config/srclist.txt: Get lib/argp* from glibc.
91837
91838 2003-07-07  Paul Eggert  <eggert@twinsun.com>
91839
91840         * lib/mktime.c: Fix some boundary cases and remove need for floating
91841         point.
91842
91843         Issue a compile-time diagnostic if time_t is floating point, or if
91844         two's complement arithmetic is not in effect, or if arithmetic
91845         right shift does not propagate the sign.  These assumptions were
91846         all in the original code but they weren't checked.
91847
91848         (TIME_T_MIDPOINT, verify): New macros.
91849         (__isleap): Remove; it has integer overflow problems.
91850         (leapyear): New function, without those problems.
91851         (ydhms_tm_diff): Remove; splitting into two parts.
91852         (ydhms_diff): New function, containing the arithmetic part of
91853         the old ydhms_tm_diff function.  Issue a compile-time
91854         diagnostic if we are not using C99 integer division.
91855         Avoid casts when possible.
91856         (guess_time_tm): New function, containing the checking part of
91857         the old ydhms_tm_diff function.  Return the new value, rather than
91858         the difference between it and the old.  Accept a new argument T
91859         so that *T specifies the old value.  Check for overflow in the result.
91860
91861         (__mktime_internal): Use a time_t offset, not a long int offset.
91862         This undoes the 2003-06-04 change, which is no longer needed now
91863         that we have better overflow checking.
91864         (localtime_offset): Likewise.
91865
91866         (__mktime_internal): Avoid harmful overflow on hosts where time_t
91867         and long are 64-bit but int is only 32-bit.
91868         (ydhms_diff): Use long int to store year1 and yday1.
91869         Issue a compile-time diagnostic if long int is not wide enough.
91870
91871         (__mktime_internal): Use long int to store adjusted year and yday.
91872         Use plain C rather than preprocessor commands, if that doesn't
91873         affect efficiency.
91874         Check for overflow (and try to repair) after each probe
91875         rather than checking only at the very end.  This avoids some bugs
91876         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
91877         does not equal GMT offset at maximum time).
91878         Use integer to check for overflow rather than floating point; this
91879         is more portable to non-IEEE hosts, and is a tad faster.
91880         When we detect that we are oscillating between two values,
91881         don't check whether tm_isdst has the requested value, since
91882         we already know the answer.  When tm_isdst has the wrong value,
91883         use a different heuristic to find the right one, based on the
91884         extreme values actually observed in practice in tz2003a,
91885         rather than the (overly optimistic) "previous 3 calendar quarters".
91886
91887         (not_equal_tm, print_tm, check_result): Use "const T" rather than
91888         "T const" to accommodate glibc style.
91889         (check_result): Use less-confusing report format.  "long" -> "long int.
91890         (main): Likewise.
91891         Don't loop if the iteration overflows time_t.
91892         Allow a negative step in the iteration.
91893
91894 2003-07-06  Karl Berry  <karl@gnu.org>
91895
91896         * config/depcomp: update from automake.
91897         * config/config.sub: update from prep.
91898
91899 2003-07-03  Karl Berry  <karl@gnu.org>
91900
91901         * config/config.guess: update from prep.
91902
91903 2003-07-01  Paul Eggert  <eggert@twinsun.com>
91904
91905         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
91906         xreadlink.c now includes it unconditionally.
91907
91908 2003-07-01  Paul Eggert  <eggert@twinsun.com>
91909
91910         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
91911         having it depend on HAVE_SYS_TYPES_H.
91912
91913 2003-07-01  Bruno Haible  <bruno@clisp.org>
91914
91915         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
91916         <sys/types.h> should be sufficient.
91917         Reported by Paul Eggert.
91918
91919 2003-06-26  Karl Berry  <karl@gnu.org>
91920
91921         * config/depcomp: update from automake.
91922
91923 2003-06-26  Bruno Haible  <bruno@clisp.org>
91924
91925         * modules/human: Depend on module stdbool.
91926
91927 2003-06-25  Bruno Haible  <bruno@clisp.org>
91928
91929         * modules/readlink: New file.
91930         * modules/xreadlink: Depend on it.
91931         * MODULES.html.sh (func_all_modules): Add readlink.
91932
91933 2003-06-25  Bruno Haible  <bruno@clisp.org>
91934
91935         * m4/readlink.m4: New file.
91936
91937 2003-06-25  Bruno Haible  <bruno@clisp.org>
91938
91939         * lib/readlink.c: New file.
91940
91941 2003-06-22  Karl Berry  <karl@gnu.org>
91942
91943         * config/srclist.txt: update mkinstalldirs from automake.
91944         * config/mkinstalldirs: update.
91945
91946 2003-06-22  Bruno Haible  <bruno@clisp.org>
91947
91948         Portability to mingw32.
91949         * m4/ssize_t.m4: New file, from GNU gettext.
91950         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
91951         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
91952
91953 2003-06-22  Bruno Haible  <bruno@clisp.org>
91954
91955         * modules/safe-read: Add m4/ssize_t.m4.
91956         * modules/xreadlink: Add m4/ssize_t.m4.
91957
91958 2003-06-20  Bruno Haible  <bruno@clisp.org>
91959
91960         Assume C89, so PARAMS isn't needed.
91961         * lib/unicodeio.h (PARAMS): Remove.
91962         * lib/unicodeio.c: Don't use PARAMS.
91963
91964 2003-06-18  Karl Berry  <karl@gnu.org>
91965
91966         * config/config.{guess,sub}: update from prep.
91967
91968 2003-06-18  Jim Meyering  <jim@meyering.net>
91969
91970         Merge changes from coreutils.
91971         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
91972         Remove explicit declarations of xmalloc and realloc.
91973         Include xalloc.h.
91974         (read_utmp): Remove anachronistic cast of xmalloc.
91975
91976 2003-06-17  Paul Eggert  <eggert@twinsun.com>
91977
91978         Assume C89, so PARAMS isn't needed.
91979         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
91980         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
91981         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
91982         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
91983         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
91984         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
91985         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
91986         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
91987         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
91988         lib/xstrtod.h, lib/xstrtol.h: Likewise.
91989         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
91990         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
91991         no longer needed. Anyway, config.h should always be included before any
91992         other file.
91993
91994 2003-06-11  Simon Josefsson  <jas@extundo.com>
91995
91996         * modules/sysexits: New file.
91997         * MODULES.html.sh (func_all_modules): Add sysexits.
91998
91999 2003-06-11  Simon Josefsson  <jas@extundo.com>
92000
92001         * lib/sysexit_.h: New file.
92002
92003 2003-06-11  Derek Price  <derek@ximbiot.com>
92004
92005         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
92006         necessary.
92007
92008 2003-06-11  Bruno Haible  <bruno@clisp.org>
92009
92010         * m4/sysexits.m4: New file.
92011
92012 2003-06-10  Simon Josefsson  <jas@extundo.com>
92013
92014         * lib/argp.h: New file, from glibc.
92015         * lib/argp-ba.c: New file, from glibc.
92016         * lib/argp-eexst.c: New file, from glibc.
92017         * lib/argp-fmtstream.c: New file, from glibc.
92018         * lib/argp-fmtstream.h: New file, from glibc.
92019         * lib/argp-fs-xinl.c: New file, from glibc.
92020         * lib/argp-help.c: New file, from glibc.
92021         * lib/argp-namefrob.h: New file, from glibc.
92022         * lib/argp-parse.c: New file, from glibc.
92023         * lib/argp-pv.c: New file, from glibc.
92024         * lib/argp-pvh.c: New file, from glibc.
92025         * lib/argp-xinl.c: New file, from glibc.
92026
92027 2003-06-10  Simon Josefsson  <jas@extundo.com>
92028
92029         * modules/strchrnul: New file.
92030
92031 2003-06-10  Simon Josefsson  <jas@extundo.com>
92032
92033         * modules/argp: New file.
92034
92035 2003-06-10  Simon Josefsson  <jas@extundo.com>
92036
92037         * m4/strchrnul.m4: New file.
92038
92039 2003-06-10  Simon Josefsson  <jas@extundo.com>
92040
92041         * lib/strchrnul.h: New file.
92042         * lib/strchrnul.c: New file.
92043
92044 2003-06-10  Bruno Haible  <bruno@clisp.org>
92045
92046         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
92047
92048 2003-06-07  Karl Berry  <karl@gnu.org>
92049
92050         * config/config.{guess,sub}: update from prep.
92051
92052 2003-06-07  Jim Meyering  <jim@meyering.net>
92053
92054         * modules/strtod: Use $(...) notation, not @...@ for
92055         AC_REPLACE'd variables.
92056         * modules/localcharset: Likewise.
92057
92058 2003-06-07  Jim Meyering  <jim@meyering.net>
92059
92060         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
92061         in place of my name in the copyright comment.
92062         Remove definition and uses of __P.
92063
92064         From coreutils.
92065         * lib/stat.c: Don't declare xmalloc explicitly.
92066         Instead, include "xalloc.h".
92067         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
92068         xrealloc, and xcalloc return values.
92069         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
92070         Improve comment.
92071         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
92072
92073 2003-06-07  Bruno Haible  <bruno@clisp.org>
92074
92075         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
92076         avoid AC_CONFIG_LINKS.
92077         * modules/fnmatch (Makefile.am): Use explicit creation rule for
92078         fnmatch.h, to avoid AC_CONFIG_LINKS.
92079         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
92080
92081 2003-06-07  Bruno Haible  <bruno@clisp.org>
92082
92083         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
92084         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
92085         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
92086         directory.
92087         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
92088         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
92089         directory.
92090
92091 2003-06-06  Jim Meyering  <jim@meyering.net>
92092
92093         Merge from coreutils.
92094         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
92095         Consolidate declarations and initializations of *_base* locals.
92096
92097         Merge from coreutils.
92098         This avoids a core dump on systems without GNU putenv,
92099         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
92100         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
92101         (unsetenv): New static function, from GNU libc.
92102         (rpl_putenv): Use it.
92103
92104         * lib/modechange.c: Remove trailing blanks.
92105
92106         Merge from coreutils.
92107         * lib/fsusage.c: Remove declaration of statfs.
92108         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
92109
92110         * lib/posixtm.c: Include <stdbool.h> unconditionally.
92111
92112 2003-06-06  Jim Meyering  <jim@meyering.net>
92113
92114         * lib/stdbool_.h: Renamed from stdbool.h.in.
92115
92116 2003-06-06  Jim Meyering  <jim@meyering.net>
92117             Bruno Haible  <bruno@clisp.org>
92118
92119         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
92120         Adjust Makefile.am snippet not to redirect directly to target.
92121         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
92122
92123 2003-06-05  Paul Eggert  <eggert@twinsun.com>
92124
92125         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
92126         mismatch, look in future quarters as well as past.  This fixes a
92127         bug when processing fall-backwards gaps immediately after a long
92128         period of daylight-saving time.
92129
92130         * lib/mktime.c: Assume freestanding C89 or better.
92131         (HAVE_LIMITS_H): Remove.  Assume it's 1.
92132         (__P): Remove; not used.
92133         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
92134         (mktime, not_equal_tm, print_tm, check_result,
92135         main): Use prototypes.  Use const * where appropriate.
92136         (main): Fix typo in testing code that uncovered by above changes.
92137         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
92138
92139 2003-06-04  Paul Eggert  <eggert@twinsun.com>
92140
92141         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
92142         locale.h, localeconv.  This merges changes from coreutils.
92143
92144         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
92145         It can be removed after the next Autoconf is released.
92146         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
92147         needed.
92148
92149 2003-06-04  Paul Eggert  <eggert@twinsun.com>
92150
92151         * lib/mktime.c: Fix Debian bug 177940
92152         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
92153         (localtime_offset): Now long int, not time_t, because we want it
92154         to be guaranteed to be signed.  All uses changed.
92155         (__mktime_internal): If overflow would occur when adding offset,
92156         don't add it.
92157
92158         Merge 'human' changes from coreutils.  Rewrite to support
92159         locale-specific notations like thousands separators.
92160         * lib/human.c: Simplify authorship notice.
92161         Include human.h immediately after config.h.
92162         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
92163         <limits.h>: Do not include, since human.h does.
92164         (SIZE_MAX, UINTMAX_MAX): New macros.
92165         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
92166         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
92167         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
92168         (power_letter): Renamed from suffixes.
92169         (generate_suffix_backwards): Remove.
92170         (adjust_value): Now takes int style (because of human.h changes)
92171         and long double value (for greater precision on some platforms).
92172         (group_number): New function.
92173         (human_readable): Use it.  Use integer options, not enum.
92174         Put the options before the sizes in the arg list.
92175         Support all the new options.
92176         The old human_readable function has been removed;
92177         use inttostr.h instead.
92178         (human_readable, default_block_size, humblock):
92179         Use uintmax_t, not int, for block sizes.
92180         (human_readable_inexact, block_size_types): Remove.
92181         (block_size_opts): New constant.
92182         (human_options): Renamed from human_block_size, with new signature
92183         that allows block sizes up to UINTMAX_MAX.  All callers changed.
92184         * lib/human.h: Add copyright and authorship notice.
92185         Include <limits.h> and <stdbool.h> unconditionally.
92186         (PARAMS): Remove.  All uses removed.
92187         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
92188         (enum human_inexact_style): Remove tag; now a nameless enum.
92189         (human_floor, human_ceiling, human_round_to_even): Now have
92190         values 2, 0, 1 rather than -1, 1, 0.
92191         (human_group_digits, human_suppress_point_zero, human_autoscale,
92192         human_base_1024, human_SI, human_B): New constants.
92193         (human_readable_inexact, human_block_size): Remove.
92194         (human_readable): Size args are now uintmax_t, not int.
92195         (human_options): New decl.
92196
92197         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
92198         unnecessary now that we assume C89 or better.  This change
92199         imported from coreutils.
92200
92201         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
92202         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
92203         in the 2003-05-30 sync from glibc.
92204
92205         .h files should stand alone, but we shouldn't include <sys/types.h>
92206         if we can get away with just <stddef.h>.
92207
92208         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
92209         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
92210         rather than <sys/types.h>, as we merely need size_t.
92211         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
92212         to get size_t.
92213         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
92214         Include <stdio.h>, to get FILE.
92215         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
92216         memcasecmp.h has included <stddef.h> and all we need is size_t.
92217         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
92218         our interface, instead of including <sys/types.h>
92219
92220 2003-06-04  Paul Eggert  <eggert@twinsun.com>
92221
92222         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
92223         now, as glibc mktime is buggy on non-glibc systems.
92224
92225 2003-06-03  Karl Berry  <karl@gnu.org>
92226
92227         * config/config.sub: update from prep.
92228
92229 2003-06-02  Paul Eggert  <eggert@twinsun.com>
92230
92231         [from coreutils]
92232         Fix some minor time-related bugs with POSIX time arguments.
92233         Some valid time stamps were being rejected (notably -1, and
92234         time stamps before 1900 on 64-bit hosts).  And some invalid
92235         time stamps were being accepted, e.g. September 31.
92236
92237         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
92238         that we can return (time_t) -1 successfully.
92239         * lib/posixtm.c: Likewise.
92240         [HAVE_STDBOOL_H]: Include <stdbool.h>.
92241         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
92242         (t): Remove static var.
92243         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
92244         of static var.  All uses changed.
92245         (year): Do not reject years before 1900; they can occur with
92246         64-bit time_t.
92247         (posix_time_parse): Do not check for out-of-range components;
92248         that is now the caller's responsibility, since our checks were
92249         only approximations.
92250         (posixtime): Use mktime to check for out-of-range components,
92251         since it knows them exactly.
92252         If mktime returns (time_t) -1, check whether an error actually occurred
92253         by invoking localtime on -1.
92254         (main) [TEST_POSIXTIME]: Check for input data errors, and report
92255         posixtime failures better.
92256         Improve the test data (in comments only).
92257
92258 2003-06-02  Karl Berry  <karl@gnu.org>
92259
92260         * config/mkinstalldirs (version): new variable.
92261         (--version): new option.
92262         (usage): improve message.
92263
92264 2003-05-30  Karl Berry  <karl@gnu.org>
92265
92266         * lib/mktime.c: update from libc.
92267
92268 2003-05-30  Bruno Haible  <bruno@clisp.org>
92269
92270         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
92271         * config/config.rpath: Upgrade to gettext-0.12.1.
92272
92273 2003-05-30  Bruno Haible  <bruno@clisp.org>
92274
92275         * m4/gettext.m4: Upgrade to gettext-0.12.1.
92276         * m4/nls.m4: New file, from gettext-0.12.1.
92277         * m4/po.m4: New file, from gettext-0.12.1.
92278         * m4/progtest.m4: Upgrade to gettext-0.12.1.
92279
92280 2003-05-30  Bruno Haible  <bruno@clisp.org>
92281
92282         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
92283         * lib/localcharset.h: Likewise.
92284         * lib/localcharset.c: Likewise.
92285
92286 2003-05-29  Karl Berry  <karl@gnu.org>
92287
92288         * config/config.rpath: update from gettext.
92289
92290 2003-05-28  Paul Eggert  <eggert@twinsun.com>
92291
92292         Assume the headers required for C89 freestanding compilers.
92293         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
92294         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
92295         * m4/human.m4 (gl_HUMAN): Likewise.
92296         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
92297         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
92298         * m4/userspec.m4 (gl_USERSPEC): Likewise.
92299         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
92300         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
92301         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
92302
92303 2003-05-28  Paul Eggert  <eggert@twinsun.com>
92304
92305         Assume the headers required for C89 freestanding compilers.
92306         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
92307         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
92308         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
92309         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
92310         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
92311         define, since <limits.h> is guaranteed to do that.
92312         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
92313         * lib/exclude.c: Include <stdbool.h> unconditionally.
92314         * lib/tempname.c: Include <stddef.h> unconditionally.
92315         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
92316         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
92317         <stddef.h> does that.
92318         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
92319         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
92320         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
92321         needed.
92322         * lib/xstrtol.c: Likewise.
92323         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
92324         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
92325
92326         * lib/addext.c (addext): Use assignment rather than cast, to avoid
92327         warnings on some platforms.
92328
92329         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
92330         arbitrarily.
92331
92332 2003-05-26  Jim Meyering  <jim@meyering.net>
92333
92334         Merge in a change from coreutils:
92335         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
92336         that is guaranteed to be `no'.  Use `no_such_member' to indicate
92337         that condition, rather than `-1' which is slightly misleading.
92338         Change the name of the cache variable to have the gl_ prefix.
92339         Prompted by a patch from Richard Dawe for DJGPP.
92340
92341 2003-05-24  Karl Berry  <karl@gnu.org>
92342
92343         * config/config.guess: update from prep.
92344
92345 2003-05-22  Karl Berry  <karl@gnu.org>
92346
92347         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
92348
92349 2003-05-20  Karl Berry  <karl@gnu.org>
92350
92351         * config/config.guess: update from prep.
92352
92353 2003-05-18  Karl Berry  <karl@gnu.org>
92354
92355         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
92356         might actually be set by the user.
92357
92358         * config/depcomp, install-sh, mdate-sh: update from automake.
92359
92360 2003-05-17  Bruno Haible  <bruno@clisp.org>
92361
92362         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
92363         invalid expansion for AC_EGREP_CPP.
92364         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
92365         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
92366         Suggested by Akim Demaille <akim@epita.fr> in
92367         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
92368
92369 2003-05-12  Jim Meyering  <jim@meyering.net>
92370
92371         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
92372         the space-padded-by-default conversion specifiers, %e, %k, %l.
92373
92374 2003-05-12  Bruno Haible  <bruno@clisp.org>
92375
92376         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
92377         the string is longer than 4 KB.
92378
92379 2003-05-11  Karl Berry  <karl@gnu.org>
92380
92381         * config/config.{guess,sub}: update from prep.
92382
92383 2003-05-09  Bruno Haible  <bruno@clisp.org>
92384
92385         * modules/error: Add m4/strerror_r.m4 to file list.
92386
92387 2003-05-03  Bruno Haible  <bruno@clisp.org>
92388
92389         Upgrade to Unicode-4.0.
92390         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
92391         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
92392         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
92393         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
92394         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
92395         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
92396         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
92397         Change width of U+E0100..U+E01EF from 1 to 0.
92398
92399 2003-04-25  Jim Meyering  <jim@meyering.net>
92400
92401         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
92402         of type size_t, not int.
92403
92404 2003-04-25  Bruno Haible  <bruno@clisp.org>
92405
92406         * lib/copy-file.c: Include <stddef.h>, for size_t.
92407
92408 2003-04-21  Paul Eggert  <eggert@twinsun.com>
92409
92410         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
92411         code which expansion is under static control.  Patch imported from
92412         Akim Demaille's patch to Bison; see
92413         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
92414
92415 2003-04-14  Bruno Haible  <bruno@clisp.org>
92416
92417         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
92418
92419 2003-04-11  Jim Meyering  <jim@meyering.net>
92420
92421         Merge changes from Coreutils.
92422
92423         2003-03-22  Jim Meyering  <jim@meyering.net>
92424
92425         * lib/strftime.c (widen): Cast alloca return value to proper type.
92426
92427         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
92428
92429         From GNU libc.
92430         * lib/strftime.c (my_strftime): Handle very large width
92431         specifications for numeric values correctly.  Improve checks for
92432         overflow.
92433
92434         2003-01-19  Jim Meyering  <jim@meyering.net>
92435
92436         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
92437         definitions.
92438         (nl_get_alt_digit) [! defined my_strftime]: Define.
92439         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
92440         _nl_get_alt_digit and _nl_get_walt_digit.
92441
92442         * lib/strftime.c (my_strftime): Merge in locale-related changes from
92443         libc. These changes have no effect outside of _LIBC.
92444
92445 2003-04-10  Bruno Haible  <bruno@clisp.org>
92446
92447         * modules/findprog: New file.
92448         * MODULES.html.sh (func_all_modules): Add it.
92449
92450 2003-04-10  Bruno Haible  <bruno@clisp.org>
92451
92452         * m4/findprog.m4: New file.
92453         * m4/eaccess.m4: New file.
92454
92455 2003-04-10  Bruno Haible  <bruno@clisp.org>
92456
92457         * lib/findprog.h: New file, from GNU gettext.
92458         * lib/findprog.c: New file, from GNU gettext.
92459
92460 2003-04-05  Jim Meyering  <jim@meyering.net>
92461
92462         Merge changes from Coreutils.
92463
92464         * lib/exclude.h (PARAMS): Remove definition and uses.
92465         * lib/exclude.c: Remove uses of `PARAMS'.
92466
92467         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
92468         Add test-cases for DOS filenames. Declare program_name.
92469         (main): Set up program_name.  Patch by Rich Dawe.
92470
92471         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
92472         error from mntctl.
92473         Use mntctl's return value to drive the entry-processing loop, since
92474         we can't rely on the value of the vmt_length member in the last
92475         entry.  On some systems doing so could result in exhausting
92476         virtual memory.  Based in part on a patch from Mike Jetzer.
92477
92478 2003-04-04  Bruno Haible  <bruno@clisp.org>
92479
92480         * modules/linebreak: New file.
92481         * MODULES.html.sh (func_all_modules): Add it.
92482
92483 2003-04-04  Bruno Haible  <bruno@clisp.org>
92484
92485         * m4/linebreak.m4: New file.
92486
92487 2003-04-04  Bruno Haible  <bruno@clisp.org>
92488
92489         * lib/linebreak.h: New file, from GNU gettext.
92490         * lib/linebreak.c: New file, from GNU gettext with slight
92491         modifications.
92492         * lib/lbrkprop.h: New file, from GNU gettext.
92493
92494 2003-04-03  Bruno Haible  <bruno@clisp.org>
92495
92496         * modules/utf8-ucs4: New file.
92497         * modules/utf16-ucs4: New file.
92498         * modules/ucs4-utf8: New file.
92499         * modules/ucs4-utf16: New file.
92500         * MODULES.html.sh (func_all_modules): Add them.
92501
92502 2003-04-03  Bruno Haible  <bruno@clisp.org>
92503
92504         * m4/utf-ucs4.m4: New file.
92505         * m4/ucs4-utf.m4: New file.
92506
92507 2003-04-03  Bruno Haible  <bruno@clisp.org>
92508
92509         * lib/utf8-ucs4.h: New file, from GNU gettext.
92510         * lib/utf16-ucs4.h: New file, from GNU gettext.
92511         * lib/ucs4-utf8.h: New file, from GNU gettext.
92512         * lib/ucs4-utf16.h: New file, from GNU gettext.
92513
92514 2003-04-02  Bruno Haible  <bruno@clisp.org>
92515
92516         * modules/binary-io: New file.
92517         * MODULES.html.sh (func_all_modules): Add it.
92518
92519 2003-04-02  Bruno Haible  <bruno@clisp.org>
92520
92521         * lib/binary-io.h: New file, from GNU gettext.
92522
92523 2003-04-01  Bruno Haible  <bruno@clisp.org>
92524
92525         * modules/pathname: New file.
92526         * MODULES.html.sh (func_all_modules): Add it.
92527
92528 2003-04-01  Bruno Haible  <bruno@clisp.org>
92529
92530         * lib/pathname.h: New file, from GNU gettext.
92531         * lib/concatpath.c: New file, from GNU gettext.
92532
92533 2003-03-30  Bruno Haible  <bruno@clisp.org>
92534
92535         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
92536
92537 2003-03-30  Bruno Haible  <bruno@clisp.org>
92538
92539         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
92540         function chown() doesn't exist.
92541
92542 2003-03-28  Bruno Haible  <bruno@clisp.org>
92543
92544         * modules/copy-file: New file.
92545         * MODULES.html.sh (func_all_modules): Add it.
92546
92547 2003-03-28  Bruno Haible  <bruno@clisp.org>
92548
92549         * m4/copy-file.m4: New file.
92550
92551 2003-03-28  Bruno Haible  <bruno@clisp.org>
92552
92553         * lib/copy-file.h: New file, from GNU gettext.
92554         * lib/copy-file.c: New file, from GNU gettext.
92555
92556 2003-03-18  Jim Meyering  <jim@meyering.net>
92557
92558         * lib/quote.c (quote_n): Fix typo in comment.
92559
92560 2003-03-18  Bruno Haible  <bruno@clisp.org>
92561
92562         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
92563         checking.
92564         * m4/onceonly_2_57.m4: Likewise.
92565
92566 2003-03-17  Bruno Haible  <bruno@clisp.org>
92567
92568         * m4/onceonly.m4: Require autoconf 2.54 or newer.
92569         (m4_quote): Remove macro.
92570         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
92571
92572 2003-03-14  Jim Meyering  <jim@meyering.net>
92573
92574         Merge changes from Coreutils.
92575         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
92576         to be const, in order to avoid warnings.
92577         (obstack_room): Likewise.
92578         (obstack_empty_p): Likewise.
92579
92580 2003-03-14  Bruno Haible  <bruno@clisp.org>
92581
92582         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
92583         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
92584
92585 2003-03-13  Paul Eggert  <eggert@twinsun.com>
92586
92587         Merge changes from Bison.
92588         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
92589         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
92590         when compiling Bison 1.875's `bitset bset = obstack_alloc
92591         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
92592         * lib/hash.c: Include <stdbool.h> unconditionally.
92593
92594 2003-03-13  Paul Eggert  <eggert@twinsun.com>
92595
92596         * m4/onceonly.m4 (m4_quote): New macro.
92597         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
92598         Quote AC_FOREACH variable-expansions properly.
92599
92600 2003-03-13  Paul Eggert  <eggert@twinsun.com>
92601
92602         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
92603
92604 2003-03-09  Paul Eggert  <eggert@twinsun.com>
92605
92606         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
92607         Reported by Bruce Becker; see:
92608         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
92609
92610 2003-03-03  Paul Eggert  <eggert@twinsun.com>
92611             Bruno Haible  <bruno@clisp.org>
92612
92613         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
92614         Reported by John Hughes, see
92615         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
92616
92617 2003-02-20  Bruno Haible  <bruno@clisp.org>
92618
92619         * MODULES.html.sh (func_all_modules): Add poll.
92620
92621 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
92622
92623         * modules/poll: New file.
92624
92625 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
92626
92627         * lib/poll_.h: New file.
92628         * lib/poll.c: New file.
92629
92630 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
92631
92632         * m4/poll.m4: New file.
92633
92634 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
92635
92636         * modules/mathl: New file.
92637
92638 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
92639
92640         * lib/mathl.h: New file.
92641         * lib/acosl.c: New file.
92642         * lib/asinl.c: New file.
92643         * lib/atanl.c: New file.
92644         * lib/ceill.c: New file.
92645         * lib/cosl.c: New file.
92646         * lib/expl.c: New file.
92647         * lib/floorl.c: New file.
92648         * lib/frexpl.c: New file.
92649         * lib/ldexpl.c: New file.
92650         * lib/logl.c: New file.
92651         * lib/sincosl.c: New file.
92652         * lib/sinl.c: New file.
92653         * lib/sqrtl.c: New file.
92654         * lib/tanl.c: New file.
92655         * lib/trigl.c: New file.
92656         * lib/trigl.h: New file.
92657
92658 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
92659
92660         * m4/mathl.m4: New file.
92661
92662 2003-02-18  Bruno Haible  <bruno@clisp.org>
92663
92664         * MODULES.html.sh (func_all_modules): Add mathl.
92665
92666 2003-02-17  Bruno Haible  <bruno@clisp.org>
92667
92668         * modules/mkdtemp: New module.
92669         * MODULES.html.sh (func_all_modules): Add it.
92670
92671 2003-02-17  Bruno Haible  <bruno@clisp.org>
92672
92673         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
92674
92675 2003-02-17  Bruno Haible  <bruno@clisp.org>
92676
92677         * lib/mkdtemp.h: New file, from GNU gettext.
92678         * lib/mkdtemp.c: New file, from GNU gettext.
92679
92680 2003-02-02  Jim Meyering  <jim@meyering.net>
92681
92682         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
92683         e.g. glibc-2.2.93.
92684
92685 2003-01-31  Bruno Haible  <bruno@clisp.org>
92686
92687         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
92688         'rpl_rename'.
92689         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
92690         'rpl_strnlen'.
92691         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
92692         'rpl_strtod'.
92693         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
92694         'rpl_utime'.
92695
92696 2003-01-31  Bruno Haible  <bruno@clisp.org>
92697
92698         * lib/rename.c: #undef rename before defining rpl_rename.
92699         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
92700
92701 2003-01-30  Bruno Haible  <bruno@clisp.org>
92702
92703         * modules/vasnprintf, modules/vasprintf: New modules.
92704         * MODULES.html.sh (func_all_modules): Add them.
92705
92706 2003-01-30  Bruno Haible  <bruno@clisp.org>
92707
92708         * m4/signed.m4: New file, from GNU gettext.
92709         * m4/longdouble.m4: New file, from GNU gettext.
92710         * m4/wchar_t.m4: New file, from GNU gettext.
92711         * m4/wint_t.m4: New file, from GNU gettext.
92712         * m4/vasnprintf.m4: New file.
92713         * m4/vasprintf.m4: New file.
92714
92715 2003-01-30  Bruno Haible  <bruno@clisp.org>
92716
92717         * lib/printf-args.h: New file, from GNU gettext.
92718         * lib/printf-args.c: New file, from GNU gettext.
92719         * lib/printf-parse.h: New file, from GNU gettext.
92720         * lib/printf-parse.c: New file, from GNU gettext.
92721         * lib/vasnprintf.h: New file, from GNU gettext.
92722         * lib/vasnprintf.c: New file, from GNU gettext.
92723         * lib/asnprintf.c: New file, from GNU gettext.
92724         * lib/vasprintf.h: New file, from GNU gettext with modifications.
92725         * lib/vasprintf.c: New file, from GNU gettext.
92726         * lib/asprintf.c: New file, from GNU gettext.
92727
92728 2003-01-29  Bruno Haible  <bruno@clisp.org>
92729
92730         * modules/stpncpy: New module.
92731         * MODULES.html.sh (func_all_modules): Add it.
92732
92733 2003-01-29  Bruno Haible  <bruno@clisp.org>
92734
92735         * m4/stpncpy.m4: New file.
92736
92737 2003-01-29  Bruno Haible  <bruno@clisp.org>
92738
92739         * lib/stpncpy.h: New file, from GNU gettext with modifications.
92740         * lib/stpncpy.c: New file, from GNU gettext with modifications.
92741
92742 2003-01-28  Bruno Haible  <bruno@clisp.org>
92743
92744         * modules/c-ctype: New module.
92745         * MODULES.html.sh (func_all_modules): Add it.
92746
92747 2003-01-28  Bruno Haible  <bruno@clisp.org>
92748
92749         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
92750         Paul Eggert.
92751         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
92752         Paul Eggert.
92753
92754 2003-01-27  Bruno Haible  <bruno@clisp.org>
92755
92756         * modules/xsetenv: New module.
92757         * MODULES.html.sh (func_all_modules): Add it.
92758
92759 2003-01-27  Bruno Haible  <bruno@clisp.org>
92760
92761         * lib/xsetenv.h: New file, from GNU gettext.
92762         * lib/xsetenv.c: New file, from GNU gettext.
92763
92764 2003-01-23  Jim Meyering  <jim@meyering.net>
92765
92766         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
92767         from working on systems without dirfd (at least Irix and OSF1/Tru64).
92768
92769 2003-01-23  Bruno Haible  <bruno@clisp.org>
92770
92771         * modules/minmax: New module.
92772         * MODULES.html.sh (func_all_modules): Add it.
92773
92774 2003-01-23  Bruno Haible  <bruno@clisp.org>
92775
92776         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
92777         Eggert.
92778
92779 2003-01-22  Bruno Haible  <bruno@clisp.org>
92780
92781         * modules/exit: New module.
92782         * MODULES.html.sh (func_all_modules): Add it.
92783
92784 2003-01-22  Bruno Haible  <bruno@clisp.org>
92785
92786         * lib/exit.h: New file, from GNU gettext.
92787
92788 2003-01-19  Bruno Haible  <bruno@clisp.org>
92789
92790         * gnulib-tool: Recognize option --extract-maintainer.
92791         (func_get_maintainer): New function.
92792         * modules/*: Add Maintainer entry.
92793
92794 2003-01-16  Jim Meyering  <jim@meyering.net>
92795
92796         * m4/regex.m4: The `regex' struct is both input and output.
92797         Initialize it before each use.  Patch by Tim Waugh.
92798
92799 2003-01-16  Bruno Haible  <bruno@clisp.org>
92800
92801         * MODULES.html.sh: Add a table of contents. Add the module name as
92802         leftmost column. Add hyperlinks.
92803
92804 2003-01-15  Bruno Haible  <bruno@clisp.org>
92805
92806         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
92807
92808 2003-01-15  Bruno Haible  <bruno@clisp.org>
92809
92810         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
92811         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
92812         suffix.
92813
92814 2003-01-15  Bruno Haible  <bruno@clisp.org>
92815
92816         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
92817
92818 2003-01-15  Bruno Haible  <bruno@clisp.org>
92819
92820         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
92821         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
92822
92823 2003-01-14  Jim Meyering  <jim@meyering.net>
92824
92825         * lib/same.c (same_name): Tweak a comment.
92826
92827 2003-01-14  Bruno Haible  <bruno@clisp.org>
92828
92829         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
92830         when a string comparison is sufficient.
92831
92832 2003-01-14  Bruno Haible  <bruno@clisp.org>
92833
92834         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
92835         'unsigned int'.
92836
92837 2003-01-14  Bruno Haible  <bruno@clisp.org>
92838
92839         * lib/hash-pjw.c: Add comment about low quality of this function.
92840
92841 2003-01-13  Bruno Haible  <bruno@clisp.org>
92842
92843         * modules/stpcpy: Distribute lib/stpcpy.h.
92844         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
92845
92846 2003-01-13  Bruno Haible  <bruno@clisp.org>
92847
92848         * modules/*: Add a description.
92849         * modules/strpbrk: Fix Makefile.am snippet.
92850         * modules/strtoimax: Fix dependencies.
92851         * modules/strtoumax: Likewise.
92852
92853 2003-01-13  Bruno Haible  <bruno@clisp.org>
92854
92855         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
92856         * modules/alloca (Makefile.am): All object files depend on alloca.h.
92857         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
92858
92859 2003-01-13  Bruno Haible  <bruno@clisp.org>
92860
92861         * gnulib-tool (func_create_testdir): Store config/* files in the main
92862         directory.
92863         * config.rpath: Move to ...
92864         * config/config.rpath: ... here.
92865         * modules/gettext: Contains config/config.rpath, not config.rpath.
92866         * modules/iconv: Likewise.
92867
92868 2003-01-12  Paul Eggert  <eggert@twinsun.com>
92869
92870         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
92871         to avoid collisions with libcurses and libreadline.
92872
92873         * m4/getstr.m4: Remove.
92874         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
92875
92876 2003-01-12  Paul Eggert  <eggert@twinsun.com>
92877
92878         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
92879         to avoid collisions with libcurses and libreadline.
92880
92881         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
92882         * lib/getstr.h, getstr.c: Remove.
92883         * lib/getline.c: Include "getline.h", to check interface.
92884         Move body of old getstr.c here: this defines MIN_CHUNK and
92885         declares getdelim2, which is renamed from getstr.
92886         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
92887
92888         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
92889         All uses changed.
92890         * lib/linebuffer.h: Likewise.
92891         (readline): Remove backward-compatibility macro.
92892
92893 2003-01-12  Paul Eggert  <eggert@twinsun.com>
92894
92895         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
92896         to avoid collisions with libcurses and libreadline.
92897         * getstr: Remove.
92898         * MODULES.html.sh: Remove getstr.
92899         * modules/getline: Depend on unlocked-io, not getstr.
92900
92901 2003-01-12  Jim Meyering  <jim@meyering.net>
92902
92903         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
92904
92905 2003-01-10  Bruno Haible  <bruno@clisp.org>
92906
92907         * modules/alloca: Change Makefile.am requirements. Simplify Include
92908         requirements. Add lib/alloca_.h to file list.
92909
92910 2003-01-10  Bruno Haible  <bruno@clisp.org>
92911
92912         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
92913
92914 2003-01-10  Bruno Haible  <bruno@clisp.org>
92915
92916         * lib/alloca_.h: New file.
92917         * lib/getdate.y: Unconditionally include alloca.h.
92918         * lib/makepath.c: Likewise.
92919         * lib/setenv.c: Likewise.
92920         * lib/userspec.c: Likewise.
92921
92922 2003-01-09  Karl Berry  <karl@gnu.org>
92923
92924         * MODULES.html.sh: include `dirname $0` in PATH, to find
92925         gnulib-tool.
92926
92927 2003-01-09  Bruno Haible  <bruno@clisp.org>
92928
92929         * modules/stdbool: Change configure.ac, Makefile.am requirements.
92930         Simplify Include requirements. Add lib/stdbool.h.in to file list.
92931
92932 2003-01-09  Bruno Haible  <bruno@clisp.org>
92933
92934         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
92935
92936 2003-01-09  Bruno Haible  <bruno@clisp.org>
92937
92938         * lib/stdbool.h.in: New file.
92939
92940 2003-01-09  Bruno Haible  <bruno@clisp.org>
92941
92942         * gnulib-tool (func_all_modules): Ignore files ending in ~.
92943         * MODULES.html.sh: Likewise.
92944
92945 2003-01-08  Jim Meyering  <jim@meyering.net>
92946
92947         * lib/full-write.c: Undefine and define-away `const' after inclusion
92948         of errno.h, not before.  Suggestion from Bruno Haible.
92949
92950 2003-01-08  Bruno Haible  <bruno@clisp.org>
92951
92952         * modules/full-read: Depend on full-write.
92953
92954 2003-01-08  Bruno Haible  <bruno@clisp.org>
92955
92956         * lib/safe-read.c: Include specification header first, to ensure its
92957         selfcontainedness.
92958         * lib/full-write.c: Likewise.
92959
92960 2003-01-07  Jim Meyering  <jim@meyering.net>
92961
92962         * lib/full-write.c: Rework so that it may serve to define full_read,
92963         too.
92964         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
92965
92966 2003-01-07  Bruno Haible  <bruno@clisp.org>
92967
92968         * lib/strtoimax.c: Include <stdint.h> as an alternative to
92969         <inttypes.h>.
92970         * lib/xstrtol.h: Likewise.
92971         * lib/xstrtoimax.c: Likewise.
92972         * lib/xstrtoumax.c: Likewise.
92973         * lib/human.h: Likewise.
92974
92975         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
92976         on systems that have <inttypes.h> but not <stdint.h>.
92977
92978 2003-01-07  Bruno Haible  <bruno@clisp.org>
92979
92980         * MODULES.html.sh: Add copyright notice.
92981         (missed_files): Omit CVS directory entries.
92982         (func_module): Make it work with sed-3.02.
92983         * MODULES.txt: Remove file.
92984
92985 2003-01-06  Jim Meyering  <jim@meyering.net>
92986
92987         * lib/version-etc.c: Update year in translatable copyright string.
92988
92989 2003-01-03  Karl Berry  <karl@gnu.org>
92990
92991         * config/config.{guess,sub}: update from prep.
92992
92993 2003-01-02  Karl Berry  <karl@gnu.org>
92994
92995         * doc/COPYING.DOC: belatedly updated to 1.2.
92996
92997 2003-01-01  Karl Berry  <karl@gnu.org>
92998
92999         * gnulib-tool (func_verify_module): report module name $module in
93000         error message, not $1.
93001         * gnulib-tool (create-testdir): don't complain if destdir couldn't
93002         be created, only if it doesn't exist.
93003         * gnulib-tool (last_checkin_date): don't expand the $Date here.
93004
93005 2002-12-31  Paul Eggert  <eggert@twinsun.com>
93006
93007         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
93008
93009 2002-12-31  Paul Eggert  <eggert@twinsun.com>
93010
93011         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
93012         memcmp if strcoll doesn't work.
93013
93014 2002-12-31  Bruno Haible  <bruno@clisp.org>
93015
93016         * lib/utime.c (utime_null): No need to call ftruncate if the file was
93017         nonempty.
93018
93019 2002-12-31  Bruno Haible  <bruno@clisp.org>
93020
93021         * lib/memcoll.c (STRCOLL): New macro.
93022         (memcoll): Use it.
93023
93024 2002-12-31  Bruno Haible  <bruno@clisp.org>
93025
93026         * lib/localcharset.h: New file.
93027         * lib/localcharset.c: Include it.
93028         * lib/unicodeio.c: Likewise.
93029
93030 2002-12-31  Bruno Haible  <bruno@clisp.org>
93031
93032         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
93033         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
93034
93035 2002-12-31  Bruno Haible  <bruno@clisp.org>
93036
93037         * lib/getline.h: Include <stddef.h>, for size_t.
93038
93039         * lib/unicodeio.h: Include <stddef.h>, for size_t.
93040         * lib/unicodeio.c: Don't include <stddef.h>.
93041
93042 2002-12-31  Bruno Haible  <bruno@clisp.org>
93043
93044         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
93045         HAVE_TM_ZONE.
93046
93047 2002-12-24  Karl Berry  <karl@gnu.org>
93048
93049         * config/config.guess: update from prep.
93050
93051 2002-12-24  Bruno Haible  <bruno@clisp.org>
93052
93053         General infrasructure.
93054         * m4/README: Rewritten.
93055         * m4/onceonly.m4: New file.
93056         * m4/onceonly_2_57.m4: New file.
93057
93058         Module atexit.
93059         * m4/atexit.m4: New file.
93060
93061         Module strtod.
93062         * m4/strtod.m4: New file.
93063
93064         Module strtol.
93065         * m4/strtol.m4: New file.
93066
93067         Module strtoul.
93068         * m4/strtoul.m4: New file.
93069
93070         Module memchr.
93071         * m4/memchr.m4: New file.
93072
93073         Module memcmp.
93074         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
93075         (jm_FUNC_MEMCMP): Invoke it.
93076
93077         Module memcpy.
93078         * m4/memcpy.m4: New file.
93079
93080         Module memmove.
93081         * m4/memmove.m4: New file.
93082
93083         Module memset.
93084         * m4/memset.m4: New file.
93085
93086         Module strcspn.
93087         * m4/strcspn.m4: New file.
93088
93089         Module strpbrk.
93090         * m4/strpbrk.m4: New file.
93091
93092         Module strstr.
93093         * m4/strstr.m4: New file.
93094
93095         Module strerror.
93096         * m4/strerror.m4: New file.
93097
93098         Module mktime.
93099         * m4/mktime.m4: Renamed from jm-mktime.m4.
93100         (gl_PREREQ_MKTIME): New macro.
93101         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
93102
93103         Module malloc.
93104         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
93105         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
93106         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
93107
93108         Module realloc.
93109         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
93110         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
93111         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
93112
93113         Module strftime.
93114         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
93115         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
93116         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
93117         gl_TM_GMTOFF.
93118         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
93119
93120         Module xalloc.
93121         * m4/xalloc.m4: New file.
93122
93123         Module alloca.
93124         * m4/alloca.m4: New file.
93125
93126         Module putenv.
93127         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
93128         (jm_FUNC_PUTENV): Invoke it.
93129
93130         Module setenv.
93131         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
93132         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
93133         when invoked twice.
93134         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
93135         gt_FUNC_SETENV.
93136
93137         Module memrchr.
93138         * m4/memrchr.m4: New file.
93139
93140         Module stpcpy.
93141         * m4/stpcpy.m4: New file.
93142
93143         Module strcase.
93144         * m4/strcase.m4: New file.
93145
93146         Module strdup.
93147         * m4/strdup.m4: New file.
93148
93149         Module strnlen.
93150         * m4/strnlen.m4: New file.
93151
93152         Module strndup.
93153         * m4/strndup.m4: New file.
93154
93155         Module xstrtod.
93156         * m4/xstrtod.m4: New file.
93157
93158         Module xstrtol.
93159         * m4/xstrtol.m4: New file.
93160
93161         Module getdate.
93162         * m4/getdate.m4: New file.
93163
93164         Module unlocked-io.
93165         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
93166         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
93167         * m4/jm-glibc-io.m4n: Remove file.
93168
93169         Module long-options.
93170         * m4/long-options.m4: New file.
93171
93172         Module md5.
93173         * m4/md5.m4: New file.
93174
93175         Module sha.
93176         * m4/sha.m4: New file.
93177
93178         Module getstr.
93179         * m4/getstr.m4: New file.
93180
93181         Module getline.
93182         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
93183         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
93184         <sys/types.h>, for size_t. Use the function name gnu_getline, not
93185         simply getline. Infoke gl_PREREQ_GETLINE.
93186
93187         Module obstack.
93188         * m4/obstack.m4: New file.
93189
93190         Module hash.
93191         * m4/hash.m4: New file.
93192
93193         Module readtokens.
93194         * m4/readtokens.m4: New file.
93195
93196         Module strverscmp.
93197         * m4/strverscmp.m4: New file.
93198
93199         Module stdbool.
93200         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
93201         OSF/1.
93202
93203         Module strtoll.
93204         * m4/strtoll.m4: New file.
93205
93206         Module strtoull.
93207         * m4/strtoull.m4: New file.
93208
93209         Module strtoimax.
93210         * m4/strtoimax.m4: New file.
93211
93212         Module strtoumax.
93213         * m4/strtoumax.m4: New file.
93214
93215         Module xstrtoimax.
93216         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
93217         jm_AC_PREREQ_XSTRTOIMAX.
93218         Moved the strtol prerequisites to strtol.m4.
93219         Moved the strtoll prerequisites to strtoll.m4.
93220         Moved the strtoimax prerequisites to strtoimax.m4.
93221
93222         Module xstrtoumax.
93223         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
93224         jm_AC_PREREQ_XSTRTOUMAX.
93225         Moved the strtoul prerequisites to strtoul.m4.
93226         Moved the strtoull prerequisites to strtoull.m4.
93227         Moved the strtoumax prerequisites to strtoumax.m4.
93228
93229         Module chown.
93230         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
93231         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
93232
93233         Module dup2.
93234         * m4/dup2.m4: New file.
93235
93236         Module ftruncate.
93237         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
93238         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
93239
93240         Module getgroups.
93241         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
93242         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
93243
93244         Module gettimeofday.
93245         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
93246         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
93247         gl_PREREQ_GETTIMEOFDAY.
93248
93249         Module mkdir.
93250         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
93251         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
93252
93253         Module mkstemp.
93254         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
93255         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
93256         jm_AC_TYPE_UINTMAX_T.
93257         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
93258
93259         Module stat.
93260         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
93261         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
93262
93263         Module lstat.
93264         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
93265         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
93266
93267         Module timespec.
93268         * m4/timespec.m4 (gl_TIMESPEC): New macro.
93269         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
93270         * m4/st_mtim.m4: Indentation.
93271
93272         Module nanosleep.
93273         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
93274         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
93275         gl_PREREQ_NANOSLEEP.
93276
93277         Module regex.
93278         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
93279         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
93280         (gl_REGEX): New macro.
93281
93282         Module rename.
93283         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
93284         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
93285
93286         Module rmdir.
93287         * m4/rmdir.m4: New file.
93288
93289         Module utime.
93290         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
93291         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
93292         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
93293
93294         Module dirname.
93295         * m4/dirname.m4: New file.
93296
93297         Module getopt.
93298         * m4/getopt.m4: New file.
93299
93300         Module unistd-safer.
93301         * m4/unistd-safer.m4: New file.
93302
93303         Module fnmatch.
93304         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
93305         declaration.
93306         (gl_PREREQ_FNMATCH_EXTRA): New macro.
93307         (gl_FUNC_FNMATCH_POSIX): New macro.
93308         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
93309         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
93310         simply fnmatch.
93311
93312         Module exclude.
93313         * m4/exclude.m4: New file.
93314
93315         Module human.
93316         * m4/human.m4: New file.
93317
93318         Module acl.
93319         * m4/acl.m4: Nop.
93320
93321         Module backupfile.
93322         * m4/backupfile.m4: New file.
93323         * m4/d-ino.m4: Indentation.
93324
93325         Module fsusage.
93326         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
93327         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
93328         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
93329
93330         Module dirfd.
93331         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
93332         requirements.
93333
93334         Module euidaccess.
93335         * m4/euidaccess.m4: New file.
93336
93337         Module file-type.
93338         * m4/file-type.m4: New file.
93339
93340         Module fileblocks.
93341         * m4/fileblocks.m4: New file.
93342
93343         Module filemode.
93344         * m4/filemode.m4: New file.
93345
93346         Module isdir.
93347         * m4/isdir.m4: New file.
93348
93349         Module lchown.
93350         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
93351         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
93352
93353         Module makepath.
93354         * m4/makepath.m4: New file.
93355
93356         Module modechange.
93357         * m4/modechange.m4: New file.
93358
93359         Module mountlist.
93360         * m4/mountlist.m4: New file.
93361         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
93362         Indentation.
93363
93364         Module path-concat.
93365         * m4/path-concat.m4: New file.
93366
93367         Module pathmax.
93368         * m4/pathmax.m4: New file.
93369
93370         Module same.
93371         * m4/same.m4: New file.
93372
93373         Module save-cwd.
93374         * m4/save-cwd.m4: New file.
93375
93376         Module savedir.
93377         * m4/savedir.m4: New file.
93378
93379         Module xgetcwd.
93380         * m4/xgetcwd.m4: New file.
93381         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
93382
93383         Module xreadlink.
93384         * m4/xreadlink.m4: New file.
93385
93386         Module safe-read.
93387         * m4/safe-read.m4: New file.
93388
93389         Module safe-write.
93390         * m4/safe-write.m4: New file.
93391
93392         Module closeout.
93393         * m4/closeout.m4: New file.
93394
93395         Module stdio-safer.
93396         * m4/stdio-safer.m4: New file.
93397
93398         Module getpass.
93399         * m4/getpass.m4: New file.
93400
93401         Module getugroups.
93402         * m4/getugroups.m4: New file.
93403
93404         Module group-member.
93405         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
93406         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
93407
93408         Module idcache.
93409         * m4/idcache.m4: New file.
93410
93411         Module userspec.
93412         * m4/userspec.m4: New file.
93413
93414         Module gettime.
93415         * m4/clock_time.m4: New file.
93416         * m4/gettime.m4: New file.
93417
93418         Module settime.
93419         * m4/settime.m4: New file.
93420
93421         Module posixtm.
93422         * m4/posixtm.m4: New file.
93423
93424         Module gethostname.
93425         * m4/gethostname.m4: New file.
93426
93427         Module canon-host.
93428         * m4/canon-host.m4: New file.
93429
93430         Module gettext.
93431         * m4/codeset.m4: New file, from gettext-0.11.5.
93432         * m4/gettext.m4: New file, from gettext-0.11.5.
93433         * m4/glibc21.m4: New file, from gettext-0.11.5.
93434         * m4/iconv.m4: New file, from gettext-0.11.5.
93435         * m4/intdiv0.m4: New file, from gettext-0.11.5.
93436         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
93437         * m4/inttypes.m4: New file, from gettext-0.11.5.
93438         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
93439         * m4/isc-posix.m4: New file, from gettext-0.11.5.
93440         * m4/lcmessage.m4: New file, from gettext-0.11.5.
93441         * m4/lib-ld.m4: New file, from gettext-0.11.5.
93442         * m4/lib-link.m4: New file, from gettext-0.11.5.
93443         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
93444         * m4/progtest.m4: New file, from gettext-0.11.5.
93445         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
93446         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
93447         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
93448
93449         Module localcharset.
93450         * m4/localcharset.m4: New file.
93451
93452         Module hard-locale.
93453         * m4/hard-locale.m4: New file.
93454
93455         Module mbswidth.
93456         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
93457         onceonly macros.
93458         * m4/mbrtowc.m4: Add comment.
93459
93460         Module memcasecmp.
93461         * m4/memcasecmp.m4: New file.
93462
93463         Module memcoll.
93464         * m4/memcoll.m4: New file.
93465
93466         Module unicodeio.
93467         * m4/unicodeio.m4: New file.
93468
93469         Module rpmatch.
93470         * m4/rpmatch.m4: New file.
93471
93472         Module yesno.
93473         * m4/yesno.m4: New file.
93474
93475         Module exitfail.
93476         * m4/exitfail.m4: New file.
93477
93478         Module c-stack.
93479         * m4/c-stack.m4 (gl_C_STACK): New macro.
93480         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
93481
93482         Module error.
93483         * m4/error.m4 (gl_ERROR): New macro.
93484         (jm_PREREQ_ERROR): Use onceonly macros.
93485
93486         Module fatal.
93487         * m4/fatal.m4: New file.
93488
93489         Module getloadavg.
93490         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
93491         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
93492
93493         Module getpagesize.
93494         * m4/getpagesize.m4: New file.
93495
93496         Module getusershell.
93497         * m4/getusershell.m4: New file.
93498
93499         Module physmem.
93500         * m4/physmem.m4: New file.
93501
93502         Module posixver.
93503         * m4/posixver.m4: New file.
93504
93505         Module quotearg.
93506         * m4/quotearg.m4: New file.
93507
93508         Module quote.
93509         * m4/quote.m4: New file.
93510
93511         Module readutmp.
93512         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
93513
93514         Module sig2str.
93515         * m4/sig2str.m4: New file.
93516
93517         Other.
93518         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
93519         ulonglong.m4.
93520         * m4/intmax_t.m4: New file.
93521         * m4/d-type.m4: Indentation.
93522         * m4/jm-macros.m4: Update.
93523         * m4/prereq.m4 (jm_PREREQ): Update.
93524         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
93525         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
93526         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
93527         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
93528         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
93529         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
93530         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
93531         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
93532         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
93533         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
93534         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
93535         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
93536         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
93537         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
93538         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
93539         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
93540         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
93541         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
93542         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
93543
93544 2002-12-24  Bruno Haible  <bruno@clisp.org>
93545
93546         * MODULES.txt: Update according to m4/ changes.
93547
93548         Module gettext.
93549         * config.rpath: New file, from gettext-0.11.5.
93550
93551         * modules/*: New module descriptions.
93552         * gnulib-tool: New file.
93553         * MODULES.html.sh: New file.
93554
93555 2002-12-21  Karl Berry  <karl@gnu.org>
93556
93557         * doc/fdl.texi: update to version 1.2.
93558
93559 2002-12-19  Karl Berry  <karl@gnu.org>
93560
93561         * config/config.guess: update from prep.
93562
93563 2002-12-18  Bruno Haible  <bruno@clisp.org>
93564
93565         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
93566         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
93567
93568 2002-12-17  Bruno Haible  <bruno@clisp.org>
93569
93570         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
93571         stdlib.h, string.h.
93572
93573 2002-12-17  Bruno Haible  <bruno@clisp.org>
93574
93575         * lib/canon-host.c (strdup): Remove unused declaration.
93576
93577         * lib/fsusage.c: Include full_read.h.
93578         (get_fs_usage): Use full_read instead of safe_read.
93579
93580         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
93581
93582 2002-12-12  Karl Berry  <karl@gnu.org>
93583
93584         * config/config.guess: update from prep.
93585
93586 2002-12-11  Bruno Haible  <bruno@clisp.org>
93587
93588         * m4/setenv.m4: New file, from gettext-0.11.5.
93589
93590 2002-12-11  Bruno Haible  <bruno@clisp.org>
93591
93592         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
93593         not unsetenv().
93594         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
93595         modifications:
93596
93597         2002-12-11  Bruno Haible  <bruno@clisp.org>
93598
93599                 * setenv.c (alloca): Fall back to malloc.
93600                 (freea): New macro.
93601                 (setenv): Use freea() to free memory allocated with alloca().
93602
93603         2002-11-13  Bruno Haible  <bruno@clisp.org>
93604
93605                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
93606                 function declarations.
93607                 * unsetenv.c (unsetenv): Likewise.
93608
93609         2002-03-04  Bruno Haible  <bruno@clisp.org>
93610
93611                 Portability to AIX 4.3.3.
93612                 * unsetenv.c: New file, extracted from setenv.c.
93613                 * setenv.c: Move the unsetenv() function to unsetenv.c.
93614
93615         2001-12-20  Bruno Haible  <bruno@clisp.org>
93616
93617                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
93618                 use malloc instead. For SunOS 4.
93619
93620         2001-12-11  Bruno Haible  <bruno@clisp.org>
93621
93622                 * setenv.c: Declare alloca.
93623                 (compar_fn_t): New typedef.
93624                 (KNOWN_VALUE, STORE_VALUE): Use it.
93625
93626         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
93627         setenv.h.
93628
93629 2002-12-10  Paul Eggert  <eggert@twinsun.com>
93630
93631         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
93632         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
93633         Choose values that are less likely to collide with system fnmatch
93634         options.
93635         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
93636         defined (e.g., a pure POSIX system).
93637         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
93638         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
93639
93640 2002-12-06  Paul Eggert  <eggert@twinsun.com>
93641
93642         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
93643         a pain in practice to deal with generated m4 files.  This change
93644         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
93645
93646         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
93647         and jm-glibc-io.m4, as they are no longer a special case.
93648         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
93649         kludge and the auto-generation stuff.  Check only whether the
93650         functions are declared, not whether they exist, since older hosts
93651         that don't declare the functions can't use the optimization anyway.
93652
93653 2002-12-06  Jim Meyering  <jim@meyering.net>
93654
93655         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
93656
93657         Merge in changes from libc's misc/error.c, in preparation
93658         for the merge of gnulib's changes back into libc.
93659
93660         * lib/error.c (_): Define only if not already defined.
93661         Move definition to follow all #include directives.
93662         Include unlocked-io.h only if !_LIBC.
93663         [_LIBC]: Include <libio/libioP.h>.
93664         [USE_IN_LIBIO]: Include <libio/iolibio.h>
93665         (fflush): Tweak definition to use INTUSE.
93666         (putc): Define.
93667
93668 2002-12-05  Paul Eggert  <eggert@twinsun.com>
93669
93670         * lib/alloca.c [defined emacs]: Include "lisp.h".
93671         (xalloc_die) [defined emacs]: New macro.
93672         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
93673         [! defined emacs]: Include <xalloc.h>.
93674         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
93675         (pointer): Typedef to POINTER_TYPE *.
93676         (malloc): Remove decl; we now always use xmalloc.
93677         (alloca): Use old-style definition, since Emacs needs this.
93678         Check for arithmetic overflow when computing combined size.
93679
93680 2002-12-04  Paul Eggert  <eggert@twinsun.com>
93681
93682         Do not generate unlocked-io.h automatically, since it's easier to
93683         maintain it by hand.
93684
93685         * lib/unlocked-io.h: New file, from GNU diffutils,
93686         but with proper copyright notice and attribution.
93687         * lib/gen-uio: Remove.
93688         * lib/Makefile.am: Add copyright notice.
93689         (libfetish_a_SOURCES): Add unlocked-io.h.
93690         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
93691         (DISTCLEANFILES, io_functions): Remove macros.
93692         (EXTRA_DIST): Remove gen_uio.
93693         (unlocked-io.h): Remove rule.
93694
93695 2002-12-04  Jim Meyering  <jim@meyering.net>
93696
93697         Reflect the fact that stat.c and lstat.c are no longer generated.
93698         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
93699         (DISTCLEANFILES): Likewise.
93700         (EXTRA_DIST): Likewise.
93701         (all_local): Don't depend on stat.c or lstat.c.
93702         (stat.c, lstat.c): Remove rules.
93703         (EXTRA_DIST): Remove xstat.in.
93704
93705         * lib/xstat.in: Remove file.  Contents moved into stat.c.
93706         * lib/stat.c: New file.  Contents mostly from xstat.in.
93707         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
93708         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
93709
93710         * lib/safe-read.c: Rework so that it may serve to define safe_write,
93711         too.
93712         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
93713
93714 2002-12-03  Jim Meyering  <jim@meyering.net>
93715
93716         * lib/safe-read.c, safe-write.c: Change variable names and comments,
93717         but not semantics, to minimize the differences between these two files.
93718         (safe_read): Change comment to mention SAFE_READ_ERROR.
93719
93720         * lib/safe-read.c (IS_EINTR): Define.
93721         (safe_read): Use IS_EINTR in place of in-function cpp directives.
93722
93723 2002-12-02  Jim Meyering  <jim@meyering.net>
93724
93725         * lib/safe-read.c (EINTR): Define.
93726         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
93727         (INT_MAX): Provide fallback.
93728         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
93729
93730         * lib/safe-read.h (SAFE_READ_ERROR): Define.
93731
93732 2002-12-02  Bruno Haible  <bruno@clisp.org>
93733
93734         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
93735         Define, taken from safe-read.c.
93736         (INT_MAX): Provide fallback.
93737         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
93738         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
93739
93740         * lib/safe-read.c (EINTR): Remove definition.
93741         (safe_read): Don't use EINTR if it is absent.
93742
93743 2002-12-01  Jim Meyering  <jim@meyering.net>
93744
93745         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
93746         zero.
93747         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
93748
93749 2002-11-27  Paul Eggert  <eggert@twinsun.com>
93750
93751         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
93752         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
93753         with `if (! (value < limit)) abort ();', for readability.
93754
93755 2002-11-26  Karl Berry  <karl@gnu.org>
93756
93757         * lib/strdup.c: copy from libc again, with jim's ok.
93758         * lib/.cppi-disable: re-add strdup.c
93759
93760 2002-11-25  Karl Berry  <karl@gnu.org>
93761
93762         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
93763         instead of "strtol.c".
93764
93765 2002-11-25  Karl Berry  <karl@gnu.org>
93766
93767         * config/install-sh: update from automake for variable quoting, $0 in
93768         error msgs, etc.
93769
93770         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
93771         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
93772         entry.
93773
93774 2002-11-25  Jim Meyering  <jim@meyering.net>
93775
93776         * lib/mktime.c: Sync from libc, now that it has the latest fix.
93777
93778 2002-11-24  Karl Berry  <karl@gnu.org>
93779
93780         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
93781         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
93782
93783 2002-11-24  Jim Meyering  <jim@meyering.net>
93784
93785         Update from coreutils:
93786
93787         * lib/mktime.c: Merge in changes from libc.
93788
93789         Avoid a link-time failure on some Linux systems.
93790         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
93791         (otherwise).
93792         (__mon_yday): Declare with the STATIC attribute.
93793         (__mktime_internal): Likewise.
93794         Based on a report from Greg Schafer.
93795
93796 2002-11-23  Jim Meyering  <jim@meyering.net>
93797
93798         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
93799         Use `unsigned', not `int', as type of index.
93800
93801         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
93802
93803         * lib/fsusage.c: Remove unneeded parentheses around operands of
93804         `defined'.
93805
93806 2002-11-22  Paul Eggert  <eggert@twinsun.com>
93807
93808         * lib/quotearg.h: Allow multiple inclusion by surrounding with
93809         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
93810         so that we can be included first.
93811         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
93812         * lib/quotearg.c: Include quotearg.h immediately after config.h.
93813         No need to include stddef.h or sys/types.h any more.
93814         Surround local include files with "", not "<>".
93815         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
93816         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
93817         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
93818         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
93819         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
93820         (ISPRINT): Remove; no longer needed now that we assume C89.
93821
93822         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
93823         Preserve errno.
93824
93825         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
93826         quotearg_char): Use SIZE_MAX rather than
93827         (size_t) -1 when we are talking about "infinity".
93828
93829         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
93830
93831 2002-11-22  Paul Eggert  <eggert@twinsun.com>
93832
93833         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
93834         hint that one should use `if (! x) abort ();' rather than `assert
93835         (x);', and anyway it's one less thing to worry about configuring.
93836         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
93837         hash_rehash, hash_insert): Use abort rather than assert.
93838
93839 2002-11-22  Bruno Haible  <bruno@clisp.org>
93840
93841         * lib/safe-read.h: Assume C89. Add comments.
93842         (safe_read): Change return type to size_t.
93843         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
93844         byte counts > SSIZE_MAX correctly.
93845         * lib/safe-write.h: New file.
93846         * lib/safe-write.c: New file.
93847         * lib/full-read.h: New file.
93848         * lib/full-read.c: New file.
93849         * lib/full-write.h: Assume C89. Add comments.
93850         * lib/full-write.c: Include safe-write.h.
93851         (full_write): Rewritten to use safe_write.
93852         Suggested by Jim Meyering and Paul Eggert.
93853
93854 2002-11-21  Jim Meyering  <jim@meyering.net>
93855
93856         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
93857
93858         Merge in changes from the coreutils.
93859
93860         2002-09-25  Paul Eggert  <eggert@twinsun.com>
93861         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
93862         <stdint.h>.
93863         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
93864         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
93865         int.  Work more efficiently if X is the same width as uintmax_t.
93866         Do not compare X to -1, to avoid bogus compiler warning.
93867         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
93868         Don't assume that f_frsize and f_bsize are the same type.
93869
93870         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
93871         warning on FreeBSD.
93872
93873         * lib/makepath.c (make_path): Restore umask *before* creating the final
93874         component.
93875         (make_path): Minor reformatting.
93876
93877         * lib/xmalloc.c: Adjust to work with new autoconf macros,
93878         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
93879         HAVE_MALLOC/HAVE_REALLOC.
93880
93881         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
93882         dummy ones.  At least on GNU/Linux systems, `auto' means something
93883         else.
93884         From Michael Stone.
93885
93886 2002-11-21  Bruno Haible  <bruno@clisp.org>
93887
93888         Remove case insensitive option matching.
93889         * lib/argmatch.h (argcasematch): Remove declaration.
93890         (ARGCASEMATCH): Remove macro.
93891         (__xargmatch_internal): Remove case_sensitive argument.
93892         (XARGMATCH): Update.
93893         (XARGCASEMATCH): Remove macro.
93894         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
93895         case_sensitive argument.
93896         (argcasematch): Remove function.
93897         (__xargmatch_internal): Remove case_sensitive argument.
93898         (main): Use XARGMATCH instead of XARGCASEMATCH.
93899
93900         * lib/xmalloc.c: Change compile-time error message. Add comment about
93901         required autoconf version.
93902
93903 2002-11-20  Paul Eggert  <eggert@twinsun.com>
93904
93905         Merge argmatch cleanups from Bison.  Assume C89.
93906
93907         * lib/argmatch.c: Include config.h here, not in argmatch.h.
93908         Include stdlib.h, for EXIT_FAILURE.
93909         Always include <string.h>, since we assume C89.
93910         (EXIT_FAILURE): Remove pre-C89 bug workaround.
93911         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
93912         Include <stddef.h> instead, since it's all we need for size_t.
93913         (PARAMS): Remove.  All uses removed.
93914         (ARRAY_CARDINALITY): Do not bother to #undef.
93915         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
93916         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
93917         Remove unnecessary parentheses.
93918         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
93919         Insert necessary parentheses.
93920         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
93921         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
93922
93923 2002-11-19  Bruno Haible  <bruno@clisp.org>
93924
93925         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
93926         * lib/mbswidth.h: Include <stddef.h>, for size_t.
93927
93928         * lib/mbswidth.h (PARAMS): Remove macro.
93929         (mbswidth, mbsnwidth): Use ANSI C function declarations.
93930         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
93931
93932         * lib/gcd.h (PARAMS): Remove macro.
93933         (gcd): Use ANSI C function declarations.
93934         * lib/gcd.c (gcd): Likewise.
93935
93936 2002-11-15  Bruno Haible  <bruno@clisp.org>
93937
93938         * lib/strcspn.c: Include <stddef.h>.
93939         (strcspn): Use ANSI C function declaration. Change return type to
93940         size_t. Use NULL.
93941         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
93942         (strpbrk): Use NULL.
93943         * lib/strpbrk.h (PARAMS): Remove macro.
93944         (strpbrk): Use ANSI C function declaration.
93945         * lib/strstr.c: Don't include <sys/types.h>.
93946         * lib/strstr.h (PARAMS): Remove macro.
93947         (strstr): Use ANSI C function declarations.
93948
93949 2002-11-14  Karl Berry  <karl@gnu.org>
93950
93951         * config/mkinstalldirs: `do' on separate line, instead of
93952         `for var; do'.
93953
93954 2002-11-06  Bruno Haible  <bruno@clisp.org>
93955
93956         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
93957         * lib/gcd.c (gcd): Likewise.
93958
93959 2002-11-05  Bruno Haible  <bruno@clisp.org>
93960
93961         * lib/gcd.h: New file, from gettext-0.11.5.
93962         * lib/gcd.c: New file, from gettext-0.11.5.
93963
93964 2002-11-05  Bruno Haible  <bruno@clisp.org>
93965
93966         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
93967         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
93968         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
93969         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
93970
93971         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
93972         <libintl.h>.
93973         * lib/makepath.c: Include gettext.h instead of <locale.h> and
93974         <libintl.h>.
93975
93976         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
93977         * lib/human.c: Include gettext.h instead of <libintl.h>.
93978         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
93979         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
93980         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
93981         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
93982         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
93983         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
93984         (textdomain): Remove definition.
93985         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
93986
93987         * lib/long-options.c: Remove include of <libintl.h> and definition of
93988         _.
93989         * lib/same.c: Remove include of <libintl.h> and definition of _.
93990
93991 2002-11-04  Owen Taylor  <otaylor@redhat.com>
93992
93993         * lib/config.charset: A few additions for Solaris.
93994
93995 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
93996
93997         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
93998         * lib/localcharset.c (locale_charset): Declare as extern "C".
93999
94000 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
94001
94002         * lib/config.charset: msdos in uk_UA uses CP1125.
94003
94004 2002-11-04  Bruno Haible  <bruno@clisp.org>
94005
94006         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
94007         * lib/strcase.h: New file, from GNU gettext-0.11.5.
94008         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
94009         * lib/strstr.h: New file, from GNU gettext-0.11.5.
94010         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
94011
94012 2002-11-04  Bruno Haible  <bruno@clisp.org>
94013
94014         * lib/localcharset.c (locale_charset): Don't return an empty string.
94015
94016 2002-11-04  Bruno Haible  <bruno@clisp.org>
94017
94018         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
94019         aliases.
94020
94021 2002-11-04  Bruno Haible  <bruno@clisp.org>
94022
94023         * lib/config.charset: Update for newest glibc. Add canonical names
94024         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
94025
94026 2002-11-04  Bruno Haible  <bruno@clisp.org>
94027
94028         * lib/config.charset: Add support for NetBSD.
94029
94030 2002-11-04  Bruno Haible  <bruno@clisp.org>
94031
94032         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
94033
94034 2002-11-01  Bruno Haible  <bruno@clisp.org>
94035
94036         * configure.in: Add AC_CONFIG_AUX_DIR call.
94037         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
94038         test/Makefile.
94039         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
94040
94041 2002-09-28  Karl Berry  <karl@gnu.org>
94042
94043         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
94044         installed automake until the next release, since changes have been
94045         made.
94046
94047 2002-09-25  Karl Berry  <karl@gnu.org>
94048
94049         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
94050         * lib/getopt*: copy from libc/posix.
94051         * lib/gettext.h: copy from gettext.
94052         * lib/.cppi-disable: add strdup.c, gettext.h.
94053
94054 2002-09-25  Karl Berry  <karl@gnu.org>
94055
94056         * config/srclist.txt: enable gettext.h check.
94057         * config/config.{guess,sub}: update from prep.
94058         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
94059                 from automake 1.6.3.
94060         See srclist*.
94061
94062 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
94063
94064         * regex.c (PATFETCH): Remove the translating fetch.
94065         (PATFETCH_RAW): Rename to PATFETCH.
94066         (set_image_of_range): New fun.
94067         (SET_RANGE_TABLE_WORK_AREA): Use it.
94068         (regex_compile): Don't translate the pattern chars so eagerly.
94069         Only do it when inserting an `exactn' bytecode or when handling
94070         a char-range.
94071         (mutually_exclusive_p): Avoid empty statement.
94072
94073 2002-07-06  Jim Meyering  <meyering@lucent.com>
94074
94075         * m4/README: Don't mention Makefile.am.in.
94076         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
94077
94078 2002-07-01  Jim Meyering  <meyering@lucent.com>
94079
94080         * lib/c-stack.c: Include sys/time.h.
94081         From Volker Borchert.
94082
94083 2002-06-26  Paul Eggert  <eggert@twinsun.com>
94084
94085         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
94086
94087 2002-06-26  Paul Eggert  <eggert@twinsun.com>
94088
94089         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
94090         New macro.  Use it uniformly instead of
94091         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
94092         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
94093         reported by Vin Shelton.
94094
94095 2002-06-22  Paul Eggert  <eggert@twinsun.com>
94096
94097         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
94098         Do not assume SA_SIGINFO behavior.
94099         Bug reported by Jim Meyering on NetBSD 1.5.2.
94100
94101 2002-06-22  Jim Meyering  <meyering@lucent.com>
94102
94103         * m4/c-stack.m4: New file, from diffutils-2.8.2.
94104         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
94105
94106         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
94107         now that configure.ac uses AC_GNU_SOURCE.
94108         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
94109         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
94110
94111         Update to latest tools.  Suggestions from Paul Eggert.
94112         * m4/stdbool.m4: New file, from diffutils-2.8.2.
94113         * m4/gnu-source.m4: Update from diffutils-2.8.2.
94114         * m4/fnmatch.m4: Likewise.
94115         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
94116         to AC_HEADER_STDBOOL
94117
94118 2002-06-22  Jim Meyering  <meyering@lucent.com>
94119
94120         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
94121         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
94122
94123 2002-06-22  Jim Meyering  <meyering@lucent.com>
94124
94125         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
94126
94127         * lib/exitfail.c, exitfail.h: Likewise.
94128         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
94129
94130         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
94131         of fnmatch.h.
94132         (EXTRA_DIST): Add fnmatch_loop.c.
94133         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
94134
94135         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
94136         * lib/fnmatch.c: Update from diffutils-2.8.2.
94137         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
94138         * lib/fnmatch.h: Remove file.
94139
94140 2002-06-21  Jim Meyering  <meyering@lucent.com>
94141
94142         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
94143         * m4/mbrtowc.m4: Likewise.
94144
94145         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
94146         * m4/mbswidth.m4: Reflect name change:
94147         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
94148         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
94149
94150         * m4/lib-link.m4: Update from gettext-0.11.2.
94151         * m4/gettext.m4: Likewise.
94152
94153         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
94154         From Alfred M. Szmidt.
94155
94156 2002-06-18  Paul Eggert  <eggert@twinsun.com>
94157
94158         * lib/file-type.h: Report an error if neither S_ISREG nor
94159         S_IFREG is defined, instead of using a test specific to glibc
94160         2.2.  This should be safe, since POSIX requires S_ISREG and
94161         Unix Version 7 had S_IFREG.  We don't need to check for
94162         <sys/types.h> since we don't use any symbols that it defines.
94163
94164 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
94165
94166         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
94167         $@-t, so that each temporary file name is unique and valid in the first
94168         8 characters, for operation under DOS.
94169
94170 2002-06-15  Paul Eggert  <eggert@twinsun.com>
94171
94172         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
94173
94174 2002-06-15  Jim Meyering  <meyering@lucent.com>
94175
94176         Work even with DJGPP 2.03, which lacks support for symlinks.
94177         From Richard Dawe.
94178         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
94179         is defined.
94180         * lib/lchown.c (S_ISLNK): Likewise.
94181
94182 2002-06-15  Jim Meyering  <meyering@lucent.com>
94183
94184         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
94185         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
94186         have been included before this file.
94187
94188 2002-06-14  Jim Meyering  <meyering@lucent.com>
94189
94190         * lib/file-type.h: Use the version from diffutils-2.8.2.
94191         * lib/file-type.c: Likewise.
94192
94193 2002-06-07  Jim Meyering  <meyering@lucent.com>
94194
94195         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
94196         They're needed at least for NetBSD 1.5.2.
94197         ($statxfs_includes): Include those same headers.
94198         ($statxfs_includes): Include sys/vfs.h if available.
94199         ($statxfs_includes): Likewise for sys/statvfs.h.
94200         Check for the following members in both structs statfs and statvfs:
94201         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
94202
94203 2002-06-01  Jim Meyering  <meyering@lucent.com>
94204
94205         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
94206         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
94207
94208 2002-05-28  Jim Meyering  <meyering@lucent.com>
94209
94210         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
94211         Reported by Volker Borchert.
94212
94213 2002-05-27  Jim Meyering  <meyering@lucent.com>
94214
94215         Fix a problem seen only on nonconforming systems whereby ls.c's
94216         use of localtime, and then of gettimeofday would cause trouble:
94217         the localtime call used to initialize rpl_gettimeofday's save
94218         mechanism would clobber ls's current local time information so
94219         that in any long listing the first file would always be listed
94220         with date 1970-01-01.  Analysis by Volker Borchert.
94221
94222         * lib/gettimeofday.c (localtime): Undefine.
94223         (rpl_localtime): New function.
94224
94225 2002-05-27  Jim Meyering  <meyering@lucent.com>
94226
94227         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
94228         localtime.
94229
94230         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
94231         use the replacement function; it wouldn't resolve at link time.
94232         Reported by Volker Borchert.
94233
94234 2002-05-22  Jim Meyering  <meyering@lucent.com>
94235
94236         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
94237         file-type.h.
94238         * lib/file-type.h: New file.
94239         * lib/file-type.c (file_type): New file/function.  Extracted from
94240         diffutils.
94241
94242 2002-04-30  Jim Meyering  <meyering@lucent.com>
94243
94244         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
94245
94246 2002-04-29  Paul Eggert  <eggert@twinsun.com>
94247
94248         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
94249
94250 2002-04-29  Paul Eggert  <eggert@twinsun.com>
94251
94252         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
94253         Do not check for alloca.h (no longer used) or stdbool.h (was never
94254         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
94255
94256 2002-04-29  Paul Eggert  <eggert@twinsun.com>
94257
94258         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
94259
94260 2002-04-29  Jim Meyering  <meyering@lucent.com>
94261
94262         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
94263         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
94264         Use AC_FUNC_STRNLEN here instead.
94265
94266         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
94267         With autoconf-2.53a, it's part of AC_PROG_CC.
94268
94269 2002-04-28  Paul Eggert  <eggert@twinsun.com>
94270
94271         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
94272         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
94273
94274 2002-04-28  Paul Eggert  <eggert@twinsun.com>
94275
94276         * lib/sig2str.h, lib/sig2str.c: New files.
94277         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
94278
94279 2002-04-28  Paul Eggert  <eggert@twinsun.com>
94280
94281         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
94282         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
94283         of 127, since 64 is the largest conceivable number for ancient
94284         nonstandard hosts.
94285         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
94286
94287 2002-04-28  Jim Meyering  <meyering@lucent.com>
94288
94289         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
94290
94291 2002-04-24  Jim Meyering  <meyering@lucent.com>
94292
94293         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
94294         (jm_PREREQ): Use it.
94295
94296         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
94297         mach/mach.h fcntl.h.
94298         Check for this function: setlocale.
94299
94300 2002-04-24  Jim Meyering  <meyering@lucent.com>
94301
94302         * lib/gettext.h: New file, from Gettext.
94303         * lib/Makefile.am (INCLUDES): Remove -I../intl.
94304         (libfetish_a_SOURCES): Add gettext.h.
94305
94306 2002-04-16  Jim Meyering  <meyering@lucent.com>
94307
94308         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
94309         ut_pid, ut_id, ut_exit.
94310
94311 2002-04-16  Jim Meyering  <meyering@lucent.com>
94312
94313         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
94314         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
94315         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
94316
94317 2002-04-12  Jim Meyering  <meyering@lucent.com>
94318
94319         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
94320         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
94321         existence of the getmntinfo function.  Needed for Darwin 5.3.
94322
94323         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
94324         This is necessary at least on Darwin 5.3.
94325
94326         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
94327         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
94328         strnlen.o in the library, and that makes some versions of ranlib
94329         object.
94330
94331 2002-04-12  Jim Meyering  <meyering@lucent.com>
94332
94333         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
94334
94335 2002-04-09  Jim Meyering  <meyering@lucent.com>
94336
94337         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
94338         to be more precise.  Rather than saying we're checking whether the
94339         function `works', say what we're testing.
94340         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
94341         Reported by Bruno Haible.
94342
94343 2002-03-10  Jim Meyering  <meyering@lucent.com>
94344
94345         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
94346         Suggestion from Santiago Vila.
94347
94348 2002-03-08  Jim Meyering  <meyering@lucent.com>
94349
94350         * lib/rename.c: Mention that this wrapper is needed also on
94351         mips-dec-ultrix4.4 systems.
94352
94353 2002-03-02  Jim Meyering  <meyering@lucent.com>
94354
94355         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
94356         not HAVE_CLOCK_SETTIME.
94357
94358 2002-02-27  Paul Eggert  <eggert@twinsun.com>
94359
94360         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
94361         Check for clock_settime.
94362
94363 2002-02-27  Paul Eggert  <eggert@twinsun.com>
94364
94365         * lib/nanosleep.h: Rename to....
94366         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
94367
94368         * lib/gettime.c: New file.
94369         * lib/settime.c: New file.
94370         * lib/stime.c: Remove.
94371
94372         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
94373         timespec.h.  Remove nanosleep.h.
94374
94375 2002-02-25  Paul Eggert  <eggert@twinsun.com>
94376
94377         * m4/acl.m4: New file.
94378         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
94379         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
94380
94381 2002-02-25  Paul Eggert  <eggert@twinsun.com>
94382
94383         * lib/acl.c, lib/acl.h: New files.
94384         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
94385
94386 2002-02-24  Jim Meyering  <meyering@lucent.com>
94387
94388         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
94389         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
94390         cause trouble.  Reported by Nelson Beebe.
94391
94392 2002-02-23  Paul Eggert  <eggert@twinsun.com>
94393
94394         * lib/path-concat.c (xpath_concat): Reorder code to pacify
94395         compilers that don't know that xalloc_die never returns.
94396
94397 2002-02-20  Jim Meyering  <meyering@lucent.com>
94398
94399         * lib/getdate.c: Regenerate using bison-1.33.
94400
94401 2002-02-17  Jim Meyering  <meyering@lucent.com>
94402
94403         * config/config.guess (main): Don't use `head -1'; it's no longer
94404         portable. Use `sed 1q' instead.
94405
94406 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
94407
94408         * m4/codeset.m4: Upgrade to gettext-0.11.
94409         * m4/gettext.m4: Upgrade to gettext-0.11.
94410         * m4/glibc21.m4: Upgrade to gettext-0.11.
94411         * m4/iconv.m4: Upgrade to gettext-0.11.
94412         * m4/isc-posix.m4: Upgrade to gettext-0.11.
94413         * m4/lcmessage.m4: Upgrade to gettext-0.11.
94414         * m4/lib-ld.m4: New file, from gettext-0.11.
94415         * m4/lib-link.m4: New file, from gettext-0.11.
94416         * m4/lib-prefix.m4: New file, from gettext-0.11.
94417         * m4/progtest.m4: Upgrade to gettext-0.11.
94418
94419 2002-02-15  Paul Eggert  <eggert@twinsun.com>
94420
94421         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
94422         (jm_PREREQ): Use it.
94423
94424 2002-02-15  Paul Eggert  <eggert@twinsun.com>
94425
94426         * lib/posixver.c, lib/posixver.h: New files.
94427         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
94428
94429 2002-02-02  Paul Eggert  <eggert@twinsun.com>
94430             Bruno Haible  <bruno@clisp.org>
94431
94432         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
94433         (fwrite_success_callback): New declaration.
94434         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
94435         print_unicode_char. Call failure callback instead of error.
94436         (fwrite_success_callback): New function.
94437         (exit_failure_callback): New function.
94438         (fallback_failure_callback): New function.
94439         (print_unicode_char): Call unicode_to_mb.
94440
94441 2002-01-26  Jim Meyering  <meyering@lucent.com>
94442
94443         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
94444         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
94445
94446 2002-01-26  Jim Meyering  <meyering@lucent.com>
94447
94448         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
94449
94450 2002-01-22  Paul Eggert  <eggert@twinsun.com>
94451
94452         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
94453
94454 2002-01-22  Jim Meyering  <meyering@lucent.com>
94455
94456         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
94457         Otherwise, some versions of automake would omit the rule that makes
94458         Makefile from Makefile.in.
94459
94460 2002-01-21  Paul Eggert  <eggert@twinsun.com>
94461
94462         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
94463         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
94464         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
94465         (memcoll): Set errno to zero if there is no error.
94466
94467         * lib/quotearg.c (quotearg_buffer_restyled):
94468         Fix bug with quoting buffers containing NUL when backslashing escapes.
94469         This bug was exposed by the other changes in this patch.
94470         (quotearg_n_options): New arg ARGSIZE.
94471         All callers changed.
94472         (quoting_options_from_style): New function.
94473         (quotearg_n_style): Use it.
94474         (quotearg_n_style_mem): New function.
94475
94476         * lib/quotearg.h (quotearg_n_style_mem): New function.
94477
94478 2002-01-19  Jim Meyering  <meyering@lucent.com>
94479
94480         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
94481         Remove useless quotes: DF_PROG="df".
94482         * m4/strnlen.m4: New file.
94483
94484 2002-01-16  Paul Eggert  <eggert@twinsun.com>
94485
94486         * lib/backupfile.c (ISDIGIT): Comment fix.
94487         * lib/getdate.y (ISDIGIT): Likewise.
94488         * lib/posixtm.c (ISDIGIT, year): Likewise.
94489         * lib/strverscmp.c (ISDIGIT): Likewise.
94490         * lib/userspec.c (ISDIGIT): Likewise.
94491
94492 2002-01-16  Jim Meyering  <meyering@lucent.com>
94493
94494         * lib/getdate.y: Add three semicolons, each just before a closing
94495         brace. Bison (as of version 1.31) no longer papers over that mistake.
94496
94497 2002-01-05  Jim Meyering  <meyering@lucent.com>
94498
94499         * lib/version-etc.c (version_etc_copyright): Update copyright year.
94500
94501 2001-12-19  Paul Eggert  <eggert@twinsun.com>
94502
94503         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
94504         not silently exit merely because the output buffer happens to
94505         have nothing pending.
94506
94507 2001-12-18  Paul Eggert  <eggert@twinsun.com>
94508
94509         See the big note in ../ChangeLog.
94510         * lib/human.c (suffixes): Prefer K to k for 1024.
94511         (generate_suffix_backwards): New function.
94512         (human_readable_inexact): Use it.
94513         * lib/xstrtol.c (__xstrtol): If there is no number but there
94514         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
94515         Accept 'K' as well as 'k'.
94516
94517 2001-12-15  Jim Meyering  <meyering@lucent.com>
94518
94519         * lib/regex.h (__restrict_arr): Update from libc.
94520
94521         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
94522         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
94523         (STREQ): Define.
94524
94525 2001-12-14  Jim Meyering  <meyering@lucent.com>
94526
94527         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
94528         Suggestion from Bruno Haible.
94529
94530 2001-12-10  Jim Meyering  <meyering@lucent.com>
94531
94532         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
94533         xrealloc, Instead, include "xalloc.h".
94534         (initbuffer): Don't cast xmalloc return value to char*.
94535         (readline): Reword comment.
94536         Don't cast xrealloc return value to char*
94537         Return NULL, not 0.
94538
94539 2001-12-09  Jim Meyering  <meyering@lucent.com>
94540
94541         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
94542         about `signed and unsigned type in conditional expression'.
94543         * lib/posixtm.c (posix_time_parse): Likewise.
94544
94545         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
94546
94547         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
94548         to avoid a pedantic warning.
94549
94550         * lib/getstr.c: Don't include assert.h.
94551         (getstr): Remove warning-evoking assertions.
94552         Return -1 if offset parameter is out of bounds.
94553         Change the type of a local from int to size_t.
94554
94555         * lib/strftime.c (my_strftime_localtime_r): Include this function
94556         definition in the `#if ! HAVE_TM_GMTOFF' block.
94557
94558         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
94559         Include xalloc.h instead.
94560
94561 2001-12-02  Jim Meyering  <meyering@lucent.com>
94562
94563         * lib/tempname.c: Don't declare getenv, thus reverting the change of
94564         2001-11-18.  It's no longer necessary, now that stdlib.h is always
94565         included.
94566
94567         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
94568         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
94569
94570 2001-11-30  Akim Demaille  <akim@epita.fr>
94571
94572         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
94573         before being defined.
94574
94575 2001-11-27  Paul Eggert  <eggert@twinsun.com>
94576
94577         * lib/quotearg.h (quotearg_n, quotearg_n_style):
94578         First arg is int, not unsigned.
94579         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
94580         (SIZE_MAX, UINT_MAX): New macros.
94581         (quotearg_n_options): Abort if N is negative.
94582         Avoid overflow check on hosts where size_t is 64 bits and int
94583         is 32 bits, as overflow is impossible there.
94584         Fix off-by-one typo that caused unnecessary reallocation.
94585
94586 2001-11-27  Jim Meyering  <meyering@lucent.com>
94587
94588         * lib/tempname.c: Merge with version from libc.
94589         * lib/regex.c: Likewise.
94590
94591         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
94592         systems for which STDC_HEADERS is 0, it was not included, resulting in
94593         a warning about an integer-to-pointer conversion problem with getenv.
94594         Reported by Volker Borchert.
94595
94596 2001-11-26  Jim Meyering  <meyering@lucent.com>
94597
94598         * lib/gtod.h: Remove file.
94599         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
94600         * lib/gettimeofday.c: Don't include gtod.h.
94601         (GTOD_init): Remove function.
94602         (rpl_gettimeofday): Do its job here instead, rather than aborting.
94603         Suggestion from Volker Borchert.
94604
94605 2001-11-23  Jim Meyering  <meyering@lucent.com>
94606
94607         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
94608         it.
94609         * lib/hash.c (struct hash_table): Define it here instead.
94610
94611 2001-11-22  Jim Meyering  <meyering@lucent.com>
94612
94613         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
94614
94615 2001-11-20  Jim Meyering  <meyering@lucent.com>
94616
94617         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
94618         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
94619
94620 2001-11-19  Jim Meyering  <meyering@lucent.com>
94621
94622         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
94623         directory.  Use "conftestXXXXXX" as the template.
94624         Suggestion from Paul Eggert.
94625
94626         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
94627         immediately, so the test doesn't mistakenly hit the max-open-files
94628         limit.
94629
94630 2001-11-18  Paul Eggert  <eggert@twinsun.com>
94631
94632         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
94633         (TEMPORARIES): New macro.
94634         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
94635         removes an artificial limitation (e.g. HP-UX 10.20, where
94636         TMP_MAX is 17576).
94637
94638 2001-11-18  Jim Meyering  <meyering@lucent.com>
94639
94640         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
94641
94642 2001-11-18  Jim Meyering  <meyering@lucent.com>
94643
94644         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
94645         on SunOS 4.
94646
94647         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
94648         files will be created before anything else.
94649
94650 2001-11-17  Paul Eggert  <eggert@twinsun.com>
94651
94652         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
94653         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
94654
94655 2001-11-17  Jim Meyering  <meyering@lucent.com>
94656
94657         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
94658         Prompted by a report from Bob Proulx.
94659
94660         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
94661         Instead, require UTILS_FUNC_MKSTEMP.
94662
94663 2001-11-17  Jim Meyering  <meyering@lucent.com>
94664
94665         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
94666         Now, that's done as part of AC_FUNC_STRTOD.
94667
94668 2001-11-17  Jim Meyering  <meyering@lucent.com>
94669
94670         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
94671         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
94672         rather than group writable.  Patch by Juan F. Codagnone.
94673
94674         * lib/readtokens.c: Remove explicit declarations of xmalloc and
94675         xrealloc, Instead, include "xalloc.h".
94676
94677         * lib/mountlist.c: Include unlocked-io.h after all system headers.
94678         Remove explicit declarations of xmalloc, xrealloc,
94679         and xstrdup.  Instead, include "xalloc.h".
94680
94681         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
94682         unlocked-io.h.
94683         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
94684         Likewise.
94685         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
94686
94687         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
94688         Reported by Padraig Brady.
94689
94690         * lib/mkstemp.c: #undef mkstemp.
94691         Include config.h.
94692         (rpl_mkstemp): Rename from mkstemp.
94693         Protoize.
94694
94695 2001-11-16  Jim Meyering  <meyering@lucent.com>
94696
94697         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
94698         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
94699         determine the amount of total physical memory, use pstat_getstatic.
94700         HPUX-11 doesn't define _SC_PHYS_PAGES.
94701         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
94702         If sysconf couldn't be used to determine the amount of available
94703         physical memory, use both pstat_getstatic and pstat_getdynamic.
94704         Based on a patch from Bob Proulx.
94705
94706 2001-11-10  Jim Meyering  <meyering@lucent.com>
94707
94708         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
94709         (jm_PREREQ): Use it.
94710
94711 2001-11-09  Jim Meyering  <meyering@lucent.com>
94712
94713         * m4/jm-macros.m4: Require autoconf-2.52f.
94714         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
94715         Use these AC_-prefixed names, not the AM_-prefixed ones.
94716
94717         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
94718
94719 2001-11-05  Jim Meyering  <meyering@lucent.com>
94720
94721         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
94722
94723 2001-11-04  Jim Meyering  <meyering@lucent.com>
94724
94725         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
94726         $DEFS.
94727
94728 2001-11-03  Jim Meyering  <meyering@lucent.com>
94729
94730         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
94731         of AC_DEFUN.
94732
94733         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
94734         know the name of the variable in the macro definition.
94735
94736 2001-11-03  Jim Meyering  <meyering@lucent.com>
94737
94738         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
94739         in argmatch_to_argument call.
94740
94741         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
94742         argument.
94743
94744         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
94745         e.g., a fault due to an attempt to free a NULL pointer.
94746
94747 2001-11-01  Jim Meyering  <meyering@lucent.com>
94748
94749         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
94750         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
94751
94752 2001-11-01  Jim Meyering  <meyering@lucent.com>
94753
94754         * lib/dirfd.c, lib/dirfd.h: New files.
94755         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
94756
94757         * lib/hash.c (hash_print) [TESTING]: Clean up.
94758
94759 2001-10-22  Paul Eggert  <eggert@twinsun.com>
94760
94761         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
94762         to avoid a warning if -Wall.
94763
94764 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
94765
94766         * README: New file
94767         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
94768         (per RMS's instructions, this is now the canonical source)
94769         * lgpl/, gpl/: New directories.
94770
94771 2001-10-21  Paul Eggert  <eggert@twinsun.com>
94772
94773         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
94774
94775 2001-10-21  Jim Meyering  <meyering@lucent.com>
94776
94777         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
94778         this code would end up calling gettext even in packages built
94779         with --disable-nls.
94780         * lib/getopt.c (_): Likewise.
94781         * lib/regex.c (_): Likewise.
94782
94783 2001-10-20  Paul Eggert  <eggert@twinsun.com>
94784
94785         * m4/error.m4 (jm_PREREQ_ERROR):
94786         Do not invoke AC_CHECK_FUNCS with strerror_r, as
94787         AC_FUNC_STRERROR_R does that.
94788         Check for strerror declaration.
94789
94790         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
94791         are supposed to have them these days.
94792         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
94793         Merge changes from latest Autoconf CVS.
94794         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
94795         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
94796         POSIX decided to standardize on the int flavor of strerror_r.
94797
94798 2001-10-20  Paul Eggert  <eggert@twinsun.com>
94799
94800         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
94801         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
94802         Use strerror_r that is only a macro, even if it is not a function.
94803         (strerror): Check for HAVE_DECL_STRERROR before declaring.
94804         (private_strerror): Use prototypes, not old-style function definition.
94805         (print_errno_message): New function.
94806         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
94807         char*-flavored one.
94808         (error_tail, error, error_at_line): Use it.
94809
94810 2001-10-11  Jim Meyering  <meyering@lucent.com>
94811
94812         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
94813         and quote_n (1, ... to avoid clobbering a buffer.
94814
94815 2001-10-05  Jim Meyering  <meyering@lucent.com>
94816
94817         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
94818         hash-pjw.h.
94819         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
94820         * lib/hash-pjw.h: New file.
94821
94822 2001-09-30  Jim Meyering  <meyering@lucent.com>
94823
94824         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
94825         `struct fsstat' has the `f_fstypename' member.
94826         Use that to define FS_TYPE, which is now used to make
94827         the getfsstat link test tighter.
94828
94829 2001-09-30  Jim Meyering  <meyering@lucent.com>
94830
94831         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
94832         Include <sys/ucred.h>, for Apple Darwin.
94833         Include sys/mount.h and sys/fs_types.h only if available.
94834         (FS_TYPE): Define.
94835         (read_filesystem_list): Use FS_TYPE.
94836
94837 2001-09-29  Paul Eggert  <eggert@twinsun.com>
94838
94839         * lib/exclude.c (excluded_filename): 0 -> false, since it's
94840         a boolean context.
94841
94842 2001-09-29  Jim Meyering  <meyering@lucent.com>
94843
94844         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
94845         [one-argument getmntent function]): Include stdio.h before mntent.h.
94846         SunOS 4.1.x needs it for the declaration of `FILE'.
94847         Patch by Volker Borchert.
94848
94849         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
94850         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
94851         sys/fs_types.h, and make the link-test for getfsstat guard #include
94852         directives with appropriate #if HAVE_*_H tests so that we can
94853         detect getfsstat on Apple Darwin1.3.7 systems.
94854         Reported by Nelson Beebe.
94855         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
94856
94857 2001-09-28  Paul Eggert  <eggert@twinsun.com>
94858
94859         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
94860         #defines strtoimax.  Also treat the other strto* functions
94861         like strtoimax.
94862
94863         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
94864         Check for strtoul and strtoumax,
94865         as those declarations are made even in the signed case.
94866         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
94867         Likewise, for strtol and strtoimax.
94868
94869 2001-09-28  Paul Eggert  <eggert@twinsun.com>
94870
94871         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
94872         #defines strtoimax.  Also treat the other strto* functions
94873         like strtoimax.
94874
94875         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
94876         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
94877         (strtoimax, strtoumax): Do not declare if already defined as a macro.
94878
94879 2001-09-26  Jim Meyering  <meyering@lucent.com>
94880
94881         Most macros in unlocked-io.h had the wrong number of arguments.
94882         * lib/gen-uio: New script.
94883         (USE_UNLOCKED_IO): Define to 1 if not already defined.
94884         * lib/unlocked-io.hin: Remove file.
94885         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
94886         rather than trying to embed it here.
94887         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
94888         Reported by Padraig Brady.
94889
94890 2001-09-25  Volker Borchert  <bt@teknon.de>
94891
94892         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
94893         `result'.
94894
94895 2001-09-24  Jim Meyering  <meyering@lucent.com>
94896
94897         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
94898
94899 2001-09-23  Jim Meyering  <meyering@lucent.com>
94900
94901         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
94902         instead of the mere test for existence of mntent.h.  The latter
94903         would get a false-positive on AIX 3.4 systems.
94904         In the outer getmntent if-block, don't die if neither of the getmntent
94905         tests succeeds.  Instead, just fall through and continue with the
94906         remaining tests.
94907
94908 2001-09-23  Jim Meyering  <meyering@lucent.com>
94909
94910         * lib/mountlist.c: Remove useless parentheses in #if directives.
94911         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
94912         the deprecated MOUNTED symbol is no longer defined in mntent.h.
94913
94914 2001-09-22  Jim Meyering  <meyering@lucent.com>
94915
94916         * m4/gettext.m4: New file.  From gettext.
94917         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
94918         * m4/progtest.m4: Likewise
94919         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
94920         * m4/glibc21.m4: Likewise.
94921
94922         * m4/libintl.m4: Remove.  No longer used.
94923
94924 2001-09-22  Jim Meyering  <meyering@lucent.com>
94925
94926         * lib/localcharset.c: Update from latest gettext.
94927         * lib/config.charset: Likewise.
94928
94929 2001-09-20  Jim Meyering  <meyering@lucent.com>
94930
94931         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
94932         strtoimax.
94933         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
94934         strtoumax.
94935
94936 2001-09-20  Jim Meyering  <meyering@lucent.com>
94937
94938         * lib/xstrtol.c (strtoimax): Guard declaration with
94939         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
94940         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
94941         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
94942         (strtoumax): Likewise, for completeness (it wasn't necessary).
94943
94944 2001-09-17  Paul Eggert  <eggert@twinsun.com>
94945
94946         * lib/strtoimax.c (HAVE_LONG_LONG):
94947         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
94948         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
94949         to work around bug in IBM C compiler.
94950
94951 2001-09-17  Jim Meyering  <meyering@lucent.com>
94952
94953         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
94954         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
94955         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
94956         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
94957         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
94958         whenever the right hand side need not be expanded by the shell.
94959
94960 2001-09-16  Paul Eggert  <eggert@twinsun.com>
94961
94962         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
94963         library.  It's not correct, as some older glibcs are buggy.
94964         fnmatch wasn't fixed until glibc 2.2.
94965
94966         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
94967         special shell magic here.
94968
94969 2001-09-16  Jim Meyering  <meyering@lucent.com>
94970
94971         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
94972         * m4/jm-macros.m4: Require it.
94973
94974 2001-09-16  Jim Meyering  <meyering@lucent.com>
94975
94976         * lib/mkdir.c: New file.
94977
94978 2001-09-15  Jim Meyering  <meyering@lucent.com>
94979
94980         * m4/jm-macros.m4: Check for help2man.
94981
94982 2001-09-11  Jim Meyering  <meyering@lucent.com>
94983
94984         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
94985         The body, by Paul Eggert, was moved here from configure.in.
94986         * m4/jm-macros.m4: Require UTILS_HOST_OS.
94987
94988 2001-09-04  Paul Eggert  <eggert@twinsun.com>
94989
94990         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
94991         (jm_PREREQ): Use it.
94992
94993 2001-09-04  Paul Eggert  <eggert@twinsun.com>
94994
94995         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
94996         Use ssize_t, not int, to store result of readlink.
94997         Check for ssize_t overflow as well as size_t overflow,
94998         as POSIX says the result of readlink is implementation-defined
94999         when ssize_t overflows.
95000         Remove unnecessary cast to char*.
95001         Use free+malloc instead of realloc, as the storage doesn't need
95002         to be preserved and it's clearer and can be more efficient that way.
95003         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
95004         * lib/xreadlink.h (xreadlink): Update prototype.
95005
95006 2001-09-04  Paul Eggert  <eggert@twinsun.com>
95007
95008         * lib/xgetcwd.c: Revert some of the previous change; intead,
95009         fix the HAVE_GETCWD_NULL code to behave more like the
95010         !HAVE_GETCWD_NULL code used to.
95011
95012         Include "xalloc.h".
95013         (xgetcwd): Do not return NULL when memory is exhausted; instead,
95014         invoke xalloc_die.
95015
95016 2001-09-03  Paul Eggert  <eggert@twinsun.com>
95017
95018         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
95019         sys/param.h, as pathmax.h includes them.
95020
95021 2001-09-03  Paul Eggert  <eggert@twinsun.com>
95022
95023         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
95024         (jm_PREREQ_XGETCWD): New macro.
95025
95026         * m4/getcwd.m4: New file.
95027
95028 2001-09-03  Paul Eggert  <eggert@twinsun.com>
95029
95030         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
95031         like the HAVE_GETCWD_NULL code.
95032         Include pathmax.h if not HAVE_GETCWD.
95033         Do not include xalloc.h.
95034         (INITIAL_BUFFER_SIZE): New symbol.
95035         Do not use xmalloc / xrealloc, since the caller is responsible for
95036         handling errors.  Preserve errno around `free' during failure.
95037         Do not overrun buffer when using getwd.
95038
95039 2001-09-03  Paul Eggert  <eggert@twinsun.com>
95040
95041         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
95042         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
95043         getcwd (NULL, 0).
95044
95045 2001-09-03  Paul Eggert  <eggert@twinsun.com>
95046
95047         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
95048         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
95049         spotted by Jim Meyering.
95050
95051 2001-09-03  Jim Meyering  <meyering@lucent.com>
95052
95053         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
95054         failure.
95055
95056 2001-09-02  Jim Meyering  <meyering@lucent.com>
95057
95058         * lib/error.c: Update from GNU libc.
95059
95060 2001-09-01  Jim Meyering  <meyering@lucent.com>
95061
95062         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
95063         Used by df.
95064
95065 2001-09-01  Jim Meyering  <meyering@lucent.com>
95066
95067         * lib/xreadlink.c: New file.
95068         * lib/xreadlink.h: New file.
95069         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
95070         xreadlink.h.
95071
95072         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
95073         doesn't conflict with sparc Solaris 7's definition in
95074         /usr/include/sys/int_types.h.
95075
95076         * lib/exclude.c: Use `""', not `<>' to #include non-system header
95077         files.
95078         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
95079         and strncasecmp as r-values.  Unixware didn't have declarations.
95080
95081 2001-08-31  Paul Eggert  <eggert@twinsun.com>
95082
95083         * lib/xstrtol.h: Add copyright notice.
95084         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
95085         LONGINT_INVALID_SUFFIX_CHAR.
95086
95087 2001-08-31  Paul Eggert  <eggert@twinsun.com>
95088
95089         * lib/xstrtol.c (strtoimax): New decl.
95090
95091 2001-08-31  Paul Eggert  <eggert@twinsun.com>
95092
95093         * lib/xgetcwd.c: Don't include pathmax.h.
95094         Include stdlib.h and unistd.h if available.
95095         Include xalloc.h.
95096         (xmalloc, xstrdup, free): Remove decls.
95097         (xgetcwd): Don't assume sizes fit in unsigned.
95098         Check for overflow when computing sizes.
95099         Simplify reallocation code.
95100
95101 2001-08-31  Paul Eggert  <eggert@twinsun.com>
95102
95103         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
95104         a directory's st_size can have an arbitrary value, so the old
95105         usage could waste an arbitrary amount of memory.  All uses
95106         changed.
95107         * lib/savedir.h: Update prototype.
95108
95109 2001-08-31  Paul Eggert  <eggert@twinsun.com>
95110
95111         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
95112
95113         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
95114         old strtoimax.c.
95115
95116         Also, make the following further changes to make this file's
95117         configuration more similar to that of strtol.c:
95118         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
95119         (strtoumax, uintmax_t, strtoull, strtol): Remove.
95120         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
95121         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
95122         changed to signed values.
95123
95124         And make the following changes as well:
95125         Fix copyright notice, as 1999 was missing.
95126         (verify): New macro.
95127         (strtoimax): Check sizes at compile-time, not run-time.
95128         Prefer strtol to strtoll if both work.
95129         (main): Remove; it was not that useful and was a pain to maintain.
95130
95131         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
95132
95133 2001-08-31  Jim Meyering  <meyering@lucent.com>
95134
95135         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
95136         Use an initial, malloc'd, buffer of length 128 rather than
95137         a statically allocated one of length 1024.
95138
95139 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95140
95141         Simplify code, partly by assuming autoconf 2.52 semantics.
95142
95143         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
95144
95145         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
95146         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
95147         All uses removed.
95148         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
95149         Move AC_REQUIRE to next-to-top level, to avoid confusion.
95150         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
95151         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
95152         jm_AC_HEADER_INTTYPES_H.
95153         * m4/jm-macros.m4 (jm_MACROS): Likewise.
95154
95155         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
95156
95157         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
95158         Quote first arg of AC_DEFUN.
95159         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
95160         since they are needed to parse the include file even if we need
95161         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
95162         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
95163         but with opposite signedness.
95164
95165 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95166
95167         Merge 'exclude' changes from tar 1.13.22.
95168         This fixes one or two unlikely storage allocation overflow bugs,
95169         but doesn't change user-visible behavior otherwise.
95170
95171 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95172
95173         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
95174         (jm_PREREQ_EXCLUDE): New macro.
95175
95176 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95177
95178         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
95179         tm to be declared.
95180
95181 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95182
95183         * lib/hash.c: Remove '2001' from copyright notice.
95184
95185 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95186
95187         * lib/full-write.h: New file.
95188         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
95189         * lib/full-write.c: Correct credits, as cccp.c no longer
95190         exists and anyway it was so heavily changed from the old cccp
95191         code as to be unrecognizable.  Include full-write.h.
95192         (full_write): Return size_t, with short writes meaning failure.
95193         All callers changed.  This fixes a bug with large buffers
95194         on 64-bit hosts.
95195         * lib/utime.c: Include full-write.h.
95196
95197 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95198
95199         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
95200         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
95201         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
95202         Include if available.
95203         (<xalloc.h>): Include
95204         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
95205         (verify): New macro.  Use it to verify that EXCLUDE macros do not
95206         collide with FNM macros.
95207         (struct patopts): New struct.
95208         (struct exclude): Use it, as exclude patterns now come with options.
95209         (new_exclude): Support above changes.
95210         (new_exclude, add_exclude_file):
95211         Initial size must now be a power of two to simplify overflow checking.
95212         (free_exclude, fnmatch_no_wildcards): New function.
95213         (excluded_filename): No longer requires options arg, as the options
95214         are determined by add_exclude.  Now returns bool, not int.
95215         (excluded_filename, add_exclude):
95216         Add support for the fancy new exclusion options.
95217         (add_exclude, add_exclude_file): Now takes int options arg.
95218         Check for arithmetic overflow when computing sizes.
95219         (add_exclude_file): xrealloc might modify errno, so don't
95220         realloc until after errno might be used.
95221
95222         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
95223         New macros.
95224         (free_exclude): New decl.
95225         (add_exclude, add_exclude_file): Now takes int options arg.
95226         (excluded_filename): No longer requires options arg, as the options
95227         are determined by add_exclude.  Now returns bool, not int.
95228
95229 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95230
95231         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
95232
95233 2001-08-27  Jim Meyering  <meyering@lucent.com>
95234
95235         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
95236
95237         * lib/version-etc.c (N_): Remove definition.
95238         Revert most of last change.
95239         Instead, simply don't mark the `Copyright...' string for translation.
95240         Based on advice from Paul Eggert.
95241
95242         * lib/strtoxmax.c: Tweak comment.
95243
95244 2001-08-26  Jim Meyering  <meyering@lucent.com>
95245
95246         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
95247
95248         * m4/xstrtoimax.m4: New file.
95249         * m4/xstrtoumax.m4: Add comments explaining why we
95250         AC_REPLACE_FUNCS(strtol).
95251
95252 2001-08-26  Jim Meyering  <meyering@lucent.com>
95253
95254         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
95255         of copyright with `%s' so translators don't get an untranslated
95256         message in 2002.
95257         (COPYRIGHT_YEAR): Define.
95258         (version_etc): Use fprintf rather than fputs.
95259         Suggestion from Ulrich Drepper.
95260
95261         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
95262
95263         * lib/strtoll.c: New file, from GNU libc.
95264         * lib/xstrtoimax.c: New file.
95265
95266         * lib/xstrtol.h: Add xstrtoimax.
95267         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
95268         * lib/strtoimax.c: New file.  Likewise, but first define
95269         STRTOUXMAX_SIGNED.
95270
95271         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
95272         ...
95273         * lib/strtoxmax.c: ... then renamed to this.
95274
95275 2001-08-18  Paul Eggert  <eggert@twinsun.com>
95276
95277         * m4/inttypes.m4: Add AC_PREREQ(2.13).
95278         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
95279         (jm_AC_TYPE_INTMAX_T): New macro.
95280         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
95281
95282         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
95283
95284         * m4/longlong.m4: Renamed from ulonglong.m4.
95285         * m4/inttypes.m4: Renamed from inttypes_h.m4.
95286         * m4/uintmax_t.m4: Removed.
95287
95288 2001-08-13  Paul Eggert  <eggert@twinsun.com>
95289
95290         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
95291         Port to Solaris 8, where 'sed' requires a space after the 'r'
95292         command, and where sh dislikes "$/".  Clean up the spacing a bit.
95293         Redirect output to $tmp just once.
95294
95295 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
95296
95297         * lib/addext.c (<errno.h>): Include.
95298         (errno): Declare if not defined.
95299         (addext): Work correctly when pathconf returns -1 and leaves
95300         errno alone because there is no limit.  Also, work even if
95301         pathconf returns a value greater than SIZE_MAX.
95302
95303 2001-08-12  Jim Meyering  <meyering@lucent.com>
95304
95305         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
95306         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
95307         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
95308         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
95309         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
95310         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
95311         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
95312         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
95313         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
95314         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
95315         utime.m4, utimes.m4, xstrtoumax.m4:
95316         Quote the first argument in each use of AC_DEFUN.
95317
95318 2001-08-12  Jim Meyering  <meyering@lucent.com>
95319
95320         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
95321         Simply `return getcwd (NULL, 0);'.
95322         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
95323         Use 1300 as initial value for length, not PATH_MAX.
95324
95325         * lib/pathmax.h: Clean up cpp syntax.
95326
95327 2001-08-12  Jim Meyering  <meyering@lucent.com>
95328
95329         * lib/gettimeofday.c: New file.
95330         * lib/gtod.h: New file.
95331         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
95332
95333 2001-08-05  Jim Meyering  <meyering@lucent.com>
95334
95335         * m4/jm-macros.m4: Require autoconf-2.52.
95336
95337 2001-08-04  Jim Meyering  <meyering@lucent.com>
95338
95339         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
95340         stmt, to get in sync with glibc.
95341
95342 2001-08-03  Paul Eggert  <eggert@twinsun.com>
95343
95344         The following changes are from gettext 0.10.39 as maintained by
95345         Bruno Haible.
95346
95347         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
95348         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
95349         with inverted sense.  All uses changed.
95350
95351         * lib/mbswidth.c: Don't include <limits.h>.
95352         Include <stdlib.h> and <string.h> unconditionally.
95353         (iswcntrl, mbsinit, ISCNTRL): New macros.
95354         (mbsnwidth): Use K&R style function declarations.
95355         Don't bother checking for MB_LEN_MAX == 1, since the compiler
95356         can optimize it when MB_CUR_MAX == 1.
95357         The width of control characters is zero, not 1.
95358
95359 2001-08-03  Paul Eggert  <eggert@twinsun.com>
95360
95361         The following changes are from gettext 0.10.39 as maintained by
95362         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
95363
95364         * m4/codeset.m4: Upgrade to serial AM1.
95365         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
95366         all uses changed.  Quote first arg of AC_DEFUN.
95367         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
95368
95369         * m4/iconv.m4: Upgrade to serial AM2.
95370         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
95371         Add --with-libconv-prefix.
95372         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
95373         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
95374         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
95375         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
95376         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
95377
95378         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
95379         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
95380         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
95381         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
95382         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
95383         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
95384         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
95385         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
95386         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
95387
95388         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
95389         string.h any more.
95390
95391         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
95392         not the default value.
95393
95394         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
95395         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
95396         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
95397         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
95398         Also check for iswcntrl, used for wcwidth fallback.
95399         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
95400         to Autoconf 2.13.
95401
95402 2001-08-03  Jim Meyering  <meyering@lucent.com>
95403
95404         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
95405         as it was in the original.  Reported by Paul Eggert.
95406
95407 2001-07-16  Jim Meyering  <meyering@lucent.com>
95408
95409         * m4/gettimeofday.m4: New file.
95410         Prompted by a report from Bernhard Baehr.
95411
95412 2001-07-15  Jim Meyering  <meyering@lucent.com>
95413
95414         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
95415         stuff. Now it's in ../Makefile.cfg.
95416
95417 2001-07-15  Jim Meyering  <meyering@lucent.com>
95418
95419         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
95420         (BUILT_SOURCES): Add unlocked-io.h.
95421         (io_functions): Define.
95422         (unlocked-io.h): New rule.
95423         (DISTCLEANFILES): Add unlocked-io.h.
95424         (all-local): Depend on unlocked-io.h, to ensure it is created.
95425
95426         * lib/unlocked-io.hin: New file
95427
95428         * lib/regex.c: Update from glibc.
95429
95430 2001-07-05  Jim Meyering  <meyering@lucent.com>
95431
95432         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
95433         recommendation.
95434         (libfetish_a_SOURCES): Put all .h files here instead.
95435         Remove a thus-exposed (better checks in automake) duplicate and
95436         two unnecessary .h files.
95437
95438 2001-07-04  Jim Meyering  <meyering@lucent.com>
95439
95440         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
95441         that generates jm-glibc-io.m4 so that it doesn't trigger any make
95442         distcheck failure.
95443
95444 2001-07-02  Jim Meyering  <meyering@lucent.com>
95445
95446         The following changes were prompted by suggestions from Bruno Haible.
95447
95448         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
95449         is now generated.
95450         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
95451         definition of EXTRA_DIST.
95452         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
95453         ensure that the generated file is created/updated whenever the list
95454         of $(unlocked_functions) is changed.
95455         (jm-glibc-io.m4): New rule.
95456         (unlocked-io.h): New rule -- currently unused.
95457
95458 2001-06-24  Jim Meyering  <meyering@lucent.com>
95459
95460         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
95461         unmatched right bracket, rather than kludging it with an extra,
95462         falsely-matching quote in a comment.  Patch by Akim Demaille.
95463
95464 2001-06-11  Jim Meyering  <meyering@lucent.com>
95465
95466         * lib/regex.c: Update from GNU libc.
95467
95468 2001-05-27  Jim Meyering  <meyering@lucent.com>
95469
95470         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
95471         Check for ut_type in struct utmp.
95472
95473 2001-05-27  Jim Meyering  <meyering@lucent.com>
95474
95475         * lib/readutmp.h (UT_TYPE): Define.
95476
95477 2001-05-24  Jim Meyering  <meyering@lucent.com>
95478
95479         * lib/argmatch.c: Include "quote.h".
95480         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
95481         quote function.  Reported by Göran Uddeborg.
95482
95483 2001-05-22  Jim Meyering  <meyering@lucent.com>
95484
95485         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
95486         now that we use the package-supplied version unconditionally.
95487         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
95488
95489 2001-05-21  Jim Meyering  <meyering@lucent.com>
95490
95491         * m4/regex.m4: Change a couple backticks to single quotes to avoid
95492         shell syntax errors.
95493
95494 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
95495
95496         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
95497
95498 2001-05-20  Paul Eggert  <eggert@twinsun.com>
95499
95500         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
95501         Don't bother to check library strftime, since
95502         we'll be using our own my_strftime function anyway.
95503         Define my_strftime instead of strftime.
95504
95505 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
95506
95507         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
95508         which is not yet declared.
95509
95510 2001-05-15  Jim Meyering  <meyering@lucent.com>
95511
95512         * m4/regex.m4: Use proper quoting so brackets appear in the test
95513         program.
95514         Reported by, and with help from, Bruno Haible.
95515
95516 2001-05-13  Jim Meyering  <meyering@lucent.com>
95517
95518         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
95519         undefined.
95520
95521 2001-05-11  Paul Eggert  <eggert@twinsun.com>
95522
95523         dirname code cleanup.  base_name now behaves more compatibly
95524         with POSIX basename when given file names that have trailing
95525         slashes, and similarly for dir_name.  Add new primitives
95526         base_len and dir_len.  Put the directory-name-related decls
95527         into dirname.h.
95528
95529         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
95530         * lib/backupfile.c (base_name): Likewise.
95531         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
95532         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
95533         * lib/makepath.c (strip_trailing_slashes): Likewise.
95534         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
95535         ISSLASH): Likewise.
95536         * lib/rename.c (strip_trailing_slashes): Likewise.
95537         * lib/same.c (base_name): Likewise.
95538         * lib/stripslash.c (ISSLASH): Likewise.
95539
95540         * lib/addext.c: Include <dirname.h> after size_t is defined.
95541         * lib/backupfile.c: Likewise.
95542
95543         * lib/addext.c (addext): Use base_len to trim redundant
95544         trailing slashes instead of doing it ourselves.
95545         But do not trim the last slash if it is not redundant.
95546
95547         * lib/backupfile.c (find_backup_file_name,
95548         max_backup_version): Use base_len instead of rolling it ourselves.
95549         Handle the case of "" and (on DOS) "C:" correctly.
95550
95551         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
95552         needed. Include <string.h>, <dirname.h>.
95553         (base_name): Allow file names ending in slashes, other than names
95554         that are all slashes.  In this case, return the basename followed
95555         by the slashes.  This is more general, and can be used in places
95556         where the original base_name purposely had an assertion failure.
95557         (base_len): New function.
95558
95559         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
95560         Do not include <assert.h>; no longer needed.
95561         Include xalloc.h.
95562         (memrchr): Remove decl.
95563         (dir_name_r): Remove.
95564         (dir_len): Renamed from dirlen.  All callers changed.
95565         Rewrite in terms of base_name, for simplicity and consistency.
95566         (dir_name): Never return NULL.  All callers changed.
95567         Do not include <stdlib.h> in test program; no longer needed.
95568         return 0; is fine for test program.
95569
95570         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
95571         New macros.
95572         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
95573
95574         * lib/path-concat.c (path_concat): Use base_len to compute
95575         base length, not strlen; this means we cannot rely on memcpy
95576         to null-terminate.
95577
95578         * lib/same.c (STREQ): Remove.
95579         (same_name): Handle the case where the basename ends in trailing '/'.
95580
95581         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
95582         a slash was stripped.  Do not strip the last slash after a
95583         file system prefix.
95584
95585 2001-05-11  Paul Eggert  <eggert@twinsun.com>
95586
95587         * lib/Makefile.am (libfetish_a_SOURCES):
95588         Add strftime.c, since we now compile it on all hosts.
95589
95590         * lib/strftime.c (my_strftime):
95591         Define to nstrftime if emacs, but only if my_strftime is not defined.
95592         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
95593         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
95594         Add one more extra argument: a nanoseconds value.
95595         All uses changed.
95596         (ns): New macro.
95597         (my_strftime function): Add %N format.
95598         (emacs_strftimeu): Renamed from emacs_strftime,
95599         with extra ut argument.
95600
95601 2001-05-09  Paul Eggert  <eggert@twinsun.com>
95602
95603         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
95604
95605 2001-04-21  Jim Meyering  <meyering@lucent.com>
95606
95607         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
95608         doesn't interfere.
95609
95610 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
95611
95612         * m4/ftruncate.m4: Check for chsize.
95613         Link with ftruncate.o unconditionally if ftruncate is missing.
95614         This was required when cross-compiling to i586-mingw32msvc.
95615
95616 2001-04-08  Jim Meyering  <meyering@lucent.com>
95617
95618         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
95619         recomputed; that's necessary when the offset spans a DST transition.
95620         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
95621
95622 2001-04-02  Jim Meyering  <meyering@lucent.com>
95623
95624         * lib/regex.h, regex.c: Update from GNU libc.
95625
95626 2001-03-24  Jim Meyering  <meyering@lucent.com>
95627
95628         * m4/jm-macros.m4: Require autoconf-2.49d.
95629
95630 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
95631
95632         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
95633
95634 2001-03-19  Paul Eggert  <eggert@twinsun.com>
95635
95636         * lib/version-etc.c (version_etc_copyright): Update to 2001.
95637
95638 2001-03-17  Jim Meyering  <meyering@lucent.com>
95639
95640         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
95641         now that the version in autoconf is equivalent.
95642         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
95643
95644         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
95645         Suggestion from Akim Demaille.
95646
95647         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
95648         (jm_PREREQ_TEMPNAME): New function.
95649
95650 2001-03-16  Paul Eggert  <eggert@twinsun.com>
95651
95652         * lib/tempname.c (uint64_t): Define to uintmax_t if
95653         not defined, and if UINT64_MAX is not defined.
95654         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
95655         Reported by John David Anglin.
95656
95657 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
95658
95659         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
95660         resolve alias if codeset is empty.
95661         * lib/config.charset (BeOS): Use wildcard syntax.
95662
95663 2001-03-13  Jim Meyering  <meyering@lucent.com>
95664
95665         * lib/path-concat.c (path_concat)
95666         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
95667         concatenating e.g., `C:' and `foo'.
95668         From Bruno Haible.
95669
95670 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
95671
95672         * lib/localcharset.c (locale_charset): Don't use
95673         setlocale(LC_CTYPE,NULL). Don't return NULL.
95674         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
95675
95676 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
95677
95678         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
95679         support for DOS/DJGPP.
95680
95681 2001-03-01  Paul Eggert  <eggert@twinsun.com>
95682
95683         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
95684         lacks mkstemp.  Compile our own tempname.c if we compile our own
95685         mkstemp.c, as mkstemp relies on tempname.
95686
95687 2001-03-01  Jim Meyering  <meyering@lucent.com>
95688
95689         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
95690         AH_VERBATIM really does output its argument verbatim.
95691
95692 2001-02-28  Paul Eggert  <eggert@twinsun.com>
95693
95694         * lib/Makefile.am (libfetish_a_SOURCES):
95695         Add dup-safer.c, fopen-safer.c.
95696         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
95697
95698         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
95699         * lib/unistd-safer.h: New files.
95700
95701 2001-02-25  Paul Eggert  <eggert@twinsun.com>
95702
95703         The mkstemp replacement is taken from glibc 2.2.2, with some
95704         portability fixes for use outside glibc, as follows:
95705
95706         * lib/tempname.c (struct_stat64): New macro.
95707         (direxists, __gen_tempname): Use it.
95708         This avoids a portability problem with Solaris 8.
95709
95710         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
95711         (<stddef.h>, <stdint.h>, <string.h>):
95712         Include only if STDC_HEADERS || _LIBC.
95713         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
95714         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
95715         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
95716         (__set_errno): Define this macro if <errno.h> doesn't.
95717         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
95718         Define these macros if <stdio.h> doesn't.
95719         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
95720         Define these macros if <sys/stat.h>
95721         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
95722         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
95723         __xstat64): Define if not _LIBC.
95724         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
95725         (__gen_tempname): Invoke gettimeofday only if
95726         HAVE_GETTIMEOFDAY || _LIBC;
95727         otherwise, fall back on plain "time".
95728         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
95729
95730         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
95731
95732         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
95733
95734 2001-02-18  Paul Eggert  <eggert@twinsun.com>
95735
95736         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
95737
95738 2001-02-17  Paul Eggert  <eggert@twinsun.com>
95739
95740         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
95741         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
95742         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
95743         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
95744
95745 2001-02-17  Paul Eggert  <eggert@twinsun.com>
95746
95747         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
95748         Remove workaround macros for hosts that have mbrtowc but not
95749         mbstate_t, as we now insist on proper declarations for both
95750         before using mbrtowc.
95751
95752 2001-02-17  Jim Meyering  <meyering@lucent.com>
95753
95754         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
95755         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
95756         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
95757         UnixWare 7.1.1.
95758
95759         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
95760         rather than AC_CACHE_VAL.
95761
95762 2001-02-17  Jim Meyering  <meyering@lucent.com>
95763
95764         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
95765         around included file name.
95766
95767         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
95768
95769         * lib/strftime.c: Update from GNU libc (the only changes were to
95770         comments).
95771
95772 2001-02-17  Jim Meyering  <meyering@lucent.com>
95773
95774         * lib/regex.c: Update from libc.
95775
95776 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
95777
95778         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
95779         clash.
95780
95781 2001-02-16  Paul Eggert  <eggert@twinsun.com>
95782
95783         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
95784         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
95785         Reported by Mark Hounschell via Paul Eggert.
95786
95787 2001-02-07  Jim Meyering  <meyering@lucent.com>
95788
95789         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
95790
95791 2001-02-05  Jim Meyering  <meyering@lucent.com>
95792
95793         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
95794         it includes the patch required for `large file' support with at least
95795         HP-UX's 10.20 /bin/cc.
95796
95797 2001-02-03  Jim Meyering  <meyering@lucent.com>
95798
95799         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
95800         AS_IF, now that it works once again (mysteriously).
95801         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
95802
95803 2001-01-30  Jim Meyering  <meyering@lucent.com>
95804
95805         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
95806         * m4/chown.m4: Rename conftestchown to conftest.chown.
95807         * m4/rename.m4: s/conftestdir/conftest.d1/ and
95808         s/conftestdir2/conftest.d2/.
95809         * m4/utimes.m4: s/conftestdata/conftest.data/
95810         Inspired by Pavel Roskin's change in autoconf.
95811
95812 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
95813
95814         * lib/config.charset: Update for FreeBSD 4.2.
95815
95816 2001-01-27  Jim Meyering  <meyering@lucent.com>
95817
95818         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
95819         a use of AS_IF.
95820         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
95821
95822 2001-01-26  Jim Meyering  <meyering@lucent.com>
95823
95824         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
95825         quotearg.c includes it.
95826
95827 2001-01-26  Jim Meyering  <meyering@lucent.com>
95828
95829         * lib/quotearg.c: Include stddef.h.
95830         * lib/quote.c: Include stddef.h.
95831         Reported by Axel Kittenberger.
95832
95833         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
95834         line in double quotes so that it evokes a better diagnostic.
95835         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
95836         Reported by Axel Kittenberger.
95837
95838 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
95839
95840         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
95841         as if it was a `charset'.
95842
95843 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
95844
95845         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
95846         has const.
95847
95848 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
95849
95850         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
95851         to avoid a warning.  Add back 'const' to inptr.
95852
95853 2001-01-20  Jim Meyering  <meyering@lucent.com>
95854
95855         Be sure that headers are checked before used in code compiled
95856         for the type checks.
95857         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
95858         In place of that, invoke jm_CHECK_ALL_TYPES.
95859         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
95860         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
95861         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
95862         The check for ssize_t was mistakenly run before the test for unistd.h.
95863
95864         The configure-time check for stdbool.h was missing.
95865         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
95866         (jm_PREREQ_HASH): New function.
95867
95868 2001-01-17  Jim Meyering  <meyering@lucent.com>
95869
95870         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
95871         for autoconf-2.49c.
95872         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
95873
95874 2001-01-16  Jim Meyering  <meyering@lucent.com>
95875
95876         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
95877         From Bruno Haible.
95878
95879 2001-01-14  Jim Meyering  <meyering@lucent.com>
95880
95881         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
95882         foo and bar.  Create conftestdir/ in the script, not in the C code.
95883         Remove directories in the script, not in the C code.
95884         Remove conftestdir{,2} before trying to create the directory.
95885         Make the entire configure script fail if the mkdir fails.
95886
95887 2001-01-14  Jim Meyering  <meyering@lucent.com>
95888
95889         * lib/rename.c: New file.  From Volker Borchert.
95890         Include stdlib.h, string.h or strings.h, and xalloc.h.
95891         Use strip_trailing_slashes rather than open-coding it.
95892
95893 2001-01-03  Paul Eggert  <eggert@twinsun.com>
95894
95895         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
95896
95897 2001-01-03  Jim Meyering  <meyering@lucent.com>
95898
95899         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
95900         of local `inptr' to avoid warning with some system declarations of
95901         iconv.
95902
95903 2001-01-02  Volker Borchert  <bt@teknon.de>
95904
95905         * m4/rename.m4: New file.
95906         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
95907
95908 2001-01-01  Jim Meyering  <meyering@lucent.com>
95909
95910         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
95911         even on systems with utmpx.h.  It's necessary for the declaration of
95912         utmp's ut_user member.  Reported by Andreas Jaeger.
95913
95914         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
95915         available. They are required for the declarations of getgrgid and
95916         getpwuid resp.
95917         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
95918         Reported by Andreas Jaeger.
95919
95920 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
95921
95922         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
95923         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
95924         so `make install' also works in VPATH builds.
95925
95926 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
95927
95928         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
95929         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
95930         can be used in subdirectories.
95931
95932 2000-12-29  Paul Eggert  <eggert@twinsun.com>
95933
95934         * lib/modechange.c: Do not assume that mode_t uses the
95935         traditional octal encoding.  E.g. "chmod 1 FOO" should set
95936         the other-execute bit of FOO even if S_IXOTH != 1.
95937
95938         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
95939         WOTH, XOTH, ALLM): New macros.
95940         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
95941          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
95942         Use them.
95943         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
95944         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
95945         (mode_compile):
95946         No need to use uintmax_t; unsigned long is long enough.
95947         Don't bother to get suffix since we don't use it.
95948
95949 2000-12-26  Jim Meyering  <meyering@lucent.com>
95950
95951         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
95952         better with autoheader.
95953
95954 2000-12-24  Jim Meyering  <meyering@lucent.com>
95955
95956         * lib/hash.c (is_prime): Return explicit boolean values.
95957         (hash_get_first): Return NULL to appease Irix5.6's 89.
95958         Reported by Nelson Beebe.
95959
95960 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
95961
95962         * lib/localcharset.c (locale_charset): Add support for Win32.
95963
95964 2000-12-18  Paul Eggert  <eggert@twinsun.com>
95965
95966         * lib/physmem.h, lib/physmem.c: New files.
95967
95968         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
95969         (noinst_HEADERS): Add physmem.h.
95970
95971         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
95972         't' for compatibility with Solaris 8 sort.
95973
95974 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
95975
95976         * lib/config.charset: Add support for BeOS.
95977
95978 2000-12-17  Jim Meyering  <meyering@lucent.com>
95979
95980         * m4/dos.m4 (jm_AC_DOS): New file and macro.
95981         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
95982
95983 2000-12-16  Jim Meyering  <meyering@lucent.com>
95984
95985         This bug had a serious impact on chown: `chown N:M FILE' (for integer
95986         N and M) would have treated it like `chown N:N FILE'.
95987
95988         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
95989
95990 2000-12-16  Jim Meyering  <meyering@lucent.com>
95991
95992         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
95993         SHELLS_FILE to a file name that's useful on djgpp systems.
95994         Include stdlib.h.
95995         (ADDITIONAL_DEFAULT_SHELLS): Define.
95996         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
95997         Based mostly on a patch from Prashant TR.
95998
95999 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
96000
96001         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
96002         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
96003         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
96004
96005 2000-12-08  Andreas Schwab  <schwab@suse.de>
96006
96007         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
96008         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
96009
96010 2000-12-07  Jim Meyering  <meyering@lucent.com>
96011
96012         * lib/stripslash.c (ISSLASH): Define.
96013         (strip_trailing_slashes): Use ISSLASH rather than comparing against
96014         `/'.
96015         From Prashant TR.
96016
96017         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
96018         (dir_name_r): Declare this function as static.
96019         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
96020         manifest itself on a name containing a mix of slashes and
96021         backslashes.
96022         Make this function work with names starting with a DOS-style
96023         drive letter and colon prefix.
96024         (dir_name): Append `.' if necessary.
96025         Based mostly on patches from Prashant TR and Eli Zaretskii.
96026
96027         * lib/dirname.h (dir_name_r): Remove prototype.
96028
96029 2000-12-06  Paul Eggert  <eggert@twinsun.com>
96030
96031         * m4/off_t-format.m4: Remove this file.
96032         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
96033
96034 2000-12-06  Jim Meyering  <meyering@lucent.com>
96035
96036         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
96037         replacement strtoull, we may well need the replacement strtoul, too.
96038         Check for declarations of strtoul and strtoull.
96039         Check for strtol.  Mainly as a cue to cause automake to include
96040         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
96041         Check for limits.h -- strtol.c needs it.
96042
96043 2000-12-05  Jim Meyering  <meyering@lucent.com>
96044
96045         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
96046
96047 2000-12-04  Jim Meyering  <meyering@lucent.com>
96048
96049         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
96050         Also include memory.h, stdlib.h, unistd.h if appropriate.
96051         Reported by Andreas Jaeger (conflicting declaration of malloc).
96052
96053 2000-12-02  Jim Meyering  <meyering@lucent.com>
96054
96055         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
96056         * m4/jm-macros.m4 (jm_MACROS): require it.
96057
96058 2000-12-02  Jim Meyering  <meyering@lucent.com>
96059
96060         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
96061
96062 2000-12-01  Paul Eggert  <eggert@twinsun.com>
96063
96064         * lib/memrchr.c: Include <config.h> before any system include file.
96065
96066 2000-11-30  Jim Meyering  <meyering@lucent.com>
96067
96068         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
96069
96070 2000-11-30  Jim Meyering  <meyering@lucent.com>
96071
96072         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
96073
96074 2000-11-29  Paul Eggert  <eggert@twinsun.com>
96075
96076         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
96077
96078 2000-11-26  Jim Meyering  <meyering@lucent.com>
96079
96080         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
96081
96082 2000-11-22  Paul Eggert  <eggert@twinsun.com>
96083
96084         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
96085         size of (size_t) -1; it's not portable.
96086
96087 2000-11-17  Jim Meyering  <meyering@lucent.com>
96088
96089         * lib/strstr.c: Update from GNU libc.
96090
96091 2000-11-17  Akim Demaille  <akim@epita.fr>
96092
96093         * lib/obstack.h: Formatting changes.
96094         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
96095         prevent type checking.
96096         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
96097         cast the value to (void *): assigning a `foo *' to a `void *'
96098         variable is valid.
96099         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
96100
96101 2000-11-16  Jim Meyering  <meyering@lucent.com>
96102
96103         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
96104
96105 2000-11-11  Jim Meyering  <meyering@lucent.com>
96106
96107         * lib/error.c: Add a couple #includes, merging from GNU libc version.
96108
96109 2000-11-10  Jim Meyering  <meyering@lucent.com>
96110
96111         * lib/obstack.h: Update from GNU libc.
96112         * lib/obstack.c: Likewise.
96113
96114 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
96115
96116         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
96117
96118 2000-11-06  Paul Eggert  <eggert@twinsun.com>
96119
96120         * lib/getusershell.c (setusershell): Use rewind rather than
96121         fseek/fseeko, to avoid configuration hassles with fseeko.
96122         Don't bother opening SHELLS_FILE if shellstream is NULL;
96123         it's not necessary.
96124
96125 2000-11-05  Jim Meyering  <meyering@lucent.com>
96126
96127         * lib/makepath.h (make_dir): Declare.
96128         * lib/makepath.c (make_dir): Remove `static' attribute.
96129         Tweak a comment.
96130
96131 2000-11-04  Jim Meyering  <meyering@lucent.com>
96132
96133         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
96134
96135 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
96136
96137         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
96138         last one in a bucket, advance to the next bucket.
96139
96140 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
96141
96142         * lib/fnmatch.c: Do not comment out all the code if we are using
96143         the GNU C library, because in some cases we are replacing buggy
96144         code in the GNU C library itself.
96145
96146 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
96147
96148         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
96149         (regex_compile): Catch bogus \(\1\).
96150
96151 2000-10-30  Paul Eggert  <eggert@twinsun.com>
96152
96153         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
96154         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
96155         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
96156
96157 2000-10-30  Paul Eggert  <eggert@twinsun.com>
96158
96159         * lib/error.h, getline.h, modechange.h:
96160         Remove "2000" from Copyright line, as the file hasn't been
96161         changed this year other than in the copyright notice.
96162
96163         * lib/xalloc.h: Add "2000" to Copyright line, as this file
96164         was changed this year.
96165
96166 2000-10-29  Jim Meyering  <meyering@lucent.com>
96167
96168         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
96169         renaming.
96170         * m4/ls-mntd-fs.m4: Likewise
96171
96172 2000-10-29  Jim Meyering  <meyering@lucent.com>
96173
96174         * lib/xstat.in: Fix grammar in comment.
96175
96176 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
96177
96178         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
96179         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
96180         doesn't define __restrict_arr.
96181
96182 2000-10-28  Jim Meyering  <meyering@lucent.com>
96183
96184         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
96185         (jm_PREREQ_MEMCHR): New function.
96186
96187 2000-10-28  Jim Meyering  <meyering@lucent.com>
96188
96189         * lib/memchr.c: Update from libc.
96190         Adjust for portability:
96191         [HAVE_STDLIB_H]: Include stdlib.h.
96192         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
96193         Undef __memchr, too.
96194         [!weak_alias]: Define __memchr to memchr.
96195
96196         * lib/regex.c: Update from libc.
96197         * lib/regex.h: Likewise.
96198         * lib/getopt1.c: Likewise.
96199         * lib/memcmp.c: Likewise.
96200
96201         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
96202         Avoid using fseek, when possible -- it's broken by design.
96203         Patch by Ulrich Drepper.
96204
96205 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
96206
96207         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
96208         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
96209         Giving in to popular pressure to shut up the compiler with casts.
96210
96211 2000-10-26  Jim Meyering  <meyering@lucent.com>
96212
96213         * lib/strftime.c: Update from libc.
96214
96215 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
96216
96217         * regex.c: More `unsigned char' -> `re_char' changes.
96218         Also change several `int' into `re_wchar_t'.
96219         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
96220         (PUSH_FAILURE_POINTER): Don't cast any more.
96221         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
96222         We want GCC to complain, since this piece of code makes
96223         re_match non-reentrant, which *should* be fixed.
96224         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
96225         (EXTEND_BUFFER): Use RETALLOC.
96226         (SET_LIST_BIT): Don't cast.
96227         (re_wchar_t): New type.
96228         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
96229         that those two functions will always properly return.
96230         (IMMEDIATE_QUIT_CHECK): Cast to void.
96231         (analyse_first): Use recursion rather than an explicit stack.
96232         (re_compile_fastmap): Can't fail anymore.
96233         (re_search_2): Don't check re_compile_fastmap for failure.
96234         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
96235         Now also sets the new value (passed in a new argument).
96236         (re_match_2_internal): Use it.
96237         Also, use a new var `reg' of type size_t when looping through regs
96238         rather than reuse the inappropriate `mcnt'.
96239
96240 2000-10-25  Jim Meyering  <meyering@lucent.com>
96241
96242         * lib/obstack.c: Update from libc.
96243
96244 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
96245
96246         * regex.c (regex_compile): Change the way of handling a range from
96247         a char less than 256 to a char not less than 256.
96248
96249 2000-10-24  Andrew Innes  <andrewi@gnu.org>
96250
96251         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
96252         NT-Emacs only.
96253         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
96254         so that re_search functions only quit when callers expect them to.
96255
96256 2000-10-23  Jim Meyering  <meyering@lucent.com>
96257
96258         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
96259         wrong.  That set_locale call must not have any side effects.
96260         From Paul Eggert.
96261
96262 2000-10-22  Jim Meyering  <meyering@lucent.com>
96263
96264         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
96265         [CYCLIC]: Remove now-unused definition.
96266
96267         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
96268         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
96269         Suggestion from Ulrich Drepper.
96270
96271 2000-10-21  Jim Meyering  <meyering@lucent.com>
96272
96273         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
96274         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
96275         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
96276
96277 2000-10-21  Jim Meyering  <meyering@lucent.com>
96278
96279         * lib/dirname.c (memrchr): Declare if necessary.
96280         (dir_name): Remove the restriction that there be no
96281         trailing slashes.  Now, this code skips past them, effectively
96282         ignoring them.
96283         [TEST_DIRNAME] (main): New unit tests.
96284
96285         * lib/memrchr.c: New file from GNU libc.
96286         Undef __memrchr, too.
96287         [!weak_alias]: Define __memrchr to memrchr.
96288         Guard weak_alias use with `#ifdef weak_alias'.
96289
96290 2000-10-21  Jim Meyering  <meyering@lucent.com>
96291
96292         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
96293         (dir_name): Use dir_name_r.
96294         * lib/dirname.h (dir_name_r): Declare it.
96295
96296 2000-10-17  Jim Meyering  <meyering@lucent.com>
96297
96298         * lib/quote.h (PARAMS): Define and use.
96299         Reported by Akim Demaille.
96300
96301         * lib/getopt.c: Update from libc.
96302
96303 2000-10-16  Jim Meyering  <meyering@lucent.com>
96304
96305         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
96306         setlocale.
96307         From Jan Fedak.
96308
96309 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
96310
96311         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
96312
96313 2000-09-25  Jim Meyering  <meyering@lucent.com>
96314
96315         * lib/md5.h (rol): Define (from GnuPG).
96316
96317         * lib/sha.c: Give credit (GnuPG) where due.
96318         (M): Use rol rather than open-coding it.
96319         Add a FIXME comment.
96320
96321 2000-09-21  Jim Meyering  <meyering@lucent.com>
96322
96323         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
96324         Reported by Michael Stone.
96325
96326 2000-09-20  Jim Meyering  <meyering@lucent.com>
96327
96328         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
96329         (noinst_HEADERS): Add sha.h.
96330         Based on code from Scott G. Miller and from GnuPG.
96331
96332 2000-09-18  Jim Meyering  <meyering@lucent.com>
96333
96334         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
96335         LIBS. Otherwise, everyone ends up linking with -lelf for some
96336         configurations.
96337         Reported by Mike Stone.
96338
96339 2000-09-15  Jim Meyering  <meyering@lucent.com>
96340
96341         * lib/regex.c: Update from libc.
96342
96343 2000-09-10  Jim Meyering  <meyering@lucent.com>
96344
96345         * lib/getopt.c (_getopt_internal): Update from glibc.
96346
96347 2000-09-09  Jim Meyering  <meyering@lucent.com>
96348
96349         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
96350         think it should be used as a general replacement for isascii.
96351         * lib/fnmatch.c: Likewise.
96352         * lib/mbswidth.c: Likewise
96353         * lib/regex.c: Likewise.
96354
96355         Don't use atoi.
96356         * lib/userspec.c: Include sys/param.h and limits.h.
96357         Include xstrtol.h.
96358         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
96359         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
96360         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
96361         UID, GID.  Check range.
96362
96363 2000-09-06  Jim Meyering  <meyering@lucent.com>
96364
96365         * lib/getopt.c (_getopt_internal): Update from glibc.
96366
96367 2000-08-30  Jim Meyering  <meyering@lucent.com>
96368
96369         * lib/strftime.c: Merge in changes from GNU libc.
96370
96371 2000-08-26  Jim Meyering  <meyering@lucent.com>
96372
96373         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
96374         * m4/fpending.m4: New file.
96375
96376 2000-08-26  Jim Meyering  <meyering@lucent.com>
96377
96378         * lib/closeout.c: Include "__fpending.h".
96379         (close_stdout_status): Return right away if there's nothing to flush.
96380
96381         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
96382         * lib/__fpending.c: New file.
96383         * lib/__fpending.h: New file.
96384
96385 2000-08-20  Jim Meyering  <meyering@lucent.com>
96386
96387         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
96388         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
96389         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
96390
96391 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
96392
96393         Improve fileutils installation on systems where running
96394         programs (like install) can't be unlinked.
96395         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
96396         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
96397
96398 2000-08-07  Paul Eggert  <eggert@twinsun.com>
96399
96400         Standardize on "memory exhausted" instead of "Memory exhausted"
96401         or "virtual memory exhausted".
96402         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
96403         "virtual memory exhausted".
96404         * lib/same.c (same_name): Invoke xalloc_die instead of printing
96405         our own message.
96406         * lib/userspec.c (parse_user_spec): Likewise.
96407         * lib/bumpalloc.h: comment fix
96408         * lib/same.c, userspec.c: Include xalloc.h.
96409
96410         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
96411         not char *const and pointing to a constant array.
96412         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
96413         (xrealloc): Comment fix.
96414
96415         * lib/userspec.c (parse_user_spec):
96416         Don't translate a message until just before returning,
96417         to avoid unnecessary translation.
96418
96419 2000-08-07  Jim Meyering  <meyering@lucent.com>
96420
96421         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
96422         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
96423         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
96424         getgroups.c, gethostname.c, getopt.h, group-member.c,
96425         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
96426         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
96427         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
96428         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
96429         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
96430         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
96431         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
96432         yesno.c: Back out Copyright date changes for each file with no change
96433         this year.  This eases coordination with other programs using the same
96434         source code modules.  From Paul Eggert.
96435
96436 2000-08-06  Paul Eggert  <eggert@twinsun.com>
96437
96438         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
96439         not char, for compatibility with glibc 2.1.3 strftime.c.
96440
96441 2000-08-03  Greg McGary  <greg@mcgary.org>
96442
96443         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
96444         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
96445         (EXTEND_BUFFER): Use them.
96446
96447 2000-08-01  Jim Meyering  <meyering@lucent.com>
96448
96449         * lib/dirname.c (ISSLASH): Define.
96450         (BACKSLASH_IS_PATH_SEPARATOR): Define.
96451         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
96452         both `\' and `/' may be use as path separators.
96453         Based on a patch from Prashant TR.
96454
96455 2000-07-31  Paul Eggert  <eggert@twinsun.com>
96456
96457         * lib/quotearg.c (quotearg_n_options): Don't make the initial
96458         slot vector a constant, since it might get modified.
96459
96460 2000-07-31  Jim Meyering  <meyering@lucent.com>
96461
96462         * lib/xmalloc.c: Use `virtual memory exhausted', not
96463         `Memory exhausted'.
96464         * lib/obstack.c (print_and_abort): Likewise.
96465
96466 2000-07-30  Paul Eggert  <eggert@twinsun.com>
96467
96468         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
96469         buffer, so that the caller can always quote one small
96470         component of a "memory exhausted" message in slot 0.
96471         From a suggestion by Jim Meyering.
96472
96473 2000-07-30  Jim Meyering  <meyering@lucent.com>
96474
96475         * lib/makepath.c (make_path): Quote the other instance, too.
96476
96477         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
96478         (STATIC_BUF_SIZE): Define.
96479         (quotearg_n_options): Use only statically allocated storage when
96480         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
96481         than STATIC_BUF_SIZE.
96482
96483 2000-07-29  Jim Meyering  <meyering@lucent.com>
96484
96485         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
96486         * lib/dirname.c (dir_name): Likewise.
96487
96488         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
96489         `/'.
96490
96491         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
96492         (dir_name): Assert that there are no trailing slashes.
96493
96494 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
96495
96496         * lib/mbswidth.h (mbswidth): Add a flags argument.
96497         (mbswidth): New declaration.
96498         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
96499         * lib/mbswidth.c (mbswidth): Add a flags argument.
96500         (mbsnwidth): New function.
96501
96502 2000-07-24  Jim Meyering  <meyering@lucent.com>
96503
96504         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
96505
96506 2000-07-23  Paul Eggert  <eggert@twinsun.com>
96507
96508         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
96509
96510 2000-07-23  Paul Eggert  <eggert@twinsun.com>
96511
96512         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
96513         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
96514         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
96515         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
96516         invoke multibyte primitives.
96517
96518 2000-07-23  Paul Eggert  <eggert@twinsun.com>
96519
96520         * lib/quotearg.c:
96521         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
96522         so that mbstate_t is always defined.
96523
96524         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
96525         be 1 in at least one GCC installation, and this configuration
96526         error is likely to be common.  Ignoring MB_LEN_MAX hurts
96527         performance on hosts that have mbrtowc but have only unibyte
96528         locales, but I assume these hosts are rare.
96529
96530 2000-07-23  Paul Eggert  <eggert@twinsun.com>
96531
96532         * lib/mbswidth.c (_XOPEN_SOURCE):
96533         Don't define; this causes problems on Solaris 7.
96534         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
96535
96536 2000-07-23  Jim Meyering  <meyering@lucent.com>
96537
96538         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
96539         too: getgrgid, getpwuid, getuid.
96540
96541 2000-07-23  Jim Meyering  <meyering@lucent.com>
96542
96543         * lib/basename.c (base_name): Add an assertion.
96544
96545 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
96546
96547         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
96548         shadow its mbsinit function.
96549
96550 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
96551
96552         * lib/mbswidth.h: New file.
96553         * lib/mbswidth.c: New file.
96554         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
96555         (noinst_HEADERS): Add mbswidth.h.
96556
96557 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
96558
96559         * lib/config.charset: Add support for FreeBSD. Improve support for
96560         HP-UX and IRIX 6.
96561
96562 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
96563
96564         * m4/mbswidth.m4: New file.
96565         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
96566
96567 2000-07-15  Jim Meyering  <meyering@lucent.com>
96568
96569         * lib/makepath.c: Include quote.h.
96570         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
96571         corresponding argument in a `quote (...)' call.
96572         Give better diagnostics.
96573
96574         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
96575         (noinst_HEADERS): Add quote.h.
96576
96577         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
96578         from tar's src/misc.c.
96579         * lib/quote.h: New file.  Prototypes for same.
96580
96581 2000-07-14  Paul Eggert  <eggert@twinsun.com>
96582
96583         From a suggestion by Bruno Haible.
96584         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
96585         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
96586         to decide whether to define the BeOS workaround macro;
96587         this adjusts to the change to AC_MBSTATE_T.
96588
96589 2000-07-14  Jim Meyering  <meyering@lucent.com>
96590
96591         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
96592         jm_AC_TYPE_UINTMAX_T.
96593
96594 2000-07-13  Paul Eggert  <eggert@twinsun.com>
96595
96596         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
96597
96598         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
96599         quotearg_buffer_restyled): Add support for
96600         clocale_quoting_style.  Undo previous change to
96601         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
96602         and "{RIGHT QUOTATION MARK}" msgids.
96603
96604 2000-07-10  Paul Eggert  <eggert@twinsun.com>
96605
96606         From a suggestion by Bruno Haible.
96607         * m4/mbstate_t.m4 (AC_MBSTATE_T):
96608         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
96609         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
96610         and mbstate_t, to a single-part test that simply defines mbstate_t.
96611         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
96612         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
96613
96614 2000-07-10  Jim Meyering  <meyering@lucent.com>
96615
96616         * m4/strerror_r.m4: Mirror the correction made in autoconf.
96617
96618         * m4/gnu-source.m4: Output to confdefs.h directly.
96619         Suggestion from Akim Demaille.
96620
96621 2000-07-09  Paul Eggert  <eggert@twinsun.com>
96622
96623         The old behavior of quoting `like this' doesn't look good with
96624         newer, ISO-style fonts.  See:
96625         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
96626
96627         Instead, quote "like this" by default.  Let the translator
96628         tailor the locale-specific quoting behavior by providing
96629         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
96630
96631         * lib/quotearg.c (N_): New macro.
96632         (gettext_default): New function.
96633         (quotearg_buffer_restyled): Use
96634         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
96635         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
96636
96637 2000-07-09  Jim Meyering  <meyering@lucent.com>
96638
96639         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
96640         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
96641
96642         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
96643         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
96644
96645 2000-07-09  Jim Meyering  <meyering@lucent.com>
96646
96647         * lib/Most files: Update copyright dates to include 2000.
96648
96649 2000-07-08  Jim Meyering  <meyering@lucent.com>
96650
96651         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
96652         if not defined.
96653         (xgethostname): Remove now-unnecessary #ifdef.
96654         Move declaration of `err' into loop where it's used.
96655
96656 2000-07-05  Paul Eggert  <eggert@twinsun.com>
96657         and Bruno Haible  <haible@clisp.cons.org>
96658
96659         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
96660         only if the test for an object-type mbstate_t fails.  This
96661         prevents us from mistakenly reporting that mbstate_t is a
96662         system object type after we "#define mbstate_t int" to work
96663         around its lack.
96664
96665 2000-07-05  Paul Eggert  <eggert@twinsun.com>
96666         and Bruno Haible  <haible@clisp.cons.org>
96667
96668         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
96669
96670 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
96671
96672         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
96673         to strerror_r.
96674         Include <ctype.h> for use of isalpha.
96675
96676 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
96677
96678         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
96679         by allocating a larger buffer. Test the gethostname return value for
96680         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
96681         returns an error and ENAMETOOLONG isn't defined.
96682
96683 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
96684
96685         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
96686         dimension.
96687
96688 2000-07-04  Jim Meyering  <meyering@lucent.com>
96689
96690         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
96691         of the deprecated AC_CHECKING.
96692
96693 2000-07-04  Jim Meyering  <meyering@lucent.com>
96694
96695         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
96696         Reported by Bruno Haible.
96697
96698 2000-07-04  Jim Meyering  <meyering@lucent.com>
96699
96700         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
96701         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
96702         lacks mbrtowc.
96703
96704 2000-07-03  Paul Eggert  <eggert@twinsun.com>
96705
96706         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
96707         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
96708
96709 2000-07-03  Paul Eggert  <eggert@twinsun.com>
96710         and Bruno Haible  <haible@clisp.cons.org>
96711
96712         * lib/quotearg.c (mbrtowc):
96713         Assign to *pwc, and return 1 only if result is nonzero.
96714         (iswprint): Use ISPRINT when substituting our own mbrtowc.
96715
96716 2000-07-03  Jim Meyering  <meyering@lucent.com>
96717
96718         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
96719
96720 2000-07-03  Jim Meyering  <meyering@lucent.com>
96721
96722         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
96723         This is necessary to get a definition of e.g., UTMP_FILE on
96724         HP-UX 10.20.
96725         From Bob Proulx.
96726
96727 2000-07-02  Jim Meyering  <meyering@lucent.com>
96728
96729         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
96730
96731         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
96732         AC_LIBOBJ(function_name).
96733         * m4/chown.m4: Likewise.
96734         * m4/fnmatch.m4: Likewise.
96735         * m4/ftruncate.m4: Likewise.
96736         * m4/getgroups.m4: Likewise.
96737         * m4/getline.m4: Likewise.
96738         * m4/group-member.m4: Likewise.
96739         * m4/jm-macros.m4: Likewise.
96740         * m4/lstat.m4: Likewise.
96741         * m4/malloc.m4: Likewise.
96742         * m4/memcmp.m4: Likewise.
96743         * m4/nanosleep.m4: Likewise.
96744         * m4/putenv.m4: Likewise.
96745         * m4/realloc.m4: Likewise.
96746         * m4/regex.m4: Likewise.
96747         * m4/stat.m4: Likewise.
96748         * m4/strftime.m4: Likewise.
96749
96750 2000-07-02  Jim Meyering  <meyering@lucent.com>
96751
96752         * lib/quotearg.c (mbstate_t): Don't define here.
96753
96754 2000-07-02  Jim Meyering  <meyering@lucent.com>
96755
96756         * lib/nanosleep.c (SIGCONT): Define if not already defined.
96757
96758 2000-07-01  Jim Meyering  <meyering@lucent.com>
96759
96760         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
96761
96762 2000-07-01  Jim Meyering  <meyering@lucent.com>
96763
96764         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
96765         problem.
96766
96767 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
96768
96769         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
96770         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
96771
96772 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
96773
96774         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
96775         per change in ../m4/ls-mntd-fs.m4.
96776         (read_filesystem_list): Ignore symbolic links.
96777
96778 2000-06-29  Jim Meyering  <meyering@lucent.com>
96779
96780         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
96781         for declaration of strcmp.
96782
96783         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
96784
96785         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
96786         Avoid warning by casting result to `char *' to remove `const'.
96787
96788 2000-06-28  Jim Meyering  <meyering@lucent.com>
96789
96790         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
96791         included by quotearg.c, for which we perform this test.  From
96792         Bruno Haible.
96793
96794 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
96795
96796         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
96797         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
96798         <utmpx.h> exists, put readutmp.o into LIBOBJS.
96799
96800 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
96801
96802         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
96803
96804 2000-06-26  Paul Eggert  <eggert@twinsun.com>
96805
96806         savedir now sets errno on failure and invokes xmalloc to get memory.
96807         Fix a couple of other minor bugs while we're at it.
96808
96809         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
96810         (NAMLEN): Remove macro.
96811         (malloc, realloc): Remove decls.
96812         (stpcpy): Likewise.
96813         ("xalloc.h"): Include.
96814         (NAME_SIZE_DEFAULT): New macro.
96815         (savedir): Use xmalloc / xrealloc to allocate memory.
96816         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
96817         Skip "" directory entries.
96818         Use strlen to calculate directory entry length, since the old method
96819         is rarely used these days and isn't worth supporting.
96820         Don't use a pointer after freeing it.
96821         Check for integer overflow when calculating allocation size.
96822         Use memcpy to copy entries, instead of stpcpy.
96823         Set errno properly when returning NULL.
96824         Check for readdir error.
96825
96826 2000-06-26  Jim Meyering  <meyering@lucent.com>
96827
96828         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
96829
96830 2000-06-25  Jim Meyering  <meyering@lucent.com>
96831
96832         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
96833         Linux header bug when _XOPEN_SOURCE is defined to 500.
96834
96835 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
96836
96837         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
96838         deficiency.
96839
96840 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
96841
96842         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
96843         Include xalloc.h.
96844         Don't include <stdlib.h>.  Don't declare malloc, realloc.
96845
96846 2000-06-24  Jim Meyering  <meyering@lucent.com>
96847
96848         * m4/strerror_r.m4: Revive this file -- to try out an experimental
96849         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
96850         for which strerror does return char*, but which lacks a conveniently
96851         accessible declaration of the function.  If the compile-test says
96852         strerror_r doesn't work, then resort to a `run'-test that works on
96853         BeOS and segfaults on DEC Unix.
96854
96855 2000-06-24  Jim Meyering  <meyering@lucent.com>
96856
96857         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
96858
96859 2000-06-23  Paul Eggert  <eggert@twinsun.com>
96860
96861         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
96862         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
96863
96864 2000-06-23  Paul Eggert  <eggert@twinsun.com>
96865
96866         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
96867         (mbrtowc, mbstate_t): Define substitutes if
96868         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
96869         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
96870         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
96871
96872 2000-06-23  Jim Meyering  <meyering@lucent.com>
96873
96874         * m4/afs.m4: Add missing AC_MSG_RESULT.
96875         Reported by Bruno Haible.
96876
96877         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
96878         Suggestion from Bruno Haible.
96879
96880 2000-06-23  Jim Meyering  <meyering@lucent.com>
96881
96882         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
96883
96884 2000-06-21  Jim Meyering  <meyering@lucent.com>
96885
96886         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
96887
96888 2000-06-21  Jim Meyering  <meyering@lucent.com>
96889
96890         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
96891         (noinst_HEADERS): Add getstr.h.
96892
96893         * lib/getline.c (getstr): Move into a separate file.
96894         * lib/getstr.c (getstr): New file, extracted from getline.c, with
96895         the following changes: new parameter, delim2; both delim[12]
96896         parameters have type `int', not `char'.  The latter would lose
96897         with 8-bit delimiters.
96898         * lib/getstr.h: New file.
96899
96900 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
96901
96902         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
96903         than 1024, return a memory chunk of least possible size, instead
96904         of size PATH_MAX + 2. In the loop, increment the size proportionally.
96905         Use free/xmalloc instead of xrealloc to avoid copying for very long
96906         paths.
96907
96908 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
96909
96910         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
96911         the empty string.
96912
96913 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
96914
96915         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
96916         address, not strdup.  Include <stdlib.h> and don't declare free().
96917
96918 2000-06-19  Jim Meyering  <meyering@lucent.com>
96919
96920         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
96921
96922 2000-06-18  Jim Meyering  <meyering@lucent.com>
96923
96924         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
96925
96926         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
96927         `checking whether...' message to be consistent with that of the
96928         lstat test.
96929
96930 2000-06-18  Jim Meyering  <meyering@lucent.com>
96931
96932         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
96933         Besides, these days every porting target provides a mkdir function.
96934
96935         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
96936         needed. (this snippet comes from src/system.h).
96937
96938 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
96939
96940         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
96941
96942 2000-06-15  Paul Eggert  <eggert@twinsun.com>
96943
96944         * lib/human.c (adjust_value): New function.
96945         (human_readable_inexact): Apply rounding style even when
96946         printing approximate values.
96947
96948 2000-06-14  Paul Eggert  <eggert@twinsun.com>
96949
96950         * lib/human.c (human_readable_inexact): Allow an input block
96951         size that is not a multiple of the output block size, and vice versa.
96952         Reported by Piergiorgio Sartor.
96953
96954 2000-06-14  Paul Eggert  <eggert@twinsun.com>
96955
96956         * lib/getdate.y (get_date): Apply relative times after time
96957         zone indicator, not before.  Reported by Todd A. Jacobs.
96958
96959 2000-06-13  Jim Meyering  <meyering@lucent.com>
96960
96961         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
96962
96963         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
96964
96965 2000-06-12  Paul Eggert  <eggert@twinsun.com>
96966
96967         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
96968
96969 2000-06-12  Jim Meyering  <meyering@lucent.com>
96970
96971         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
96972         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
96973         optional argument.
96974         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
96975         the optional argument, `lib'.
96976
96977 2000-06-08  Jim Meyering  <meyering@lucent.com>
96978
96979         * m4/largefile.m4: Remove file (now that it's part of autoconf).
96980
96981 2000-06-04  Paul Eggert  <eggert@twinsun.com>
96982
96983         Rewrite largefile configuration so that we don't need to run
96984         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
96985         AC_CANONICAL_HOST in configure.in -- jmm]
96986
96987         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
96988         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
96989         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
96990         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
96991         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
96992         All uses changed.
96993         Instead of inspecting the output of getconf, try to compile the
96994         test program without and with the macro definition.
96995         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
96996         for getconf.  Instead, check for the needed flags by compiling
96997         test programs.
96998
96999 2000-06-04  Paul Eggert  <eggert@twinsun.com>
97000
97001         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
97002
97003 2000-06-04  Jim Meyering  <meyering@lucent.com>
97004
97005         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
97006         SunOS 4.1.4 for which gid_t is an unsigned type.
97007
97008 2000-06-03  Jim Meyering  <meyering@lucent.com>
97009
97010         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
97011         now that autoconf requires that.
97012
97013         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
97014         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
97015         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
97016
97017 2000-06-03  Jim Meyering  <meyering@lucent.com>
97018
97019         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
97020
97021 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
97022
97023         * m4/glibc21.m4: New file.
97024         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
97025
97026 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
97027
97028         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
97029         newer, don't install charset.alias.
97030         * lib/config.charset: Change the Linux/glibc rules so they become empty
97031         on glibc-2.1 or newer.
97032
97033 2000-06-02  Jim Meyering  <meyering@lucent.com>
97034
97035         * lib/mountlist.c: Back out last change.  Instead, do this...
97036         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
97037         me_dummy member using the same `ignore'-testing code.
97038         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
97039         fs_type strings.
97040         From Mark D. Roth.
97041
97042 2000-05-29  Jim Meyering  <meyering@lucent.com>
97043
97044         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
97045         mounts with the `ignore' attribute.  Based on a patch from
97046         Mark D. Roth.
97047
97048 2000-05-28  Jim Meyering  <meyering@lucent.com>
97049
97050         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
97051         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
97052         * m4/stat.m4: Likewise.
97053         * m4/lstat.m4: Likewise.
97054         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
97055
97056         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
97057         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
97058
97059 2000-05-26  Jim Meyering  <meyering@lucent.com>
97060
97061         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
97062
97063 2000-05-24  Jim Meyering  <meyering@lucent.com>
97064
97065         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
97066         autoconf requires that.
97067         * m4/lib-check.m4: Likewise.
97068         * m4/jm-macros.m4: Likewise.
97069         * m4/strftime.m4: Likewise.
97070
97071         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
97072         AC_CHECK_DECLS, now that autoconf requires that.
97073
97074 2000-05-22  Jim Meyering  <meyering@lucent.com>
97075
97076         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
97077         * m4/lstat.m4: Likewise.
97078
97079 2000-05-22  Jim Meyering  <meyering@lucent.com>
97080
97081         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
97082
97083 2000-05-20  Jim Meyering  <meyering@lucent.com>
97084
97085         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
97086         (jm_PREREQ): Use it.
97087
97088 2000-05-18  Jim Meyering  <meyering@lucent.com>
97089
97090         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
97091         back, too, since it may have been modified by allocate_entry.
97092         (hash_delete): Rewrite to use neither the assignment operator
97093         nor the comma operator in an if-expression.
97094
97095 2000-05-15  Paul Eggert  <eggert@twinsun.com>
97096
97097         * lib/closeout.c:
97098         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
97099         Remove; no longer needed.
97100         "quotearg.h": Add include.
97101         (file_name): Do not bother to explicitly initialize to NULL; it's less
97102         efficient on some hosts.
97103         (close_stdout_status): Remove test as to whether stdout was already
97104         closed; it breaks for the case "echo x | sort >&-".
97105         Quote file name colons.
97106         Do not assume that _("write error") lacks format strings.
97107
97108 2000-05-15  Jim Meyering  <meyering@lucent.com>
97109
97110         * lib/version-etc.c (version_etc_copyright): Update the copyright
97111         string used in all --version output.
97112
97113 2000-05-14  Jim Meyering  <meyering@lucent.com>
97114
97115         * lib/closeout.c (close_stdout_set_file_name): New function.
97116         (close_stdout_status): Use new file-scoped global.
97117         Return right away if fstat says the stdout file descriptor is invalid.
97118         * lib/closeout.h (close_stdout_set_file_name): Declare.
97119
97120 2000-05-10  Jim Meyering  <meyering@lucent.com>
97121
97122         * lib/closeout.c [default_exit_status]: New file-scoped variable.
97123         (close_stdout_set_status): New function.
97124         * lib/closeout.h (close_stdout_set_status): Declare.
97125
97126 2000-05-09  Jim Meyering  <meyering@lucent.com>
97127
97128         * m4/gettext.m4: Rename this...
97129         * m4/libintl.m4: ...to this.
97130
97131 2000-05-08  Jim Meyering  <meyering@lucent.com>
97132
97133         * lib/long-options.c: Don't include closeout.h.
97134         (parse_long_options): Don't call close_stdout for --version.
97135
97136 2000-05-06  Paul Eggert  <eggert@twinsun.com>
97137
97138         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
97139         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
97140         2.1.3 bug.  This avoids a clash when files like regex.c define
97141         _GNU_SOURCE.
97142
97143 2000-05-06  Jim Meyering  <meyering@lucent.com>
97144
97145         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
97146         (AC_REPLACE_FUNCS): Add strnlen.
97147
97148         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
97149         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
97150
97151         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
97152         AC_SEARCH_LIBS call for nanosleep.
97153         (LIB_NANOSLEEP): Set and AC_SUBST.
97154
97155 2000-05-06  Jim Meyering  <meyering@lucent.com>
97156
97157         * lib/strnlen.c: Undefine __strnlen and strnlen.
97158         [!weak_alias]: Define __strnlen to strnlen.
97159
97160         * lib/atexit.c: New file, from libiberty.
97161
97162 2000-05-06  Jim Meyering  <meyering@lucent.com>
97163
97164         * lib/closeout.c (close_stdout_status): Also check for errors on the
97165         stderr stream.
97166
97167 2000-05-05  Jim Meyering  <meyering@lucent.com>
97168
97169         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
97170         AC_SEARCH_LIBS call for clock_gettime.
97171         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
97172
97173         * m4/search-libs.m4: Update from autoconf.
97174
97175         su doesn't work on Solaris 2.6.
97176         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
97177         <shadow.h>.  Reported by Dragos Harabor.
97178
97179 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
97180
97181         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
97182         memcpy instead of xmalloc, xrealloc, path_concat.
97183         (locale_charset): Treat empty environment variables as absent.
97184         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
97185
97186 2000-05-04  Jim Meyering  <meyering@lucent.com>
97187
97188         * lib/getopt.c: Update from glibc.
97189         * lib/obstack.c: Likewise.
97190         * lib/obstack.h: Likewise.
97191         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
97192         file
97193
97194         * lib/regex.h: Likewise.
97195         * lib/strndup.c: Likewise.
97196         * lib/strnlen.c: New file, from glibc.
97197
97198 2000-05-03  Jim Meyering  <meyering@lucent.com>
97199
97200         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
97201
97202 2000-05-02  Paul Eggert  <eggert@twinsun.com>
97203
97204         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
97205         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
97206         compile-time test, rather than inspecting host and OS, to
97207         decide whether to define _LARGEFILE_SOURCE.
97208
97209 2000-05-01  Jim Meyering  <meyering@lucent.com>
97210
97211         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
97212
97213         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
97214         Based on a patch from Bruno Haible.
97215
97216 2000-05-01  Jim Meyering  <meyering@lucent.com>
97217
97218         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
97219
97220 2000-04-29  Jim Meyering  <meyering@lucent.com>
97221
97222         * lib/path-concat.c: Declare strdup only if it's not defined.
97223         * lib/canon-host.c: Likewise.
97224
97225 2000-04-28  Jim Meyering  <meyering@lucent.com>
97226
97227         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
97228         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
97229         is included first, then limits.h is included by locale.h by libintl.h.
97230         From John David Anglin.
97231
97232 2000-04-25  Jim Meyering  <meyering@lucent.com>
97233
97234         * lib/makepath.c (S_IRWXUGO): Define.
97235         (make_path): Always perform explicit chmod if MODE specifies any
97236         of the `special' permission bits.  Prompted by a bug report against
97237         install from Mate Wierdl and Joost van Baal.
97238
97239 2000-04-18  Jim Meyering  <meyering@lucent.com>
97240
97241         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
97242         (jm_PREREQ): Use it.
97243
97244 2000-04-18  Jim Meyering  <meyering@lucent.com>
97245
97246         * lib/README: New file.
97247
97248         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
97249         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
97250
97251 2000-04-17  Jim Meyering  <meyering@lucent.com>
97252
97253         Get it right :-)
97254         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
97255         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
97256         Suggestion from Akim Demaille.
97257
97258 2000-04-17  Jim Meyering  <meyering@lucent.com>
97259
97260         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
97261         the definition of it to rpl_strftime also defined-away the system's
97262         declaration.
97263
97264 2000-04-15  Jim Meyering  <meyering@lucent.com>
97265
97266         Use `C' to denote so-called `contiguous' files, the same way
97267         that tar does.
97268         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
97269         (ftypelet): Use S_ISCTG.
97270         From Michael Deutschmann.
97271
97272 2000-04-14  Jim Meyering  <meyering@lucent.com>
97273
97274         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
97275         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
97276         clobbered.
97277
97278 2000-04-14  Jim Meyering  <meyering@lucent.com>
97279
97280         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
97281
97282 2000-04-13  Jim Meyering  <meyering@lucent.com>
97283
97284         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
97285         AH_VERBATIM to insert required #ifndef into config.h.in.
97286         Suggestion from Akim Demaille.
97287
97288 2000-04-12  Jim Meyering  <meyering@lucent.com>
97289
97290         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
97291         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
97292         Christian Krackowizer.
97293
97294         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
97295         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
97296         (AC_SYS_LARGEFILE): Require.
97297         (AM_C_PROTOTYPES): Require.
97298
97299 2000-04-08  Jim Meyering  <meyering@lucent.com>
97300
97301         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
97302         names don't conflict.  Reported by Eli Zaretskii.
97303
97304 2000-04-07  Jim Meyering  <meyering@lucent.com>
97305
97306         * lib/putenv.c: Move inclusion of errno.h so it follows that of
97307         sys/types.h, to work around system header problems on AIX 3.2.5.
97308         From Bruno Haible.
97309
97310 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
97311
97312         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
97313         bug.  Deal with the different error behavior of Irix iconv.
97314
97315 2000-04-05  Paul Eggert  <eggert@twinsun.com>
97316
97317         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
97318         IRIX if the installer said otherwise.
97319
97320 2000-04-05  Jim Meyering  <meyering@lucent.com>
97321
97322         Portability tweaks required for ultrix4.3.
97323         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
97324         (jm_CHECK_DECLS): Add getutent to the list of functions.
97325         (_jm_DECL_HEADERS): Add utmpx.h.
97326         From John David Anglin.
97327
97328         * m4/strftime.m4: Back out the 2000-04-02 change.
97329         Instead of that change, simply undefine putenv in the test program.
97330
97331 2000-04-05  Jim Meyering  <meyering@lucent.com>
97332
97333         Portability tweaks required for ultrix4.3.
97334         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
97335         getutent.
97336         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
97337         * lib/canon-host.c: Declare strdup.
97338         * lib/path-concat.c: Likewise.
97339         From John David Anglin.
97340
97341 2000-04-04  Jim Meyering  <meyering@lucent.com>
97342
97343         Be more DOS 8.3-friendly.
97344         * lib/ref-add.sin: Renamed from ref-add.sed.in.
97345         * lib/ref-del.sin: Renamed from ref-del.sed.in.
97346         * lib/Makefile.am: Reflect renaming.
97347         Reported by Eli Zaretskii.
97348
97349         Use a temporary file name that won't clash with `charset.alias'
97350         in the DOS 8.3 name space.
97351         * lib/Makefile.am (charset_tmp): Define.
97352         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
97353         (uninstall-local): Likewise.
97354         Reported by Eli Zaretskii.
97355
97356 2000-04-03  Jim Meyering  <meyering@lucent.com>
97357
97358         * m4/gettext.m4: Fix typo in comment.
97359
97360         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
97361         textutils/configure.in).  Suggestion from Paul Eggert.
97362         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
97363
97364 2000-04-02  Paul Eggert  <eggert@twinsun.com>
97365
97366         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
97367         variable in the shell rather than using putenv, which isn't
97368         portable.  This avoids the configure-time inter-test dependency
97369         on the potentially-renamed putenv function.
97370
97371 2000-03-30  Paul Eggert  <eggert@twinsun.com>
97372
97373         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
97374         before checking struct stat.st_blksize, so that
97375         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
97376
97377 2000-03-29  Paul Eggert  <eggert@twinsun.com>
97378
97379         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
97380         since strftime.c uses HAVE_STRFTIME to decide whether to use
97381         the underlying strftime.
97382
97383 2000-03-29  Paul Eggert  <eggert@twinsun.com>
97384
97385         * lib/time/strftime.c (my_strftime): Make sure we call the system
97386         strftime, not ourselves, when invoking the underlying strftime.
97387
97388 2000-03-24  Jim Meyering  <meyering@lucent.com>
97389
97390         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
97391         (charset_alias): Define.
97392         (install-exec-local): Factor out common code.
97393         (uninstall-local): Split lines longer than 80.
97394         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
97395         (SUFFIXES): Define.
97396         (.sed.in.sed): New rule.  Don't redirect directly to $@.
97397         (CLEANFILES): Add ref-add.sed and ref-del.sed.
97398
97399 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
97400
97401         * lib/config.charset: Output a line containing "Packages using this
97402         file".
97403         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
97404         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
97405         ref-del.sed): New rules.
97406
97407 2000-03-17  Jim Meyering  <meyering@lucent.com>
97408
97409         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
97410         Otherwise, include <strings.h>
97411
97412 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
97413
97414         * lib/unicodeio.c (utf8_wctomb): New function.
97415         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
97416         format instead of in UCS-4 with platform dependent endianness.
97417
97418 2000-03-10  Jim Meyering  <meyering@lucent.com>
97419
97420         * m4/lib-check.m4: Look for getspnam in -lgen, too.
97421         From Marco Franzen.
97422
97423 2000-03-07  Paul Eggert  <eggert@twinsun.com>
97424
97425         * lib/savedir.c (savedir): Work even if directory size is
97426         negative; this can happen with some screwy NFS configurations.
97427
97428 2000-03-06  Jim Meyering  <meyering@lucent.com>
97429
97430         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
97431         if it's NULL (because we ran out of memory).  From Bruno Haible.
97432
97433 2000-03-05  Jim Meyering  <meyering@lucent.com>
97434
97435         * lib/localcharset.c ("path-concat.h"): Include.
97436         (get_charset_aliases): Use path_concat instead of ANSI string
97437         concatenation.
97438
97439         * lib/unicodeio.h (PARAMS): Define.
97440         Use it to guard prototype.
97441
97442 2000-03-04  Jim Meyering  <meyering@lucent.com>
97443
97444         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
97445         for lib/localcharset.c.
97446
97447 2000-03-04  Jim Meyering  <meyering@lucent.com>
97448
97449         * lib/Makefile.am (install-exec-local): Create $(libdir) before
97450         installing into it.
97451         (uninstall-local): Uncomment this rule so `make distcheck' works
97452         once again.
97453
97454         * lib/unicodeio.c (<errno.h>): Include it.
97455         (errno): Declare if not defined.
97456
97457         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
97458
97459         * lib/config.charset: New version, incorporating remarks from a linux
97460         i18n mailing list.  From Bruno Haible.
97461
97462 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
97463
97464         * m4/codeset.m4: New file.
97465         * m4/iconv.m4: New file.
97466         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
97467
97468 2000-03-03  Jim Meyering  <meyering@lucent.com>
97469
97470         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
97471
97472 2000-03-02  Jim Meyering  <meyering@lucent.com>
97473
97474         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
97475         the messages come out on separate lines.
97476
97477         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
97478         rather than jm_CHECK_DECLARATIONS.
97479         * m4/decl.m4: Remove now-unused file.
97480
97481         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
97482         geteuid.
97483
97484 2000-03-02  Jim Meyering  <meyering@lucent.com>
97485
97486         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
97487
97488 2000-03-01  Jim Meyering  <meyering@lucent.com>
97489
97490         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
97491         * lib/unicodeio.c: Likewise.
97492
97493 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
97494
97495         * lib/config.charset: New file.
97496         * lib/localcharset.c: New file.
97497         * lib/unicodeio.h, lib/unicodeio.c: New files.
97498         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
97499         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
97500         (noinst_HEADERS): Add unicodeio.h.
97501         (all-local, install-exec-local, charset.alias): New targets.
97502
97503 2000-02-28  Paul Eggert  <eggert@twinsun.com>
97504
97505         * lib/quotearg.c (ALERT_CHAR): New macro.
97506         (quotearg_buffer_restyled): Use it.
97507
97508 2000-02-27  Jim Meyering  <meyering@lucent.com>
97509
97510         * m4/check-decl.m4: Add getenv to the list.
97511
97512 2000-02-27  Jim Meyering  <meyering@lucent.com>
97513
97514         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
97515         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
97516
97517         * lib/backupfile.c: Guard inclusion of stdlib.h with
97518         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
97519         Declare malloc if needed.
97520
97521         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
97522         `#ifndef HAVE_DECL..'
97523         now that autoconf always defines the HAVE_DECL_ symbols.
97524         * lib/human.c: Likewise.
97525         * lib/same.c: Likewise.
97526         * lib/strtoumax.c: Likewise.
97527
97528         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
97529         declaration check was not run.
97530         * lib/hash.c: Likewise.
97531         * lib/human.c: Likewise.
97532         * lib/same.c: Likewise.
97533         * lib/strtoumax.c: Likewise.
97534
97535         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
97536         `.', then first look up the entire `.'-containing string as a login
97537         name.
97538
97539 2000-02-23  Jim Meyering  <meyering@lucent.com>
97540
97541         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
97542         in place of my hack.
97543
97544 2000-02-18  Paul Eggert  <eggert@twinsun.com>
97545
97546         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
97547         (textint): New typedef.
97548         (parser_control): Member year changed from int to textint.
97549         All uses changed.
97550         (YYSTYPE): Removed; replaced by %union with int and textint members.
97551         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
97552         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
97553         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
97554         (tSNUMBER, tUNUMBER): Now of type <textintval>.
97555         (date, number, to_year): Use width of number in digits, not its value,
97556         to determine whether it's a 2-digit year, or a 2-digit time.
97557         (yylex): Store number of digits of numeric tokens.
97558         Reported by John Kendall.
97559
97560         (parser_control): Changed from struct parser_control to typedef (for
97561         consistency).  All uses changed.
97562
97563         (tID): Removed; not used.
97564         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
97565
97566 2000-02-14  Paul Eggert  <eggert@twinsun.com>
97567
97568         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
97569         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
97570
97571 2000-02-12  Jim Meyering  <meyering@lucent.com>
97572
97573         * lib/userspec.c (ISDIGIT): Define it.
97574         (isdigit): Remove definition.
97575         (is_number): Use ISDIGIT, not isdigit.
97576         <libintl.h>: Include.
97577         (_ and N_): Define.
97578         (parse_user_spec): Mark translatable strings.
97579
97580 2000-02-10  Jim Meyering  <meyering@lucent.com>
97581
97582         With these changes, nanosleep.[ch] are finally enough like the other
97583         lib/* replacement files to compile on a few more losing systems.
97584
97585         * lib/nanosleep.h: Don't include config.h.
97586         Remove prototype from declaration of nanosleep.
97587         (PARAMS): Remove now-unneeded definition.
97588         * lib/nanosleep.c: #undef nanosleep.
97589         (rpl_nanosleep): Rename from nanosleep.
97590
97591 2000-02-10  Jim Meyering  <meyering@lucent.com>
97592
97593         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
97594         gnu_nanosleep to rpl_nanosleep.
97595
97596 2000-02-09  Jim Meyering  <meyering@lucent.com>
97597
97598         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
97599         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
97600
97601 2000-02-08  Akim Demaille  <akim@epita.fr>
97602
97603         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
97604         `[' and `]' and remove uses of `changequote'.
97605         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
97606         (AC_SYS_LARGEFILE): Likewise.
97607         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
97608         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
97609         of changequote.
97610         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
97611         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
97612         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
97613         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
97614
97615 2000-02-05  Jim Meyering  <meyering@lucent.com>
97616
97617         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
97618         Remove explicit use of AC_HEADER_TIME.  It is required by
97619         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
97620         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
97621         in autoconf whereby the expansion of the latter ended up preceding
97622         the expansion of its prerequisite, AC_HEADER_TIME.
97623         Reported by Volker Borchert.
97624
97625 2000-02-03  Jim Meyering  <meyering@lucent.com>
97626
97627         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
97628
97629 2000-02-03  Jim Meyering  <meyering@lucent.com>
97630
97631         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
97632         rather than with `#if HAVE_UTMPNAME'.
97633
97634 2000-02-02  Jim Meyering  <meyering@lucent.com>
97635
97636         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
97637         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
97638         Reported by Eli Zaretskii.
97639
97640 2000-02-01  Jim Meyering  <meyering@lucent.com>
97641
97642         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
97643
97644 2000-01-31  Jim Meyering  <meyering@lucent.com>
97645
97646         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
97647         functions.  Add the time.h and sys/time.h headers along with the
97648         AC_REQUIRE'ment of AC_HEADER_TIME.
97649
97650 2000-01-31  Jim Meyering  <meyering@lucent.com>
97651
97652         * lib/nanosleep.h (nanosleep): Guard declaration with
97653         `#if ! HAVE_DECL_NANOSLEEP'.
97654         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
97655         the declaration in that vendor's sys/timers.h.
97656         Reported by Christian Krackowizer.
97657
97658         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
97659         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
97660         (ISPRINT): Likewise.
97661         Reported by Tom Tromey.
97662
97663 2000-01-30  Jim Meyering  <meyering@lucent.com>
97664
97665         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
97666
97667         * m4/prereq.m4 (utmp_includes): Define.
97668         Check for ut_user and ut_name members in both struct utmpx
97669         and struct utmp.
97670
97671 2000-01-30  Jim Meyering  <meyering@lucent.com>
97672
97673         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
97674         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
97675         header files where only utmpx.ut_user is declared.
97676
97677         * lib/readutmp.h (UT_USER): Define.
97678
97679 2000-01-29  Jim Meyering  <meyering@lucent.com>
97680
97681         * m4/lib-check.m4: New file containing library-related checks from
97682         fileutils and sh-utils (textutils had none).
97683
97684 2000-01-28  Jim Meyering  <meyering@lucent.com>
97685
97686         * m4/perl.m4: Change format of warning message to look more like that
97687         from the missing script.  Suggestion from François Pinard.
97688
97689 2000-01-25  Jim Meyering  <meyering@lucent.com>
97690
97691         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
97692         well as time.h in the compile check.
97693         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
97694         Fix typo in cross-compiling case: s/yes/no/.
97695
97696 2000-01-23  Jim Meyering  <meyering@lucent.com>
97697
97698         * m4/jm-macros.m4: Move df-related tests here from
97699         fileutils/configure.in
97700
97701         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
97702         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
97703
97704         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
97705         s/space/ac_fsusage_space/.
97706         (jm_FILE_SYSTEM_USAGE): Take two parameters.
97707
97708         * m4/ftruncate.m4: New file (derived from part of
97709         fileutils/configure.in).
97710         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
97711         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
97712
97713         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
97714         AC_SUBST these here, rather than just in sh-util/configure.in, so
97715         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
97716         all the same.
97717         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
97718         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
97719         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
97720         (AC_SUBST(POW_LIBM)): Likewise.
97721         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
97722
97723 2000-01-23  Jim Meyering  <meyering@lucent.com>
97724
97725         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
97726         obstack.c.
97727
97728 2000-01-22  Jim Meyering  <meyering@lucent.com>
97729
97730         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
97731
97732         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
97733
97734         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
97735         configure.in
97736         (AC_CHECK_HEADERS): Likewise for sh-utils.
97737         (AC_CHECK_HEADERS): Likewise for textutils.
97738         Merge the three lists of headers.
97739
97740         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
97741         from fileutils' configure.in.
97742
97743         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
97744         code. Moved tests into their own function (_jm_DECL_HEADERS) in
97745         check-decl.m4.
97746
97747         * m4/check-decl.m4: Use #if rather than #ifdef.
97748         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
97749         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
97750         (_jm_DECL_HEADERS): Define new function.
97751         (jm_CHECK_DECLARATIONS): Require it.
97752
97753 2000-01-22  Jim Meyering  <meyering@lucent.com>
97754
97755         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
97756         [! HAVE_DECL_STRTOULL]: Declare strtoull.
97757         Required for some AIX systems.  Reported by Christian Krackowizer.
97758         [TESTING] (main): New function.
97759
97760         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
97761         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
97762         letters.
97763
97764         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
97765         iswprint.
97766
97767         * lib/strverscmp.c (ISDIGIT): Define.
97768         (strverscmp): Use ISDIGIT, not isdigit.
97769
97770 2000-01-19  Jim Meyering  <meyering@lucent.com>
97771
97772         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
97773         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
97774         defines `struct timespec' in <sys/time.h>
97775
97776         * m4/c-bs-a.m4: Remove uses of changequote altogether.
97777         Thanks to Akim for explaining.
97778
97779 2000-01-17  Paul Eggert  <eggert@twinsun.com>
97780
97781         * lib/nanosleep.c (nanosleep):
97782         Don't use SA_INTERRUPT to decide whether to call sigaction, as
97783         POSIX.1 doesn't require SA_INTERRUPT and some systems
97784         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
97785         it's been part of POSIX.1 since day 1 (in 1988).
97786
97787 2000-01-17  Jim Meyering  <meyering@lucent.com>
97788
97789         * lib/interlock: Remove unused file.  Reported by François Pinard.
97790
97791 2000-01-16  Paul Eggert  <eggert@twinsun.com>
97792
97793         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
97794         alert, backslash, formfeed, and vertical tab unnecessarily in
97795         shell quoting style.
97796
97797 2000-01-16  Jim Meyering  <meyering@lucent.com>
97798
97799         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
97800         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
97801         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
97802         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
97803
97804 2000-01-16  Jim Meyering  <meyering@lucent.com>
97805
97806         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
97807         because the latter didn't work.
97808
97809 2000-01-15  Jim Meyering  <meyering@lucent.com>
97810
97811         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
97812         (AC_REPLACE_FUNCS): Add memcpy and memset.
97813         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
97814         Add strpbrk.
97815         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
97816
97817 2000-01-12  Jim Meyering  <meyering@lucent.com>
97818
97819         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
97820         (jm_PREREQ): Use it.
97821         (jm_PREREQ_READUTMP): New macro.
97822         (jm_PREREQ): Use it.
97823
97824 2000-01-11  Paul Eggert  <eggert@twinsun.com>
97825
97826         Quote multibyte characters correctly.
97827         * m4/c-bs-a.m4: New file.
97828         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
97829         (jm_PREREQ): Use it.
97830
97831 2000-01-11  Paul Eggert  <eggert@twinsun.com>
97832
97833         * m4/uintmax_t.m4: Port to autoconf 2.13.
97834
97835 2000-01-08  Jim Meyering  <meyering@ascend.com>
97836
97837         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
97838         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
97839
97840 2000-01-04  Jim Meyering  <meyering@ascend.com>
97841
97842         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
97843         jm_STRUCT_DIRENT_D_TYPE.
97844         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
97845         jm_STRUCT_DIRENT_D_INO.
97846         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
97847         jm_STRUCT_UTIMBUF.
97848         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
97849         renamings.
97850         * m4/utime.m4: Likewise.
97851
97852         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
97853         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
97854
97855 2000-01-03  Paul Eggert  <eggert@twinsun.com>
97856
97857         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
97858         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
97859
97860 2000-01-02  Jim Meyering  <meyering@ascend.com>
97861
97862         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
97863         remember if this is necessary.
97864
97865 1999-12-26  Jim Meyering  <meyering@ascend.com>
97866
97867         * m4/jm-macros.m4: Use it here.
97868         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
97869
97870 1999-12-23  Jim Meyering  <meyering@ascend.com>
97871
97872         * m4/jm-macros.m4: Check for clock_gettime (moved from
97873         fileutils/configure.in)
97874         Check for gettimeofday.
97875
97876 1999-12-20  Jim Meyering  <meyering@ascend.com>
97877
97878         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
97879         autoconf-2.14a-1999-12-20.
97880
97881 1999-12-19  Jim Meyering  <meyering@ascend.com>
97882
97883         * m4/lstat-slash.m4: New file.
97884         * m4/jm-macros.m4: Use the new macro:
97885         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
97886
97887 1999-12-07  Jim Meyering  <meyering@ascend.com>
97888
97889         * m4/perl.m4: Require that File::Compare be available, too.
97890         Too many systems seem to lack it.
97891
97892         * m4/strftime.m4: Add checks for most of the cpp macros tested in
97893         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
97894
97895 1999-11-18  Paul Eggert  <eggert@twinsun.com>
97896
97897         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
97898         problem with the QNX 4.25 shell, which doesn't propagate exit
97899         status of failed commands inside shell assignments.
97900
97901 1999-11-17  Jim Meyering  <meyering@ascend.com>
97902
97903         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
97904
97905 1999-11-07  Jim Meyering  <meyering@ascend.com>
97906
97907         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
97908
97909 1999-11-06  Jim Meyering  <meyering@ascend.com>
97910
97911         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
97912         * m4/jm-macros.m4 (jm_MACROS): Use it here.
97913
97914 1999-11-05  Jim Meyering  <meyering@ascend.com>
97915
97916         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
97917         configure.in of textutils, fileutils, and sh-utils into this one
97918         (shared between those packages) file.
97919         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
97920         AC_STRUCT_ST_BLKSIZE.
97921
97922 1999-11-03  Jim Meyering  <meyering@ascend.com>
97923
97924         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
97925         of AC_CHECK_TYPE checks includes unistd.h.
97926         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
97927         Suggestion from Akim Demaille.
97928
97929 1999-10-30  Jim Meyering  <meyering@ascend.com>
97930
97931         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
97932         m4-quoted string.
97933         * m4/ls-mntd-fs.m4: Likewise.
97934         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
97935         * m4/jm-winsz1.m4: Likewise.
97936
97937         * m4/const.m4: Remove file, since the fix made it into the experimental
97938         version of autoconf.
97939         * m4/mktime.m4: Likewise.
97940
97941         * m4/check-type.m4: Remove file, now that the latest version of
97942         AC_CHECK_TYPE takes a third arg to specify additional #includes.
97943
97944         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
97945         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
97946         AC_CHECK_TYPE.
97947
97948 1999-10-04  Jim Meyering  <meyering@ascend.com>
97949
97950         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
97951
97952 1999-09-22  Paul Eggert  <eggert@twinsun.com>
97953
97954         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
97955         2.95.1 bug with HP-UX 10.20.
97956
97957 1999-09-17  Jim Meyering  <meyering@ascend.com>
97958
97959         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
97960         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
97961         due to missing strdup (against sh-utils-2.0).
97962
97963 1999-08-29  Jim Meyering  <meyering@ascend.com>
97964
97965         * m4/jm-macros.m4: Require jm_BISON.
97966         * m4/bison.m4: New file.
97967
97968 1999-08-17  Paul Eggert  <eggert@twinsun.com>
97969
97970         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
97971         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
97972
97973 1999-08-05  Jim Meyering  <meyering@ascend.com>
97974
97975         * m4/getline.m4: Rename test file from conftestdata to conftest.data
97976         to avoid conflicts with `conftest' on 8+3 filesystems.
97977         Suggestion from Eli Zaretskii.
97978
97979 1999-08-04  Jim Meyering  <meyering@ascend.com>
97980
97981         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
97982         fileutils and sh-utils (textutils's getline test was inadequate).
97983         (AM_FUNC_GETLINE): Run this test.
97984         (AC_CHECK_FUNCS): Check for getdelim.
97985         Reported by Bob Proulx.
97986
97987 1999-08-02  Jim Meyering  <meyering@ascend.com>
97988
97989         * m4/jm-macros.m4: Add a comment.
97990
97991 1999-08-01  Paul Eggert  <eggert@twinsun.com>
97992
97993         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
97994         <inttypes.h> defines strtoumax as a macro (and not as a
97995         function).
97996
97997 1999-08-01  Paul Eggert  <eggert@twinsun.com>
97998
97999         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
98000         that we can shift, multiply and divide unsigned long long
98001         values; Ultrix cc can't do it.
98002
98003 1999-08-01  Paul Eggert  <eggert@twinsun.com>
98004
98005         * m4/mktime.m4: New file, which is a preview of what should appear
98006         in the next public autoconf release.
98007
98008 1999-08-01  Paul Eggert  <eggert@twinsun.com>
98009
98010         * m4/lfs.m4: Remove this file.
98011         * m4/largefile.m4: New file.  It contains the old contents of
98012         lfs.m4, except that all names with prefix AC_LFS have been
98013         changed to use the prefix AC_SYS_LARGEFILE instead, to be
98014         compatible with future autoconf versions.  Also, some minor m4
98015         quoting problems have been fixed.
98016
98017 1999-08-01  Paul Eggert  <eggert@twinsun.com>
98018
98019         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
98020         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
98021         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
98022         and simplify the shell code.
98023
98024 1999-08-01  Jim Meyering  <meyering@ascend.com>
98025
98026         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
98027         m4.
98028
98029 1999-07-20  Jim Meyering  <meyering@ascend.com>
98030
98031         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
98032
98033 1999-07-15  Jim Meyering  <meyering@ascend.com>
98034
98035         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
98036
98037 1999-05-22  Jim Meyering  <meyering@ascend.com>
98038
98039         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
98040
98041 1999-05-20  Jim Meyering  <meyering@ascend.com>
98042
98043         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
98044         Add a colon after each `then' in case $4 is empty.
98045
98046 1999-05-16  Jim Meyering  <meyering@ascend.com>
98047
98048         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
98049
98050 1999-05-10  Jim Meyering  <meyering@ascend.com>
98051
98052         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
98053
98054         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
98055         AC_FUNC_MKTIME.
98056
98057 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
98058
98059         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
98060
98061 1999-05-04  Paul Eggert  <eggert@twinsun.com>
98062
98063         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
98064         not CPPFLAGS, so that linking works correctly in IRIX.
98065
98066 1999-04-30  Paul Eggert  <eggert@twinsun.com>
98067
98068         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
98069
98070 1999-04-20  Paul Eggert  <eggert@twinsun.com>
98071
98072         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
98073         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
98074         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
98075         jm_AC_TYPE_UNSIGNED_LONG_LONG.
98076         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
98077
98078         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
98079
98080 1999-04-20  Jim Meyering  <meyering@ascend.com>
98081
98082         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
98083         AC_REPLACE xstroull if necessary.  From Paul Eggert.
98084         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
98085
98086 1999-04-18  Jim Meyering  <meyering@ascend.com>
98087
98088         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
98089         * m4/jm-macros.m4: Use it.
98090
98091 1999-04-06  Jim Meyering  <meyering@ascend.com>
98092
98093         * m4/strftime.m4: Remove test for %f.
98094
98095 1999-03-29  Jim Meyering  <meyering@ascend.com>
98096
98097         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
98098         superset of the AC_TYPE_* checks in the textutils, fileutils,
98099         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
98100         AC_TYPE_PID_T.
98101
98102 1999-03-28  Jim Meyering  <meyering@ascend.com>
98103
98104         * m4/jm-macros.m4: Define GNU_PACKAGE here.
98105         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
98106         replaced e.g., in the *.sh files of the sh-utils.
98107
98108 1999-03-20  Jim Meyering  <meyering@ascend.com>
98109
98110         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
98111         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
98112         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
98113
98114 1999-03-19  Jim Meyering  <meyering@ascend.com>
98115
98116         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
98117
98118 1999-03-12  Jim Meyering  <meyering@ascend.com>
98119
98120         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
98121
98122 1999-03-07  Jim Meyering  <meyering@ascend.com>
98123
98124         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
98125         declared.
98126
98127 1999-02-17  Jim Meyering  <meyering@ascend.com>
98128
98129         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
98130         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
98131
98132 1999-02-07  Jim Meyering  <meyering@ascend.com>
98133
98134         * m4/group-member.m4: New file -- extracted from sh-utils'
98135         configure.in.
98136
98137         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
98138         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
98139
98140 1999-02-06  Jim Meyering  <meyering@ascend.com>
98141
98142         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
98143         * m4/fnmatch.m4: Likewise.
98144         * m4/getgroups.m4: Likewise.
98145         * m4/lstat.m4: Likewise.
98146         * m4/malloc.m4: Likewise.
98147         * m4/putenv.m4: Likewise.
98148         * m4/realloc.m4: Likewise.
98149         * m4/regex.m4: Likewise.
98150         * m4/stat.m4: Likewise.
98151         * m4/strftime.m4: Likewise.
98152         Suggestion from Alain Magloire.
98153
98154         * m4/chown.m4: Use `.$ac_objext', not `.o'.
98155         * m4/fnmatch.m4: Likewise.
98156         * m4/getgroups.m4: Likewise.
98157         * m4/getline.m4: Likewise.
98158         * m4/lstat.m4: Likewise.
98159         * m4/malloc.m4: Likewise.
98160         * m4/memcmp.m4: Likewise.
98161         * m4/putenv.m4: Likewise.
98162         * m4/realloc.m4: Likewise.
98163         * m4/regex.m4: Likewise.
98164         * m4/stat.m4: Likewise.
98165         * m4/strftime.m4: Likewise.
98166         Suggestion from Alain Magloire.
98167
98168         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
98169         an argument.
98170
98171         * m4/regex.m4: Add a run-time Test for proper operation of
98172         re_compile_pattern.
98173
98174 1999-01-31  Jim Meyering  <meyering@ascend.com>
98175
98176         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
98177
98178 1999-01-30  Jim Meyering  <meyering@ascend.com>
98179
98180         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
98181
98182         * m4/jm-mktime.m4: Make this a wrapper around the official
98183         AM_FUNC_MKTIME rather than my private copy, now that the official one
98184         is up to date.
98185         * m4/mktime.m4: Remove file.
98186
98187         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
98188         * m4/uptime.m4: Likewise.
98189         * m4/uintmax_t.m4: Likewise.
98190
98191 1999-01-28  Jim Meyering  <meyering@ascend.com>
98192
98193         * m4/jm-macros.m4: Use jm_AFS.
98194         * m4/afs.m4: New file (from fileutils' configure.in).
98195
98196         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
98197         * m4/chown.m4: Likewise.
98198         * m4/d-ino.m4: Likewise.
98199         * m4/d-type.m4: Likewise.
98200         * m4/fnmatch.m4: Likewise.
98201         * m4/getgroups.m4: Likewise.
98202         * m4/gettext.m4: Likewise.
98203         * m4/jm-mktime.m4: Likewise.
98204         * m4/jm-winsz2.m4: Likewise.
98205         * m4/lcmessage.m4: Likewise.
98206         * m4/ls-mntd-fs.m4: Likewise.
98207         * m4/malloc.m4: Likewise.
98208         * m4/memcmp.m4: Likewise.
98209         * m4/putenv.m4: Likewise.
98210         * m4/realloc.m4: Likewise.
98211         * m4/st_mtim.m4: Likewise.
98212         * m4/strftime.m4: Likewise.
98213
98214 1999-01-16  Jim Meyering  <meyering@ascend.com>
98215
98216         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
98217         (ARGMATCH_DIE_DECL): Define.
98218
98219 1999-01-12  Jim Meyering  <meyering@ascend.com>
98220
98221         * m4/Makefile.am.in: Rewrite to avoid using fmt.
98222         Reported by Lars Hecking.
98223
98224 1999-01-10  Jim Meyering  <meyering@ascend.com>
98225
98226         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
98227         gross kludge.
98228         * m4/inttypes_h.m4: Likewise.
98229         * m4/lstat.m4: Likewise.
98230         * m4/malloc.m4: Likewise.
98231         * m4/readdir.m4: Likewise.
98232         * m4/realloc.m4: Likewise.
98233         * m4/st_dm_mode.m4: Likewise.
98234         * m4/stat.m4: Likewise.
98235         * m4/utimbuf.m4: Likewise.
98236         * m4/utimes.m4: Likewise.
98237
98238         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
98239         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
98240         comments in config.h.in are meaningful.
98241
98242         * m4/jm-macros.m4: Require autoconf-2.13 here.
98243
98244         * m4/regex.m4: By default, don't use the included regex.c on systems
98245         with glibc 2.  Suggestion from Uli Drepper.
98246
98247 1999-01-02  Jim Meyering  <meyering@ascend.com>
98248
98249         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
98250
98251 1998-12-18  Jim Meyering  <meyering@ascend.com>
98252
98253         * m4/Makefile.am.in (Makefile.am): Simplify rule.
98254         Based on a suggestion from Lars Hecking.
98255
98256 1998-11-16  Paul Eggert  <eggert@twinsun.com>
98257
98258         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
98259
98260 1998-11-16  Jim Meyering  <meyering@ascend.com>
98261
98262         * m4/lfs.m4: Double-quote the `uname...` expression.
98263
98264 1998-11-14  Jim Meyering  <meyering@ascend.com>
98265
98266         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
98267         * m4/stat.m4: Likewise.
98268
98269 1998-11-03  Jim Meyering  <meyering@ascend.com>
98270
98271         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
98272         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
98273
98274 1998-10-18  Jim Meyering  <meyering@ascend.com>
98275
98276         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
98277
98278 1998-10-17  Jim Meyering  <meyering@ascend.com>
98279
98280         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
98281         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
98282         calls for those previously hard-coded headers.  Instead, take a new
98283         parameter.
98284         (jm_CHECK_DECLARATIONS): Reflect interface change.
98285         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
98286         (jm_CHECK_DECL_LOCALTIME_R): New macro.
98287
98288         * m4/mktime.m4: Test for spring-forward gap before long-running test.
98289
98290 1998-10-14  Jim Meyering  <meyering@ascend.com>
98291
98292         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
98293         instead of "TZ=America/Vancouver".  From Paul Eggert.
98294
98295 1998-10-11  Jim Meyering  <meyering@ascend.com>
98296
98297         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
98298         This adds a test for a recently added compatibility fix for mktime.c.
98299         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
98300
98301 1998-09-27  Jim Meyering  <meyering@ascend.com>
98302
98303         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
98304
98305         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
98306         ../configure.in, including a change from Gordon Matzigkeit to allow
98307         cross-compiling for the Hurd.
98308
98309         * m4/glibc.m4: New file/macro to test for the GNU C Library
98310         versions 1 and 2.  From Gordon Matzigkeit.
98311         Indent.
98312
98313 1998-09-21  Jim Meyering  <meyering@ascend.com>
98314
98315         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
98316
98317 1998-08-18  Paul Eggert  <eggert@twinsun.com>
98318
98319         Port nanosecond-resolution times to UnixWare 2.1.2 and
98320         pedantic Solaris 2.6.
98321
98322         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
98323         AC_STRUCT_ST_MTIM.
98324         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
98325         Generate name of ns member, instead of just 1 or undef.
98326         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
98327
98328 1998-08-15  Jim Meyering  <meyering@ascend.com>
98329
98330         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
98331         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
98332         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
98333         instead of jm_TYPE_SSIZE_T.
98334
98335 1998-08-12  Jim Meyering  <meyering@ascend.com>
98336
98337         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
98338
98339 1998-08-02  Jim Meyering  <meyering@ascend.com>
98340
98341         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
98342         in acconfig.h manually.
98343
98344 1998-07-31  Paul Eggert  <eggert@twinsun.com>
98345
98346         * m4/st_mtim.m4: New file.
98347
98348 1998-07-28  Jim Meyering  <meyering@ascend.com>
98349
98350         * m4/utimes.m4: Undef stat.
98351
98352 1998-07-25  Jim Meyering  <meyering@ascend.com>
98353
98354         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
98355         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
98356
98357 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
98358
98359         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
98360         uid and gid actually remain unchanged.
98361
98362 1998-07-07  Jim Meyering  <meyering@ascend.com>
98363
98364         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
98365
98366 1998-07-04  Jim Meyering  <meyering@ascend.com>
98367
98368         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
98369         to prove that this macro can be used in packages without regex.c.
98370
98371 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
98372
98373         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
98374         is to be used.
98375
98376 1998-07-03  Jim Meyering  <meyering@ascend.com>
98377
98378         * m4/gettext.m4: Add -lintl if it's found to be necessary.
98379
98380         * m4/gettext.m4: New file -- from gettext-0.10.35.
98381         * m4/lcmessage.m4: Likewise.
98382         * m4/progtest.m4: Likewise.
98383
98384         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
98385         * m4/jm-macros.m4: Require the new macro.
98386
98387 1998-06-29  Jim Meyering  <meyering@ascend.com>
98388
98389         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
98390         for the definition of NGROUPS (used in a system header included
98391         by sys/mount.h).
98392
98393 1998-06-28  Jim Meyering  <meyering@ascend.com>
98394
98395         * m4/ls-mntd-fs.m4: New file.
98396         * m4/fstypename.m4: New file.
98397
98398         * m4/jm-macros.m4: Require the new macro.
98399         * m4/jm-glibc-io.m4: New file.
98400
98401 1998-05-19  Jim Meyering  <meyering@ascend.com>
98402
98403         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
98404         * m4/lchown.m4: New file.
98405
98406         * m4/Makefile.am.in: New file.
98407         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
98408
98409 1998-05-14  Jim Meyering  <meyering@ascend.com>
98410
98411         * m4/Makefile.am (EXTRA_DIST): Add them.
98412         * m4/jm-macros.m4: New file.
98413         * m4/utimbuf.m4: New file.
98414
98415 1998-05-12  Jim Meyering  <meyering@ascend.com>
98416
98417         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
98418
98419 1998-05-11  Jim Meyering  <meyering@ascend.com>
98420
98421         * m4/isc-posix.m4: New file.
98422
98423 1998-05-10  Jim Meyering  <meyering@ascend.com>
98424
98425         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
98426
98427 1998-05-09  Jim Meyering  <meyering@ascend.com>
98428
98429         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
98430         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
98431         with automake.
98432
98433         * m4/ssize_t.m4: New file.
98434         * m4/mktime.m4: Remove file -- the new automake has this now.
98435
98436 1998-04-26  Jim Meyering  <meyering@ascend.com>
98437
98438         * m4/assert.m4: New file.
98439         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
98440
98441 1998-04-05  Jim Meyering  <meyering@ascend.com>
98442
98443         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
98444         (jm_PREREQ): Use it here.
98445
98446 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
98447
98448         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
98449         in acconfig.h.
98450
98451 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
98452
98453         * m4/prereq.m4: New file.
98454         * m4/error.m4: New file.
98455         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
98456
98457 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
98458
98459         * m4/getline.m4: Don't set am_cv_func_working_getline before the
98460         cache-check for the same variable -- that defeated the purpose of
98461         the test; the test program was never run.  This was a problem only
98462         on systems with losing getline functions -- HP-UX 10.20 is one.
98463         Reported by Bjorn Helgaas.
98464
98465 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
98466
98467         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
98468
98469 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
98470
98471         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
98472
98473         * m4/const.m4: New file.  Use an initializer in this declaration
98474         typedef int charset[2]; const charset x;
98475         Reported by Bob Glickstein.
98476
98477 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
98478
98479         * m4/chown.m4: Fix reversed types on -1 args to chown.
98480         From Kaveh Ghazi.
98481
98482 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
98483
98484         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
98485         Add lseek and memchr.
98486
98487         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
98488         T.E.Dickey <dickey@clark.net> said that some older preprocessors
98489         have a 20-character limit on names.
98490
98491 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
98492
98493         * m4/inttypes_h.m4: New file.
98494         * m4/uintmax_t.m4: New file.
98495         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
98496
98497
98498         -----
98499
98500         Local Variables:
98501         coding: utf-8
98502         End:
98503
98504         Copyright (C) 1997-2012 Free Software Foundation, Inc.
98505
98506         Copying and distribution of this file, with or without
98507         modification, are permitted provided the copyright notice
98508         and this notice are preserved.